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

Comparing rxvt-unicode/configure (file contents):
Revision 1.3 by pcg, Thu Dec 18 01:08:05 2003 UTC vs.
Revision 1.21 by pcg, Sun Mar 14 23:14:37 2004 UTC

1#! /bin/sh 1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles. 2# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13 3# Generated by GNU Autoconf 2.59.
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6# 4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation 6# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it. 7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
9 11
10# Defaults: 12# Be Bourne compatible
11ac_help= 13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12ac_default_prefix=/usr/local 14 emulate sh
13# Any additions from configure.in: 15 NULLCMD=:
14ac_help="$ac_help 16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15 --enable-shared[=PKGS] build shared libraries [default=no]" 17 # is contrary to our usage. Disable this feature.
16ac_help="$ac_help 18 alias -g '${1+"$@"}'='"$@"'
17 --enable-static[=PKGS] build static libraries [default=yes]" 19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18ac_help="$ac_help 20 set -o posix
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]" 21fi
20ac_help="$ac_help 22DUALCASE=1; export DUALCASE # for MKS sh
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]" 23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
22 243
23# Find the correct PATH separator. Usually this is `:', but 244# Find the correct PATH separator. Usually this is `:', but
24# DJGPP uses `;' like DOS. 245# DJGPP uses `;' like DOS.
25if test "X${PATH_SEPARATOR+set}" != Xset; then 246if test "X${PATH_SEPARATOR+set}" != Xset; then
26 UNAME=${UNAME-`uname 2>/dev/null`} 247 UNAME=${UNAME-`uname 2>/dev/null`}
175if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
176 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 397 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
177fi 398fi
178 399
179 400
180ac_help="$ac_help 401
181 --disable-libtool-lock avoid locking (might break parallel builds)" 402# Name of the host.
182ac_help="$ac_help 403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
183dnl 404# so uname gets run too.
184 --with-pic try to use only PIC/non-PIC objects [default=use both]" 405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
185ac_help="$ac_help 406
186 --enable-everything enable standard non-multichoice features: marked * 407exec 6>&1
187 NOTE: this option is order dependent 408
188 NOTE: automatically enabled with --enable-shared" 409#
189ac_help="$ac_help 410# Initializations.
190 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters" 411#
191ac_help="$ac_help 412ac_default_prefix=/usr/local
192 --enable-xft enable xft support on systems that have it" 413ac_config_libobj_dir=.
193ac_help="$ac_help 414cross_compiling=no
194 --with-codesets=NAME,... compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,vn,all)" 415subdirs=
195ac_help="$ac_help 416MFLAGS=
196 --with-encoding=NAME set language default encoding to NAME (default: sjis) 417MAKEFLAGS=
197 (eucj|sjis|big5|gb|kr|noenc)" 418SHELL=${CONFIG_SHELL-/bin/sh}
198ac_help="$ac_help 419
199 --enable-utmp enable utmp (utmpx) support *" 420# Maximum number of lines to put in a shell here document.
200ac_help="$ac_help 421# This variable seems obsolete. It should probably be removed, and
201 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)*" 422# only ac_max_sed_lines should be used.
202ac_help="$ac_help 423: ${ac_max_here_lines=38}
203 --enable-lastlog enable lastlog support (requires --enable-utmp) *" 424
204ac_help="$ac_help 425# Identity of this package.
205 --enable-xpm-background enable XPM background pixmaps *" 426PACKAGE_NAME=
206ac_help="$ac_help 427PACKAGE_TARNAME=
207 --enable-transparency enable transparent backgrounds *" 428PACKAGE_VERSION=
208ac_help="$ac_help 429PACKAGE_STRING=
209 --enable-menubar enable menubar *" 430PACKAGE_BUGREPORT=
210ac_help="$ac_help 431
211 --enable-graphics enable rxvt own graphics mode (see src/graphics) *" 432ac_unique_file="src/feature.h"
212ac_help="$ac_help 433# Factoring default headers for most tests.
213 --enable-rxvt-scroll enable rxvt style scrollbar *" 434ac_includes_default="\
214ac_help="$ac_help 435#include <stdio.h>
215 --enable-next-scroll enable NeXT style scrollbar *" 436#if HAVE_SYS_TYPES_H
216ac_help="$ac_help 437# include <sys/types.h>
217 --enable-xterm-scroll enable Xterm style scrollbar *" 438#endif
218ac_help="$ac_help 439#if HAVE_SYS_STAT_H
219 --enable-half-shadow use half width/height shadow on rxvt scrollbar" 440# include <sys/stat.h>
220ac_help="$ac_help 441#endif
221 --enable-xim XIM (X Input Method) protocol support *" 442#if STDC_HEADERS
222ac_help="$ac_help 443# include <stdlib.h>
223 --enable-greek enable greek keyboard support" 444# include <stddef.h>
224ac_help="$ac_help 445#else
225 --enable-ttygid enable tty setting to group named "tty"" 446# if HAVE_STDLIB_H
226ac_help="$ac_help 447# include <stdlib.h>
227 --disable-backspace-key disable handling of the backspace key" 448# endif
228ac_help="$ac_help 449#endif
229 --disable-delete-key disable handling of the delete key" 450#if HAVE_STRING_H
230ac_help="$ac_help 451# if !STDC_HEADERS && HAVE_MEMORY_H
231 --disable-resources disable all resource checking" 452# include <memory.h>
232ac_help="$ac_help 453# endif
233 --enable-xgetdefault enable resources via X instead of our small version" 454# include <string.h>
234ac_help="$ac_help 455#endif
235 --enable-strings enable some replacement system functions" 456#if HAVE_STRINGS_H
236ac_help="$ac_help 457# include <strings.h>
237 --disable-swapscreen disable swap screen support" 458#endif
238ac_help="$ac_help 459#if HAVE_INTTYPES_H
239 --enable-frills enable support for rarely used features *" 460# include <inttypes.h>
240ac_help="$ac_help 461#else
241 --enable-linespace enable support for linespace *" 462# if HAVE_STDINT_H
242ac_help="$ac_help 463# include <stdint.h>
243 --enable-24bit enable support for using 24bit visuals if available *" 464# endif
244ac_help="$ac_help 465#endif
245 --enable-keepscrolling enable continual scrolling on scrollbar arrow press *" 466#if HAVE_UNISTD_H
246ac_help="$ac_help 467# include <unistd.h>
247 --enable-selectionscrolling enable scrolling during selections *" 468#endif"
248ac_help="$ac_help 469
249 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 *" 470ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK LINKER CXXCPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP LIBTOOL INSTALL_LIBRXVT RXVTNAME MV RM CP LN SED CMP TBL X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define DEBUG DINCLUDE DLIB include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS'
250ac_help="$ac_help 471ac_subst_files='MCOMMON'
251 --enable-slipwheeling enable slip wheel scrolling (requires previous) *"
252ac_help="$ac_help
253 --enable-old-selection enable v2.20 (& prior) mouse selection style support*"
254ac_help="$ac_help
255 --disable-new-selection disable new mouse (xterm) selection style support"
256ac_help="$ac_help
257 --enable-dmalloc enable Gray Watson's malloc - for debugging use"
258ac_help="$ac_help
259 --enable-dlmalloc enable Doug Lea's malloc - for production use
260 NOTE: enable only one malloc package"
261ac_help="$ac_help
262 --enable-smart-resize enable smart growth/shrink behaviour"
263ac_help="$ac_help
264 --enable-256-color enable 256-color support"
265ac_help="$ac_help
266 --enable-cursor-blink enable blinking cursor *"
267ac_help="$ac_help
268 --enable-pointer-blank enable pointer blank when typing or inactive pointer*"
269ac_help="$ac_help
270 --with-term=NAME set the terminal to NAME (default \"xterm\")"
271ac_help="$ac_help
272 --with-terminfo=PATH set the path to the terminfo tree to PATH"
273ac_help="$ac_help
274 --with-x use the X Window System"
275ac_help="$ac_help
276 --with-xpm-includes=DIR use XPM includes in DIR"
277ac_help="$ac_help
278 --with-xpm-library=DIR use XPM library in DIR"
279ac_help="$ac_help
280 --with-xpm use XPM"
281 472
282# Initialize some variables set by options. 473# Initialize some variables set by options.
474ac_init_help=
475ac_init_version=false
283# The variables have the same names as the options, with 476# The variables have the same names as the options, with
284# dashes changed to underlines. 477# dashes changed to underlines.
285build=NONE 478cache_file=/dev/null
286cache_file=./config.cache
287exec_prefix=NONE 479exec_prefix=NONE
288host=NONE
289no_create= 480no_create=
290nonopt=NONE
291no_recursion= 481no_recursion=
292prefix=NONE 482prefix=NONE
293program_prefix=NONE 483program_prefix=NONE
294program_suffix=NONE 484program_suffix=NONE
295program_transform_name=s,x,x, 485program_transform_name=s,x,x,
296silent= 486silent=
297site= 487site=
298srcdir= 488srcdir=
299target=NONE
300verbose= 489verbose=
301x_includes=NONE 490x_includes=NONE
302x_libraries=NONE 491x_libraries=NONE
492
493# Installation directory options.
494# These are left unexpanded so users can "make install exec_prefix=/foo"
495# and all the variables that are supposed to be based on exec_prefix
496# by default will actually change.
497# Use braces instead of parens because sh, perl, etc. also accept them.
303bindir='${exec_prefix}/bin' 498bindir='${exec_prefix}/bin'
304sbindir='${exec_prefix}/sbin' 499sbindir='${exec_prefix}/sbin'
305libexecdir='${exec_prefix}/libexec' 500libexecdir='${exec_prefix}/libexec'
306datadir='${prefix}/share' 501datadir='${prefix}/share'
307sysconfdir='${prefix}/etc' 502sysconfdir='${prefix}/etc'
311includedir='${prefix}/include' 506includedir='${prefix}/include'
312oldincludedir='/usr/include' 507oldincludedir='/usr/include'
313infodir='${prefix}/info' 508infodir='${prefix}/info'
314mandir='${prefix}/man' 509mandir='${prefix}/man'
315 510
316# Initialize some other variables.
317subdirs=
318MFLAGS= MAKEFLAGS=
319SHELL=${CONFIG_SHELL-/bin/sh}
320# Maximum number of lines to put in a shell here document.
321ac_max_here_lines=12
322
323ac_prev= 511ac_prev=
324for ac_option 512for ac_option
325do 513do
326
327 # If the previous option needs an argument, assign it. 514 # If the previous option needs an argument, assign it.
328 if test -n "$ac_prev"; then 515 if test -n "$ac_prev"; then
329 eval "$ac_prev=\$ac_option" 516 eval "$ac_prev=\$ac_option"
330 ac_prev= 517 ac_prev=
331 continue 518 continue
332 fi 519 fi
333 520
334 case "$ac_option" in 521 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
335 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
336 *) ac_optarg= ;;
337 esac
338 522
339 # Accept the important Cygnus configure options, so we can diagnose typos. 523 # Accept the important Cygnus configure options, so we can diagnose typos.
340 524
341 case "$ac_option" in 525 case $ac_option in
342 526
343 -bindir | --bindir | --bindi | --bind | --bin | --bi) 527 -bindir | --bindir | --bindi | --bind | --bin | --bi)
344 ac_prev=bindir ;; 528 ac_prev=bindir ;;
345 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 529 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
346 bindir="$ac_optarg" ;; 530 bindir=$ac_optarg ;;
347 531
348 -build | --build | --buil | --bui | --bu) 532 -build | --build | --buil | --bui | --bu)
349 ac_prev=build ;; 533 ac_prev=build_alias ;;
350 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 534 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
351 build="$ac_optarg" ;; 535 build_alias=$ac_optarg ;;
352 536
353 -cache-file | --cache-file | --cache-fil | --cache-fi \ 537 -cache-file | --cache-file | --cache-fil | --cache-fi \
354 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 538 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
355 ac_prev=cache_file ;; 539 ac_prev=cache_file ;;
356 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 540 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
357 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 541 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
358 cache_file="$ac_optarg" ;; 542 cache_file=$ac_optarg ;;
543
544 --config-cache | -C)
545 cache_file=config.cache ;;
359 546
360 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 547 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
361 ac_prev=datadir ;; 548 ac_prev=datadir ;;
362 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 549 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
363 | --da=*) 550 | --da=*)
364 datadir="$ac_optarg" ;; 551 datadir=$ac_optarg ;;
365 552
366 -disable-* | --disable-*) 553 -disable-* | --disable-*)
367 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 554 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
368 # Reject names that are not valid shell variable names. 555 # Reject names that are not valid shell variable names.
369 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
370 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
371 fi 558 { (exit 1); exit 1; }; }
372 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
373 eval "enable_${ac_feature}=no" ;; 560 eval "enable_$ac_feature=no" ;;
374 561
375 -enable-* | --enable-*) 562 -enable-* | --enable-*)
376 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 563 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
377 # Reject names that are not valid shell variable names. 564 # Reject names that are not valid shell variable names.
378 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
379 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
380 fi 567 { (exit 1); exit 1; }; }
381 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
382 case "$ac_option" in 569 case $ac_option in
383 *=*) ;; 570 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
384 *) ac_optarg=yes ;; 571 *) ac_optarg=yes ;;
385 esac 572 esac
386 eval "enable_${ac_feature}='$ac_optarg'" ;; 573 eval "enable_$ac_feature='$ac_optarg'" ;;
387 574
388 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 575 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
389 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 576 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
390 | --exec | --exe | --ex) 577 | --exec | --exe | --ex)
391 ac_prev=exec_prefix ;; 578 ac_prev=exec_prefix ;;
392 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 579 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
393 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 580 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
394 | --exec=* | --exe=* | --ex=*) 581 | --exec=* | --exe=* | --ex=*)
395 exec_prefix="$ac_optarg" ;; 582 exec_prefix=$ac_optarg ;;
396 583
397 -gas | --gas | --ga | --g) 584 -gas | --gas | --ga | --g)
398 # Obsolete; use --with-gas. 585 # Obsolete; use --with-gas.
399 with_gas=yes ;; 586 with_gas=yes ;;
400 587
401 -help | --help | --hel | --he) 588 -help | --help | --hel | --he | -h)
402 # Omit some internal or obsolete options to make the list less imposing. 589 ac_init_help=long ;;
403 # This message is too long to be a string in the A/UX 3.1 sh. 590 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
404 cat << EOF 591 ac_init_help=recursive ;;
405Usage: configure [options] [host] 592 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
406Options: [defaults in brackets after descriptions] 593 ac_init_help=short ;;
407Configuration:
408 --cache-file=FILE cache test results in FILE
409 --help print this message
410 --no-create do not create output files
411 --quiet, --silent do not print \`checking...' messages
412 --version print the version of autoconf that created configure
413Directory and file names:
414 --prefix=PREFIX install architecture-independent files in PREFIX
415 [$ac_default_prefix]
416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
417 [same as prefix]
418 --bindir=DIR user executables in DIR [EPREFIX/bin]
419 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
420 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
421 --datadir=DIR read-only architecture-independent data in DIR
422 [PREFIX/share]
423 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
424 --sharedstatedir=DIR modifiable architecture-independent data in DIR
425 [PREFIX/com]
426 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
427 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
428 --includedir=DIR C header files in DIR [PREFIX/include]
429 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
430 --infodir=DIR info documentation in DIR [PREFIX/info]
431 --mandir=DIR man documentation in DIR [PREFIX/man]
432 --srcdir=DIR find the sources in DIR [configure dir or ..]
433 --program-prefix=PREFIX prepend PREFIX to installed program names
434 --program-suffix=SUFFIX append SUFFIX to installed program names
435 --program-transform-name=PROGRAM
436 run sed PROGRAM on installed program names
437EOF
438 cat << EOF
439Host type:
440 --build=BUILD configure for building on BUILD [BUILD=HOST]
441 --host=HOST configure for HOST [guessed]
442 --target=TARGET configure for TARGET [TARGET=HOST]
443Features and packages:
444 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
445 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
446 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
447 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
448 --x-includes=DIR X include files are in DIR
449 --x-libraries=DIR X library files are in DIR
450EOF
451 if test -n "$ac_help"; then
452 echo "--enable and --with options recognized:$ac_help"
453 fi
454 exit 0 ;;
455 594
456 -host | --host | --hos | --ho) 595 -host | --host | --hos | --ho)
457 ac_prev=host ;; 596 ac_prev=host_alias ;;
458 -host=* | --host=* | --hos=* | --ho=*) 597 -host=* | --host=* | --hos=* | --ho=*)
459 host="$ac_optarg" ;; 598 host_alias=$ac_optarg ;;
460 599
461 -includedir | --includedir | --includedi | --included | --include \ 600 -includedir | --includedir | --includedi | --included | --include \
462 | --includ | --inclu | --incl | --inc) 601 | --includ | --inclu | --incl | --inc)
463 ac_prev=includedir ;; 602 ac_prev=includedir ;;
464 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 603 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
465 | --includ=* | --inclu=* | --incl=* | --inc=*) 604 | --includ=* | --inclu=* | --incl=* | --inc=*)
466 includedir="$ac_optarg" ;; 605 includedir=$ac_optarg ;;
467 606
468 -infodir | --infodir | --infodi | --infod | --info | --inf) 607 -infodir | --infodir | --infodi | --infod | --info | --inf)
469 ac_prev=infodir ;; 608 ac_prev=infodir ;;
470 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 609 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
471 infodir="$ac_optarg" ;; 610 infodir=$ac_optarg ;;
472 611
473 -libdir | --libdir | --libdi | --libd) 612 -libdir | --libdir | --libdi | --libd)
474 ac_prev=libdir ;; 613 ac_prev=libdir ;;
475 -libdir=* | --libdir=* | --libdi=* | --libd=*) 614 -libdir=* | --libdir=* | --libdi=* | --libd=*)
476 libdir="$ac_optarg" ;; 615 libdir=$ac_optarg ;;
477 616
478 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 617 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
479 | --libexe | --libex | --libe) 618 | --libexe | --libex | --libe)
480 ac_prev=libexecdir ;; 619 ac_prev=libexecdir ;;
481 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 620 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
482 | --libexe=* | --libex=* | --libe=*) 621 | --libexe=* | --libex=* | --libe=*)
483 libexecdir="$ac_optarg" ;; 622 libexecdir=$ac_optarg ;;
484 623
485 -localstatedir | --localstatedir | --localstatedi | --localstated \ 624 -localstatedir | --localstatedir | --localstatedi | --localstated \
486 | --localstate | --localstat | --localsta | --localst \ 625 | --localstate | --localstat | --localsta | --localst \
487 | --locals | --local | --loca | --loc | --lo) 626 | --locals | --local | --loca | --loc | --lo)
488 ac_prev=localstatedir ;; 627 ac_prev=localstatedir ;;
489 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 628 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
490 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 629 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
491 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 630 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
492 localstatedir="$ac_optarg" ;; 631 localstatedir=$ac_optarg ;;
493 632
494 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 633 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
495 ac_prev=mandir ;; 634 ac_prev=mandir ;;
496 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 635 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
497 mandir="$ac_optarg" ;; 636 mandir=$ac_optarg ;;
498 637
499 -nfp | --nfp | --nf) 638 -nfp | --nfp | --nf)
500 # Obsolete; use --without-fp. 639 # Obsolete; use --without-fp.
501 with_fp=no ;; 640 with_fp=no ;;
502 641
503 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 642 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
504 | --no-cr | --no-c) 643 | --no-cr | --no-c | -n)
505 no_create=yes ;; 644 no_create=yes ;;
506 645
507 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 646 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
508 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 647 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
509 no_recursion=yes ;; 648 no_recursion=yes ;;
513 | --oldin | --oldi | --old | --ol | --o) 652 | --oldin | --oldi | --old | --ol | --o)
514 ac_prev=oldincludedir ;; 653 ac_prev=oldincludedir ;;
515 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 654 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
516 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 655 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
517 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 656 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
518 oldincludedir="$ac_optarg" ;; 657 oldincludedir=$ac_optarg ;;
519 658
520 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 659 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
521 ac_prev=prefix ;; 660 ac_prev=prefix ;;
522 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 661 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
523 prefix="$ac_optarg" ;; 662 prefix=$ac_optarg ;;
524 663
525 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 664 -program-prefix | --program-prefix | --program-prefi | --program-pref \
526 | --program-pre | --program-pr | --program-p) 665 | --program-pre | --program-pr | --program-p)
527 ac_prev=program_prefix ;; 666 ac_prev=program_prefix ;;
528 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 667 -program-prefix=* | --program-prefix=* | --program-prefi=* \
529 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 668 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
530 program_prefix="$ac_optarg" ;; 669 program_prefix=$ac_optarg ;;
531 670
532 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 671 -program-suffix | --program-suffix | --program-suffi | --program-suff \
533 | --program-suf | --program-su | --program-s) 672 | --program-suf | --program-su | --program-s)
534 ac_prev=program_suffix ;; 673 ac_prev=program_suffix ;;
535 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 674 -program-suffix=* | --program-suffix=* | --program-suffi=* \
536 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 675 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
537 program_suffix="$ac_optarg" ;; 676 program_suffix=$ac_optarg ;;
538 677
539 -program-transform-name | --program-transform-name \ 678 -program-transform-name | --program-transform-name \
540 | --program-transform-nam | --program-transform-na \ 679 | --program-transform-nam | --program-transform-na \
541 | --program-transform-n | --program-transform- \ 680 | --program-transform-n | --program-transform- \
542 | --program-transform | --program-transfor \ 681 | --program-transform | --program-transfor \
549 | --program-transform-n=* | --program-transform-=* \ 688 | --program-transform-n=* | --program-transform-=* \
550 | --program-transform=* | --program-transfor=* \ 689 | --program-transform=* | --program-transfor=* \
551 | --program-transfo=* | --program-transf=* \ 690 | --program-transfo=* | --program-transf=* \
552 | --program-trans=* | --program-tran=* \ 691 | --program-trans=* | --program-tran=* \
553 | --progr-tra=* | --program-tr=* | --program-t=*) 692 | --progr-tra=* | --program-tr=* | --program-t=*)
554 program_transform_name="$ac_optarg" ;; 693 program_transform_name=$ac_optarg ;;
555 694
556 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 695 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
557 | -silent | --silent | --silen | --sile | --sil) 696 | -silent | --silent | --silen | --sile | --sil)
558 silent=yes ;; 697 silent=yes ;;
559 698
560 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 699 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
561 ac_prev=sbindir ;; 700 ac_prev=sbindir ;;
562 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 701 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
563 | --sbi=* | --sb=*) 702 | --sbi=* | --sb=*)
564 sbindir="$ac_optarg" ;; 703 sbindir=$ac_optarg ;;
565 704
566 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 705 -sharedstatedir | --sharedstatedir | --sharedstatedi \
567 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 706 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
568 | --sharedst | --shareds | --shared | --share | --shar \ 707 | --sharedst | --shareds | --shared | --share | --shar \
569 | --sha | --sh) 708 | --sha | --sh)
570 ac_prev=sharedstatedir ;; 709 ac_prev=sharedstatedir ;;
571 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 710 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
572 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 711 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
573 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 712 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
574 | --sha=* | --sh=*) 713 | --sha=* | --sh=*)
575 sharedstatedir="$ac_optarg" ;; 714 sharedstatedir=$ac_optarg ;;
576 715
577 -site | --site | --sit) 716 -site | --site | --sit)
578 ac_prev=site ;; 717 ac_prev=site ;;
579 -site=* | --site=* | --sit=*) 718 -site=* | --site=* | --sit=*)
580 site="$ac_optarg" ;; 719 site=$ac_optarg ;;
581 720
582 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 721 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
583 ac_prev=srcdir ;; 722 ac_prev=srcdir ;;
584 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 723 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
585 srcdir="$ac_optarg" ;; 724 srcdir=$ac_optarg ;;
586 725
587 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 726 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
588 | --syscon | --sysco | --sysc | --sys | --sy) 727 | --syscon | --sysco | --sysc | --sys | --sy)
589 ac_prev=sysconfdir ;; 728 ac_prev=sysconfdir ;;
590 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 729 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
591 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 730 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
592 sysconfdir="$ac_optarg" ;; 731 sysconfdir=$ac_optarg ;;
593 732
594 -target | --target | --targe | --targ | --tar | --ta | --t) 733 -target | --target | --targe | --targ | --tar | --ta | --t)
595 ac_prev=target ;; 734 ac_prev=target_alias ;;
596 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 735 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
597 target="$ac_optarg" ;; 736 target_alias=$ac_optarg ;;
598 737
599 -v | -verbose | --verbose | --verbos | --verbo | --verb) 738 -v | -verbose | --verbose | --verbos | --verbo | --verb)
600 verbose=yes ;; 739 verbose=yes ;;
601 740
602 -version | --version | --versio | --versi | --vers) 741 -version | --version | --versio | --versi | --vers | -V)
603 echo "configure generated by autoconf version 2.13" 742 ac_init_version=: ;;
604 exit 0 ;;
605 743
606 -with-* | --with-*) 744 -with-* | --with-*)
607 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 745 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
608 # Reject names that are not valid shell variable names. 746 # Reject names that are not valid shell variable names.
609 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 747 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
610 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 748 { echo "$as_me: error: invalid package name: $ac_package" >&2
611 fi 749 { (exit 1); exit 1; }; }
612 ac_package=`echo $ac_package| sed 's/-/_/g'` 750 ac_package=`echo $ac_package| sed 's/-/_/g'`
613 case "$ac_option" in 751 case $ac_option in
614 *=*) ;; 752 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
615 *) ac_optarg=yes ;; 753 *) ac_optarg=yes ;;
616 esac 754 esac
617 eval "with_${ac_package}='$ac_optarg'" ;; 755 eval "with_$ac_package='$ac_optarg'" ;;
618 756
619 -without-* | --without-*) 757 -without-* | --without-*)
620 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 758 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
621 # Reject names that are not valid shell variable names. 759 # Reject names that are not valid shell variable names.
622 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 760 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
623 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 761 { echo "$as_me: error: invalid package name: $ac_package" >&2
624 fi 762 { (exit 1); exit 1; }; }
625 ac_package=`echo $ac_package| sed 's/-/_/g'` 763 ac_package=`echo $ac_package | sed 's/-/_/g'`
626 eval "with_${ac_package}=no" ;; 764 eval "with_$ac_package=no" ;;
627 765
628 --x) 766 --x)
629 # Obsolete; use --with-x. 767 # Obsolete; use --with-x.
630 with_x=yes ;; 768 with_x=yes ;;
631 769
632 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 770 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
633 | --x-incl | --x-inc | --x-in | --x-i) 771 | --x-incl | --x-inc | --x-in | --x-i)
634 ac_prev=x_includes ;; 772 ac_prev=x_includes ;;
635 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 773 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
636 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 774 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
637 x_includes="$ac_optarg" ;; 775 x_includes=$ac_optarg ;;
638 776
639 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 777 -x-libraries | --x-libraries | --x-librarie | --x-librari \
640 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 778 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
641 ac_prev=x_libraries ;; 779 ac_prev=x_libraries ;;
642 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 780 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
643 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 781 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
644 x_libraries="$ac_optarg" ;; 782 x_libraries=$ac_optarg ;;
645 783
646 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 784 -*) { echo "$as_me: error: unrecognized option: $ac_option
785Try \`$0 --help' for more information." >&2
786 { (exit 1); exit 1; }; }
647 ;; 787 ;;
648 788
789 *=*)
790 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791 # Reject names that are not valid shell variable names.
792 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794 { (exit 1); exit 1; }; }
795 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796 eval "$ac_envvar='$ac_optarg'"
797 export $ac_envvar ;;
798
649 *) 799 *)
650 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 800 # FIXME: should be removed in autoconf 3.0.
651 echo "configure: warning: $ac_option: invalid host type" 1>&2 801 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
652 fi 802 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
653 if test "x$nonopt" != xNONE; then 803 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
654 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 804 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
655 fi
656 nonopt="$ac_option"
657 ;; 805 ;;
658 806
659 esac 807 esac
660done 808done
661 809
662if test -n "$ac_prev"; then 810if test -n "$ac_prev"; then
663 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 811 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812 { echo "$as_me: error: missing argument to $ac_option" >&2
813 { (exit 1); exit 1; }; }
664fi 814fi
665 815
666trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 816# Be sure to have absolute paths.
667 817for ac_var in exec_prefix prefix
668# File descriptor usage:
669# 0 standard input
670# 1 file creation
671# 2 errors and warnings
672# 3 some systems may open it to /dev/tty
673# 4 used on the Kubota Titan
674# 6 checking for... messages and results
675# 5 compiler messages saved in config.log
676if test "$silent" = yes; then
677 exec 6>/dev/null
678else
679 exec 6>&1
680fi
681exec 5>./config.log
682
683echo "\
684This file contains any messages produced by compilers while
685running configure, to aid debugging if configure makes a mistake.
686" 1>&5
687
688# Strip out --no-create and --no-recursion so they do not pile up.
689# Also quote any args containing shell metacharacters.
690ac_configure_args=
691for ac_arg
692do 818do
819 eval ac_val=$`echo $ac_var`
693 case "$ac_arg" in 820 case $ac_val in
694 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 821 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
695 | --no-cr | --no-c) ;; 822 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
696 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 823 { (exit 1); exit 1; }; };;
697 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
698 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
699 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
700 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
701 esac 824 esac
702done 825done
703 826
704# NLS nuisances. 827# Be sure to have absolute paths.
705# Only set these to C if already set. These must not be set unconditionally 828for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
706# because not all systems understand e.g. LANG=C (notably SCO). 829 localstatedir libdir includedir oldincludedir infodir mandir
707# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 830do
708# Non-C LC_CTYPE values break the ctype check. 831 eval ac_val=$`echo $ac_var`
709if test "${LANG+set}" = set; then LANG=C; export LANG; fi 832 case $ac_val in
710if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 833 [\\/$]* | ?:[\\/]* ) ;;
711if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 834 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
712if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 835 { (exit 1); exit 1; }; };;
836 esac
837done
713 838
714# confdefs.h avoids OS command line length limits that DEFS can exceed. 839# There might be people who depend on the old broken behavior: `$host'
715rm -rf conftest* confdefs.h 840# used to hold the argument of --host etc.
716# AIX cpp loses on an empty file, so make sure it contains at least a newline. 841# FIXME: To remove some day.
717echo > confdefs.h 842build=$build_alias
843host=$host_alias
844target=$target_alias
718 845
719# A filename unique to this package, relative to the directory that 846# FIXME: To remove some day.
720# configure is in, which we can look for to find out if srcdir is correct. 847if test "x$host_alias" != x; then
721ac_unique_file=src/feature.h 848 if test "x$build_alias" = x; then
849 cross_compiling=maybe
850 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851 If a cross compiler is detected then cross compile mode will be used." >&2
852 elif test "x$build_alias" != "x$host_alias"; then
853 cross_compiling=yes
854 fi
855fi
856
857ac_tool_prefix=
858test -n "$host_alias" && ac_tool_prefix=$host_alias-
859
860test "$silent" = yes && exec 6>/dev/null
861
722 862
723# Find the source files, if location was not specified. 863# Find the source files, if location was not specified.
724if test -z "$srcdir"; then 864if test -z "$srcdir"; then
725 ac_srcdir_defaulted=yes 865 ac_srcdir_defaulted=yes
726 # Try the directory containing this script, then its parent. 866 # Try the directory containing this script, then its parent.
727 ac_prog=$0 867 ac_confdir=`(dirname "$0") 2>/dev/null ||
728 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 868$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
729 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 869 X"$0" : 'X\(//\)[^/]' \| \
870 X"$0" : 'X\(//\)$' \| \
871 X"$0" : 'X\(/\)' \| \
872 . : '\(.\)' 2>/dev/null ||
873echo X"$0" |
874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876 /^X\(\/\/\)$/{ s//\1/; q; }
877 /^X\(\/\).*/{ s//\1/; q; }
878 s/.*/./; q'`
730 srcdir=$ac_confdir 879 srcdir=$ac_confdir
731 if test ! -r $srcdir/$ac_unique_file; then 880 if test ! -r $srcdir/$ac_unique_file; then
732 srcdir=.. 881 srcdir=..
733 fi 882 fi
734else 883else
735 ac_srcdir_defaulted=no 884 ac_srcdir_defaulted=no
736fi 885fi
737if test ! -r $srcdir/$ac_unique_file; then 886if test ! -r $srcdir/$ac_unique_file; then
738 if test "$ac_srcdir_defaulted" = yes; then 887 if test "$ac_srcdir_defaulted" = yes; then
739 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
889 { (exit 1); exit 1; }; }
740 else 890 else
741 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 891 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
892 { (exit 1); exit 1; }; }
742 fi 893 fi
743fi 894fi
895(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897 { (exit 1); exit 1; }; }
744srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 898srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899ac_env_build_alias_set=${build_alias+set}
900ac_env_build_alias_value=$build_alias
901ac_cv_env_build_alias_set=${build_alias+set}
902ac_cv_env_build_alias_value=$build_alias
903ac_env_host_alias_set=${host_alias+set}
904ac_env_host_alias_value=$host_alias
905ac_cv_env_host_alias_set=${host_alias+set}
906ac_cv_env_host_alias_value=$host_alias
907ac_env_target_alias_set=${target_alias+set}
908ac_env_target_alias_value=$target_alias
909ac_cv_env_target_alias_set=${target_alias+set}
910ac_cv_env_target_alias_value=$target_alias
911ac_env_CC_set=${CC+set}
912ac_env_CC_value=$CC
913ac_cv_env_CC_set=${CC+set}
914ac_cv_env_CC_value=$CC
915ac_env_CFLAGS_set=${CFLAGS+set}
916ac_env_CFLAGS_value=$CFLAGS
917ac_cv_env_CFLAGS_set=${CFLAGS+set}
918ac_cv_env_CFLAGS_value=$CFLAGS
919ac_env_LDFLAGS_set=${LDFLAGS+set}
920ac_env_LDFLAGS_value=$LDFLAGS
921ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922ac_cv_env_LDFLAGS_value=$LDFLAGS
923ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_env_CPPFLAGS_value=$CPPFLAGS
925ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927ac_env_CXX_set=${CXX+set}
928ac_env_CXX_value=$CXX
929ac_cv_env_CXX_set=${CXX+set}
930ac_cv_env_CXX_value=$CXX
931ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932ac_env_CXXFLAGS_value=$CXXFLAGS
933ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935ac_env_CPP_set=${CPP+set}
936ac_env_CPP_value=$CPP
937ac_cv_env_CPP_set=${CPP+set}
938ac_cv_env_CPP_value=$CPP
939ac_env_CXXCPP_set=${CXXCPP+set}
940ac_env_CXXCPP_value=$CXXCPP
941ac_cv_env_CXXCPP_set=${CXXCPP+set}
942ac_cv_env_CXXCPP_value=$CXXCPP
745 943
944#
945# Report the --help message.
946#
947if test "$ac_init_help" = "long"; then
948 # Omit some internal or obsolete options to make the list less imposing.
949 # This message is too long to be a string in the A/UX 3.1 sh.
950 cat <<_ACEOF
951\`configure' configures this package to adapt to many kinds of systems.
952
953Usage: $0 [OPTION]... [VAR=VALUE]...
954
955To assign environment variables (e.g., CC, CFLAGS...), specify them as
956VAR=VALUE. See below for descriptions of some of the useful variables.
957
958Defaults for the options are specified in brackets.
959
960Configuration:
961 -h, --help display this help and exit
962 --help=short display options specific to this package
963 --help=recursive display the short help of all the included packages
964 -V, --version display version information and exit
965 -q, --quiet, --silent do not print \`checking...' messages
966 --cache-file=FILE cache test results in FILE [disabled]
967 -C, --config-cache alias for \`--cache-file=config.cache'
968 -n, --no-create do not create output files
969 --srcdir=DIR find the sources in DIR [configure dir or \`..']
970
971_ACEOF
972
973 cat <<_ACEOF
974Installation directories:
975 --prefix=PREFIX install architecture-independent files in PREFIX
976 [$ac_default_prefix]
977 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
978 [PREFIX]
979
980By default, \`make install' will install all the files in
981\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
982an installation prefix other than \`$ac_default_prefix' using \`--prefix',
983for instance \`--prefix=\$HOME'.
984
985For better control, use the options below.
986
987Fine tuning of the installation directories:
988 --bindir=DIR user executables [EPREFIX/bin]
989 --sbindir=DIR system admin executables [EPREFIX/sbin]
990 --libexecdir=DIR program executables [EPREFIX/libexec]
991 --datadir=DIR read-only architecture-independent data [PREFIX/share]
992 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
993 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
994 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
995 --libdir=DIR object code libraries [EPREFIX/lib]
996 --includedir=DIR C header files [PREFIX/include]
997 --oldincludedir=DIR C header files for non-gcc [/usr/include]
998 --infodir=DIR info documentation [PREFIX/info]
999 --mandir=DIR man documentation [PREFIX/man]
1000_ACEOF
1001
1002 cat <<\_ACEOF
1003
1004X features:
1005 --x-includes=DIR X include files are in DIR
1006 --x-libraries=DIR X library files are in DIR
1007
1008Program names:
1009 --program-prefix=PREFIX prepend PREFIX to installed program names
1010 --program-suffix=SUFFIX append SUFFIX to installed program names
1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1012
1013System types:
1014 --build=BUILD configure for building on BUILD [guessed]
1015 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1016_ACEOF
1017fi
1018
1019if test -n "$ac_init_help"; then
1020
1021 cat <<\_ACEOF
1022
1023Optional Features:
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --enable-shared=PKGS build shared libraries default=no
1027 --enable-static=PKGS build static libraries default=yes
1028 --enable-fast-install=PKGS optimize for fast installation default=yes
1029 --disable-libtool-lock avoid locking (might break parallel builds)
1030 --enable-everything enable standard non-multichoice features
1031 NOTE: this option is order dependent
1032 NOTE: automatically enabled with --enable-shared
1033 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1034 --enable-combining enable composition of base and combining characters
1035 --enable-xft enable xft support on systems that have it
1036 --enable-utmp enable utmp (utmpx) support
1037 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1038 --enable-lastlog enable lastlog support (requires --enable-utmp)
1039 --enable-xpm-background enable XPM background pixmaps
1040 --enable-transparency enable transparent backgrounds
1041 --enable-menubar enable menubar
1042 --enable-rxvt-scroll enable rxvt style scrollbar
1043 --enable-next-scroll enable NeXT style scrollbar
1044 --enable-xterm-scroll enable Xterm style scrollbar
1045 --enable-plain-scroll enable plain style scrollbar
1046 --enable-half-shadow use half width/height shadow on rxvt scrollbar
1047 --enable-xim XIM (X Input Method) protocol support
1048 --enable-ttygid enable tty setting to group named "tty"
1049 --disable-backspace-key disable handling of the backspace key
1050 --disable-delete-key disable handling of the delete key
1051 --disable-resources disable all resource checking
1052 --enable-xgetdefault enable resources via X instead of our small version
1053 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
1054 --enable-strings enable some replacement system functions
1055 --disable-swapscreen disable swap screen support
1056 --enable-frills enable support for rarely used features
1057 --enable-linespace enable support for linespace
1058 --enable-24bit enable support for using 24bit visuals if available
1059 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1060 --enable-selectionscrolling enable scrolling during selections
1061 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1062 --enable-slipwheeling enable slip wheel scrolling (requires previous)
1063 --enable-dmalloc enable Gray Watson's malloc - for debugging use
1064 --enable-dlmalloc enable Doug Lea's malloc - for production use
1065 NOTE: enable only one malloc package
1066 --enable-smart-resize enable smart growth/shrink behaviour
1067 --enable-256-color enable 256-color support
1068 --enable-cursor-blink enable blinking cursor
1069 --enable-text-blink enable blinking text
1070 --enable-pointer-blank enable pointer blank when typing or inactive pointer
1071
1072Optional Packages:
1073 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1074 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1075 --with-gnu-ld assume the C compiler uses GNU ld default=no
1076 --with-pic try to use only PIC/non-PIC objects default=use both
1077 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,all)
1078 --with-res-name=NAME use this as default resource name (default: urxvt)
1079 --with-res-class=CLASS use this as the resource class (default: URxvt)
1080 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1081 --with-term=NAME set the terminal to NAME (default: rxvt)
1082 --with-terminfo=PATH set the path to the terminfo tree to PATH
1083 --with-x use the X Window System
1084 --with-xpm-includes=DIR use XPM includes in DIR
1085 --with-xpm-library=DIR use XPM library in DIR
1086 --with-xpm use XPM
1087
1088Some influential environment variables:
1089 CC C compiler command
1090 CFLAGS C compiler flags
1091 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1092 nonstandard directory <lib dir>
1093 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1094 headers in a nonstandard directory <include dir>
1095 CXX C++ compiler command
1096 CXXFLAGS C++ compiler flags
1097 CPP C preprocessor
1098 CXXCPP C++ preprocessor
1099
1100Use these variables to override the choices made by `configure' or to help
1101it to find libraries and programs with nonstandard names/locations.
1102
1103_ACEOF
1104fi
1105
1106if test "$ac_init_help" = "recursive"; then
1107 # If there are subdirs, report their specific --help.
1108 ac_popdir=`pwd`
1109 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1110 test -d $ac_dir || continue
1111 ac_builddir=.
1112
1113if test "$ac_dir" != .; then
1114 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1115 # A "../" for each directory in $ac_dir_suffix.
1116 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1117else
1118 ac_dir_suffix= ac_top_builddir=
1119fi
1120
1121case $srcdir in
1122 .) # No --srcdir option. We are building in place.
1123 ac_srcdir=.
1124 if test -z "$ac_top_builddir"; then
1125 ac_top_srcdir=.
1126 else
1127 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1128 fi ;;
1129 [\\/]* | ?:[\\/]* ) # Absolute path.
1130 ac_srcdir=$srcdir$ac_dir_suffix;
1131 ac_top_srcdir=$srcdir ;;
1132 *) # Relative path.
1133 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1134 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1135esac
1136
1137# Do not use `cd foo && pwd` to compute absolute paths, because
1138# the directories may not exist.
1139case `pwd` in
1140.) ac_abs_builddir="$ac_dir";;
1141*)
1142 case "$ac_dir" in
1143 .) ac_abs_builddir=`pwd`;;
1144 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1145 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1146 esac;;
1147esac
1148case $ac_abs_builddir in
1149.) ac_abs_top_builddir=${ac_top_builddir}.;;
1150*)
1151 case ${ac_top_builddir}. in
1152 .) ac_abs_top_builddir=$ac_abs_builddir;;
1153 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1154 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1155 esac;;
1156esac
1157case $ac_abs_builddir in
1158.) ac_abs_srcdir=$ac_srcdir;;
1159*)
1160 case $ac_srcdir in
1161 .) ac_abs_srcdir=$ac_abs_builddir;;
1162 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1163 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1164 esac;;
1165esac
1166case $ac_abs_builddir in
1167.) ac_abs_top_srcdir=$ac_top_srcdir;;
1168*)
1169 case $ac_top_srcdir in
1170 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1171 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1172 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1173 esac;;
1174esac
1175
1176 cd $ac_dir
1177 # Check for guested configure; otherwise get Cygnus style configure.
1178 if test -f $ac_srcdir/configure.gnu; then
1179 echo
1180 $SHELL $ac_srcdir/configure.gnu --help=recursive
1181 elif test -f $ac_srcdir/configure; then
1182 echo
1183 $SHELL $ac_srcdir/configure --help=recursive
1184 elif test -f $ac_srcdir/configure.ac ||
1185 test -f $ac_srcdir/configure.in; then
1186 echo
1187 $ac_configure --help
1188 else
1189 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1190 fi
1191 cd "$ac_popdir"
1192 done
1193fi
1194
1195test -n "$ac_init_help" && exit 0
1196if $ac_init_version; then
1197 cat <<\_ACEOF
1198
1199Copyright (C) 2003 Free Software Foundation, Inc.
1200This configure script is free software; the Free Software Foundation
1201gives unlimited permission to copy, distribute and modify it.
1202_ACEOF
1203 exit 0
1204fi
1205exec 5>config.log
1206cat >&5 <<_ACEOF
1207This file contains any messages produced by compilers while
1208running configure, to aid debugging if configure makes a mistake.
1209
1210It was created by $as_me, which was
1211generated by GNU Autoconf 2.59. Invocation command line was
1212
1213 $ $0 $@
1214
1215_ACEOF
1216{
1217cat <<_ASUNAME
1218## --------- ##
1219## Platform. ##
1220## --------- ##
1221
1222hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1223uname -m = `(uname -m) 2>/dev/null || echo unknown`
1224uname -r = `(uname -r) 2>/dev/null || echo unknown`
1225uname -s = `(uname -s) 2>/dev/null || echo unknown`
1226uname -v = `(uname -v) 2>/dev/null || echo unknown`
1227
1228/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1229/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1230
1231/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1232/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1233/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1234hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1235/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1236/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1237/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1238
1239_ASUNAME
1240
1241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1242for as_dir in $PATH
1243do
1244 IFS=$as_save_IFS
1245 test -z "$as_dir" && as_dir=.
1246 echo "PATH: $as_dir"
1247done
1248
1249} >&5
1250
1251cat >&5 <<_ACEOF
1252
1253
1254## ----------- ##
1255## Core tests. ##
1256## ----------- ##
1257
1258_ACEOF
1259
1260
1261# Keep a trace of the command line.
1262# Strip out --no-create and --no-recursion so they do not pile up.
1263# Strip out --silent because we don't want to record it for future runs.
1264# Also quote any args containing shell meta-characters.
1265# Make two passes to allow for proper duplicate-argument suppression.
1266ac_configure_args=
1267ac_configure_args0=
1268ac_configure_args1=
1269ac_sep=
1270ac_must_keep_next=false
1271for ac_pass in 1 2
1272do
1273 for ac_arg
1274 do
1275 case $ac_arg in
1276 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1277 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1278 | -silent | --silent | --silen | --sile | --sil)
1279 continue ;;
1280 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1281 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1282 esac
1283 case $ac_pass in
1284 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1285 2)
1286 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1287 if test $ac_must_keep_next = true; then
1288 ac_must_keep_next=false # Got value, back to normal.
1289 else
1290 case $ac_arg in
1291 *=* | --config-cache | -C | -disable-* | --disable-* \
1292 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1293 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1294 | -with-* | --with-* | -without-* | --without-* | --x)
1295 case "$ac_configure_args0 " in
1296 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1297 esac
1298 ;;
1299 -* ) ac_must_keep_next=true ;;
1300 esac
1301 fi
1302 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1303 # Get rid of the leading space.
1304 ac_sep=" "
1305 ;;
1306 esac
1307 done
1308done
1309$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1310$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1311
1312# When interrupted or exit'd, cleanup temporary files, and complete
1313# config.log. We remove comments because anyway the quotes in there
1314# would cause problems or look ugly.
1315# WARNING: Be sure not to use single quotes in there, as some shells,
1316# such as our DU 5.0 friend, will then `close' the trap.
1317trap 'exit_status=$?
1318 # Save into config.log some information that might help in debugging.
1319 {
1320 echo
1321
1322 cat <<\_ASBOX
1323## ---------------- ##
1324## Cache variables. ##
1325## ---------------- ##
1326_ASBOX
1327 echo
1328 # The following way of writing the cache mishandles newlines in values,
1329{
1330 (set) 2>&1 |
1331 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1332 *ac_space=\ *)
1333 sed -n \
1334 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1335 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1336 ;;
1337 *)
1338 sed -n \
1339 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1340 ;;
1341 esac;
1342}
1343 echo
1344
1345 cat <<\_ASBOX
1346## ----------------- ##
1347## Output variables. ##
1348## ----------------- ##
1349_ASBOX
1350 echo
1351 for ac_var in $ac_subst_vars
1352 do
1353 eval ac_val=$`echo $ac_var`
1354 echo "$ac_var='"'"'$ac_val'"'"'"
1355 done | sort
1356 echo
1357
1358 if test -n "$ac_subst_files"; then
1359 cat <<\_ASBOX
1360## ------------- ##
1361## Output files. ##
1362## ------------- ##
1363_ASBOX
1364 echo
1365 for ac_var in $ac_subst_files
1366 do
1367 eval ac_val=$`echo $ac_var`
1368 echo "$ac_var='"'"'$ac_val'"'"'"
1369 done | sort
1370 echo
1371 fi
1372
1373 if test -s confdefs.h; then
1374 cat <<\_ASBOX
1375## ----------- ##
1376## confdefs.h. ##
1377## ----------- ##
1378_ASBOX
1379 echo
1380 sed "/^$/d" confdefs.h | sort
1381 echo
1382 fi
1383 test "$ac_signal" != 0 &&
1384 echo "$as_me: caught signal $ac_signal"
1385 echo "$as_me: exit $exit_status"
1386 } >&5
1387 rm -f core *.core &&
1388 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1389 exit $exit_status
1390 ' 0
1391for ac_signal in 1 2 13 15; do
1392 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1393done
1394ac_signal=0
1395
1396# confdefs.h avoids OS command line length limits that DEFS can exceed.
1397rm -rf conftest* confdefs.h
1398# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1399echo >confdefs.h
1400
1401# Predefined preprocessor variables.
1402
1403cat >>confdefs.h <<_ACEOF
1404#define PACKAGE_NAME "$PACKAGE_NAME"
1405_ACEOF
1406
1407
1408cat >>confdefs.h <<_ACEOF
1409#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1410_ACEOF
1411
1412
1413cat >>confdefs.h <<_ACEOF
1414#define PACKAGE_VERSION "$PACKAGE_VERSION"
1415_ACEOF
1416
1417
1418cat >>confdefs.h <<_ACEOF
1419#define PACKAGE_STRING "$PACKAGE_STRING"
1420_ACEOF
1421
1422
1423cat >>confdefs.h <<_ACEOF
1424#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1425_ACEOF
1426
1427
1428# Let the site file select an alternate cache file if it wants to.
746# Prefer explicitly selected file to automatically selected ones. 1429# Prefer explicitly selected file to automatically selected ones.
747if test -z "$CONFIG_SITE"; then 1430if test -z "$CONFIG_SITE"; then
748 if test "x$prefix" != xNONE; then 1431 if test "x$prefix" != xNONE; then
749 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1432 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
750 else 1433 else
751 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1434 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
752 fi 1435 fi
753fi 1436fi
754for ac_site_file in $CONFIG_SITE; do 1437for ac_site_file in $CONFIG_SITE; do
755 if test -r "$ac_site_file"; then 1438 if test -r "$ac_site_file"; then
1439 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
756 echo "loading site script $ac_site_file" 1440echo "$as_me: loading site script $ac_site_file" >&6;}
1441 sed 's/^/| /' "$ac_site_file" >&5
757 . "$ac_site_file" 1442 . "$ac_site_file"
758 fi 1443 fi
759done 1444done
760 1445
761if test -r "$cache_file"; then 1446if test -r "$cache_file"; then
1447 # Some versions of bash will fail to source /dev/null (special
1448 # files actually), so we avoid doing that.
1449 if test -f "$cache_file"; then
1450 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
762 echo "loading cache $cache_file" 1451echo "$as_me: loading cache $cache_file" >&6;}
763 . $cache_file 1452 case $cache_file in
1453 [\\/]* | ?:[\\/]* ) . $cache_file;;
1454 *) . ./$cache_file;;
1455 esac
1456 fi
764else 1457else
1458 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
765 echo "creating cache $cache_file" 1459echo "$as_me: creating cache $cache_file" >&6;}
766 > $cache_file 1460 >$cache_file
1461fi
1462
1463# Check that the precious variables saved in the cache have kept the same
1464# value.
1465ac_cache_corrupted=false
1466for ac_var in `(set) 2>&1 |
1467 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1468 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1469 eval ac_new_set=\$ac_env_${ac_var}_set
1470 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1471 eval ac_new_val="\$ac_env_${ac_var}_value"
1472 case $ac_old_set,$ac_new_set in
1473 set,)
1474 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1475echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1476 ac_cache_corrupted=: ;;
1477 ,set)
1478 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1479echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1480 ac_cache_corrupted=: ;;
1481 ,);;
1482 *)
1483 if test "x$ac_old_val" != "x$ac_new_val"; then
1484 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1485echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1486 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1487echo "$as_me: former value: $ac_old_val" >&2;}
1488 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1489echo "$as_me: current value: $ac_new_val" >&2;}
1490 ac_cache_corrupted=:
1491 fi;;
1492 esac
1493 # Pass precious variables to config.status.
1494 if test "$ac_new_set" = set; then
1495 case $ac_new_val in
1496 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1497 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1498 *) ac_arg=$ac_var=$ac_new_val ;;
1499 esac
1500 case " $ac_configure_args " in
1501 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1502 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1503 esac
1504 fi
1505done
1506if $ac_cache_corrupted; then
1507 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1508echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1509 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1510echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1511 { (exit 1); exit 1; }; }
767fi 1512fi
768 1513
769ac_ext=c 1514ac_ext=c
770# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
771ac_cpp='$CPP $CPPFLAGS' 1515ac_cpp='$CPP $CPPFLAGS'
772ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1516ac_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' 1517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
774cross_compiling=$ac_cv_prog_cc_cross 1518ac_compiler_gnu=$ac_cv_c_compiler_gnu
775 1519
776ac_exeext= 1520
777ac_objext=o 1521
778if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 1522
779 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 1523
780 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 1524
781 ac_n= ac_c=' 1525
782' ac_t=' ' 1526
783 else 1527
784 ac_n=-n ac_c= ac_t= 1528
785 fi 1529
786else 1530
787 ac_n= ac_c='\c' ac_t= 1531
788fi 1532
1533
1534
1535
789 1536
790 1537
791ac_aux_dir= 1538ac_aux_dir=
792for ac_dir in autoconf $srcdir/autoconf; do 1539for ac_dir in autoconf $srcdir/autoconf; do
793 if test -f $ac_dir/install-sh; then 1540 if test -f $ac_dir/install-sh; then
796 break 1543 break
797 elif test -f $ac_dir/install.sh; then 1544 elif test -f $ac_dir/install.sh; then
798 ac_aux_dir=$ac_dir 1545 ac_aux_dir=$ac_dir
799 ac_install_sh="$ac_aux_dir/install.sh -c" 1546 ac_install_sh="$ac_aux_dir/install.sh -c"
800 break 1547 break
1548 elif test -f $ac_dir/shtool; then
1549 ac_aux_dir=$ac_dir
1550 ac_install_sh="$ac_aux_dir/shtool install -c"
1551 break
801 fi 1552 fi
802done 1553done
803if test -z "$ac_aux_dir"; then 1554if test -z "$ac_aux_dir"; then
1555 { { 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; } 1556echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1557 { (exit 1); exit 1; }; }
805fi 1558fi
806ac_config_guess=$ac_aux_dir/config.guess 1559ac_config_guess="$SHELL $ac_aux_dir/config.guess"
807ac_config_sub=$ac_aux_dir/config.sub 1560ac_config_sub="$SHELL $ac_aux_dir/config.sub"
808ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 1561ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
809 1562
1563 ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in"
810 1564
811 1565
812VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1566VERSION=`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` 1567DATE=`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` 1568LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
816echo "" 1570echo ""
817echo "configuring for rxvt $VERSION" 1571echo "configuring for rxvt $VERSION"
818echo "" 1572echo ""
819 1573
820 1574
1575ac_ext=c
1576ac_cpp='$CPP $CPPFLAGS'
1577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1579ac_compiler_gnu=$ac_cv_c_compiler_gnu
1580if test -n "$ac_tool_prefix"; then
821# Extract the first word of "gcc", so it can be a program name with args. 1581 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
822set dummy gcc; ac_word=$2 1582set dummy ${ac_tool_prefix}gcc; ac_word=$2
1583echo "$as_me:$LINENO: checking for $ac_word" >&5
823echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1584echo $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 1585if test "${ac_cv_prog_CC+set}" = set; then
826 echo $ac_n "(cached) $ac_c" 1>&6 1586 echo $ECHO_N "(cached) $ECHO_C" >&6
827else 1587else
828 if test -n "$CC"; then 1588 if test -n "$CC"; then
829 ac_cv_prog_CC="$CC" # Let the user override the test. 1589 ac_cv_prog_CC="$CC" # Let the user override the test.
830else 1590else
831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
832 ac_dummy="$PATH" 1592for as_dir in $PATH
833 for ac_dir in $ac_dummy; do 1593do
1594 IFS=$as_save_IFS
834 test -z "$ac_dir" && ac_dir=. 1595 test -z "$as_dir" && as_dir=.
835 if test -f $ac_dir/$ac_word; then 1596 for ac_exec_ext in '' $ac_executable_extensions; do
836 ac_cv_prog_CC="gcc" 1597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1598 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
837 break 1600 break 2
838 fi 1601 fi
839 done 1602done
840 IFS="$ac_save_ifs" 1603done
1604
841fi 1605fi
842fi 1606fi
843CC="$ac_cv_prog_CC" 1607CC=$ac_cv_prog_CC
844if test -n "$CC"; then 1608if test -n "$CC"; then
845 echo "$ac_t""$CC" 1>&6 1609 echo "$as_me:$LINENO: result: $CC" >&5
1610echo "${ECHO_T}$CC" >&6
846else 1611else
847 echo "$ac_t""no" 1>&6 1612 echo "$as_me:$LINENO: result: no" >&5
1613echo "${ECHO_T}no" >&6
848fi 1614fi
849 1615
1616fi
1617if test -z "$ac_cv_prog_CC"; then
1618 ac_ct_CC=$CC
1619 # Extract the first word of "gcc", so it can be a program name with args.
1620set dummy gcc; ac_word=$2
1621echo "$as_me:$LINENO: checking for $ac_word" >&5
1622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1623if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1624 echo $ECHO_N "(cached) $ECHO_C" >&6
1625else
1626 if test -n "$ac_ct_CC"; then
1627 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1628else
1629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1630for as_dir in $PATH
1631do
1632 IFS=$as_save_IFS
1633 test -z "$as_dir" && as_dir=.
1634 for ac_exec_ext in '' $ac_executable_extensions; do
1635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1636 ac_cv_prog_ac_ct_CC="gcc"
1637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1638 break 2
1639 fi
1640done
1641done
1642
1643fi
1644fi
1645ac_ct_CC=$ac_cv_prog_ac_ct_CC
1646if test -n "$ac_ct_CC"; then
1647 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1648echo "${ECHO_T}$ac_ct_CC" >&6
1649else
1650 echo "$as_me:$LINENO: result: no" >&5
1651echo "${ECHO_T}no" >&6
1652fi
1653
1654 CC=$ac_ct_CC
1655else
1656 CC="$ac_cv_prog_CC"
1657fi
1658
1659if test -z "$CC"; then
1660 if test -n "$ac_tool_prefix"; then
1661 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1662set dummy ${ac_tool_prefix}cc; ac_word=$2
1663echo "$as_me:$LINENO: checking for $ac_word" >&5
1664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1665if test "${ac_cv_prog_CC+set}" = set; then
1666 echo $ECHO_N "(cached) $ECHO_C" >&6
1667else
1668 if test -n "$CC"; then
1669 ac_cv_prog_CC="$CC" # Let the user override the test.
1670else
1671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1672for as_dir in $PATH
1673do
1674 IFS=$as_save_IFS
1675 test -z "$as_dir" && as_dir=.
1676 for ac_exec_ext in '' $ac_executable_extensions; do
1677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1678 ac_cv_prog_CC="${ac_tool_prefix}cc"
1679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1680 break 2
1681 fi
1682done
1683done
1684
1685fi
1686fi
1687CC=$ac_cv_prog_CC
1688if test -n "$CC"; then
1689 echo "$as_me:$LINENO: result: $CC" >&5
1690echo "${ECHO_T}$CC" >&6
1691else
1692 echo "$as_me:$LINENO: result: no" >&5
1693echo "${ECHO_T}no" >&6
1694fi
1695
1696fi
1697if test -z "$ac_cv_prog_CC"; then
1698 ac_ct_CC=$CC
1699 # Extract the first word of "cc", so it can be a program name with args.
1700set dummy cc; ac_word=$2
1701echo "$as_me:$LINENO: checking for $ac_word" >&5
1702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1703if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
1705else
1706 if test -n "$ac_ct_CC"; then
1707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1708else
1709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710for as_dir in $PATH
1711do
1712 IFS=$as_save_IFS
1713 test -z "$as_dir" && as_dir=.
1714 for ac_exec_ext in '' $ac_executable_extensions; do
1715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1716 ac_cv_prog_ac_ct_CC="cc"
1717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1718 break 2
1719 fi
1720done
1721done
1722
1723fi
1724fi
1725ac_ct_CC=$ac_cv_prog_ac_ct_CC
1726if test -n "$ac_ct_CC"; then
1727 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1728echo "${ECHO_T}$ac_ct_CC" >&6
1729else
1730 echo "$as_me:$LINENO: result: no" >&5
1731echo "${ECHO_T}no" >&6
1732fi
1733
1734 CC=$ac_ct_CC
1735else
1736 CC="$ac_cv_prog_CC"
1737fi
1738
1739fi
850if test -z "$CC"; then 1740if test -z "$CC"; then
851 # Extract the first word of "cc", so it can be a program name with args. 1741 # Extract the first word of "cc", so it can be a program name with args.
852set dummy cc; ac_word=$2 1742set dummy cc; ac_word=$2
1743echo "$as_me:$LINENO: checking for $ac_word" >&5
853echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1744echo $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 1745if test "${ac_cv_prog_CC+set}" = set; then
856 echo $ac_n "(cached) $ac_c" 1>&6 1746 echo $ECHO_N "(cached) $ECHO_C" >&6
857else 1747else
858 if test -n "$CC"; then 1748 if test -n "$CC"; then
859 ac_cv_prog_CC="$CC" # Let the user override the test. 1749 ac_cv_prog_CC="$CC" # Let the user override the test.
860else 1750else
861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
862 ac_prog_rejected=no 1751 ac_prog_rejected=no
863 ac_dummy="$PATH" 1752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
864 for ac_dir in $ac_dummy; do 1753for as_dir in $PATH
1754do
1755 IFS=$as_save_IFS
865 test -z "$ac_dir" && ac_dir=. 1756 test -z "$as_dir" && as_dir=.
866 if test -f $ac_dir/$ac_word; then 1757 for ac_exec_ext in '' $ac_executable_extensions; do
1758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
867 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1759 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
868 ac_prog_rejected=yes 1760 ac_prog_rejected=yes
869 continue 1761 continue
870 fi 1762 fi
871 ac_cv_prog_CC="cc" 1763 ac_cv_prog_CC="cc"
1764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
872 break 1765 break 2
873 fi 1766 fi
874 done 1767done
875 IFS="$ac_save_ifs" 1768done
1769
876if test $ac_prog_rejected = yes; then 1770if test $ac_prog_rejected = yes; then
877 # We found a bogon in the path, so make sure we never use it. 1771 # We found a bogon in the path, so make sure we never use it.
878 set dummy $ac_cv_prog_CC 1772 set dummy $ac_cv_prog_CC
879 shift 1773 shift
880 if test $# -gt 0; then 1774 if test $# != 0; then
881 # We chose a different compiler from the bogus one. 1775 # We chose a different compiler from the bogus one.
882 # However, it has the same basename, so the bogon will be chosen 1776 # 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. 1777 # first if we set CC to just the basename; use the full file name.
884 shift 1778 shift
885 set dummy "$ac_dir/$ac_word" "$@" 1779 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
886 shift
887 ac_cv_prog_CC="$@"
888 fi 1780 fi
889fi 1781fi
890fi 1782fi
891fi 1783fi
892CC="$ac_cv_prog_CC" 1784CC=$ac_cv_prog_CC
893if test -n "$CC"; then 1785if test -n "$CC"; then
894 echo "$ac_t""$CC" 1>&6 1786 echo "$as_me:$LINENO: result: $CC" >&5
1787echo "${ECHO_T}$CC" >&6
895else 1788else
896 echo "$ac_t""no" 1>&6 1789 echo "$as_me:$LINENO: result: no" >&5
1790echo "${ECHO_T}no" >&6
897fi 1791fi
898 1792
1793fi
899 if test -z "$CC"; then 1794if test -z "$CC"; then
900 case "`uname -s`" in 1795 if test -n "$ac_tool_prefix"; then
901 *win32* | *WIN32*) 1796 for ac_prog in cl
1797 do
902 # Extract the first word of "cl", so it can be a program name with args. 1798 # 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 1799set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1800echo "$as_me:$LINENO: checking for $ac_word" >&5
904echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1801echo $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 1802if test "${ac_cv_prog_CC+set}" = set; then
907 echo $ac_n "(cached) $ac_c" 1>&6 1803 echo $ECHO_N "(cached) $ECHO_C" >&6
908else 1804else
909 if test -n "$CC"; then 1805 if test -n "$CC"; then
910 ac_cv_prog_CC="$CC" # Let the user override the test. 1806 ac_cv_prog_CC="$CC" # Let the user override the test.
911else 1807else
912 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
913 ac_dummy="$PATH" 1809for as_dir in $PATH
914 for ac_dir in $ac_dummy; do 1810do
1811 IFS=$as_save_IFS
915 test -z "$ac_dir" && ac_dir=. 1812 test -z "$as_dir" && as_dir=.
916 if test -f $ac_dir/$ac_word; then 1813 for ac_exec_ext in '' $ac_executable_extensions; do
917 ac_cv_prog_CC="cl" 1814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1815 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
918 break 1817 break 2
1818 fi
1819done
1820done
1821
1822fi
1823fi
1824CC=$ac_cv_prog_CC
1825if test -n "$CC"; then
1826 echo "$as_me:$LINENO: result: $CC" >&5
1827echo "${ECHO_T}$CC" >&6
1828else
1829 echo "$as_me:$LINENO: result: no" >&5
1830echo "${ECHO_T}no" >&6
1831fi
1832
1833 test -n "$CC" && break
1834 done
1835fi
1836if test -z "$CC"; then
1837 ac_ct_CC=$CC
1838 for ac_prog in cl
1839do
1840 # Extract the first word of "$ac_prog", so it can be a program name with args.
1841set dummy $ac_prog; ac_word=$2
1842echo "$as_me:$LINENO: checking for $ac_word" >&5
1843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1844if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1845 echo $ECHO_N "(cached) $ECHO_C" >&6
1846else
1847 if test -n "$ac_ct_CC"; then
1848 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1849else
1850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1851for as_dir in $PATH
1852do
1853 IFS=$as_save_IFS
1854 test -z "$as_dir" && as_dir=.
1855 for ac_exec_ext in '' $ac_executable_extensions; do
1856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1857 ac_cv_prog_ac_ct_CC="$ac_prog"
1858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1859 break 2
1860 fi
1861done
1862done
1863
1864fi
1865fi
1866ac_ct_CC=$ac_cv_prog_ac_ct_CC
1867if test -n "$ac_ct_CC"; then
1868 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1869echo "${ECHO_T}$ac_ct_CC" >&6
1870else
1871 echo "$as_me:$LINENO: result: no" >&5
1872echo "${ECHO_T}no" >&6
1873fi
1874
1875 test -n "$ac_ct_CC" && break
1876done
1877
1878 CC=$ac_ct_CC
1879fi
1880
1881fi
1882
1883
1884test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1885See \`config.log' for more details." >&5
1886echo "$as_me: error: no acceptable C compiler found in \$PATH
1887See \`config.log' for more details." >&2;}
1888 { (exit 1); exit 1; }; }
1889
1890# Provide some information about the compiler.
1891echo "$as_me:$LINENO:" \
1892 "checking for C compiler version" >&5
1893ac_compiler=`set X $ac_compile; echo $2`
1894{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1895 (eval $ac_compiler --version </dev/null >&5) 2>&5
1896 ac_status=$?
1897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1898 (exit $ac_status); }
1899{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1900 (eval $ac_compiler -v </dev/null >&5) 2>&5
1901 ac_status=$?
1902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1903 (exit $ac_status); }
1904{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1905 (eval $ac_compiler -V </dev/null >&5) 2>&5
1906 ac_status=$?
1907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1908 (exit $ac_status); }
1909
1910cat >conftest.$ac_ext <<_ACEOF
1911/* confdefs.h. */
1912_ACEOF
1913cat confdefs.h >>conftest.$ac_ext
1914cat >>conftest.$ac_ext <<_ACEOF
1915/* end confdefs.h. */
1916
1917int
1918main ()
1919{
1920
1921 ;
1922 return 0;
1923}
1924_ACEOF
1925ac_clean_files_save=$ac_clean_files
1926ac_clean_files="$ac_clean_files a.out a.exe b.out"
1927# Try to create an executable without -o first, disregard a.out.
1928# It will help us diagnose broken compilers, and finding out an intuition
1929# of exeext.
1930echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1931echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1932ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1933if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1934 (eval $ac_link_default) 2>&5
1935 ac_status=$?
1936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937 (exit $ac_status); }; then
1938 # Find the output, starting from the most likely. This scheme is
1939# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1940# resort.
1941
1942# Be careful to initialize this variable, since it used to be cached.
1943# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1944ac_cv_exeext=
1945# b.out is created by i960 compilers.
1946for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1947do
1948 test -f "$ac_file" || continue
1949 case $ac_file in
1950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1951 ;;
1952 conftest.$ac_ext )
1953 # This is the source file.
1954 ;;
1955 [ab].out )
1956 # We found the default executable, but exeext='' is most
1957 # certainly right.
1958 break;;
1959 *.* )
1960 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1961 # FIXME: I believe we export ac_cv_exeext for Libtool,
1962 # but it would be cool to find out if it's true. Does anybody
1963 # maintain Libtool? --akim.
1964 export ac_cv_exeext
1965 break;;
1966 * )
1967 break;;
1968 esac
1969done
1970else
1971 echo "$as_me: failed program was:" >&5
1972sed 's/^/| /' conftest.$ac_ext >&5
1973
1974{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1975See \`config.log' for more details." >&5
1976echo "$as_me: error: C compiler cannot create executables
1977See \`config.log' for more details." >&2;}
1978 { (exit 77); exit 77; }; }
1979fi
1980
1981ac_exeext=$ac_cv_exeext
1982echo "$as_me:$LINENO: result: $ac_file" >&5
1983echo "${ECHO_T}$ac_file" >&6
1984
1985# Check the compiler produces executables we can run. If not, either
1986# the compiler is broken, or we cross compile.
1987echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1988echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1989# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1990# If not cross compiling, check that we can run a simple program.
1991if test "$cross_compiling" != yes; then
1992 if { ac_try='./$ac_file'
1993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1994 (eval $ac_try) 2>&5
1995 ac_status=$?
1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997 (exit $ac_status); }; }; then
1998 cross_compiling=no
1999 else
2000 if test "$cross_compiling" = maybe; then
2001 cross_compiling=yes
2002 else
2003 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2004If you meant to cross compile, use \`--host'.
2005See \`config.log' for more details." >&5
2006echo "$as_me: error: cannot run C compiled programs.
2007If you meant to cross compile, use \`--host'.
2008See \`config.log' for more details." >&2;}
2009 { (exit 1); exit 1; }; }
919 fi 2010 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 2011 fi
933 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
934fi 2012fi
2013echo "$as_me:$LINENO: result: yes" >&5
2014echo "${ECHO_T}yes" >&6
935 2015
936echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 2016rm -f a.out a.exe conftest$ac_cv_exeext b.out
937echo "configure:938: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 2017ac_clean_files=$ac_clean_files_save
2018# Check the compiler produces executables we can run. If not, either
2019# the compiler is broken, or we cross compile.
2020echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2021echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2022echo "$as_me:$LINENO: result: $cross_compiling" >&5
2023echo "${ECHO_T}$cross_compiling" >&6
938 2024
939ac_ext=c 2025echo "$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. 2026echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
941ac_cpp='$CPP $CPPFLAGS' 2027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
942ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2028 (eval $ac_link) 2>&5
943ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2029 ac_status=$?
944cross_compiling=$ac_cv_prog_cc_cross 2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031 (exit $ac_status); }; then
2032 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2033# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2034# work properly (i.e., refer to `conftest.exe'), while it won't with
2035# `rm'.
2036for ac_file in conftest.exe conftest conftest.*; do
2037 test -f "$ac_file" || continue
2038 case $ac_file in
2039 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2040 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2041 export ac_cv_exeext
2042 break;;
2043 * ) break;;
2044 esac
2045done
2046else
2047 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2048See \`config.log' for more details." >&5
2049echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2050See \`config.log' for more details." >&2;}
2051 { (exit 1); exit 1; }; }
2052fi
945 2053
2054rm -f conftest$ac_cv_exeext
2055echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2056echo "${ECHO_T}$ac_cv_exeext" >&6
2057
2058rm -f conftest.$ac_ext
2059EXEEXT=$ac_cv_exeext
2060ac_exeext=$EXEEXT
2061echo "$as_me:$LINENO: checking for suffix of object files" >&5
2062echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2063if test "${ac_cv_objext+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2065else
2066 cat >conftest.$ac_ext <<_ACEOF
2067/* confdefs.h. */
2068_ACEOF
2069cat confdefs.h >>conftest.$ac_ext
946cat > conftest.$ac_ext << EOF 2070cat >>conftest.$ac_ext <<_ACEOF
2071/* end confdefs.h. */
947 2072
948#line 949 "configure" 2073int
949#include "confdefs.h" 2074main ()
2075{
950 2076
951main(){return(0);} 2077 ;
952EOF 2078 return 0;
953if { (eval echo configure:954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2079}
954 ac_cv_prog_cc_works=yes 2080_ACEOF
955 # If we can't run a trivial program, we are probably using a cross compiler. 2081rm -f conftest.o conftest.obj
956 if (./conftest; exit) 2>/dev/null; then 2082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
957 ac_cv_prog_cc_cross=no 2083 (eval $ac_compile) 2>&5
2084 ac_status=$?
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); }; then
2087 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2088 case $ac_file in
2089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2090 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2091 break;;
2092 esac
2093done
958 else 2094else
959 ac_cv_prog_cc_cross=yes
960 fi
961else
962 echo "configure: failed program was:" >&5 2095 echo "$as_me: failed program was:" >&5
963 cat conftest.$ac_ext >&5 2096sed '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 2097
974echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 2098{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
975if test $ac_cv_prog_cc_works = no; then 2099See \`config.log' for more details." >&5
976 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 2100echo "$as_me: error: cannot compute suffix of object files: cannot compile
2101See \`config.log' for more details." >&2;}
2102 { (exit 1); exit 1; }; }
977fi 2103fi
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 2104
2105rm -f conftest.$ac_cv_objext conftest.$ac_ext
2106fi
2107echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2108echo "${ECHO_T}$ac_cv_objext" >&6
2109OBJEXT=$ac_cv_objext
2110ac_objext=$OBJEXT
2111echo "$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 2112echo $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 2113if 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 2114 echo $ECHO_N "(cached) $ECHO_C" >&6
987else 2115else
988 cat > conftest.c <<EOF 2116 cat >conftest.$ac_ext <<_ACEOF
2117/* confdefs.h. */
2118_ACEOF
2119cat confdefs.h >>conftest.$ac_ext
2120cat >>conftest.$ac_ext <<_ACEOF
2121/* end confdefs.h. */
2122
2123int
2124main ()
2125{
989#ifdef __GNUC__ 2126#ifndef __GNUC__
990 yes; 2127 choke me
991#endif 2128#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 2129
1000echo "$ac_t""$ac_cv_prog_gcc" 1>&6 2130 ;
1001 2131 return 0;
1002if test $ac_cv_prog_gcc = yes; then 2132}
1003 GCC=yes 2133_ACEOF
2134rm -f conftest.$ac_objext
2135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2136 (eval $ac_compile) 2>conftest.er1
2137 ac_status=$?
2138 grep -v '^ *+' conftest.er1 >conftest.err
2139 rm -f conftest.er1
2140 cat conftest.err >&5
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); } &&
2143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2145 (eval $ac_try) 2>&5
2146 ac_status=$?
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }; } &&
2149 { ac_try='test -s conftest.$ac_objext'
2150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151 (eval $ac_try) 2>&5
2152 ac_status=$?
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; }; then
2155 ac_compiler_gnu=yes
1004else 2156else
1005 GCC= 2157 echo "$as_me: failed program was:" >&5
1006fi 2158sed 's/^/| /' conftest.$ac_ext >&5
1007 2159
2160ac_compiler_gnu=no
2161fi
2162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2163ac_cv_c_compiler_gnu=$ac_compiler_gnu
2164
2165fi
2166echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2167echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2168GCC=`test $ac_compiler_gnu = yes && echo yes`
1008ac_test_CFLAGS="${CFLAGS+set}" 2169ac_test_CFLAGS=${CFLAGS+set}
1009ac_save_CFLAGS="$CFLAGS" 2170ac_save_CFLAGS=$CFLAGS
1010CFLAGS= 2171CFLAGS="-g"
2172echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1011echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 2173echo $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 2174if test "${ac_cv_prog_cc_g+set}" = set; then
1014 echo $ac_n "(cached) $ac_c" 1>&6 2175 echo $ECHO_N "(cached) $ECHO_C" >&6
1015else 2176else
1016 echo 'void f(){}' > conftest.c 2177 cat >conftest.$ac_ext <<_ACEOF
1017if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 2178/* confdefs.h. */
2179_ACEOF
2180cat confdefs.h >>conftest.$ac_ext
2181cat >>conftest.$ac_ext <<_ACEOF
2182/* end confdefs.h. */
2183
2184int
2185main ()
2186{
2187
2188 ;
2189 return 0;
2190}
2191_ACEOF
2192rm -f conftest.$ac_objext
2193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2194 (eval $ac_compile) 2>conftest.er1
2195 ac_status=$?
2196 grep -v '^ *+' conftest.er1 >conftest.err
2197 rm -f conftest.er1
2198 cat conftest.err >&5
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); } &&
2201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2203 (eval $ac_try) 2>&5
2204 ac_status=$?
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); }; } &&
2207 { ac_try='test -s conftest.$ac_objext'
2208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2209 (eval $ac_try) 2>&5
2210 ac_status=$?
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); }; }; then
1018 ac_cv_prog_cc_g=yes 2213 ac_cv_prog_cc_g=yes
1019else 2214else
2215 echo "$as_me: failed program was:" >&5
2216sed 's/^/| /' conftest.$ac_ext >&5
2217
1020 ac_cv_prog_cc_g=no 2218ac_cv_prog_cc_g=no
1021fi 2219fi
1022rm -f conftest* 2220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1023
1024fi 2221fi
1025 2222echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1026echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 2223echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1027if test "$ac_test_CFLAGS" = set; then 2224if test "$ac_test_CFLAGS" = set; then
1028 CFLAGS="$ac_save_CFLAGS" 2225 CFLAGS=$ac_save_CFLAGS
1029elif test $ac_cv_prog_cc_g = yes; then 2226elif test $ac_cv_prog_cc_g = yes; then
1030 if test "$GCC" = yes; then 2227 if test "$GCC" = yes; then
1031 CFLAGS="-g -O2" 2228 CFLAGS="-g -O2"
1032 else 2229 else
1033 CFLAGS="-g" 2230 CFLAGS="-g"
1037 CFLAGS="-O2" 2234 CFLAGS="-O2"
1038 else 2235 else
1039 CFLAGS= 2236 CFLAGS=
1040 fi 2237 fi
1041fi 2238fi
2239echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2240echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2241if test "${ac_cv_prog_cc_stdc+set}" = set; then
2242 echo $ECHO_N "(cached) $ECHO_C" >&6
2243else
2244 ac_cv_prog_cc_stdc=no
2245ac_save_CC=$CC
2246cat >conftest.$ac_ext <<_ACEOF
2247/* confdefs.h. */
2248_ACEOF
2249cat confdefs.h >>conftest.$ac_ext
2250cat >>conftest.$ac_ext <<_ACEOF
2251/* end confdefs.h. */
2252#include <stdarg.h>
2253#include <stdio.h>
2254#include <sys/types.h>
2255#include <sys/stat.h>
2256/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2257struct buf { int x; };
2258FILE * (*rcsopen) (struct buf *, struct stat *, int);
2259static char *e (p, i)
2260 char **p;
2261 int i;
2262{
2263 return p[i];
2264}
2265static char *f (char * (*g) (char **, int), char **p, ...)
2266{
2267 char *s;
2268 va_list v;
2269 va_start (v,p);
2270 s = g (p, va_arg (v,int));
2271 va_end (v);
2272 return s;
2273}
1042 2274
1043for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 2275/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2276 function prototypes and stuff, but not '\xHH' hex character constants.
2277 These don't provoke an error unfortunately, instead are silently treated
2278 as 'x'. The following induces an error, until -std1 is added to get
2279 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2280 array size at least. It's necessary to write '\x00'==0 to get something
2281 that's true only with -std1. */
2282int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2283
2284int test (int i, double x);
2285struct s1 {int (*f) (int a);};
2286struct s2 {int (*f) (double a);};
2287int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2288int argc;
2289char **argv;
2290int
2291main ()
2292{
2293return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2294 ;
2295 return 0;
2296}
2297_ACEOF
2298# Don't try gcc -ansi; that turns off useful extensions and
2299# breaks some systems' header files.
2300# AIX -qlanglvl=ansi
2301# Ultrix and OSF/1 -std1
2302# HP-UX 10.20 and later -Ae
2303# HP-UX older versions -Aa -D_HPUX_SOURCE
2304# SVR4 -Xc -D__EXTENSIONS__
2305for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1044do 2306do
2307 CC="$ac_save_CC $ac_arg"
2308 rm -f conftest.$ac_objext
2309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2310 (eval $ac_compile) 2>conftest.er1
2311 ac_status=$?
2312 grep -v '^ *+' conftest.er1 >conftest.err
2313 rm -f conftest.er1
2314 cat conftest.err >&5
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); } &&
2317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319 (eval $ac_try) 2>&5
2320 ac_status=$?
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; } &&
2323 { ac_try='test -s conftest.$ac_objext'
2324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325 (eval $ac_try) 2>&5
2326 ac_status=$?
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }; }; then
2329 ac_cv_prog_cc_stdc=$ac_arg
2330break
2331else
2332 echo "$as_me: failed program was:" >&5
2333sed 's/^/| /' conftest.$ac_ext >&5
2334
2335fi
2336rm -f conftest.err conftest.$ac_objext
2337done
2338rm -f conftest.$ac_ext conftest.$ac_objext
2339CC=$ac_save_CC
2340
2341fi
2342
2343case "x$ac_cv_prog_cc_stdc" in
2344 x|xno)
2345 echo "$as_me:$LINENO: result: none needed" >&5
2346echo "${ECHO_T}none needed" >&6 ;;
2347 *)
2348 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2349echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2350 CC="$CC $ac_cv_prog_cc_stdc" ;;
2351esac
2352
2353# Some people use a C++ compiler to compile C. Since we use `exit',
2354# in C++ we need to declare it. In case someone uses the same compiler
2355# for both compiling C and C++ we need to have the C++ compiler decide
2356# the declaration of exit, since it's the most demanding environment.
2357cat >conftest.$ac_ext <<_ACEOF
2358#ifndef __cplusplus
2359 choke me
2360#endif
2361_ACEOF
2362rm -f conftest.$ac_objext
2363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2364 (eval $ac_compile) 2>conftest.er1
2365 ac_status=$?
2366 grep -v '^ *+' conftest.er1 >conftest.err
2367 rm -f conftest.er1
2368 cat conftest.err >&5
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); } &&
2371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373 (eval $ac_try) 2>&5
2374 ac_status=$?
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }; } &&
2377 { ac_try='test -s conftest.$ac_objext'
2378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379 (eval $ac_try) 2>&5
2380 ac_status=$?
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); }; }; then
2383 for ac_declaration in \
2384 '' \
2385 'extern "C" void std::exit (int) throw (); using std::exit;' \
2386 'extern "C" void std::exit (int); using std::exit;' \
2387 'extern "C" void exit (int) throw ();' \
2388 'extern "C" void exit (int);' \
2389 'void exit (int);'
2390do
2391 cat >conftest.$ac_ext <<_ACEOF
2392/* confdefs.h. */
2393_ACEOF
2394cat confdefs.h >>conftest.$ac_ext
2395cat >>conftest.$ac_ext <<_ACEOF
2396/* end confdefs.h. */
2397$ac_declaration
2398#include <stdlib.h>
2399int
2400main ()
2401{
2402exit (42);
2403 ;
2404 return 0;
2405}
2406_ACEOF
2407rm -f conftest.$ac_objext
2408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2409 (eval $ac_compile) 2>conftest.er1
2410 ac_status=$?
2411 grep -v '^ *+' conftest.er1 >conftest.err
2412 rm -f conftest.er1
2413 cat conftest.err >&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); } &&
2416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2418 (eval $ac_try) 2>&5
2419 ac_status=$?
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }; } &&
2422 { ac_try='test -s conftest.$ac_objext'
2423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2424 (eval $ac_try) 2>&5
2425 ac_status=$?
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); }; }; then
2428 :
2429else
2430 echo "$as_me: failed program was:" >&5
2431sed 's/^/| /' conftest.$ac_ext >&5
2432
2433continue
2434fi
2435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2436 cat >conftest.$ac_ext <<_ACEOF
2437/* confdefs.h. */
2438_ACEOF
2439cat confdefs.h >>conftest.$ac_ext
2440cat >>conftest.$ac_ext <<_ACEOF
2441/* end confdefs.h. */
2442$ac_declaration
2443int
2444main ()
2445{
2446exit (42);
2447 ;
2448 return 0;
2449}
2450_ACEOF
2451rm -f conftest.$ac_objext
2452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2453 (eval $ac_compile) 2>conftest.er1
2454 ac_status=$?
2455 grep -v '^ *+' conftest.er1 >conftest.err
2456 rm -f conftest.er1
2457 cat conftest.err >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); } &&
2460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462 (eval $ac_try) 2>&5
2463 ac_status=$?
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }; } &&
2466 { ac_try='test -s conftest.$ac_objext'
2467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2468 (eval $ac_try) 2>&5
2469 ac_status=$?
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; }; then
2472 break
2473else
2474 echo "$as_me: failed program was:" >&5
2475sed 's/^/| /' conftest.$ac_ext >&5
2476
2477fi
2478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2479done
2480rm -f conftest*
2481if test -n "$ac_declaration"; then
2482 echo '#ifdef __cplusplus' >>confdefs.h
2483 echo $ac_declaration >>confdefs.h
2484 echo '#endif' >>confdefs.h
2485fi
2486
2487else
2488 echo "$as_me: failed program was:" >&5
2489sed 's/^/| /' conftest.$ac_ext >&5
2490
2491fi
2492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2493ac_ext=c
2494ac_cpp='$CPP $CPPFLAGS'
2495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2497ac_compiler_gnu=$ac_cv_c_compiler_gnu
2498
2499ac_ext=cc
2500ac_cpp='$CXXCPP $CPPFLAGS'
2501ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2502ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2503ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2504if test -n "$ac_tool_prefix"; then
2505 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2506 do
1045# Extract the first word of "$ac_prog", so it can be a program name with args. 2507 # 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 2508set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2509echo "$as_me:$LINENO: checking for $ac_word" >&5
1047echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2510echo $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 2511if test "${ac_cv_prog_CXX+set}" = set; then
1050 echo $ac_n "(cached) $ac_c" 1>&6 2512 echo $ECHO_N "(cached) $ECHO_C" >&6
1051else 2513else
1052 if test -n "$CXX"; then 2514 if test -n "$CXX"; then
1053 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2515 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1054else 2516else
1055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1056 ac_dummy="$PATH" 2518for as_dir in $PATH
1057 for ac_dir in $ac_dummy; do 2519do
2520 IFS=$as_save_IFS
1058 test -z "$ac_dir" && ac_dir=. 2521 test -z "$as_dir" && as_dir=.
1059 if test -f $ac_dir/$ac_word; then 2522 for ac_exec_ext in '' $ac_executable_extensions; do
2523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1060 ac_cv_prog_CXX="$ac_prog" 2524 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1061 break 2526 break 2
1062 fi 2527 fi
2528done
2529done
2530
2531fi
2532fi
2533CXX=$ac_cv_prog_CXX
2534if test -n "$CXX"; then
2535 echo "$as_me:$LINENO: result: $CXX" >&5
2536echo "${ECHO_T}$CXX" >&6
2537else
2538 echo "$as_me:$LINENO: result: no" >&5
2539echo "${ECHO_T}no" >&6
2540fi
2541
2542 test -n "$CXX" && break
1063 done 2543 done
1064 IFS="$ac_save_ifs"
1065fi 2544fi
1066fi
1067CXX="$ac_cv_prog_CXX"
1068if test -n "$CXX"; then 2545if test -z "$CXX"; then
1069 echo "$ac_t""$CXX" 1>&6 2546 ac_ct_CXX=$CXX
2547 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2548do
2549 # Extract the first word of "$ac_prog", so it can be a program name with args.
2550set dummy $ac_prog; ac_word=$2
2551echo "$as_me:$LINENO: checking for $ac_word" >&5
2552echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2553if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2554 echo $ECHO_N "(cached) $ECHO_C" >&6
1070else 2555else
1071 echo "$ac_t""no" 1>&6 2556 if test -n "$ac_ct_CXX"; then
1072fi 2557 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1073 2558else
1074test -n "$CXX" && break 2559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560for as_dir in $PATH
2561do
2562 IFS=$as_save_IFS
2563 test -z "$as_dir" && as_dir=.
2564 for ac_exec_ext in '' $ac_executable_extensions; do
2565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2566 ac_cv_prog_ac_ct_CXX="$ac_prog"
2567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2568 break 2
2569 fi
1075done 2570done
2571done
2572
2573fi
2574fi
2575ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2576if test -n "$ac_ct_CXX"; then
2577 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2578echo "${ECHO_T}$ac_ct_CXX" >&6
2579else
2580 echo "$as_me:$LINENO: result: no" >&5
2581echo "${ECHO_T}no" >&6
2582fi
2583
2584 test -n "$ac_ct_CXX" && break
2585done
1076test -n "$CXX" || CXX="gcc" 2586test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1077 2587
2588 CXX=$ac_ct_CXX
2589fi
1078 2590
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 2591
1082ac_ext=C 2592# Provide some information about the compiler.
1083# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 2593echo "$as_me:$LINENO:" \
1084ac_cpp='$CXXCPP $CPPFLAGS' 2594 "checking for C++ compiler version" >&5
1085ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2595ac_compiler=`set X $ac_compile; echo $2`
1086ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2596{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1087cross_compiling=$ac_cv_prog_cxx_cross 2597 (eval $ac_compiler --version </dev/null >&5) 2>&5
2598 ac_status=$?
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }
2601{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2602 (eval $ac_compiler -v </dev/null >&5) 2>&5
2603 ac_status=$?
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }
2606{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2607 (eval $ac_compiler -V </dev/null >&5) 2>&5
2608 ac_status=$?
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }
1088 2611
2612echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2613echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2614if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
2616else
2617 cat >conftest.$ac_ext <<_ACEOF
2618/* confdefs.h. */
2619_ACEOF
2620cat confdefs.h >>conftest.$ac_ext
1089cat > conftest.$ac_ext << EOF 2621cat >>conftest.$ac_ext <<_ACEOF
2622/* end confdefs.h. */
1090 2623
1091#line 1092 "configure" 2624int
1092#include "confdefs.h" 2625main ()
1093 2626{
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__ 2627#ifndef __GNUC__
1133 yes; 2628 choke me
1134#endif 2629#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 2630
1143echo "$ac_t""$ac_cv_prog_gxx" 1>&6 2631 ;
1144 2632 return 0;
1145if test $ac_cv_prog_gxx = yes; then 2633}
1146 GXX=yes 2634_ACEOF
2635rm -f conftest.$ac_objext
2636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2637 (eval $ac_compile) 2>conftest.er1
2638 ac_status=$?
2639 grep -v '^ *+' conftest.er1 >conftest.err
2640 rm -f conftest.er1
2641 cat conftest.err >&5
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); } &&
2644 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646 (eval $ac_try) 2>&5
2647 ac_status=$?
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }; } &&
2650 { ac_try='test -s conftest.$ac_objext'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652 (eval $ac_try) 2>&5
2653 ac_status=$?
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; }; then
2656 ac_compiler_gnu=yes
1147else 2657else
1148 GXX= 2658 echo "$as_me: failed program was:" >&5
1149fi 2659sed 's/^/| /' conftest.$ac_ext >&5
1150 2660
2661ac_compiler_gnu=no
2662fi
2663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2664ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2665
2666fi
2667echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2668echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2669GXX=`test $ac_compiler_gnu = yes && echo yes`
1151ac_test_CXXFLAGS="${CXXFLAGS+set}" 2670ac_test_CXXFLAGS=${CXXFLAGS+set}
1152ac_save_CXXFLAGS="$CXXFLAGS" 2671ac_save_CXXFLAGS=$CXXFLAGS
1153CXXFLAGS= 2672CXXFLAGS="-g"
2673echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1154echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 2674echo $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 2675if test "${ac_cv_prog_cxx_g+set}" = set; then
1157 echo $ac_n "(cached) $ac_c" 1>&6 2676 echo $ECHO_N "(cached) $ECHO_C" >&6
1158else 2677else
1159 echo 'void f(){}' > conftest.cc 2678 cat >conftest.$ac_ext <<_ACEOF
1160if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then 2679/* confdefs.h. */
2680_ACEOF
2681cat confdefs.h >>conftest.$ac_ext
2682cat >>conftest.$ac_ext <<_ACEOF
2683/* end confdefs.h. */
2684
2685int
2686main ()
2687{
2688
2689 ;
2690 return 0;
2691}
2692_ACEOF
2693rm -f conftest.$ac_objext
2694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2695 (eval $ac_compile) 2>conftest.er1
2696 ac_status=$?
2697 grep -v '^ *+' conftest.er1 >conftest.err
2698 rm -f conftest.er1
2699 cat conftest.err >&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); } &&
2702 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704 (eval $ac_try) 2>&5
2705 ac_status=$?
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; } &&
2708 { ac_try='test -s conftest.$ac_objext'
2709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710 (eval $ac_try) 2>&5
2711 ac_status=$?
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; }; then
1161 ac_cv_prog_cxx_g=yes 2714 ac_cv_prog_cxx_g=yes
1162else 2715else
2716 echo "$as_me: failed program was:" >&5
2717sed 's/^/| /' conftest.$ac_ext >&5
2718
1163 ac_cv_prog_cxx_g=no 2719ac_cv_prog_cxx_g=no
1164fi 2720fi
1165rm -f conftest* 2721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1166
1167fi 2722fi
1168 2723echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
1169echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 2724echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1170if test "$ac_test_CXXFLAGS" = set; then 2725if test "$ac_test_CXXFLAGS" = set; then
1171 CXXFLAGS="$ac_save_CXXFLAGS" 2726 CXXFLAGS=$ac_save_CXXFLAGS
1172elif test $ac_cv_prog_cxx_g = yes; then 2727elif test $ac_cv_prog_cxx_g = yes; then
1173 if test "$GXX" = yes; then 2728 if test "$GXX" = yes; then
1174 CXXFLAGS="-g -O2" 2729 CXXFLAGS="-g -O2"
1175 else 2730 else
1176 CXXFLAGS="-g" 2731 CXXFLAGS="-g"
1180 CXXFLAGS="-O2" 2735 CXXFLAGS="-O2"
1181 else 2736 else
1182 CXXFLAGS= 2737 CXXFLAGS=
1183 fi 2738 fi
1184fi 2739fi
2740for ac_declaration in \
2741 '' \
2742 'extern "C" void std::exit (int) throw (); using std::exit;' \
2743 'extern "C" void std::exit (int); using std::exit;' \
2744 'extern "C" void exit (int) throw ();' \
2745 'extern "C" void exit (int);' \
2746 'void exit (int);'
2747do
2748 cat >conftest.$ac_ext <<_ACEOF
2749/* confdefs.h. */
2750_ACEOF
2751cat confdefs.h >>conftest.$ac_ext
2752cat >>conftest.$ac_ext <<_ACEOF
2753/* end confdefs.h. */
2754$ac_declaration
2755#include <stdlib.h>
2756int
2757main ()
2758{
2759exit (42);
2760 ;
2761 return 0;
2762}
2763_ACEOF
2764rm -f conftest.$ac_objext
2765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2766 (eval $ac_compile) 2>conftest.er1
2767 ac_status=$?
2768 grep -v '^ *+' conftest.er1 >conftest.err
2769 rm -f conftest.er1
2770 cat conftest.err >&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); } &&
2773 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775 (eval $ac_try) 2>&5
2776 ac_status=$?
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }; } &&
2779 { ac_try='test -s conftest.$ac_objext'
2780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781 (eval $ac_try) 2>&5
2782 ac_status=$?
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; }; then
2785 :
2786else
2787 echo "$as_me: failed program was:" >&5
2788sed 's/^/| /' conftest.$ac_ext >&5
1185 2789
2790continue
2791fi
2792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2793 cat >conftest.$ac_ext <<_ACEOF
2794/* confdefs.h. */
2795_ACEOF
2796cat confdefs.h >>conftest.$ac_ext
2797cat >>conftest.$ac_ext <<_ACEOF
2798/* end confdefs.h. */
2799$ac_declaration
2800int
2801main ()
2802{
2803exit (42);
2804 ;
2805 return 0;
2806}
2807_ACEOF
2808rm -f conftest.$ac_objext
2809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2810 (eval $ac_compile) 2>conftest.er1
2811 ac_status=$?
2812 grep -v '^ *+' conftest.er1 >conftest.err
2813 rm -f conftest.er1
2814 cat conftest.err >&5
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); } &&
2817 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2819 (eval $ac_try) 2>&5
2820 ac_status=$?
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); }; } &&
2823 { ac_try='test -s conftest.$ac_objext'
2824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2825 (eval $ac_try) 2>&5
2826 ac_status=$?
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); }; }; then
2829 break
2830else
2831 echo "$as_me: failed program was:" >&5
2832sed 's/^/| /' conftest.$ac_ext >&5
2833
2834fi
2835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2836done
2837rm -f conftest*
2838if test -n "$ac_declaration"; then
2839 echo '#ifdef __cplusplus' >>confdefs.h
2840 echo $ac_declaration >>confdefs.h
2841 echo '#endif' >>confdefs.h
2842fi
2843
2844ac_ext=c
2845ac_cpp='$CPP $CPPFLAGS'
2846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2848ac_compiler_gnu=$ac_cv_c_compiler_gnu
2849
2850ac_ext=c
2851ac_cpp='$CPP $CPPFLAGS'
2852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2854ac_compiler_gnu=$ac_cv_c_compiler_gnu
2855echo "$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 2856echo $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. 2857# On Suns, sometimes $CPP names a directory.
1189if test -n "$CPP" && test -d "$CPP"; then 2858if test -n "$CPP" && test -d "$CPP"; then
1190 CPP= 2859 CPP=
1191fi 2860fi
1192if test -z "$CPP"; then 2861if test -z "$CPP"; then
1193if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 2862 if test "${ac_cv_prog_CPP+set}" = set; then
1194 echo $ac_n "(cached) $ac_c" 1>&6 2863 echo $ECHO_N "(cached) $ECHO_C" >&6
1195else 2864else
1196 # This must be in double quotes, not single quotes, because CPP may get 2865 # Double quotes because CPP needs to be expanded
1197 # substituted into the Makefile and "${CC-cc}" will confuse make. 2866 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1198 CPP="${CC-cc} -E" 2867 do
2868 ac_preproc_ok=false
2869for ac_c_preproc_warn_flag in '' yes
2870do
2871 # Use a header file that comes with gcc, so configuring glibc
2872 # with a fresh cross-compiler works.
2873 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2874 # <limits.h> exists even on freestanding compilers.
1199 # On the NeXT, cc -E runs the code through the compiler's parser, 2875 # On the NeXT, cc -E runs the code through the compiler's parser,
1200 # not just through cpp. 2876 # not just through cpp. "Syntax error" is here to catch this case.
1201 cat > conftest.$ac_ext <<EOF 2877 cat >conftest.$ac_ext <<_ACEOF
1202#line 1203 "configure" 2878/* confdefs.h. */
1203#include "confdefs.h" 2879_ACEOF
2880cat confdefs.h >>conftest.$ac_ext
2881cat >>conftest.$ac_ext <<_ACEOF
2882/* end confdefs.h. */
2883#ifdef __STDC__
2884# include <limits.h>
2885#else
1204#include <assert.h> 2886# include <assert.h>
1205Syntax Error 2887#endif
1206EOF 2888 Syntax error
1207ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2889_ACEOF
1208{ (eval echo configure:1209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2890if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1209ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2891 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2892 ac_status=$?
2893 grep -v '^ *+' conftest.er1 >conftest.err
2894 rm -f conftest.er1
2895 cat conftest.err >&5
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); } >/dev/null; then
2898 if test -s conftest.err; then
2899 ac_cpp_err=$ac_c_preproc_warn_flag
2900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2901 else
2902 ac_cpp_err=
2903 fi
2904else
2905 ac_cpp_err=yes
2906fi
1210if test -z "$ac_err"; then 2907if test -z "$ac_cpp_err"; then
1211 : 2908 :
1212else 2909else
1213 echo "$ac_err" >&5
1214 echo "configure: failed program was:" >&5 2910 echo "$as_me: failed program was:" >&5
1215 cat conftest.$ac_ext >&5 2911sed 's/^/| /' conftest.$ac_ext >&5
1216 rm -rf conftest* 2912
1217 CPP="${CC-cc} -E -traditional-cpp" 2913 # Broken: fails on valid input.
2914continue
2915fi
2916rm -f conftest.err conftest.$ac_ext
2917
2918 # OK, works on sane cases. Now check whether non-existent headers
2919 # can be detected and how.
1218 cat > conftest.$ac_ext <<EOF 2920 cat >conftest.$ac_ext <<_ACEOF
1219#line 1220 "configure" 2921/* confdefs.h. */
1220#include "confdefs.h" 2922_ACEOF
2923cat confdefs.h >>conftest.$ac_ext
2924cat >>conftest.$ac_ext <<_ACEOF
2925/* end confdefs.h. */
2926#include <ac_nonexistent.h>
2927_ACEOF
2928if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2930 ac_status=$?
2931 grep -v '^ *+' conftest.er1 >conftest.err
2932 rm -f conftest.er1
2933 cat conftest.err >&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); } >/dev/null; then
2936 if test -s conftest.err; then
2937 ac_cpp_err=$ac_c_preproc_warn_flag
2938 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2939 else
2940 ac_cpp_err=
2941 fi
2942else
2943 ac_cpp_err=yes
2944fi
2945if test -z "$ac_cpp_err"; then
2946 # Broken: success on invalid input.
2947continue
2948else
2949 echo "$as_me: failed program was:" >&5
2950sed 's/^/| /' conftest.$ac_ext >&5
2951
2952 # Passes both tests.
2953ac_preproc_ok=:
2954break
2955fi
2956rm -f conftest.err conftest.$ac_ext
2957
2958done
2959# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2960rm -f conftest.err conftest.$ac_ext
2961if $ac_preproc_ok; then
2962 break
2963fi
2964
2965 done
2966 ac_cv_prog_CPP=$CPP
2967
2968fi
2969 CPP=$ac_cv_prog_CPP
2970else
2971 ac_cv_prog_CPP=$CPP
2972fi
2973echo "$as_me:$LINENO: result: $CPP" >&5
2974echo "${ECHO_T}$CPP" >&6
2975ac_preproc_ok=false
2976for ac_c_preproc_warn_flag in '' yes
2977do
2978 # Use a header file that comes with gcc, so configuring glibc
2979 # with a fresh cross-compiler works.
2980 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2981 # <limits.h> exists even on freestanding compilers.
2982 # On the NeXT, cc -E runs the code through the compiler's parser,
2983 # not just through cpp. "Syntax error" is here to catch this case.
2984 cat >conftest.$ac_ext <<_ACEOF
2985/* confdefs.h. */
2986_ACEOF
2987cat confdefs.h >>conftest.$ac_ext
2988cat >>conftest.$ac_ext <<_ACEOF
2989/* end confdefs.h. */
2990#ifdef __STDC__
2991# include <limits.h>
2992#else
1221#include <assert.h> 2993# include <assert.h>
1222Syntax Error 2994#endif
1223EOF 2995 Syntax error
1224ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2996_ACEOF
1225{ (eval echo configure:1226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2997if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1226ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2999 ac_status=$?
3000 grep -v '^ *+' conftest.er1 >conftest.err
3001 rm -f conftest.er1
3002 cat conftest.err >&5
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); } >/dev/null; then
3005 if test -s conftest.err; then
3006 ac_cpp_err=$ac_c_preproc_warn_flag
3007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3008 else
3009 ac_cpp_err=
3010 fi
3011else
3012 ac_cpp_err=yes
3013fi
1227if test -z "$ac_err"; then 3014if test -z "$ac_cpp_err"; then
1228 : 3015 :
1229else 3016else
1230 echo "$ac_err" >&5
1231 echo "configure: failed program was:" >&5 3017 echo "$as_me: failed program was:" >&5
1232 cat conftest.$ac_ext >&5 3018sed 's/^/| /' conftest.$ac_ext >&5
1233 rm -rf conftest* 3019
1234 CPP="${CC-cc} -nologo -E" 3020 # Broken: fails on valid input.
3021continue
3022fi
3023rm -f conftest.err conftest.$ac_ext
3024
3025 # OK, works on sane cases. Now check whether non-existent headers
3026 # can be detected and how.
1235 cat > conftest.$ac_ext <<EOF 3027 cat >conftest.$ac_ext <<_ACEOF
1236#line 1237 "configure" 3028/* confdefs.h. */
1237#include "confdefs.h" 3029_ACEOF
1238#include <assert.h> 3030cat confdefs.h >>conftest.$ac_ext
1239Syntax Error 3031cat >>conftest.$ac_ext <<_ACEOF
1240EOF 3032/* end confdefs.h. */
1241ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3033#include <ac_nonexistent.h>
1242{ (eval echo configure:1243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3034_ACEOF
1243ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3035if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3036 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3037 ac_status=$?
3038 grep -v '^ *+' conftest.er1 >conftest.err
3039 rm -f conftest.er1
3040 cat conftest.err >&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); } >/dev/null; then
3043 if test -s conftest.err; then
3044 ac_cpp_err=$ac_c_preproc_warn_flag
3045 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3046 else
3047 ac_cpp_err=
3048 fi
3049else
3050 ac_cpp_err=yes
3051fi
1244if test -z "$ac_err"; then 3052if test -z "$ac_cpp_err"; then
3053 # Broken: success on invalid input.
3054continue
3055else
3056 echo "$as_me: failed program was:" >&5
3057sed 's/^/| /' conftest.$ac_ext >&5
3058
3059 # Passes both tests.
3060ac_preproc_ok=:
3061break
3062fi
3063rm -f conftest.err conftest.$ac_ext
3064
3065done
3066# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3067rm -f conftest.err conftest.$ac_ext
3068if $ac_preproc_ok; then
1245 : 3069 :
1246else 3070else
1247 echo "$ac_err" >&5 3071 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
1248 echo "configure: failed program was:" >&5 3072See \`config.log' for more details." >&5
1249 cat conftest.$ac_ext >&5 3073echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
1250 rm -rf conftest* 3074See \`config.log' for more details." >&2;}
1251 CPP=/lib/cpp 3075 { (exit 1); exit 1; }; }
1252fi 3076fi
1253rm -f conftest* 3077
1254fi 3078ac_ext=c
1255rm -f conftest* 3079ac_cpp='$CPP $CPPFLAGS'
1256fi 3080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1257rm -f conftest* 3081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1258 ac_cv_prog_CPP="$CPP" 3082ac_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 3083
1266# Find a good install program. We prefer a C program (faster), 3084# 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 3085# so one script is as good as another. But avoid the broken or
1268# incompatible versions: 3086# incompatible versions:
1269# SysV /etc/install, /usr/sbin/install 3087# SysV /etc/install, /usr/sbin/install
1270# SunOS /usr/etc/install 3088# SunOS /usr/etc/install
1271# IRIX /sbin/install 3089# IRIX /sbin/install
1272# AIX /bin/install 3090# AIX /bin/install
3091# AmigaOS /C/install, which installs bootblocks on floppy discs
1273# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3092# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1274# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3093# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1275# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3094# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3095# OS/2's system install, which has a completely different semantic
1276# ./install, which can be erroneously created by make from ./install.sh. 3096# ./install, which can be erroneously created by make from ./install.sh.
3097echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1277echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 3098echo $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 3099if test -z "$INSTALL"; then
1280if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 3100if test "${ac_cv_path_install+set}" = set; then
1281 echo $ac_n "(cached) $ac_c" 1>&6 3101 echo $ECHO_N "(cached) $ECHO_C" >&6
1282else 3102else
1283 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 3103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1284 for ac_dir in $PATH; do 3104for as_dir in $PATH
3105do
3106 IFS=$as_save_IFS
3107 test -z "$as_dir" && as_dir=.
1285 # Account for people who put trailing slashes in PATH elements. 3108 # Account for people who put trailing slashes in PATH elements.
1286 case "$ac_dir/" in 3109case $as_dir/ in
3110 ./ | .// | /cC/* | \
1287 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 3111 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3112 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3113 /usr/ucb/* ) ;;
1288 *) 3114 *)
1289 # OSF1 and SCO ODT 3.0 have their own names for install. 3115 # 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 3116 # Don't use installbsd from OSF since it installs stuff as root
1291 # by default. 3117 # by default.
1292 for ac_prog in ginstall scoinst install; do 3118 for ac_prog in ginstall scoinst install; do
1293 if test -f $ac_dir/$ac_prog; then 3119 for ac_exec_ext in '' $ac_executable_extensions; do
3120 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1294 if test $ac_prog = install && 3121 if test $ac_prog = install &&
1295 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 3122 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1296 # AIX install. It has an incompatible calling convention. 3123 # AIX install. It has an incompatible calling convention.
1297 : 3124 :
3125 elif test $ac_prog = install &&
3126 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3127 # program-specific install script used by HP pwplus--don't use.
3128 :
1298 else 3129 else
1299 ac_cv_path_install="$ac_dir/$ac_prog -c" 3130 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1300 break 2 3131 break 3
1301 fi 3132 fi
1302 fi 3133 fi
1303 done 3134 done
1304 ;;
1305 esac
1306 done 3135 done
1307 IFS="$ac_save_IFS" 3136 ;;
3137esac
3138done
3139
1308 3140
1309fi 3141fi
1310 if test "${ac_cv_path_install+set}" = set; then 3142 if test "${ac_cv_path_install+set}" = set; then
1311 INSTALL="$ac_cv_path_install" 3143 INSTALL=$ac_cv_path_install
1312 else 3144 else
1313 # As a last resort, use the slow shell script. We don't cache a 3145 # 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 3146 # path for INSTALL within a source directory, because that will
1315 # break other packages using the cache if that directory is 3147 # break other packages using the cache if that directory is
1316 # removed, or if the path is relative. 3148 # removed, or if the path is relative.
1317 INSTALL="$ac_install_sh" 3149 INSTALL=$ac_install_sh
1318 fi 3150 fi
1319fi 3151fi
3152echo "$as_me:$LINENO: result: $INSTALL" >&5
1320echo "$ac_t""$INSTALL" 1>&6 3153echo "${ECHO_T}$INSTALL" >&6
1321 3154
1322# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3155# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1323# It thinks the first close brace ends the variable substitution. 3156# It thinks the first close brace ends the variable substitution.
1324test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3157test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1325 3158
1326test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 3159test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1327 3160
1328test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3161test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1329 3162
1330for ac_prog in mawk gawk nawk awk 3163for ac_prog in gawk mawk nawk awk
1331do 3164do
1332# Extract the first word of "$ac_prog", so it can be a program name with args. 3165 # Extract the first word of "$ac_prog", so it can be a program name with args.
1333set dummy $ac_prog; ac_word=$2 3166set dummy $ac_prog; ac_word=$2
3167echo "$as_me:$LINENO: checking for $ac_word" >&5
1334echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3168echo $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 3169if test "${ac_cv_prog_AWK+set}" = set; then
1337 echo $ac_n "(cached) $ac_c" 1>&6 3170 echo $ECHO_N "(cached) $ECHO_C" >&6
1338else 3171else
1339 if test -n "$AWK"; then 3172 if test -n "$AWK"; then
1340 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3173 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1341else 3174else
1342 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1343 ac_dummy="$PATH" 3176for as_dir in $PATH
1344 for ac_dir in $ac_dummy; do 3177do
3178 IFS=$as_save_IFS
1345 test -z "$ac_dir" && ac_dir=. 3179 test -z "$as_dir" && as_dir=.
1346 if test -f $ac_dir/$ac_word; then 3180 for ac_exec_ext in '' $ac_executable_extensions; do
3181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1347 ac_cv_prog_AWK="$ac_prog" 3182 ac_cv_prog_AWK="$ac_prog"
3183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1348 break 3184 break 2
3185 fi
3186done
3187done
3188
3189fi
3190fi
3191AWK=$ac_cv_prog_AWK
3192if test -n "$AWK"; then
3193 echo "$as_me:$LINENO: result: $AWK" >&5
3194echo "${ECHO_T}$AWK" >&6
3195else
3196 echo "$as_me:$LINENO: result: no" >&5
3197echo "${ECHO_T}no" >&6
3198fi
3199
3200 test -n "$AWK" && break
3201done
3202
3203
3204ac_ext=c
3205ac_cpp='$CPP $CPPFLAGS'
3206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3208ac_compiler_gnu=$ac_cv_c_compiler_gnu
3209
3210
3211LINKER="$CXX"
3212if test x$GCC = xyes && test x$GXX = xyes; then
3213
3214echo "$as_me:$LINENO: checking for main in -lsupc++" >&5
3215echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6
3216if test "${ac_cv_lib_supcpp_main+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3218else
3219 ac_check_lib_save_LIBS=$LIBS
3220LIBS="-lsupc++ $LIBS"
3221cat >conftest.$ac_ext <<_ACEOF
3222/* confdefs.h. */
3223_ACEOF
3224cat confdefs.h >>conftest.$ac_ext
3225cat >>conftest.$ac_ext <<_ACEOF
3226/* end confdefs.h. */
3227
3228
3229int
3230main ()
3231{
3232main ();
3233 ;
3234 return 0;
3235}
3236_ACEOF
3237rm -f conftest.$ac_objext conftest$ac_exeext
3238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3239 (eval $ac_link) 2>conftest.er1
3240 ac_status=$?
3241 grep -v '^ *+' conftest.er1 >conftest.err
3242 rm -f conftest.er1
3243 cat conftest.err >&5
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); } &&
3246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3248 (eval $ac_try) 2>&5
3249 ac_status=$?
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); }; } &&
3252 { ac_try='test -s conftest$ac_exeext'
3253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3254 (eval $ac_try) 2>&5
3255 ac_status=$?
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }; }; then
3258 ac_cv_lib_supcpp_main=yes
3259else
3260 echo "$as_me: failed program was:" >&5
3261sed 's/^/| /' conftest.$ac_ext >&5
3262
3263ac_cv_lib_supcpp_main=no
3264fi
3265rm -f conftest.err conftest.$ac_objext \
3266 conftest$ac_exeext conftest.$ac_ext
3267LIBS=$ac_check_lib_save_LIBS
3268fi
3269echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5
3270echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6
3271if test $ac_cv_lib_supcpp_main = yes; then
3272
3273 LINKER="$CC"
3274 LIBS="$LIBS -lsupc++"
3275
3276fi
3277
3278fi
3279LINKER=$LINKER
3280
3281
3282CPPFLAGS="-D_GNU_SOURCE -D_XOPEN_SOURCE"
3283
3284if test x$GXX = xyes; then
3285 CXXFLAGS="$CXXFLAGS -fno-exceptions"
3286fi
3287
3288ac_ext=cc
3289ac_cpp='$CXXCPP $CPPFLAGS'
3290ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3291ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3292ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3293
3294
3295
3296ac_ext=cc
3297ac_cpp='$CXXCPP $CPPFLAGS'
3298ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3299ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3300ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3301echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3302echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3303if test -z "$CXXCPP"; then
3304 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
3306else
3307 # Double quotes because CXXCPP needs to be expanded
3308 for CXXCPP in "$CXX -E" "/lib/cpp"
3309 do
3310 ac_preproc_ok=false
3311for ac_cxx_preproc_warn_flag in '' yes
3312do
3313 # Use a header file that comes with gcc, so configuring glibc
3314 # with a fresh cross-compiler works.
3315 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3316 # <limits.h> exists even on freestanding compilers.
3317 # On the NeXT, cc -E runs the code through the compiler's parser,
3318 # not just through cpp. "Syntax error" is here to catch this case.
3319 cat >conftest.$ac_ext <<_ACEOF
3320/* confdefs.h. */
3321_ACEOF
3322cat confdefs.h >>conftest.$ac_ext
3323cat >>conftest.$ac_ext <<_ACEOF
3324/* end confdefs.h. */
3325#ifdef __STDC__
3326# include <limits.h>
3327#else
3328# include <assert.h>
3329#endif
3330 Syntax error
3331_ACEOF
3332if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3333 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3334 ac_status=$?
3335 grep -v '^ *+' conftest.er1 >conftest.err
3336 rm -f conftest.er1
3337 cat conftest.err >&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } >/dev/null; then
3340 if test -s conftest.err; then
3341 ac_cpp_err=$ac_cxx_preproc_warn_flag
3342 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3343 else
3344 ac_cpp_err=
3345 fi
3346else
3347 ac_cpp_err=yes
3348fi
3349if test -z "$ac_cpp_err"; then
3350 :
3351else
3352 echo "$as_me: failed program was:" >&5
3353sed 's/^/| /' conftest.$ac_ext >&5
3354
3355 # Broken: fails on valid input.
3356continue
3357fi
3358rm -f conftest.err conftest.$ac_ext
3359
3360 # OK, works on sane cases. Now check whether non-existent headers
3361 # can be detected and how.
3362 cat >conftest.$ac_ext <<_ACEOF
3363/* confdefs.h. */
3364_ACEOF
3365cat confdefs.h >>conftest.$ac_ext
3366cat >>conftest.$ac_ext <<_ACEOF
3367/* end confdefs.h. */
3368#include <ac_nonexistent.h>
3369_ACEOF
3370if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3372 ac_status=$?
3373 grep -v '^ *+' conftest.er1 >conftest.err
3374 rm -f conftest.er1
3375 cat conftest.err >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } >/dev/null; then
3378 if test -s conftest.err; then
3379 ac_cpp_err=$ac_cxx_preproc_warn_flag
3380 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3381 else
3382 ac_cpp_err=
3383 fi
3384else
3385 ac_cpp_err=yes
3386fi
3387if test -z "$ac_cpp_err"; then
3388 # Broken: success on invalid input.
3389continue
3390else
3391 echo "$as_me: failed program was:" >&5
3392sed 's/^/| /' conftest.$ac_ext >&5
3393
3394 # Passes both tests.
3395ac_preproc_ok=:
3396break
3397fi
3398rm -f conftest.err conftest.$ac_ext
3399
3400done
3401# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3402rm -f conftest.err conftest.$ac_ext
3403if $ac_preproc_ok; then
3404 break
3405fi
3406
3407 done
3408 ac_cv_prog_CXXCPP=$CXXCPP
3409
3410fi
3411 CXXCPP=$ac_cv_prog_CXXCPP
3412else
3413 ac_cv_prog_CXXCPP=$CXXCPP
3414fi
3415echo "$as_me:$LINENO: result: $CXXCPP" >&5
3416echo "${ECHO_T}$CXXCPP" >&6
3417ac_preproc_ok=false
3418for ac_cxx_preproc_warn_flag in '' yes
3419do
3420 # Use a header file that comes with gcc, so configuring glibc
3421 # with a fresh cross-compiler works.
3422 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3423 # <limits.h> exists even on freestanding compilers.
3424 # On the NeXT, cc -E runs the code through the compiler's parser,
3425 # not just through cpp. "Syntax error" is here to catch this case.
3426 cat >conftest.$ac_ext <<_ACEOF
3427/* confdefs.h. */
3428_ACEOF
3429cat confdefs.h >>conftest.$ac_ext
3430cat >>conftest.$ac_ext <<_ACEOF
3431/* end confdefs.h. */
3432#ifdef __STDC__
3433# include <limits.h>
3434#else
3435# include <assert.h>
3436#endif
3437 Syntax error
3438_ACEOF
3439if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3440 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3441 ac_status=$?
3442 grep -v '^ *+' conftest.er1 >conftest.err
3443 rm -f conftest.er1
3444 cat conftest.err >&5
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); } >/dev/null; then
3447 if test -s conftest.err; then
3448 ac_cpp_err=$ac_cxx_preproc_warn_flag
3449 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3450 else
3451 ac_cpp_err=
3452 fi
3453else
3454 ac_cpp_err=yes
3455fi
3456if test -z "$ac_cpp_err"; then
3457 :
3458else
3459 echo "$as_me: failed program was:" >&5
3460sed 's/^/| /' conftest.$ac_ext >&5
3461
3462 # Broken: fails on valid input.
3463continue
3464fi
3465rm -f conftest.err conftest.$ac_ext
3466
3467 # OK, works on sane cases. Now check whether non-existent headers
3468 # can be detected and how.
3469 cat >conftest.$ac_ext <<_ACEOF
3470/* confdefs.h. */
3471_ACEOF
3472cat confdefs.h >>conftest.$ac_ext
3473cat >>conftest.$ac_ext <<_ACEOF
3474/* end confdefs.h. */
3475#include <ac_nonexistent.h>
3476_ACEOF
3477if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3478 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3479 ac_status=$?
3480 grep -v '^ *+' conftest.er1 >conftest.err
3481 rm -f conftest.er1
3482 cat conftest.err >&5
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); } >/dev/null; then
3485 if test -s conftest.err; then
3486 ac_cpp_err=$ac_cxx_preproc_warn_flag
3487 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3488 else
3489 ac_cpp_err=
3490 fi
3491else
3492 ac_cpp_err=yes
3493fi
3494if test -z "$ac_cpp_err"; then
3495 # Broken: success on invalid input.
3496continue
3497else
3498 echo "$as_me: failed program was:" >&5
3499sed 's/^/| /' conftest.$ac_ext >&5
3500
3501 # Passes both tests.
3502ac_preproc_ok=:
3503break
3504fi
3505rm -f conftest.err conftest.$ac_ext
3506
3507done
3508# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3509rm -f conftest.err conftest.$ac_ext
3510if $ac_preproc_ok; then
3511 :
3512else
3513 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3514See \`config.log' for more details." >&5
3515echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3516See \`config.log' for more details." >&2;}
3517 { (exit 1); exit 1; }; }
3518fi
3519
3520ac_ext=cc
3521ac_cpp='$CXXCPP $CPPFLAGS'
3522ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3523ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3524ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3525
3526
3527echo "$as_me:$LINENO: checking for egrep" >&5
3528echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3529if test "${ac_cv_prog_egrep+set}" = set; then
3530 echo $ECHO_N "(cached) $ECHO_C" >&6
3531else
3532 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3533 then ac_cv_prog_egrep='grep -E'
3534 else ac_cv_prog_egrep='egrep'
1349 fi 3535 fi
1350 done
1351 IFS="$ac_save_ifs"
1352fi 3536fi
1353fi 3537echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
1354AWK="$ac_cv_prog_AWK" 3538echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1355if test -n "$AWK"; then 3539 EGREP=$ac_cv_prog_egrep
1356 echo "$ac_t""$AWK" 1>&6
1357else
1358 echo "$ac_t""no" 1>&6
1359fi
1360 3540
1361test -n "$AWK" && break
1362done
1363 3541
1364 3542
3543echo "$as_me:$LINENO: checking for AIX" >&5
1365echo $ac_n "checking for AIX""... $ac_c" 1>&6 3544echo $ECHO_N "checking for AIX... $ECHO_C" >&6
1366echo "configure:1367: checking for AIX" >&5
1367cat > conftest.$ac_ext <<EOF 3545cat >conftest.$ac_ext <<_ACEOF
1368#line 1369 "configure" 3546/* confdefs.h. */
1369#include "confdefs.h" 3547_ACEOF
3548cat confdefs.h >>conftest.$ac_ext
3549cat >>conftest.$ac_ext <<_ACEOF
3550/* end confdefs.h. */
1370#ifdef _AIX 3551#ifdef _AIX
1371 yes 3552 yes
1372#endif 3553#endif
1373 3554
1374EOF 3555_ACEOF
1375if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3556if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1376 egrep "yes" >/dev/null 2>&1; then 3557 $EGREP "yes" >/dev/null 2>&1; then
1377 rm -rf conftest* 3558 echo "$as_me:$LINENO: result: yes" >&5
1378 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 3559echo "${ECHO_T}yes" >&6
3560cat >>confdefs.h <<\_ACEOF
1379#define _ALL_SOURCE 1 3561#define _ALL_SOURCE 1
1380EOF 3562_ACEOF
1381 3563
1382else 3564else
1383 rm -rf conftest* 3565 echo "$as_me:$LINENO: result: no" >&5
1384 echo "$ac_t""no" 1>&6 3566echo "${ECHO_T}no" >&6
1385fi 3567fi
1386rm -f conftest* 3568rm -f conftest*
1387 3569
1388 3570
1389echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 3571echo "$as_me:$LINENO: checking for library containing strerror" >&5
1390echo "configure:1391: checking for POSIXized ISC" >&5 3572echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
1391if test -d /etc/conf/kconfig.d && 3573if test "${ac_cv_search_strerror+set}" = set; then
1392 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 3574 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 3575else
1403 CC="$CC -Xp" 3576 ac_func_search_save_LIBS=$LIBS
1404 fi 3577ac_cv_search_strerror=no
3578cat >conftest.$ac_ext <<_ACEOF
3579/* confdefs.h. */
3580_ACEOF
3581cat confdefs.h >>conftest.$ac_ext
3582cat >>conftest.$ac_ext <<_ACEOF
3583/* end confdefs.h. */
3584
3585/* Override any gcc2 internal prototype to avoid an error. */
3586#ifdef __cplusplus
3587extern "C"
3588#endif
3589/* We use char because int might match the return type of a gcc2
3590 builtin and then its argument prototype would still apply. */
3591char strerror ();
3592int
3593main ()
3594{
3595strerror ();
3596 ;
3597 return 0;
3598}
3599_ACEOF
3600rm -f conftest.$ac_objext conftest$ac_exeext
3601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3602 (eval $ac_link) 2>conftest.er1
3603 ac_status=$?
3604 grep -v '^ *+' conftest.er1 >conftest.err
3605 rm -f conftest.er1
3606 cat conftest.err >&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } &&
3609 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3611 (eval $ac_try) 2>&5
3612 ac_status=$?
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); }; } &&
3615 { ac_try='test -s conftest$ac_exeext'
3616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3617 (eval $ac_try) 2>&5
3618 ac_status=$?
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); }; }; then
3621 ac_cv_search_strerror="none required"
1405else 3622else
1406 echo "$ac_t""no" 1>&6 3623 echo "$as_me: failed program was:" >&5
1407 ISC= 3624sed 's/^/| /' conftest.$ac_ext >&5
3625
3626fi
3627rm -f conftest.err conftest.$ac_objext \
3628 conftest$ac_exeext conftest.$ac_ext
3629if test "$ac_cv_search_strerror" = no; then
3630 for ac_lib in cposix; do
3631 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3632 cat >conftest.$ac_ext <<_ACEOF
3633/* confdefs.h. */
3634_ACEOF
3635cat confdefs.h >>conftest.$ac_ext
3636cat >>conftest.$ac_ext <<_ACEOF
3637/* end confdefs.h. */
3638
3639/* Override any gcc2 internal prototype to avoid an error. */
3640#ifdef __cplusplus
3641extern "C"
3642#endif
3643/* We use char because int might match the return type of a gcc2
3644 builtin and then its argument prototype would still apply. */
3645char strerror ();
3646int
3647main ()
3648{
3649strerror ();
3650 ;
3651 return 0;
3652}
3653_ACEOF
3654rm -f conftest.$ac_objext conftest$ac_exeext
3655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3656 (eval $ac_link) 2>conftest.er1
3657 ac_status=$?
3658 grep -v '^ *+' conftest.er1 >conftest.err
3659 rm -f conftest.er1
3660 cat conftest.err >&5
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); } &&
3663 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3665 (eval $ac_try) 2>&5
3666 ac_status=$?
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); }; } &&
3669 { ac_try='test -s conftest$ac_exeext'
3670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671 (eval $ac_try) 2>&5
3672 ac_status=$?
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }; }; then
3675 ac_cv_search_strerror="-l$ac_lib"
3676break
3677else
3678 echo "$as_me: failed program was:" >&5
3679sed 's/^/| /' conftest.$ac_ext >&5
3680
3681fi
3682rm -f conftest.err conftest.$ac_objext \
3683 conftest$ac_exeext conftest.$ac_ext
3684 done
3685fi
3686LIBS=$ac_func_search_save_LIBS
3687fi
3688echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3689echo "${ECHO_T}$ac_cv_search_strerror" >&6
3690if test "$ac_cv_search_strerror" != no; then
3691 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3692
1408fi 3693fi
1409 3694
1410 3695
1411# Check whether --enable-shared or --disable-shared was given. 3696# Check whether --enable-shared or --disable-shared was given.
1412if test "${enable_shared+set}" = set; then 3697if test "${enable_shared+set}" = set; then
1427 IFS="$ac_save_ifs" 3712 IFS="$ac_save_ifs"
1428 ;; 3713 ;;
1429esac 3714esac
1430else 3715else
1431 enable_shared=no 3716 enable_shared=no
1432fi
1433# Check whether --enable-static or --disable-static was given. 3717fi; # Check whether --enable-static or --disable-static was given.
1434if test "${enable_static+set}" = set; then 3718if test "${enable_static+set}" = set; then
1435 enableval="$enable_static" 3719 enableval="$enable_static"
1436 p=${PACKAGE-default} 3720 p=${PACKAGE-default}
1437case "$enableval" in 3721case "$enableval" in
1438yes) enable_static=yes ;; 3722yes) enable_static=yes ;;
1449 IFS="$ac_save_ifs" 3733 IFS="$ac_save_ifs"
1450 ;; 3734 ;;
1451esac 3735esac
1452else 3736else
1453 enable_static=yes 3737 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. 3738fi; # Check whether --enable-fast-install or --disable-fast-install was given.
1518if test "${enable_fast_install+set}" = set; then 3739if test "${enable_fast_install+set}" = set; then
1519 enableval="$enable_fast_install" 3740 enableval="$enable_fast_install"
1520 p=${PACKAGE-default} 3741 p=${PACKAGE-default}
1521case "$enableval" in 3742case "$enableval" in
1522yes) enable_fast_install=yes ;; 3743yes) enable_fast_install=yes ;;
1533 IFS="$ac_save_ifs" 3754 IFS="$ac_save_ifs"
1534 ;; 3755 ;;
1535esac 3756esac
1536else 3757else
1537 enable_fast_install=yes 3758 enable_fast_install=yes
1538fi 3759fi;
1539
1540
1541# Make sure we can run config.sub. 3760# Make sure we can run config.sub.
1542if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 3761$ac_config_sub sun4 >/dev/null 2>&1 ||
3762 { { 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; } 3763echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1544fi 3764 { (exit 1); exit 1; }; }
1545 3765
1546echo $ac_n "checking host system type""... $ac_c" 1>&6 3766echo "$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 3767echo $ECHO_N "checking build system type... $ECHO_C" >&6
1568echo "configure:1569: checking build system type" >&5 3768if test "${ac_cv_build+set}" = set; then
3769 echo $ECHO_N "(cached) $ECHO_C" >&6
3770else
3771 ac_cv_build_alias=$build_alias
3772test -z "$ac_cv_build_alias" &&
3773 ac_cv_build_alias=`$ac_config_guess`
3774test -z "$ac_cv_build_alias" &&
3775 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3776echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3777 { (exit 1); exit 1; }; }
3778ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3779 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3780echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3781 { (exit 1); exit 1; }; }
1569 3782
1570build_alias=$build 3783fi
1571case "$build_alias" in 3784echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1572NONE) 3785echo "${ECHO_T}$ac_cv_build" >&6
1573 case $nonopt in 3786build=$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/'` 3787build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1581build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3788build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1582build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3789build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1583echo "$ac_t""$build" 1>&6 3790
3791
3792echo "$as_me:$LINENO: checking host system type" >&5
3793echo $ECHO_N "checking host system type... $ECHO_C" >&6
3794if test "${ac_cv_host+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3796else
3797 ac_cv_host_alias=$host_alias
3798test -z "$ac_cv_host_alias" &&
3799 ac_cv_host_alias=$ac_cv_build_alias
3800ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3801 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3802echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3803 { (exit 1); exit 1; }; }
3804
3805fi
3806echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3807echo "${ECHO_T}$ac_cv_host" >&6
3808host=$ac_cv_host
3809host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3810host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3811host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3812
3813
1584 3814
1585# Check whether --with-gnu-ld or --without-gnu-ld was given. 3815# Check whether --with-gnu-ld or --without-gnu-ld was given.
1586if test "${with_gnu_ld+set}" = set; then 3816if test "${with_gnu_ld+set}" = set; then
1587 withval="$with_gnu_ld" 3817 withval="$with_gnu_ld"
1588 test "$withval" = no || with_gnu_ld=yes 3818 test "$withval" = no || with_gnu_ld=yes
1589else 3819else
1590 with_gnu_ld=no 3820 with_gnu_ld=no
1591fi 3821fi;
1592
1593ac_prog=ld 3822ac_prog=ld
1594if test "$GCC" = yes; then 3823if test "$GCC" = yes; then
1595 # Check if gcc -print-prog-name=ld gives a path. 3824 # Check if gcc -print-prog-name=ld gives a path.
3825 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 3826echo $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 3827 case $host in
1599 *-*-mingw*) 3828 *-*-mingw*)
1600 # gcc leaves a trailing carriage return which upsets mingw 3829 # gcc leaves a trailing carriage return which upsets mingw
1601 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3830 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1602 *) 3831 *)
1621 # If it is relative, then search for the first ld in PATH. 3850 # If it is relative, then search for the first ld in PATH.
1622 with_gnu_ld=unknown 3851 with_gnu_ld=unknown
1623 ;; 3852 ;;
1624 esac 3853 esac
1625elif test "$with_gnu_ld" = yes; then 3854elif test "$with_gnu_ld" = yes; then
3855 echo "$as_me:$LINENO: checking for GNU ld" >&5
1626 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 3856echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
1627echo "configure:1628: checking for GNU ld" >&5
1628else 3857else
3858 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
1629 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 3859echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
1630echo "configure:1631: checking for non-GNU ld" >&5
1631fi 3860fi
1632if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then 3861if test "${lt_cv_path_LD+set}" = set; then
1633 echo $ac_n "(cached) $ac_c" 1>&6 3862 echo $ECHO_N "(cached) $ECHO_C" >&6
1634else 3863else
1635 if test -z "$LD"; then 3864 if test -z "$LD"; then
1636 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 3865 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1637 for ac_dir in $PATH; do 3866 for ac_dir in $PATH; do
1638 test -z "$ac_dir" && ac_dir=. 3867 test -z "$ac_dir" && ac_dir=.
1654fi 3883fi
1655fi 3884fi
1656 3885
1657LD="$lt_cv_path_LD" 3886LD="$lt_cv_path_LD"
1658if test -n "$LD"; then 3887if test -n "$LD"; then
1659 echo "$ac_t""$LD" 1>&6 3888 echo "$as_me:$LINENO: result: $LD" >&5
3889echo "${ECHO_T}$LD" >&6
1660else 3890else
1661 echo "$ac_t""no" 1>&6 3891 echo "$as_me:$LINENO: result: no" >&5
3892echo "${ECHO_T}no" >&6
1662fi 3893fi
1663test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } 3894test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3895echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3896 { (exit 1); exit 1; }; }
3897echo "$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 3898echo $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 3899if test "${lt_cv_prog_gnu_ld+set}" = set; then
1667 echo $ac_n "(cached) $ac_c" 1>&6 3900 echo $ECHO_N "(cached) $ECHO_C" >&6
1668else 3901else
1669 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 3902 # 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 3903if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1671 lt_cv_prog_gnu_ld=yes 3904 lt_cv_prog_gnu_ld=yes
1672else 3905else
1673 lt_cv_prog_gnu_ld=no 3906 lt_cv_prog_gnu_ld=no
1674fi 3907fi
1675fi 3908fi
1676 3909echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
1677echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6 3910echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
1678with_gnu_ld=$lt_cv_prog_gnu_ld 3911with_gnu_ld=$lt_cv_prog_gnu_ld
1679 3912
1680 3913
3914echo "$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 3915echo $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 3916if test "${lt_cv_ld_reload_flag+set}" = set; then
1684 echo $ac_n "(cached) $ac_c" 1>&6 3917 echo $ECHO_N "(cached) $ECHO_C" >&6
1685else 3918else
1686 lt_cv_ld_reload_flag='-r' 3919 lt_cv_ld_reload_flag='-r'
1687fi 3920fi
1688 3921echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
1689echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6 3922echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
1690reload_flag=$lt_cv_ld_reload_flag 3923reload_flag=$lt_cv_ld_reload_flag
1691test -n "$reload_flag" && reload_flag=" $reload_flag" 3924test -n "$reload_flag" && reload_flag=" $reload_flag"
1692 3925
3926echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
1693echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 3927echo $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 3928if test "${lt_cv_path_NM+set}" = set; then
1696 echo $ac_n "(cached) $ac_c" 1>&6 3929 echo $ECHO_N "(cached) $ECHO_C" >&6
1697else 3930else
1698 if test -n "$NM"; then 3931 if test -n "$NM"; then
1699 # Let the user override the test. 3932 # Let the user override the test.
1700 lt_cv_path_NM="$NM" 3933 lt_cv_path_NM="$NM"
1701else 3934else
1724 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3957 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1725fi 3958fi
1726fi 3959fi
1727 3960
1728NM="$lt_cv_path_NM" 3961NM="$lt_cv_path_NM"
1729echo "$ac_t""$NM" 1>&6 3962echo "$as_me:$LINENO: result: $NM" >&5
3963echo "${ECHO_T}$NM" >&6
1730 3964
3965echo "$as_me:$LINENO: checking whether ln -s works" >&5
1731echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 3966echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1732echo "configure:1733: checking whether ln -s works" >&5 3967LN_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 3968if test "$LN_S" = "ln -s"; then
1747 echo "$ac_t""yes" 1>&6 3969 echo "$as_me:$LINENO: result: yes" >&5
3970echo "${ECHO_T}yes" >&6
1748else 3971else
1749 echo "$ac_t""no" 1>&6 3972 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3973echo "${ECHO_T}no, using $LN_S" >&6
1750fi 3974fi
1751 3975
3976echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
1752echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6 3977echo $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 3978if test "${lt_cv_deplibs_check_method+set}" = set; then
1755 echo $ac_n "(cached) $ac_c" 1>&6 3979 echo $ECHO_N "(cached) $ECHO_C" >&6
1756else 3980else
1757 lt_cv_file_magic_cmd='$MAGIC_CMD' 3981 lt_cv_file_magic_cmd='$MAGIC_CMD'
1758lt_cv_file_magic_test_file= 3982lt_cv_file_magic_test_file=
1759lt_cv_deplibs_check_method='unknown' 3983lt_cv_deplibs_check_method='unknown'
1760# Need to set the preceding variable on all platforms that support 3984# Need to set the preceding variable on all platforms that support
1906 esac 4130 esac
1907 ;; 4131 ;;
1908esac 4132esac
1909 4133
1910fi 4134fi
1911 4135echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
1912echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6 4136echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
1913file_magic_cmd=$lt_cv_file_magic_cmd 4137file_magic_cmd=$lt_cv_file_magic_cmd
1914deplibs_check_method=$lt_cv_deplibs_check_method 4138deplibs_check_method=$lt_cv_deplibs_check_method
1915 4139
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 4140
1936echo "$ac_t""$ac_cv_objext" 1>&6
1937OBJEXT=$ac_cv_objext
1938ac_objext=$ac_cv_objext
1939 4141
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 4142
1979 4143
1980 4144
1981 4145
1982# Check for command to grab the raw symbol name followed by C symbol from nm. 4146# Check for command to grab the raw symbol name followed by C symbol from nm.
4147echo "$as_me:$LINENO: checking command to parse $NM output" >&5
1983echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6 4148echo $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 4149if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
1986 echo $ac_n "(cached) $ac_c" 1>&6 4150 echo $ECHO_N "(cached) $ECHO_C" >&6
1987else 4151else
1988 4152
1989# These are sane defaults that work on at least a few old systems. 4153# These are sane defaults that work on at least a few old systems.
1990# [They come from Ultrix. What could be older than Ultrix?!! ;)] 4154# [They come from Ultrix. What could be older than Ultrix?!! ;)]
1991 4155
1992# Character class describing NM global symbol codes. 4156# Character class describing NM global symbol codes.
1993symcode='[BCDEGRST]' 4157symcode='[BCDEGRST]'
2055} 4219}
2056#endif 4220#endif
2057main(){nm_test_var='a';nm_test_func();return(0);} 4221main(){nm_test_var='a';nm_test_func();return(0);}
2058EOF 4222EOF
2059 4223
2060 if { (eval echo configure:2061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4225 (eval $ac_compile) 2>&5
4226 ac_status=$?
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); }; then
2061 # Now try to grab the symbols. 4229 # Now try to grab the symbols.
2062 nlist=conftest.nm 4230 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 4231 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4232 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4233 ac_status=$?
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); } && test -s "$nlist"; then
2064 # Try sorting and uniquifying the output. 4236 # Try sorting and uniquifying the output.
2065 if sort "$nlist" | uniq > "$nlist"T; then 4237 if sort "$nlist" | uniq > "$nlist"T; then
2066 mv -f "$nlist"T "$nlist" 4238 mv -f "$nlist"T "$nlist"
2067 else 4239 else
2068 rm -f "$nlist"T 4240 rm -f "$nlist"T
2109 mv conftest.$ac_objext conftstm.$ac_objext 4281 mv conftest.$ac_objext conftstm.$ac_objext
2110 save_LIBS="$LIBS" 4282 save_LIBS="$LIBS"
2111 save_CFLAGS="$CFLAGS" 4283 save_CFLAGS="$CFLAGS"
2112 LIBS="conftstm.$ac_objext" 4284 LIBS="conftstm.$ac_objext"
2113 CFLAGS="$CFLAGS$no_builtin_flag" 4285 CFLAGS="$CFLAGS$no_builtin_flag"
2114 if { (eval echo configure:2115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4287 (eval $ac_link) 2>&5
4288 ac_status=$?
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); } && test -s conftest; then
2115 pipe_works=yes 4291 pipe_works=yes
2116 fi 4292 fi
2117 LIBS="$save_LIBS" 4293 LIBS="$save_LIBS"
2118 CFLAGS="$save_CFLAGS" 4294 CFLAGS="$save_CFLAGS"
2119 else 4295 else
2146 global_symbol_to_cdecl= 4322 global_symbol_to_cdecl=
2147else 4323else
2148 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" 4324 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2149fi 4325fi
2150if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then 4326if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
2151 echo "$ac_t""failed" 1>&6 4327 echo "$as_me:$LINENO: result: failed" >&5
4328echo "${ECHO_T}failed" >&6
4329else
4330 echo "$as_me:$LINENO: result: ok" >&5
4331echo "${ECHO_T}ok" >&6
4332fi
4333
4334echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4335echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4336if test "${ac_cv_header_stdc+set}" = set; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4338else
4339 cat >conftest.$ac_ext <<_ACEOF
4340/* confdefs.h. */
4341_ACEOF
4342cat confdefs.h >>conftest.$ac_ext
4343cat >>conftest.$ac_ext <<_ACEOF
4344/* end confdefs.h. */
4345#include <stdlib.h>
4346#include <stdarg.h>
4347#include <string.h>
4348#include <float.h>
4349
4350int
4351main ()
4352{
4353
4354 ;
4355 return 0;
4356}
4357_ACEOF
4358rm -f conftest.$ac_objext
4359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4360 (eval $ac_compile) 2>conftest.er1
4361 ac_status=$?
4362 grep -v '^ *+' conftest.er1 >conftest.err
4363 rm -f conftest.er1
4364 cat conftest.err >&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); } &&
4367 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4369 (eval $ac_try) 2>&5
4370 ac_status=$?
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }; } &&
4373 { ac_try='test -s conftest.$ac_objext'
4374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375 (eval $ac_try) 2>&5
4376 ac_status=$?
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; }; then
4379 ac_cv_header_stdc=yes
4380else
4381 echo "$as_me: failed program was:" >&5
4382sed 's/^/| /' conftest.$ac_ext >&5
4383
4384ac_cv_header_stdc=no
4385fi
4386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4387
4388if test $ac_cv_header_stdc = yes; then
4389 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4390 cat >conftest.$ac_ext <<_ACEOF
4391/* confdefs.h. */
4392_ACEOF
4393cat confdefs.h >>conftest.$ac_ext
4394cat >>conftest.$ac_ext <<_ACEOF
4395/* end confdefs.h. */
4396#include <string.h>
4397
4398_ACEOF
4399if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4400 $EGREP "memchr" >/dev/null 2>&1; then
4401 :
4402else
4403 ac_cv_header_stdc=no
4404fi
4405rm -f conftest*
4406
4407fi
4408
4409if test $ac_cv_header_stdc = yes; then
4410 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4411 cat >conftest.$ac_ext <<_ACEOF
4412/* confdefs.h. */
4413_ACEOF
4414cat confdefs.h >>conftest.$ac_ext
4415cat >>conftest.$ac_ext <<_ACEOF
4416/* end confdefs.h. */
4417#include <stdlib.h>
4418
4419_ACEOF
4420if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4421 $EGREP "free" >/dev/null 2>&1; then
4422 :
4423else
4424 ac_cv_header_stdc=no
4425fi
4426rm -f conftest*
4427
4428fi
4429
4430if test $ac_cv_header_stdc = yes; then
4431 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4432 if test "$cross_compiling" = yes; then
4433 :
4434else
4435 cat >conftest.$ac_ext <<_ACEOF
4436/* confdefs.h. */
4437_ACEOF
4438cat confdefs.h >>conftest.$ac_ext
4439cat >>conftest.$ac_ext <<_ACEOF
4440/* end confdefs.h. */
4441#include <ctype.h>
4442#if ((' ' & 0x0FF) == 0x020)
4443# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4444# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2152else 4445#else
2153 echo "$ac_t""ok" 1>&6 4446# define ISLOWER(c) \
2154fi 4447 (('a' <= (c) && (c) <= 'i') \
4448 || ('j' <= (c) && (c) <= 'r') \
4449 || ('s' <= (c) && (c) <= 'z'))
4450# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4451#endif
2155 4452
2156for ac_hdr in dlfcn.h 4453#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4454int
4455main ()
4456{
4457 int i;
4458 for (i = 0; i < 256; i++)
4459 if (XOR (islower (i), ISLOWER (i))
4460 || toupper (i) != TOUPPER (i))
4461 exit(2);
4462 exit (0);
4463}
4464_ACEOF
4465rm -f conftest$ac_exeext
4466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4467 (eval $ac_link) 2>&5
4468 ac_status=$?
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4472 (eval $ac_try) 2>&5
4473 ac_status=$?
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); }; }; then
4476 :
4477else
4478 echo "$as_me: program exited with status $ac_status" >&5
4479echo "$as_me: failed program was:" >&5
4480sed 's/^/| /' conftest.$ac_ext >&5
4481
4482( exit $ac_status )
4483ac_cv_header_stdc=no
4484fi
4485rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4486fi
4487fi
4488fi
4489echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4490echo "${ECHO_T}$ac_cv_header_stdc" >&6
4491if test $ac_cv_header_stdc = yes; then
4492
4493cat >>confdefs.h <<\_ACEOF
4494#define STDC_HEADERS 1
4495_ACEOF
4496
4497fi
4498
4499# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4510 inttypes.h stdint.h unistd.h
2157do 4511do
2158ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4512as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4513echo "$as_me:$LINENO: checking for $ac_header" >&5
2159echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4514echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2160echo "configure:2161: checking for $ac_hdr" >&5 4515if 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 4516 echo $ECHO_N "(cached) $ECHO_C" >&6
2163else 4517else
2164 cat > conftest.$ac_ext <<EOF 4518 cat >conftest.$ac_ext <<_ACEOF
2165#line 2166 "configure" 4519/* confdefs.h. */
2166#include "confdefs.h" 4520_ACEOF
4521cat confdefs.h >>conftest.$ac_ext
4522cat >>conftest.$ac_ext <<_ACEOF
4523/* end confdefs.h. */
4524$ac_includes_default
4525
2167#include <$ac_hdr> 4526#include <$ac_header>
2168EOF 4527_ACEOF
2169ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4528rm -f conftest.$ac_objext
2170{ (eval echo configure:2171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4530 (eval $ac_compile) 2>conftest.er1
4531 ac_status=$?
4532 grep -v '^ *+' conftest.er1 >conftest.err
4533 rm -f conftest.er1
4534 cat conftest.err >&5
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); } &&
4537 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4539 (eval $ac_try) 2>&5
4540 ac_status=$?
4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 (exit $ac_status); }; } &&
4543 { ac_try='test -s conftest.$ac_objext'
4544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4545 (eval $ac_try) 2>&5
4546 ac_status=$?
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); }; }; then
4549 eval "$as_ac_Header=yes"
4550else
4551 echo "$as_me: failed program was:" >&5
4552sed 's/^/| /' conftest.$ac_ext >&5
4553
4554eval "$as_ac_Header=no"
4555fi
4556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4557fi
4558echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4559echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4560if test `eval echo '${'$as_ac_Header'}'` = yes; then
4561 cat >>confdefs.h <<_ACEOF
4562#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4563_ACEOF
4564
4565fi
4566
4567done
4568
4569
4570
4571for ac_header in dlfcn.h
4572do
4573as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4574if eval "test \"\${$as_ac_Header+set}\" = set"; then
4575 echo "$as_me:$LINENO: checking for $ac_header" >&5
4576echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4577if eval "test \"\${$as_ac_Header+set}\" = set"; then
4578 echo $ECHO_N "(cached) $ECHO_C" >&6
4579fi
4580echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4581echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4582else
4583 # Is the header compilable?
4584echo "$as_me:$LINENO: checking $ac_header usability" >&5
4585echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4586cat >conftest.$ac_ext <<_ACEOF
4587/* confdefs.h. */
4588_ACEOF
4589cat confdefs.h >>conftest.$ac_ext
4590cat >>conftest.$ac_ext <<_ACEOF
4591/* end confdefs.h. */
4592$ac_includes_default
4593#include <$ac_header>
4594_ACEOF
4595rm -f conftest.$ac_objext
4596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4597 (eval $ac_compile) 2>conftest.er1
4598 ac_status=$?
4599 grep -v '^ *+' conftest.er1 >conftest.err
4600 rm -f conftest.er1
4601 cat conftest.err >&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); } &&
4604 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4606 (eval $ac_try) 2>&5
4607 ac_status=$?
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }; } &&
4610 { ac_try='test -s conftest.$ac_objext'
4611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4612 (eval $ac_try) 2>&5
4613 ac_status=$?
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); }; }; then
4616 ac_header_compiler=yes
4617else
4618 echo "$as_me: failed program was:" >&5
4619sed 's/^/| /' conftest.$ac_ext >&5
4620
4621ac_header_compiler=no
4622fi
4623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4624echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4625echo "${ECHO_T}$ac_header_compiler" >&6
4626
4627# Is the header present?
4628echo "$as_me:$LINENO: checking $ac_header presence" >&5
4629echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4630cat >conftest.$ac_ext <<_ACEOF
4631/* confdefs.h. */
4632_ACEOF
4633cat confdefs.h >>conftest.$ac_ext
4634cat >>conftest.$ac_ext <<_ACEOF
4635/* end confdefs.h. */
4636#include <$ac_header>
4637_ACEOF
4638if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4639 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4640 ac_status=$?
4641 grep -v '^ *+' conftest.er1 >conftest.err
4642 rm -f conftest.er1
4643 cat conftest.err >&5
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); } >/dev/null; then
4646 if test -s conftest.err; then
4647 ac_cpp_err=$ac_cxx_preproc_warn_flag
4648 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4649 else
4650 ac_cpp_err=
4651 fi
4652else
4653 ac_cpp_err=yes
4654fi
2172if test -z "$ac_err"; then 4655if test -z "$ac_cpp_err"; then
2173 rm -rf conftest* 4656 ac_header_preproc=yes
2174 eval "ac_cv_header_$ac_safe=yes"
2175else 4657else
2176 echo "$ac_err" >&5
2177 echo "configure: failed program was:" >&5 4658 echo "$as_me: failed program was:" >&5
2178 cat conftest.$ac_ext >&5 4659sed 's/^/| /' conftest.$ac_ext >&5
2179 rm -rf conftest* 4660
2180 eval "ac_cv_header_$ac_safe=no" 4661 ac_header_preproc=no
2181fi 4662fi
2182rm -f conftest* 4663rm -f conftest.err conftest.$ac_ext
4664echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4665echo "${ECHO_T}$ac_header_preproc" >&6
4666
4667# So? What about this header?
4668case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4669 yes:no: )
4670 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4671echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4673echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4674 ac_header_preproc=yes
4675 ;;
4676 no:yes:* )
4677 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4678echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4679 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4680echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4681 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4682echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4683 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4684echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4686echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4687 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4688echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4689 (
4690 cat <<\_ASBOX
4691## ------------------------------------------ ##
4692## Report this to the AC_PACKAGE_NAME lists. ##
4693## ------------------------------------------ ##
4694_ASBOX
4695 ) |
4696 sed "s/^/$as_me: WARNING: /" >&2
4697 ;;
4698esac
4699echo "$as_me:$LINENO: checking for $ac_header" >&5
4700echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4701if eval "test \"\${$as_ac_Header+set}\" = set"; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4703else
4704 eval "$as_ac_Header=\$ac_header_preproc"
2183fi 4705fi
2184if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4706echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2185 echo "$ac_t""yes" 1>&6 4707echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2186 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4708
4709fi
4710if test `eval echo '${'$as_ac_Header'}'` = yes; then
2187 cat >> confdefs.h <<EOF 4711 cat >>confdefs.h <<_ACEOF
2188#define $ac_tr_hdr 1 4712#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2189EOF 4713_ACEOF
2190 4714
2191else
2192 echo "$ac_t""no" 1>&6
2193fi 4715fi
4716
2194done 4717done
2195 4718
2196 4719
2197 4720
2198 4721
2199 4722
2200# Only perform the check for file, if the check method requires it 4723# Only perform the check for file, if the check method requires it
2201case "$deplibs_check_method" in 4724case "$deplibs_check_method" in
2202file_magic*) 4725file_magic*)
2203 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 4726 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4727 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 4728echo $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 4729if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
2207 echo $ac_n "(cached) $ac_c" 1>&6 4730 echo $ECHO_N "(cached) $ECHO_C" >&6
2208else 4731else
2209 case "$MAGIC_CMD" in 4732 case "$MAGIC_CMD" in
2210 /*) 4733 /*)
2211 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 4734 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2212 ;; 4735 ;;
2254esac 4777esac
2255fi 4778fi
2256 4779
2257MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4780MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2258if test -n "$MAGIC_CMD"; then 4781if test -n "$MAGIC_CMD"; then
4782 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
2259 echo "$ac_t""$MAGIC_CMD" 1>&6 4783echo "${ECHO_T}$MAGIC_CMD" >&6
2260else 4784else
2261 echo "$ac_t""no" 1>&6 4785 echo "$as_me:$LINENO: result: no" >&5
4786echo "${ECHO_T}no" >&6
2262fi 4787fi
2263 4788
2264if test -z "$lt_cv_path_MAGIC_CMD"; then 4789if test -z "$lt_cv_path_MAGIC_CMD"; then
2265 if test -n "$ac_tool_prefix"; then 4790 if test -n "$ac_tool_prefix"; then
4791 echo "$as_me:$LINENO: checking for file" >&5
2266 echo $ac_n "checking for file""... $ac_c" 1>&6 4792echo $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 4793if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
2269 echo $ac_n "(cached) $ac_c" 1>&6 4794 echo $ECHO_N "(cached) $ECHO_C" >&6
2270else 4795else
2271 case "$MAGIC_CMD" in 4796 case "$MAGIC_CMD" in
2272 /*) 4797 /*)
2273 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 4798 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2274 ;; 4799 ;;
2316esac 4841esac
2317fi 4842fi
2318 4843
2319MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4844MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2320if test -n "$MAGIC_CMD"; then 4845if test -n "$MAGIC_CMD"; then
4846 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
2321 echo "$ac_t""$MAGIC_CMD" 1>&6 4847echo "${ECHO_T}$MAGIC_CMD" >&6
2322else 4848else
2323 echo "$ac_t""no" 1>&6 4849 echo "$as_me:$LINENO: result: no" >&5
4850echo "${ECHO_T}no" >&6
2324fi 4851fi
2325 4852
2326 else 4853 else
2327 MAGIC_CMD=: 4854 MAGIC_CMD=:
2328 fi 4855 fi
2330 4857
2331 fi 4858 fi
2332 ;; 4859 ;;
2333esac 4860esac
2334 4861
4862if 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. 4863 # 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 4864set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4865echo "$as_me:$LINENO: checking for $ac_word" >&5
2337echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4866echo $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 4867if test "${ac_cv_prog_RANLIB+set}" = set; then
2340 echo $ac_n "(cached) $ac_c" 1>&6 4868 echo $ECHO_N "(cached) $ECHO_C" >&6
2341else 4869else
2342 if test -n "$RANLIB"; then 4870 if test -n "$RANLIB"; then
2343 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4871 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2344else 4872else
2345 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 ac_dummy="$PATH" 4874for as_dir in $PATH
2347 for ac_dir in $ac_dummy; do 4875do
4876 IFS=$as_save_IFS
2348 test -z "$ac_dir" && ac_dir=. 4877 test -z "$as_dir" && as_dir=.
2349 if test -f $ac_dir/$ac_word; then 4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2350 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4880 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351 break 4882 break 2
2352 fi 4883 fi
2353 done 4884done
2354 IFS="$ac_save_ifs" 4885done
4886
2355fi 4887fi
2356fi 4888fi
2357RANLIB="$ac_cv_prog_RANLIB" 4889RANLIB=$ac_cv_prog_RANLIB
2358if test -n "$RANLIB"; then 4890if test -n "$RANLIB"; then
2359 echo "$ac_t""$RANLIB" 1>&6 4891 echo "$as_me:$LINENO: result: $RANLIB" >&5
4892echo "${ECHO_T}$RANLIB" >&6
2360else 4893else
2361 echo "$ac_t""no" 1>&6 4894 echo "$as_me:$LINENO: result: no" >&5
4895echo "${ECHO_T}no" >&6
2362fi 4896fi
2363 4897
2364 4898fi
2365if test -z "$ac_cv_prog_RANLIB"; then 4899if test -z "$ac_cv_prog_RANLIB"; then
2366if test -n "$ac_tool_prefix"; then 4900 ac_ct_RANLIB=$RANLIB
2367 # Extract the first word of "ranlib", so it can be a program name with args. 4901 # Extract the first word of "ranlib", so it can be a program name with args.
2368set dummy ranlib; ac_word=$2 4902set dummy ranlib; ac_word=$2
4903echo "$as_me:$LINENO: checking for $ac_word" >&5
2369echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4904echo $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 4905if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2372 echo $ac_n "(cached) $ac_c" 1>&6 4906 echo $ECHO_N "(cached) $ECHO_C" >&6
2373else 4907else
2374 if test -n "$RANLIB"; then 4908 if test -n "$ac_ct_RANLIB"; then
2375 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4909 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2376else 4910else
2377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378 ac_dummy="$PATH" 4912for as_dir in $PATH
2379 for ac_dir in $ac_dummy; do 4913do
4914 IFS=$as_save_IFS
2380 test -z "$ac_dir" && ac_dir=. 4915 test -z "$as_dir" && as_dir=.
2381 if test -f $ac_dir/$ac_word; then 4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2382 ac_cv_prog_RANLIB="ranlib" 4918 ac_cv_prog_ac_ct_RANLIB="ranlib"
4919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2383 break 4920 break 2
2384 fi 4921 fi
2385 done 4922done
2386 IFS="$ac_save_ifs" 4923done
4924
2387 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 4925 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2388fi 4926fi
2389fi 4927fi
4928ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4929if test -n "$ac_ct_RANLIB"; then
4930 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4931echo "${ECHO_T}$ac_ct_RANLIB" >&6
4932else
4933 echo "$as_me:$LINENO: result: no" >&5
4934echo "${ECHO_T}no" >&6
4935fi
4936
4937 RANLIB=$ac_ct_RANLIB
4938else
2390RANLIB="$ac_cv_prog_RANLIB" 4939 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 4940fi
2396 4941
2397else 4942if 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. 4943 # 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 4944set dummy ${ac_tool_prefix}strip; ac_word=$2
4945echo "$as_me:$LINENO: checking for $ac_word" >&5
2404echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4946echo $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 4947if test "${ac_cv_prog_STRIP+set}" = set; then
2407 echo $ac_n "(cached) $ac_c" 1>&6 4948 echo $ECHO_N "(cached) $ECHO_C" >&6
2408else 4949else
2409 if test -n "$STRIP"; then 4950 if test -n "$STRIP"; then
2410 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4951 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2411else 4952else
2412 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 ac_dummy="$PATH" 4954for as_dir in $PATH
2414 for ac_dir in $ac_dummy; do 4955do
4956 IFS=$as_save_IFS
2415 test -z "$ac_dir" && ac_dir=. 4957 test -z "$as_dir" && as_dir=.
2416 if test -f $ac_dir/$ac_word; then 4958 for ac_exec_ext in '' $ac_executable_extensions; do
4959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2417 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4960 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2418 break 4962 break 2
2419 fi 4963 fi
2420 done 4964done
2421 IFS="$ac_save_ifs" 4965done
4966
2422fi 4967fi
2423fi 4968fi
2424STRIP="$ac_cv_prog_STRIP" 4969STRIP=$ac_cv_prog_STRIP
2425if test -n "$STRIP"; then 4970if test -n "$STRIP"; then
2426 echo "$ac_t""$STRIP" 1>&6 4971 echo "$as_me:$LINENO: result: $STRIP" >&5
4972echo "${ECHO_T}$STRIP" >&6
2427else 4973else
2428 echo "$ac_t""no" 1>&6 4974 echo "$as_me:$LINENO: result: no" >&5
4975echo "${ECHO_T}no" >&6
2429fi 4976fi
2430 4977
2431 4978fi
2432if test -z "$ac_cv_prog_STRIP"; then 4979if test -z "$ac_cv_prog_STRIP"; then
2433if test -n "$ac_tool_prefix"; then 4980 ac_ct_STRIP=$STRIP
2434 # Extract the first word of "strip", so it can be a program name with args. 4981 # Extract the first word of "strip", so it can be a program name with args.
2435set dummy strip; ac_word=$2 4982set dummy strip; ac_word=$2
4983echo "$as_me:$LINENO: checking for $ac_word" >&5
2436echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4984echo $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 4985if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2439 echo $ac_n "(cached) $ac_c" 1>&6 4986 echo $ECHO_N "(cached) $ECHO_C" >&6
2440else 4987else
2441 if test -n "$STRIP"; then 4988 if test -n "$ac_ct_STRIP"; then
2442 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4989 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2443else 4990else
2444 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 ac_dummy="$PATH" 4992for as_dir in $PATH
2446 for ac_dir in $ac_dummy; do 4993do
4994 IFS=$as_save_IFS
2447 test -z "$ac_dir" && ac_dir=. 4995 test -z "$as_dir" && as_dir=.
2448 if test -f $ac_dir/$ac_word; then 4996 for ac_exec_ext in '' $ac_executable_extensions; do
4997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2449 ac_cv_prog_STRIP="strip" 4998 ac_cv_prog_ac_ct_STRIP="strip"
4999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2450 break 5000 break 2
2451 fi 5001 fi
2452 done 5002done
2453 IFS="$ac_save_ifs" 5003done
5004
2454 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" 5005 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2455fi 5006fi
2456fi 5007fi
5008ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5009if test -n "$ac_ct_STRIP"; then
5010 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5011echo "${ECHO_T}$ac_ct_STRIP" >&6
5012else
5013 echo "$as_me:$LINENO: result: no" >&5
5014echo "${ECHO_T}no" >&6
5015fi
5016
5017 STRIP=$ac_ct_STRIP
5018else
2457STRIP="$ac_cv_prog_STRIP" 5019 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 5020fi
2468 5021
2469 5022
2470enable_dlopen=no 5023enable_dlopen=no
2471enable_win32_dll=no 5024enable_win32_dll=no
2472 5025
2473# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 5026# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2474if test "${enable_libtool_lock+set}" = set; then 5027if test "${enable_libtool_lock+set}" = set; then
2475 enableval="$enable_libtool_lock" 5028 enableval="$enable_libtool_lock"
2476 : 5029
2477fi 5030fi;
2478
2479test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5031test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2480 5032
2481# Some flags need to be propagated to the compiler or linker for good 5033# Some flags need to be propagated to the compiler or linker for good
2482# libtool support. 5034# libtool support.
2483case "$host" in 5035case "$host" in
2484*-*-irix6*) 5036*-*-irix6*)
2485 # Find out which ABI we are using. 5037 # Find out which ABI we are using.
2486 echo '#line 2487 "configure"' > conftest.$ac_ext 5038 echo '#line 5038 "configure"' > conftest.$ac_ext
2487 if { (eval echo configure:2488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5040 (eval $ac_compile) 2>&5
5041 ac_status=$?
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }; then
2488 case "`/usr/bin/file conftest.$ac_objext`" in 5044 case "`/usr/bin/file conftest.$ac_objext`" in
2489 *32-bit*) 5045 *32-bit*)
2490 LD="${LD-ld} -32" 5046 LD="${LD-ld} -32"
2491 ;; 5047 ;;
2492 *N32*) 5048 *N32*)
2502 5058
2503*-*-sco3.2v5*) 5059*-*-sco3.2v5*)
2504 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5060 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2505 SAVE_CFLAGS="$CFLAGS" 5061 SAVE_CFLAGS="$CFLAGS"
2506 CFLAGS="$CFLAGS -belf" 5062 CFLAGS="$CFLAGS -belf"
5063 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 5064echo $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 5065if test "${lt_cv_cc_needs_belf+set}" = set; then
2510 echo $ac_n "(cached) $ac_c" 1>&6 5066 echo $ECHO_N "(cached) $ECHO_C" >&6
2511else 5067else
2512 5068
5069
2513 ac_ext=c 5070 ac_ext=c
2514# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2515ac_cpp='$CPP $CPPFLAGS' 5071ac_cpp='$CPP $CPPFLAGS'
2516ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 5072ac_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' 5073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2518cross_compiling=$ac_cv_prog_cc_cross 5074ac_compiler_gnu=$ac_cv_c_compiler_gnu
2519 5075
2520 cat > conftest.$ac_ext <<EOF 5076 cat >conftest.$ac_ext <<_ACEOF
2521#line 2522 "configure" 5077/* confdefs.h. */
2522#include "confdefs.h" 5078_ACEOF
5079cat confdefs.h >>conftest.$ac_ext
5080cat >>conftest.$ac_ext <<_ACEOF
5081/* end confdefs.h. */
2523 5082
2524int main() { 5083int
5084main ()
5085{
2525 5086
5087 ;
2526; return 0; } 5088 return 0;
2527EOF 5089}
2528if { (eval echo configure:2529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5090_ACEOF
5091rm -f conftest.$ac_objext conftest$ac_exeext
5092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5093 (eval $ac_link) 2>conftest.er1
5094 ac_status=$?
5095 grep -v '^ *+' conftest.er1 >conftest.err
2529 rm -rf conftest* 5096 rm -f conftest.er1
5097 cat conftest.err >&5
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); } &&
5100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5102 (eval $ac_try) 2>&5
5103 ac_status=$?
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); }; } &&
5106 { ac_try='test -s conftest$ac_exeext'
5107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5108 (eval $ac_try) 2>&5
5109 ac_status=$?
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); }; }; then
2530 lt_cv_cc_needs_belf=yes 5112 lt_cv_cc_needs_belf=yes
2531else 5113else
2532 echo "configure: failed program was:" >&5 5114 echo "$as_me: failed program was:" >&5
2533 cat conftest.$ac_ext >&5 5115sed 's/^/| /' conftest.$ac_ext >&5
2534 rm -rf conftest* 5116
2535 lt_cv_cc_needs_belf=no 5117lt_cv_cc_needs_belf=no
2536fi 5118fi
2537rm -f conftest* 5119rm -f conftest.err conftest.$ac_objext \
5120 conftest$ac_exeext conftest.$ac_ext
2538 ac_ext=c 5121 ac_ext=cc
2539# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2540ac_cpp='$CPP $CPPFLAGS' 5122ac_cpp='$CXXCPP $CPPFLAGS'
2541ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 5123ac_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' 5124ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2543cross_compiling=$ac_cv_prog_cc_cross 5125ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2544 5126
2545fi 5127fi
2546 5128echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
2547echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 5129echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
2548 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5130 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 5131 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2550 CFLAGS="$SAVE_CFLAGS" 5132 CFLAGS="$SAVE_CFLAGS"
2551 fi 5133 fi
2552 ;; 5134 ;;
2637set dummy $CC 5219set dummy $CC
2638compiler="$2" 5220compiler="$2"
2639 5221
2640## FIXME: this should be a separate macro 5222## FIXME: this should be a separate macro
2641## 5223##
5224echo "$as_me:$LINENO: checking for objdir" >&5
2642echo $ac_n "checking for objdir""... $ac_c" 1>&6 5225echo $ECHO_N "checking for objdir... $ECHO_C" >&6
2643echo "configure:2644: checking for objdir" >&5
2644rm -f .libs 2>/dev/null 5226rm -f .libs 2>/dev/null
2645mkdir .libs 2>/dev/null 5227mkdir .libs 2>/dev/null
2646if test -d .libs; then 5228if test -d .libs; then
2647 objdir=.libs 5229 objdir=.libs
2648else 5230else
2649 # MS-DOS does not allow filenames that begin with a dot. 5231 # MS-DOS does not allow filenames that begin with a dot.
2650 objdir=_libs 5232 objdir=_libs
2651fi 5233fi
2652rmdir .libs 2>/dev/null 5234rmdir .libs 2>/dev/null
5235echo "$as_me:$LINENO: result: $objdir" >&5
2653echo "$ac_t""$objdir" 1>&6 5236echo "${ECHO_T}$objdir" >&6
2654## 5237##
2655## END FIXME 5238## END FIXME
2656 5239
2657 5240
2658## FIXME: this should be a separate macro 5241## FIXME: this should be a separate macro
2659## 5242##
5243
2660# Check whether --with-pic or --without-pic was given. 5244# Check whether --with-pic or --without-pic was given.
2661if test "${with_pic+set}" = set; then 5245if test "${with_pic+set}" = set; then
2662 withval="$with_pic" 5246 withval="$with_pic"
2663 pic_mode="$withval" 5247 pic_mode="$withval"
2664else 5248else
2665 pic_mode=default 5249 pic_mode=default
2666fi 5250fi;
2667
2668test -z "$pic_mode" && pic_mode=default 5251test -z "$pic_mode" && pic_mode=default
2669 5252
2670# We assume here that the value for lt_cv_prog_cc_pic will not be cached 5253# 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 5254# in isolation, and that seeing it set (from the cache) indicates that
2672# the associated values are set (in the cache) correctly too. 5255# the associated values are set (in the cache) correctly too.
5256echo "$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 5257echo $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 5258if test "${lt_cv_prog_cc_pic+set}" = set; then
2676 echo $ac_n "(cached) $ac_c" 1>&6 5259 echo $ECHO_N "(cached) $ECHO_C" >&6
2677else 5260else
2678 lt_cv_prog_cc_pic= 5261 lt_cv_prog_cc_pic=
2679 lt_cv_prog_cc_shlib= 5262 lt_cv_prog_cc_shlib=
2680 lt_cv_prog_cc_wl= 5263 lt_cv_prog_cc_wl=
2681 lt_cv_prog_cc_static= 5264 lt_cv_prog_cc_static=
2804 fi 5387 fi
2805 5388
2806fi 5389fi
2807 5390
2808if test -z "$lt_cv_prog_cc_pic"; then 5391if test -z "$lt_cv_prog_cc_pic"; then
2809 echo "$ac_t""none" 1>&6 5392 echo "$as_me:$LINENO: result: none" >&5
5393echo "${ECHO_T}none" >&6
2810else 5394else
5395 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
2811 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6 5396echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
2812 5397
2813 # Check to make sure the pic_flag actually works. 5398 # Check to make sure the pic_flag actually works.
5399 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 5400echo $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 5401 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
2817 echo $ac_n "(cached) $ac_c" 1>&6 5402 echo $ECHO_N "(cached) $ECHO_C" >&6
2818else 5403else
2819 save_CFLAGS="$CFLAGS" 5404 save_CFLAGS="$CFLAGS"
2820 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" 5405 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
2821 cat > conftest.$ac_ext <<EOF 5406 cat >conftest.$ac_ext <<_ACEOF
2822#line 2823 "configure" 5407/* confdefs.h. */
2823#include "confdefs.h" 5408_ACEOF
5409cat confdefs.h >>conftest.$ac_ext
5410cat >>conftest.$ac_ext <<_ACEOF
5411/* end confdefs.h. */
2824 5412
2825int main() { 5413int
5414main ()
5415{
2826 5416
5417 ;
2827; return 0; } 5418 return 0;
2828EOF 5419}
2829if { (eval echo configure:2830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5420_ACEOF
5421rm -f conftest.$ac_objext
5422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5423 (eval $ac_compile) 2>conftest.er1
5424 ac_status=$?
5425 grep -v '^ *+' conftest.er1 >conftest.err
2830 rm -rf conftest* 5426 rm -f conftest.er1
5427 cat conftest.err >&5
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); } &&
5430 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5432 (eval $ac_try) 2>&5
5433 ac_status=$?
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); }; } &&
5436 { ac_try='test -s conftest.$ac_objext'
5437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5438 (eval $ac_try) 2>&5
5439 ac_status=$?
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); }; }; then
2831 case "$host_os" in 5442 case "$host_os" in
2832 hpux9* | hpux10* | hpux11*) 5443 hpux9* | hpux10* | hpux11*)
2833 # On HP-UX, both CC and GCC only warn that PIC is supported... then 5444 # 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 5445 # they create non-PIC objects. So, if there were any warnings, we
2835 # assume that PIC is not supported. 5446 # assume that PIC is not supported.
2841 ;; 5452 ;;
2842 *) 5453 *)
2843 lt_cv_prog_cc_pic_works=yes 5454 lt_cv_prog_cc_pic_works=yes
2844 ;; 5455 ;;
2845 esac 5456 esac
2846 5457
2847else 5458else
2848 echo "configure: failed program was:" >&5 5459 echo "$as_me: failed program was:" >&5
2849 cat conftest.$ac_ext >&5 5460sed 's/^/| /' conftest.$ac_ext >&5
2850 rm -rf conftest* 5461
2851 lt_cv_prog_cc_pic_works=no 5462 lt_cv_prog_cc_pic_works=no
2852 5463
2853fi 5464fi
2854rm -f conftest* 5465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2855 CFLAGS="$save_CFLAGS" 5466 CFLAGS="$save_CFLAGS"
2856 5467
2857fi 5468fi
2858 5469
2859 5470
2860 if test "X$lt_cv_prog_cc_pic_works" = Xno; then 5471 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
2861 lt_cv_prog_cc_pic= 5472 lt_cv_prog_cc_pic=
2862 lt_cv_prog_cc_can_build_shared=no 5473 lt_cv_prog_cc_can_build_shared=no
2863 else 5474 else
2864 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" 5475 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
2865 fi 5476 fi
2866 5477
5478 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
2867 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6 5479echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
2868fi 5480fi
2869## 5481##
2870## END FIXME 5482## END FIXME
2871 5483
2872# Check for any special shared library compilation flags. 5484# Check for any special shared library compilation flags.
2873if test -n "$lt_cv_prog_cc_shlib"; then 5485if test -n "$lt_cv_prog_cc_shlib"; then
5486 { 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 5487echo "$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 : 5488 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
2876 else 5489 else
5490 { 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 5491echo "$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 5492 lt_cv_prog_cc_can_build_shared=no
2879 fi 5493 fi
2880fi 5494fi
2881 5495
2882## FIXME: this should be a separate macro 5496## FIXME: this should be a separate macro
2883## 5497##
5498echo "$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 5499echo $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 5500if test "${lt_cv_prog_cc_static_works+set}" = set; then
2887 echo $ac_n "(cached) $ac_c" 1>&6 5501 echo $ECHO_N "(cached) $ECHO_C" >&6
2888else 5502else
2889 lt_cv_prog_cc_static_works=no 5503 lt_cv_prog_cc_static_works=no
2890 save_LDFLAGS="$LDFLAGS" 5504 save_LDFLAGS="$LDFLAGS"
2891 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" 5505 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
2892 cat > conftest.$ac_ext <<EOF 5506 cat >conftest.$ac_ext <<_ACEOF
2893#line 2894 "configure" 5507/* confdefs.h. */
2894#include "confdefs.h" 5508_ACEOF
5509cat confdefs.h >>conftest.$ac_ext
5510cat >>conftest.$ac_ext <<_ACEOF
5511/* end confdefs.h. */
2895 5512
2896int main() { 5513int
5514main ()
5515{
2897 5516
5517 ;
2898; return 0; } 5518 return 0;
2899EOF 5519}
2900if { (eval echo configure:2901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5520_ACEOF
5521rm -f conftest.$ac_objext conftest$ac_exeext
5522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5523 (eval $ac_link) 2>conftest.er1
5524 ac_status=$?
5525 grep -v '^ *+' conftest.er1 >conftest.err
2901 rm -rf conftest* 5526 rm -f conftest.er1
5527 cat conftest.err >&5
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); } &&
5530 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5532 (eval $ac_try) 2>&5
5533 ac_status=$?
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); }; } &&
5536 { ac_try='test -s conftest$ac_exeext'
5537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5538 (eval $ac_try) 2>&5
5539 ac_status=$?
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); }; }; then
2902 lt_cv_prog_cc_static_works=yes 5542 lt_cv_prog_cc_static_works=yes
2903else 5543else
2904 echo "configure: failed program was:" >&5 5544 echo "$as_me: failed program was:" >&5
2905 cat conftest.$ac_ext >&5 5545sed 's/^/| /' conftest.$ac_ext >&5
5546
2906fi 5547fi
2907rm -f conftest* 5548rm -f conftest.err conftest.$ac_objext \
5549 conftest$ac_exeext conftest.$ac_ext
2908 LDFLAGS="$save_LDFLAGS" 5550 LDFLAGS="$save_LDFLAGS"
2909 5551
2910fi 5552fi
2911 5553
2912 5554
2913# Belt *and* braces to stop my trousers falling down: 5555# Belt *and* braces to stop my trousers falling down:
2914test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= 5556test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5557echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
2915echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6 5558echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
2916 5559
2917pic_flag="$lt_cv_prog_cc_pic" 5560pic_flag="$lt_cv_prog_cc_pic"
2918special_shlib_compile_flags="$lt_cv_prog_cc_shlib" 5561special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
2919wl="$lt_cv_prog_cc_wl" 5562wl="$lt_cv_prog_cc_wl"
2920link_static_flag="$lt_cv_prog_cc_static" 5563link_static_flag="$lt_cv_prog_cc_static"
2925 5568
2926 5569
2927## FIXME: this should be a separate macro 5570## FIXME: this should be a separate macro
2928## 5571##
2929# Check to see if options -o and -c are simultaneously supported by compiler 5572# Check to see if options -o and -c are simultaneously supported by compiler
5573echo "$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 5574echo $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 5575$rm -r conftest 2>/dev/null
2933mkdir conftest 5576mkdir conftest
2934cd conftest 5577cd conftest
2935echo "int some_variable = 0;" > conftest.$ac_ext 5578echo "int some_variable = 0;" > conftest.$ac_ext
2936mkdir out 5579mkdir out
2941# builds. 5584# builds.
2942chmod -w . 5585chmod -w .
2943save_CFLAGS="$CFLAGS" 5586save_CFLAGS="$CFLAGS"
2944CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" 5587CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
2945compiler_c_o=no 5588compiler_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 5589if { (eval echo configure:5589: \"$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 5590 # The compiler can only warn and ignore the option if not recognized
2948 # So say no if there are warnings 5591 # So say no if there are warnings
2949 if test -s out/conftest.err; then 5592 if test -s out/conftest.err; then
2950 compiler_c_o=no 5593 compiler_c_o=no
2951 else 5594 else
2954else 5597else
2955 # Append any errors to the config.log. 5598 # Append any errors to the config.log.
2956 cat out/conftest.err 1>&5 5599 cat out/conftest.err 1>&5
2957 compiler_c_o=no 5600 compiler_c_o=no
2958fi 5601fi
5602echo "$as_me:$LINENO: result: $compiler_c_o" >&5
2959echo "$ac_t""$compiler_c_o" 1>&6 5603echo "${ECHO_T}$compiler_c_o" >&6
2960CFLAGS="$save_CFLAGS" 5604CFLAGS="$save_CFLAGS"
2961chmod u+w . 5605chmod u+w .
2962$rm conftest* out/* 5606$rm conftest* out/*
2963rmdir out 5607rmdir out
2964cd .. 5608cd ..
2965rmdir conftest 5609rmdir conftest
2966$rm -r conftest 2>/dev/null 5610$rm -r conftest 2>/dev/null
2967 5611
2968if test x"$compiler_c_o" = x"yes"; then 5612if test x"$compiler_c_o" = x"yes"; then
2969 # Check to see if we can write to a .lo 5613 # Check to see if we can write to a .lo
5614 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 5615echo $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 5616 compiler_o_lo=no
2973 save_CFLAGS="$CFLAGS" 5617 save_CFLAGS="$CFLAGS"
2974 CFLAGS="$CFLAGS -c -o conftest.lo" 5618 CFLAGS="$CFLAGS -c -o conftest.lo"
2975 cat > conftest.$ac_ext <<EOF 5619 cat >conftest.$ac_ext <<_ACEOF
2976#line 2977 "configure" 5620/* confdefs.h. */
2977#include "confdefs.h" 5621_ACEOF
5622cat confdefs.h >>conftest.$ac_ext
5623cat >>conftest.$ac_ext <<_ACEOF
5624/* end confdefs.h. */
2978 5625
2979int main() { 5626int
5627main ()
5628{
2980int some_variable = 0; 5629int some_variable = 0;
5630 ;
2981; return 0; } 5631 return 0;
2982EOF 5632}
2983if { (eval echo configure:2984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5633_ACEOF
5634rm -f conftest.$ac_objext
5635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5636 (eval $ac_compile) 2>conftest.er1
5637 ac_status=$?
5638 grep -v '^ *+' conftest.er1 >conftest.err
2984 rm -rf conftest* 5639 rm -f conftest.er1
5640 cat conftest.err >&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); } &&
5643 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5645 (eval $ac_try) 2>&5
5646 ac_status=$?
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); }; } &&
5649 { ac_try='test -s conftest.$ac_objext'
5650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5651 (eval $ac_try) 2>&5
5652 ac_status=$?
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); }; }; then
2985 # The compiler can only warn and ignore the option if not recognized 5655 # The compiler can only warn and ignore the option if not recognized
2986 # So say no if there are warnings 5656 # So say no if there are warnings
2987 if test -s conftest.err; then 5657 if test -s conftest.err; then
2988 compiler_o_lo=no 5658 compiler_o_lo=no
2989 else 5659 else
2990 compiler_o_lo=yes 5660 compiler_o_lo=yes
2991 fi 5661 fi
2992 5662
2993else 5663else
2994 echo "configure: failed program was:" >&5 5664 echo "$as_me: failed program was:" >&5
2995 cat conftest.$ac_ext >&5 5665sed 's/^/| /' conftest.$ac_ext >&5
5666
2996fi 5667fi
2997rm -f conftest* 5668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5669 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
2998 echo "$ac_t""$compiler_c_o" 1>&6 5670echo "${ECHO_T}$compiler_c_o" >&6
2999 CFLAGS="$save_CFLAGS" 5671 CFLAGS="$save_CFLAGS"
3000else 5672else
3001 compiler_o_lo=no 5673 compiler_o_lo=no
3002fi 5674fi
3003## 5675##
3007## 5679##
3008# Check to see if we can do hard links to lock some files if needed 5680# Check to see if we can do hard links to lock some files if needed
3009hard_links="nottested" 5681hard_links="nottested"
3010if test "$compiler_c_o" = no && test "$need_locks" != no; then 5682if test "$compiler_c_o" = no && test "$need_locks" != no; then
3011 # do not overwrite the value of need_locks provided by the user 5683 # do not overwrite the value of need_locks provided by the user
5684 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 5685echo $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 5686 hard_links=yes
3015 $rm conftest* 5687 $rm conftest*
3016 ln conftest.a conftest.b 2>/dev/null && hard_links=no 5688 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3017 touch conftest.a 5689 touch conftest.a
3018 ln conftest.a conftest.b 2>&5 || hard_links=no 5690 ln conftest.a conftest.b 2>&5 || hard_links=no
3019 ln conftest.a conftest.b 2>/dev/null && hard_links=no 5691 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5692 echo "$as_me:$LINENO: result: $hard_links" >&5
3020 echo "$ac_t""$hard_links" 1>&6 5693echo "${ECHO_T}$hard_links" >&6
3021 if test "$hard_links" = no; then 5694 if test "$hard_links" = no; then
5695 { 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 5696echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
3023 need_locks=warn 5697 need_locks=warn
3024 fi 5698 fi
3025else 5699else
3026 need_locks=no 5700 need_locks=no
3027fi 5701fi
3030 5704
3031## FIXME: this should be a separate macro 5705## FIXME: this should be a separate macro
3032## 5706##
3033if test "$GCC" = yes; then 5707if test "$GCC" = yes; then
3034 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler 5708 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5709 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 5710echo $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 5711 echo "int some_variable = 0;" > conftest.$ac_ext
3038 save_CFLAGS="$CFLAGS" 5712 save_CFLAGS="$CFLAGS"
3039 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" 5713 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3040 compiler_rtti_exceptions=no 5714 compiler_rtti_exceptions=no
3041 cat > conftest.$ac_ext <<EOF 5715 cat >conftest.$ac_ext <<_ACEOF
3042#line 3043 "configure" 5716/* confdefs.h. */
3043#include "confdefs.h" 5717_ACEOF
5718cat confdefs.h >>conftest.$ac_ext
5719cat >>conftest.$ac_ext <<_ACEOF
5720/* end confdefs.h. */
3044 5721
3045int main() { 5722int
5723main ()
5724{
3046int some_variable = 0; 5725int some_variable = 0;
5726 ;
3047; return 0; } 5727 return 0;
3048EOF 5728}
3049if { (eval echo configure:3050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5729_ACEOF
5730rm -f conftest.$ac_objext
5731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5732 (eval $ac_compile) 2>conftest.er1
5733 ac_status=$?
5734 grep -v '^ *+' conftest.er1 >conftest.err
3050 rm -rf conftest* 5735 rm -f conftest.er1
5736 cat conftest.err >&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); } &&
5739 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5741 (eval $ac_try) 2>&5
5742 ac_status=$?
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); }; } &&
5745 { ac_try='test -s conftest.$ac_objext'
5746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5747 (eval $ac_try) 2>&5
5748 ac_status=$?
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }; }; then
3051 # The compiler can only warn and ignore the option if not recognized 5751 # The compiler can only warn and ignore the option if not recognized
3052 # So say no if there are warnings 5752 # So say no if there are warnings
3053 if test -s conftest.err; then 5753 if test -s conftest.err; then
3054 compiler_rtti_exceptions=no 5754 compiler_rtti_exceptions=no
3055 else 5755 else
3056 compiler_rtti_exceptions=yes 5756 compiler_rtti_exceptions=yes
3057 fi 5757 fi
3058 5758
3059else 5759else
3060 echo "configure: failed program was:" >&5 5760 echo "$as_me: failed program was:" >&5
3061 cat conftest.$ac_ext >&5 5761sed 's/^/| /' conftest.$ac_ext >&5
5762
3062fi 5763fi
3063rm -f conftest* 5764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3064 CFLAGS="$save_CFLAGS" 5765 CFLAGS="$save_CFLAGS"
5766 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
3065 echo "$ac_t""$compiler_rtti_exceptions" 1>&6 5767echo "${ECHO_T}$compiler_rtti_exceptions" >&6
3066 5768
3067 if test "$compiler_rtti_exceptions" = "yes"; then 5769 if test "$compiler_rtti_exceptions" = "yes"; then
3068 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' 5770 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
3069 else 5771 else
3070 no_builtin_flag=' -fno-builtin' 5772 no_builtin_flag=' -fno-builtin'
3074## END FIXME 5776## END FIXME
3075 5777
3076## FIXME: this should be a separate macro 5778## FIXME: this should be a separate macro
3077## 5779##
3078# See if the linker supports building shared libraries. 5780# See if the linker supports building shared libraries.
5781echo "$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 5782echo $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 5783
3082allow_undefined_flag= 5784allow_undefined_flag=
3083no_undefined_flag= 5785no_undefined_flag=
3084need_lib_prefix=unknown 5786need_lib_prefix=unknown
3085need_version=unknown 5787need_version=unknown
3632 *) 6334 *)
3633 ld_shlibs=no 6335 ld_shlibs=no
3634 ;; 6336 ;;
3635 esac 6337 esac
3636fi 6338fi
6339echo "$as_me:$LINENO: result: $ld_shlibs" >&5
3637echo "$ac_t""$ld_shlibs" 1>&6 6340echo "${ECHO_T}$ld_shlibs" >&6
3638test "$ld_shlibs" = no && can_build_shared=no 6341test "$ld_shlibs" = no && can_build_shared=no
3639## 6342##
3640## END FIXME 6343## END FIXME
3641 6344
3642## FIXME: this should be a separate macro 6345## FIXME: this should be a separate macro
3643## 6346##
3644# Check hardcoding attributes. 6347# Check hardcoding attributes.
6348echo "$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 6349echo $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= 6350hardcode_action=
3648if test -n "$hardcode_libdir_flag_spec" || \ 6351if test -n "$hardcode_libdir_flag_spec" || \
3649 test -n "$runpath_var"; then 6352 test -n "$runpath_var"; then
3650 6353
3651 # We can hardcode non-existant directories. 6354 # We can hardcode non-existant directories.
3664else 6367else
3665 # We cannot hardcode anything, or else we can only hardcode existing 6368 # We cannot hardcode anything, or else we can only hardcode existing
3666 # directories. 6369 # directories.
3667 hardcode_action=unsupported 6370 hardcode_action=unsupported
3668fi 6371fi
6372echo "$as_me:$LINENO: result: $hardcode_action" >&5
3669echo "$ac_t""$hardcode_action" 1>&6 6373echo "${ECHO_T}$hardcode_action" >&6
3670## 6374##
3671## END FIXME 6375## END FIXME
3672 6376
3673## FIXME: this should be a separate macro 6377## FIXME: this should be a separate macro
3674## 6378##
3675striplib= 6379striplib=
3676old_striplib= 6380old_striplib=
6381echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
3677echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6 6382echo $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 6383if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
3680 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 6384 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3681 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 6385 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3682 echo "$ac_t""yes" 1>&6 6386 echo "$as_me:$LINENO: result: yes" >&5
6387echo "${ECHO_T}yes" >&6
3683else 6388else
3684 echo "$ac_t""no" 1>&6 6389 echo "$as_me:$LINENO: result: no" >&5
6390echo "${ECHO_T}no" >&6
3685fi 6391fi
3686## 6392##
3687## END FIXME 6393## END FIXME
3688 6394
3689reload_cmds='$LD$reload_flag -o $output$reload_objs' 6395reload_cmds='$LD$reload_flag -o $output$reload_objs'
3690test -z "$deplibs_check_method" && deplibs_check_method=unknown 6396test -z "$deplibs_check_method" && deplibs_check_method=unknown
3691 6397
3692## FIXME: this should be a separate macro 6398## FIXME: this should be a separate macro
3693## 6399##
3694# PORTME Fill in your ld.so characteristics 6400# PORTME Fill in your ld.so characteristics
6401echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
3695echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6 6402echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
3696echo "configure:3697: checking dynamic linker characteristics" >&5
3697library_names_spec= 6403library_names_spec=
3698libname_spec='lib$name' 6404libname_spec='lib$name'
3699soname_spec= 6405soname_spec=
3700postinstall_cmds= 6406postinstall_cmds=
3701postuninstall_cmds= 6407postuninstall_cmds=
4017 6723
4018*) 6724*)
4019 dynamic_linker=no 6725 dynamic_linker=no
4020 ;; 6726 ;;
4021esac 6727esac
6728echo "$as_me:$LINENO: result: $dynamic_linker" >&5
4022echo "$ac_t""$dynamic_linker" 1>&6 6729echo "${ECHO_T}$dynamic_linker" >&6
4023test "$dynamic_linker" = no && can_build_shared=no 6730test "$dynamic_linker" = no && can_build_shared=no
4024## 6731##
4025## END FIXME 6732## END FIXME
4026 6733
4027## FIXME: this should be a separate macro 6734## FIXME: this should be a separate macro
4028## 6735##
4029# Report the final consequences. 6736# Report the final consequences.
6737echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
4030echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6 6738echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
4031echo "configure:4032: checking if libtool supports shared libraries" >&5 6739echo "$as_me:$LINENO: result: $can_build_shared" >&5
4032echo "$ac_t""$can_build_shared" 1>&6 6740echo "${ECHO_T}$can_build_shared" >&6
4033## 6741##
4034## END FIXME 6742## END FIXME
4035 6743
4036if test "$hardcode_action" = relink; then 6744if test "$hardcode_action" = relink; then
4037 # Fast installation is not supported 6745 # Fast installation is not supported
4066 lt_cv_dlopen="LoadLibrary" 6774 lt_cv_dlopen="LoadLibrary"
4067 lt_cv_dlopen_libs= 6775 lt_cv_dlopen_libs=
4068 ;; 6776 ;;
4069 6777
4070 *) 6778 *)
6779 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4071 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 6780echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4072echo "configure:4073: checking for dlopen in -ldl" >&5 6781if 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 6782 echo $ECHO_N "(cached) $ECHO_C" >&6
4076else 6783else
4077 ac_save_LIBS="$LIBS" 6784 ac_check_lib_save_LIBS=$LIBS
4078LIBS="-ldl $LIBS" 6785LIBS="-ldl $LIBS"
4079cat > conftest.$ac_ext <<EOF 6786cat >conftest.$ac_ext <<_ACEOF
4080#line 4081 "configure" 6787/* confdefs.h. */
4081#include "confdefs.h" 6788_ACEOF
6789cat confdefs.h >>conftest.$ac_ext
6790cat >>conftest.$ac_ext <<_ACEOF
6791/* end confdefs.h. */
6792
4082/* Override any gcc2 internal prototype to avoid an error. */ 6793/* Override any gcc2 internal prototype to avoid an error. */
6794#ifdef __cplusplus
6795extern "C"
6796#endif
4083/* We use char because int might match the return type of a gcc2 6797/* We use char because int might match the return type of a gcc2
4084 builtin and then its argument prototype would still apply. */ 6798 builtin and then its argument prototype would still apply. */
4085char dlopen(); 6799char dlopen ();
4086 6800int
4087int main() { 6801main ()
6802{
4088dlopen() 6803dlopen ();
6804 ;
4089; return 0; } 6805 return 0;
4090EOF 6806}
4091if { (eval echo configure:4092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6807_ACEOF
6808rm -f conftest.$ac_objext conftest$ac_exeext
6809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6810 (eval $ac_link) 2>conftest.er1
6811 ac_status=$?
6812 grep -v '^ *+' conftest.er1 >conftest.err
4092 rm -rf conftest* 6813 rm -f conftest.er1
4093 eval "ac_cv_lib_$ac_lib_var=yes" 6814 cat conftest.err >&5
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); } &&
6817 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6819 (eval $ac_try) 2>&5
6820 ac_status=$?
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); }; } &&
6823 { ac_try='test -s conftest$ac_exeext'
6824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6825 (eval $ac_try) 2>&5
6826 ac_status=$?
6827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 (exit $ac_status); }; }; then
6829 ac_cv_lib_dl_dlopen=yes
4094else 6830else
4095 echo "configure: failed program was:" >&5 6831 echo "$as_me: failed program was:" >&5
4096 cat conftest.$ac_ext >&5 6832sed 's/^/| /' conftest.$ac_ext >&5
4097 rm -rf conftest* 6833
4098 eval "ac_cv_lib_$ac_lib_var=no" 6834ac_cv_lib_dl_dlopen=no
4099fi 6835fi
4100rm -f conftest* 6836rm -f conftest.err conftest.$ac_objext \
6837 conftest$ac_exeext conftest.$ac_ext
4101LIBS="$ac_save_LIBS" 6838LIBS=$ac_check_lib_save_LIBS
4102
4103fi 6839fi
4104if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 6840echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4105 echo "$ac_t""yes" 1>&6 6841echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6842if test $ac_cv_lib_dl_dlopen = yes; then
4106 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 6843 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
4107else 6844else
4108 echo "$ac_t""no" 1>&6 6845 echo "$as_me:$LINENO: checking for dlopen" >&5
4109echo $ac_n "checking for dlopen""... $ac_c" 1>&6 6846echo $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 6847if test "${ac_cv_func_dlopen+set}" = set; then
4112 echo $ac_n "(cached) $ac_c" 1>&6 6848 echo $ECHO_N "(cached) $ECHO_C" >&6
4113else 6849else
4114 cat > conftest.$ac_ext <<EOF 6850 cat >conftest.$ac_ext <<_ACEOF
4115#line 4116 "configure" 6851/* confdefs.h. */
4116#include "confdefs.h" 6852_ACEOF
6853cat confdefs.h >>conftest.$ac_ext
6854cat >>conftest.$ac_ext <<_ACEOF
6855/* end confdefs.h. */
6856/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
6857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6858#define dlopen innocuous_dlopen
6859
4117/* System header to define __stub macros and hopefully few prototypes, 6860/* System header to define __stub macros and hopefully few prototypes,
4118 which can conflict with char dlopen(); below. */ 6861 which can conflict with char dlopen (); below.
6862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6863 <limits.h> exists even on freestanding compilers. */
6864
6865#ifdef __STDC__
6866# include <limits.h>
6867#else
4119#include <assert.h> 6868# include <assert.h>
6869#endif
6870
6871#undef dlopen
6872
4120/* Override any gcc2 internal prototype to avoid an error. */ 6873/* Override any gcc2 internal prototype to avoid an error. */
6874#ifdef __cplusplus
6875extern "C"
6876{
6877#endif
4121/* We use char because int might match the return type of a gcc2 6878/* We use char because int might match the return type of a gcc2
4122 builtin and then its argument prototype would still apply. */ 6879 builtin and then its argument prototype would still apply. */
4123char dlopen(); 6880char dlopen ();
4124
4125int main() {
4126
4127/* The GNU C library defines this for functions which it implements 6881/* The GNU C library defines this for functions which it implements
4128 to always fail with ENOSYS. Some functions are actually named 6882 to always fail with ENOSYS. Some functions are actually named
4129 something starting with __ and the normal name is an alias. */ 6883 something starting with __ and the normal name is an alias. */
4130#if defined (__stub_dlopen) || defined (__stub___dlopen) 6884#if defined (__stub_dlopen) || defined (__stub___dlopen)
4131choke me 6885choke me
4132#else 6886#else
4133dlopen(); 6887char (*f) () = dlopen;
4134#endif 6888#endif
6889#ifdef __cplusplus
6890}
6891#endif
4135 6892
6893int
6894main ()
6895{
6896return f != dlopen;
6897 ;
4136; return 0; } 6898 return 0;
4137EOF 6899}
4138if { (eval echo configure:4139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6900_ACEOF
6901rm -f conftest.$ac_objext conftest$ac_exeext
6902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6903 (eval $ac_link) 2>conftest.er1
6904 ac_status=$?
6905 grep -v '^ *+' conftest.er1 >conftest.err
4139 rm -rf conftest* 6906 rm -f conftest.er1
6907 cat conftest.err >&5
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); } &&
6910 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6912 (eval $ac_try) 2>&5
6913 ac_status=$?
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); }; } &&
6916 { ac_try='test -s conftest$ac_exeext'
6917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6918 (eval $ac_try) 2>&5
6919 ac_status=$?
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); }; }; then
4140 eval "ac_cv_func_dlopen=yes" 6922 ac_cv_func_dlopen=yes
4141else 6923else
4142 echo "configure: failed program was:" >&5 6924 echo "$as_me: failed program was:" >&5
4143 cat conftest.$ac_ext >&5 6925sed 's/^/| /' conftest.$ac_ext >&5
4144 rm -rf conftest* 6926
4145 eval "ac_cv_func_dlopen=no" 6927ac_cv_func_dlopen=no
4146fi 6928fi
4147rm -f conftest* 6929rm -f conftest.err conftest.$ac_objext \
6930 conftest$ac_exeext conftest.$ac_ext
4148fi 6931fi
4149 6932echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6933echo "${ECHO_T}$ac_cv_func_dlopen" >&6
4150if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then 6934if test $ac_cv_func_dlopen = yes; then
4151 echo "$ac_t""yes" 1>&6
4152 lt_cv_dlopen="dlopen" 6935 lt_cv_dlopen="dlopen"
4153else 6936else
4154 echo "$ac_t""no" 1>&6 6937 echo "$as_me:$LINENO: checking for shl_load" >&5
4155echo $ac_n "checking for shl_load""... $ac_c" 1>&6 6938echo $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 6939if test "${ac_cv_func_shl_load+set}" = set; then
4158 echo $ac_n "(cached) $ac_c" 1>&6 6940 echo $ECHO_N "(cached) $ECHO_C" >&6
4159else 6941else
4160 cat > conftest.$ac_ext <<EOF 6942 cat >conftest.$ac_ext <<_ACEOF
4161#line 4162 "configure" 6943/* confdefs.h. */
4162#include "confdefs.h" 6944_ACEOF
6945cat confdefs.h >>conftest.$ac_ext
6946cat >>conftest.$ac_ext <<_ACEOF
6947/* end confdefs.h. */
6948/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
6949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6950#define shl_load innocuous_shl_load
6951
4163/* System header to define __stub macros and hopefully few prototypes, 6952/* System header to define __stub macros and hopefully few prototypes,
4164 which can conflict with char shl_load(); below. */ 6953 which can conflict with char shl_load (); below.
6954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6955 <limits.h> exists even on freestanding compilers. */
6956
6957#ifdef __STDC__
6958# include <limits.h>
6959#else
4165#include <assert.h> 6960# include <assert.h>
6961#endif
6962
6963#undef shl_load
6964
4166/* Override any gcc2 internal prototype to avoid an error. */ 6965/* Override any gcc2 internal prototype to avoid an error. */
6966#ifdef __cplusplus
6967extern "C"
6968{
6969#endif
4167/* We use char because int might match the return type of a gcc2 6970/* We use char because int might match the return type of a gcc2
4168 builtin and then its argument prototype would still apply. */ 6971 builtin and then its argument prototype would still apply. */
4169char shl_load(); 6972char shl_load ();
4170
4171int main() {
4172
4173/* The GNU C library defines this for functions which it implements 6973/* The GNU C library defines this for functions which it implements
4174 to always fail with ENOSYS. Some functions are actually named 6974 to always fail with ENOSYS. Some functions are actually named
4175 something starting with __ and the normal name is an alias. */ 6975 something starting with __ and the normal name is an alias. */
4176#if defined (__stub_shl_load) || defined (__stub___shl_load) 6976#if defined (__stub_shl_load) || defined (__stub___shl_load)
4177choke me 6977choke me
4178#else 6978#else
4179shl_load(); 6979char (*f) () = shl_load;
4180#endif 6980#endif
6981#ifdef __cplusplus
6982}
6983#endif
4181 6984
6985int
6986main ()
6987{
6988return f != shl_load;
6989 ;
4182; return 0; } 6990 return 0;
4183EOF 6991}
4184if { (eval echo configure:4185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6992_ACEOF
6993rm -f conftest.$ac_objext conftest$ac_exeext
6994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6995 (eval $ac_link) 2>conftest.er1
6996 ac_status=$?
6997 grep -v '^ *+' conftest.er1 >conftest.err
4185 rm -rf conftest* 6998 rm -f conftest.er1
6999 cat conftest.err >&5
7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); } &&
7002 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7004 (eval $ac_try) 2>&5
7005 ac_status=$?
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); }; } &&
7008 { ac_try='test -s conftest$ac_exeext'
7009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7010 (eval $ac_try) 2>&5
7011 ac_status=$?
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); }; }; then
4186 eval "ac_cv_func_shl_load=yes" 7014 ac_cv_func_shl_load=yes
4187else 7015else
4188 echo "configure: failed program was:" >&5 7016 echo "$as_me: failed program was:" >&5
4189 cat conftest.$ac_ext >&5 7017sed 's/^/| /' conftest.$ac_ext >&5
4190 rm -rf conftest* 7018
4191 eval "ac_cv_func_shl_load=no" 7019ac_cv_func_shl_load=no
4192fi 7020fi
4193rm -f conftest* 7021rm -f conftest.err conftest.$ac_objext \
7022 conftest$ac_exeext conftest.$ac_ext
4194fi 7023fi
4195 7024echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7025echo "${ECHO_T}$ac_cv_func_shl_load" >&6
4196if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then 7026if test $ac_cv_func_shl_load = yes; then
4197 echo "$ac_t""yes" 1>&6
4198 lt_cv_dlopen="shl_load" 7027 lt_cv_dlopen="shl_load"
4199else 7028else
4200 echo "$ac_t""no" 1>&6 7029 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
4201echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6 7030echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
4202echo "configure:4203: checking for dlopen in -lsvld" >&5 7031if 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 7032 echo $ECHO_N "(cached) $ECHO_C" >&6
4206else 7033else
4207 ac_save_LIBS="$LIBS" 7034 ac_check_lib_save_LIBS=$LIBS
4208LIBS="-lsvld $LIBS" 7035LIBS="-lsvld $LIBS"
4209cat > conftest.$ac_ext <<EOF 7036cat >conftest.$ac_ext <<_ACEOF
4210#line 4211 "configure" 7037/* confdefs.h. */
4211#include "confdefs.h" 7038_ACEOF
7039cat confdefs.h >>conftest.$ac_ext
7040cat >>conftest.$ac_ext <<_ACEOF
7041/* end confdefs.h. */
7042
4212/* Override any gcc2 internal prototype to avoid an error. */ 7043/* Override any gcc2 internal prototype to avoid an error. */
7044#ifdef __cplusplus
7045extern "C"
7046#endif
4213/* We use char because int might match the return type of a gcc2 7047/* We use char because int might match the return type of a gcc2
4214 builtin and then its argument prototype would still apply. */ 7048 builtin and then its argument prototype would still apply. */
4215char dlopen(); 7049char dlopen ();
4216 7050int
4217int main() { 7051main ()
7052{
4218dlopen() 7053dlopen ();
7054 ;
4219; return 0; } 7055 return 0;
4220EOF 7056}
4221if { (eval echo configure:4222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7057_ACEOF
7058rm -f conftest.$ac_objext conftest$ac_exeext
7059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7060 (eval $ac_link) 2>conftest.er1
7061 ac_status=$?
7062 grep -v '^ *+' conftest.er1 >conftest.err
4222 rm -rf conftest* 7063 rm -f conftest.er1
4223 eval "ac_cv_lib_$ac_lib_var=yes" 7064 cat conftest.err >&5
7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); } &&
7067 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7069 (eval $ac_try) 2>&5
7070 ac_status=$?
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); }; } &&
7073 { ac_try='test -s conftest$ac_exeext'
7074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075 (eval $ac_try) 2>&5
7076 ac_status=$?
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); }; }; then
7079 ac_cv_lib_svld_dlopen=yes
4224else 7080else
4225 echo "configure: failed program was:" >&5 7081 echo "$as_me: failed program was:" >&5
4226 cat conftest.$ac_ext >&5 7082sed 's/^/| /' conftest.$ac_ext >&5
4227 rm -rf conftest* 7083
4228 eval "ac_cv_lib_$ac_lib_var=no" 7084ac_cv_lib_svld_dlopen=no
4229fi 7085fi
4230rm -f conftest* 7086rm -f conftest.err conftest.$ac_objext \
7087 conftest$ac_exeext conftest.$ac_ext
4231LIBS="$ac_save_LIBS" 7088LIBS=$ac_check_lib_save_LIBS
4232
4233fi 7089fi
4234if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 7090echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
4235 echo "$ac_t""yes" 1>&6 7091echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7092if test $ac_cv_lib_svld_dlopen = yes; then
4236 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 7093 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
4237else 7094else
4238 echo "$ac_t""no" 1>&6 7095 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
4239echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 7096echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
4240echo "configure:4241: checking for shl_load in -ldld" >&5 7097if 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 7098 echo $ECHO_N "(cached) $ECHO_C" >&6
4244else 7099else
4245 ac_save_LIBS="$LIBS" 7100 ac_check_lib_save_LIBS=$LIBS
4246LIBS="-ldld $LIBS" 7101LIBS="-ldld $LIBS"
4247cat > conftest.$ac_ext <<EOF 7102cat >conftest.$ac_ext <<_ACEOF
4248#line 4249 "configure" 7103/* confdefs.h. */
4249#include "confdefs.h" 7104_ACEOF
7105cat confdefs.h >>conftest.$ac_ext
7106cat >>conftest.$ac_ext <<_ACEOF
7107/* end confdefs.h. */
7108
4250/* Override any gcc2 internal prototype to avoid an error. */ 7109/* Override any gcc2 internal prototype to avoid an error. */
7110#ifdef __cplusplus
7111extern "C"
7112#endif
4251/* We use char because int might match the return type of a gcc2 7113/* We use char because int might match the return type of a gcc2
4252 builtin and then its argument prototype would still apply. */ 7114 builtin and then its argument prototype would still apply. */
4253char shl_load(); 7115char shl_load ();
4254 7116int
4255int main() { 7117main ()
7118{
4256shl_load() 7119shl_load ();
7120 ;
4257; return 0; } 7121 return 0;
4258EOF 7122}
4259if { (eval echo configure:4260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7123_ACEOF
7124rm -f conftest.$ac_objext conftest$ac_exeext
7125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7126 (eval $ac_link) 2>conftest.er1
7127 ac_status=$?
7128 grep -v '^ *+' conftest.er1 >conftest.err
4260 rm -rf conftest* 7129 rm -f conftest.er1
4261 eval "ac_cv_lib_$ac_lib_var=yes" 7130 cat conftest.err >&5
7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); } &&
7133 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7135 (eval $ac_try) 2>&5
7136 ac_status=$?
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); }; } &&
7139 { ac_try='test -s conftest$ac_exeext'
7140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7141 (eval $ac_try) 2>&5
7142 ac_status=$?
7143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144 (exit $ac_status); }; }; then
7145 ac_cv_lib_dld_shl_load=yes
4262else 7146else
4263 echo "configure: failed program was:" >&5 7147 echo "$as_me: failed program was:" >&5
4264 cat conftest.$ac_ext >&5 7148sed 's/^/| /' conftest.$ac_ext >&5
4265 rm -rf conftest* 7149
4266 eval "ac_cv_lib_$ac_lib_var=no" 7150ac_cv_lib_dld_shl_load=no
4267fi 7151fi
4268rm -f conftest* 7152rm -f conftest.err conftest.$ac_objext \
7153 conftest$ac_exeext conftest.$ac_ext
4269LIBS="$ac_save_LIBS" 7154LIBS=$ac_check_lib_save_LIBS
4270
4271fi 7155fi
4272if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 7156echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
4273 echo "$ac_t""yes" 1>&6 7157echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7158if test $ac_cv_lib_dld_shl_load = yes; then
4274 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 7159 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
4275else
4276 echo "$ac_t""no" 1>&6
4277fi 7160fi
4278 7161
4279
4280fi
4281 7162
4282
4283fi 7163fi
4284 7164
4285
4286fi
4287 7165
4288 7166fi
7167
7168
7169fi
7170
7171
4289fi 7172fi
4290 7173
4291 ;; 7174 ;;
4292 esac 7175 esac
4293 7176
4306 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 7189 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
4307 7190
4308 save_LIBS="$LIBS" 7191 save_LIBS="$LIBS"
4309 LIBS="$lt_cv_dlopen_libs $LIBS" 7192 LIBS="$lt_cv_dlopen_libs $LIBS"
4310 7193
7194 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 7195echo $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 7196if test "${lt_cv_dlopen_self+set}" = set; then
4314 echo $ac_n "(cached) $ac_c" 1>&6 7197 echo $ECHO_N "(cached) $ECHO_C" >&6
4315else 7198else
4316 if test "$cross_compiling" = yes; then : 7199 if test "$cross_compiling" = yes; then :
4317 lt_cv_dlopen_self=cross 7200 lt_cv_dlopen_self=cross
4318else 7201else
4319 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 7202 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4320 lt_status=$lt_dlunknown 7203 lt_status=$lt_dlunknown
4321 cat > conftest.$ac_ext <<EOF 7204 cat > conftest.$ac_ext <<EOF
4322#line 4323 "configure" 7205#line 7205 "configure"
4323#include "confdefs.h" 7206#include "confdefs.h"
4324 7207
4325#if HAVE_DLFCN_H 7208#if HAVE_DLFCN_H
4326#include <dlfcn.h> 7209#include <dlfcn.h>
4327#endif 7210#endif
4378 } 7261 }
4379 7262
4380 exit (status); 7263 exit (status);
4381} 7264}
4382EOF 7265EOF
4383 if { (eval echo configure:4384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then 7266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7267 (eval $ac_link) 2>&5
7268 ac_status=$?
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
4384 (./conftest; exit; ) 2>/dev/null 7271 (./conftest; exit; ) 2>/dev/null
4385 lt_status=$? 7272 lt_status=$?
4386 case x$lt_status in 7273 case x$lt_status in
4387 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 7274 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
4388 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 7275 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
4393 lt_cv_dlopen_self=no 7280 lt_cv_dlopen_self=no
4394 fi 7281 fi
4395fi 7282fi
4396rm -fr conftest* 7283rm -fr conftest*
4397 7284
4398
4399fi
4400 7285
7286fi
7287echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
4401echo "$ac_t""$lt_cv_dlopen_self" 1>&6 7288echo "${ECHO_T}$lt_cv_dlopen_self" >&6
4402 7289
4403 if test "x$lt_cv_dlopen_self" = xyes; then 7290 if test "x$lt_cv_dlopen_self" = xyes; then
4404 LDFLAGS="$LDFLAGS $link_static_flag" 7291 LDFLAGS="$LDFLAGS $link_static_flag"
7292 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 7293echo $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 7294if test "${lt_cv_dlopen_self_static+set}" = set; then
4408 echo $ac_n "(cached) $ac_c" 1>&6 7295 echo $ECHO_N "(cached) $ECHO_C" >&6
4409else 7296else
4410 if test "$cross_compiling" = yes; then : 7297 if test "$cross_compiling" = yes; then :
4411 lt_cv_dlopen_self_static=cross 7298 lt_cv_dlopen_self_static=cross
4412else 7299else
4413 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 7300 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4414 lt_status=$lt_dlunknown 7301 lt_status=$lt_dlunknown
4415 cat > conftest.$ac_ext <<EOF 7302 cat > conftest.$ac_ext <<EOF
4416#line 4417 "configure" 7303#line 7303 "configure"
4417#include "confdefs.h" 7304#include "confdefs.h"
4418 7305
4419#if HAVE_DLFCN_H 7306#if HAVE_DLFCN_H
4420#include <dlfcn.h> 7307#include <dlfcn.h>
4421#endif 7308#endif
4472 } 7359 }
4473 7360
4474 exit (status); 7361 exit (status);
4475} 7362}
4476EOF 7363EOF
4477 if { (eval echo configure:4478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then 7364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7365 (eval $ac_link) 2>&5
7366 ac_status=$?
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
4478 (./conftest; exit; ) 2>/dev/null 7369 (./conftest; exit; ) 2>/dev/null
4479 lt_status=$? 7370 lt_status=$?
4480 case x$lt_status in 7371 case x$lt_status in
4481 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 7372 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
4482 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 7373 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
4487 lt_cv_dlopen_self_static=no 7378 lt_cv_dlopen_self_static=no
4488 fi 7379 fi
4489fi 7380fi
4490rm -fr conftest* 7381rm -fr conftest*
4491 7382
4492
4493fi
4494 7383
7384fi
7385echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
4495echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6 7386echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
4496 fi 7387 fi
4497 7388
4498 CPPFLAGS="$save_CPPFLAGS" 7389 CPPFLAGS="$save_CPPFLAGS"
4499 LDFLAGS="$save_LDFLAGS" 7390 LDFLAGS="$save_LDFLAGS"
4500 LIBS="$save_LIBS" 7391 LIBS="$save_LIBS"
4522 ;; 7413 ;;
4523 '$CC '*) 7414 '$CC '*)
4524 # Test whether the compiler implicitly links with -lc since on some 7415 # Test whether the compiler implicitly links with -lc since on some
4525 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7416 # systems, -lgcc has to come before -lc. If gcc already passes -lc
4526 # to ld, don't add -lc before -lgcc. 7417 # to ld, don't add -lc before -lgcc.
7418 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 7419echo $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 7420 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
4530 echo $ac_n "(cached) $ac_c" 1>&6 7421 echo $ECHO_N "(cached) $ECHO_C" >&6
4531else 7422else
4532 $rm conftest* 7423 $rm conftest*
4533 echo 'static int dummy;' > conftest.$ac_ext 7424 echo 'static int dummy;' > conftest.$ac_ext
4534 7425
4535 if { (eval echo configure:4536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7427 (eval $ac_compile) 2>&5
7428 ac_status=$?
7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); }; then
4536 soname=conftest 7431 soname=conftest
4537 lib=conftest 7432 lib=conftest
4538 libobjs=conftest.$ac_objext 7433 libobjs=conftest.$ac_objext
4539 deplibs= 7434 deplibs=
4540 wl=$lt_cv_prog_cc_wl 7435 wl=$lt_cv_prog_cc_wl
4543 verstring= 7438 verstring=
4544 output_objdir=. 7439 output_objdir=.
4545 libname=conftest 7440 libname=conftest
4546 save_allow_undefined_flag=$allow_undefined_flag 7441 save_allow_undefined_flag=$allow_undefined_flag
4547 allow_undefined_flag= 7442 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; } 7443 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7444 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7445 ac_status=$?
7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); }
4549 then 7448 then
4550 lt_cv_archive_cmds_need_lc=no 7449 lt_cv_archive_cmds_need_lc=no
4551 else 7450 else
4552 lt_cv_archive_cmds_need_lc=yes 7451 lt_cv_archive_cmds_need_lc=yes
4553 fi 7452 fi
4555 else 7454 else
4556 cat conftest.err 1>&5 7455 cat conftest.err 1>&5
4557 fi 7456 fi
4558fi 7457fi
4559 7458
7459 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
4560 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6 7460echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
4561 ;; 7461 ;;
4562 esac 7462 esac
4563fi 7463fi
4564need_lc=${lt_cv_archive_cmds_need_lc-yes} 7464need_lc=${lt_cv_archive_cmds_need_lc-yes}
4565## 7465##
5130 8030
5131MALLOC_TYPE=S 8031MALLOC_TYPE=S
5132support_addstrings=no 8032support_addstrings=no
5133support_frills=no 8033support_frills=no
5134support_linespace=no 8034support_linespace=no
5135support_graphics=no
5136support_inheritpixmap=no 8035support_inheritpixmap=no
5137support_keepscrolling=no 8036support_keepscrolling=no
5138support_selectionscrolling=no 8037support_selectionscrolling=no
5139support_menubar=no 8038support_menubar=no
5140support_mousewheel=no 8039support_mousewheel=no
5141support_mouseslipwheel=no 8040support_mouseslipwheel=no
5142support_oldselection=no
5143support_utmp=no 8041support_utmp=no
5144support_wtmp=no 8042support_wtmp=no
5145support_lastlog=no 8043support_lastlog=no
5146support_cursor_blink=no 8044support_cursor_blink=no
8045support_text_blink=no
5147support_pointer_blank=no 8046support_pointer_blank=no
5148support_scroll_rxvt=no 8047support_scroll_rxvt=no
5149support_scroll_next=no 8048support_scroll_next=no
5150support_scroll_xterm=no 8049support_scroll_xterm=no
8050support_scroll_plain=no
5151support_xim=no 8051support_xim=no
5152support_xpm=no 8052support_xpm=no
5153support_xft=no 8053support_xft=no
5154support_unicode3=no 8054support_unicode3=no
8055support_combining=no
5155codesets= 8056codesets=
5156 8057
5157 8058
5158if test "x$enable_shared" = xyes; then 8059if test "x$enable_shared" = xyes; then
8060
5159 cat >> confdefs.h <<\EOF 8061cat >>confdefs.h <<\_ACEOF
5160#define LIBRXVT 1 8062#define LIBRXVT 1
5161EOF 8063_ACEOF
5162 8064
5163 INSTALL_LIBRXVT=yes 8065 INSTALL_LIBRXVT=yes
5164fi 8066fi
5165 8067
5166 8068
5169 enableval="$enable_everything" 8071 enableval="$enable_everything"
5170 if test x$enableval = xyes; then 8072 if test x$enableval = xyes; then
5171 support_24bit=yes 8073 support_24bit=yes
5172 support_frills=yes 8074 support_frills=yes
5173 support_linespace=yes 8075 support_linespace=yes
5174 support_graphics=yes
5175 support_inheritpixmap=yes 8076 support_inheritpixmap=yes
5176 support_keepscrolling=yes 8077 support_keepscrolling=yes
5177 support_selectionscrolling=yes 8078 support_selectionscrolling=yes
5178 support_lastlog=yes 8079 support_lastlog=yes
5179 support_menubar=yes 8080 support_menubar=yes
5180 support_mousewheel=yes 8081 support_mousewheel=yes
5181 support_mouseslipwheel=yes 8082 support_mouseslipwheel=yes
5182 support_oldselection=yes
5183 support_cursor_blink=yes 8083 support_cursor_blink=yes
8084 support_text_blink=yes
5184 support_pointer_blank=yes 8085 support_pointer_blank=yes
5185 support_scroll_rxvt=yes 8086 support_scroll_rxvt=yes
5186 support_scroll_next=yes 8087 support_scroll_next=yes
5187 support_scroll_xterm=yes 8088 support_scroll_xterm=yes
8089 support_scroll_plain=yes
5188 support_utmp=yes 8090 support_utmp=yes
5189 support_wtmp=yes 8091 support_wtmp=yes
5190 support_xim=yes 8092 support_xim=yes
5191 support_xpm=yes 8093 support_xpm=yes
5192 support_xft=yes 8094 support_xft=yes
5193 support_unicode3=yes 8095 support_unicode3=yes
8096 support_combining=yes
5194 codesets=all 8097 codesets=all
5195 fi 8098 fi
5196fi 8099fi;
5197
5198 8100
5199# Check whether --enable-unicode3 or --disable-unicode3 was given. 8101# Check whether --enable-unicode3 or --disable-unicode3 was given.
5200if test "${enable_unicode3+set}" = set; then 8102if test "${enable_unicode3+set}" = set; then
5201 enableval="$enable_unicode3" 8103 enableval="$enable_unicode3"
5202 if test x$enableval = xyes; then 8104 if test x$enableval = xyes -o x$enableval = xno; then
5203 support_unicode3=yes 8105 support_unicode3=yes
5204 fi 8106 fi
5205fi 8107fi;
5206 8108
8109# Check whether --enable-combining or --disable-combining was given.
8110if test "${enable_combining+set}" = set; then
8111 enableval="$enable_combining"
8112 if test x$enableval = xyes -o x$enableval = xno; then
8113 support_combining=yes
8114 fi
8115fi;
5207 8116
5208# Check whether --enable-xft or --disable-xft was given. 8117# Check whether --enable-xft or --disable-xft was given.
5209if test "${enable_xft+set}" = set; then 8118if test "${enable_xft+set}" = set; then
5210 enableval="$enable_xft" 8119 enableval="$enable_xft"
5211 if test x$enableval = xyes; then 8120 if test x$enableval = xyes -o x$enableval = xno; then
5212 support_xft=yes 8121 support_xft=yes
5213 fi 8122 fi
5214fi 8123fi;
5215
5216
5217# Check whether --with-codesets or --without-codesets was given.
5218if test "${with_codesets+set}" = set; then
5219 withval="$with_codesets"
5220 if test x$enableval = xyes; then
5221 codesets="$withval"
5222 fi
5223fi
5224
5225
5226# Check whether --with-encoding or --without-encoding was given.
5227if test "${with_encoding+set}" = set; then
5228 withval="$with_encoding"
5229 if test x$enableval = xyes; then
5230 withval=`echo $withval | tr 'a-z' 'A-Z'`
5231 cat >> confdefs.h <<EOF
5232#define MULTICHAR_ENCODING $withval
5233EOF
5234
5235 fi
5236fi
5237
5238 8124
5239# Check whether --enable-utmp or --disable-utmp was given. 8125# Check whether --enable-utmp or --disable-utmp was given.
5240if test "${enable_utmp+set}" = set; then 8126if test "${enable_utmp+set}" = set; then
5241 enableval="$enable_utmp" 8127 enableval="$enable_utmp"
5242 if test x$enableval = xyes -o x$enableval = xno; then 8128 if test x$enableval = xyes -o x$enableval = xno; then
5243 support_utmp=$enableval 8129 support_utmp=$enableval
5244 fi 8130 fi
5245fi 8131fi;
5246
5247 8132
5248# Check whether --enable-wtmp or --disable-wtmp was given. 8133# Check whether --enable-wtmp or --disable-wtmp was given.
5249if test "${enable_wtmp+set}" = set; then 8134if test "${enable_wtmp+set}" = set; then
5250 enableval="$enable_wtmp" 8135 enableval="$enable_wtmp"
5251 if test x$enableval = xyes -o x$enableval = xno; then 8136 if test x$enableval = xyes -o x$enableval = xno; then
5252 support_wtmp=$enableval 8137 support_wtmp=$enableval
5253 fi 8138 fi
5254fi 8139fi;
5255
5256 8140
5257# Check whether --enable-lastlog or --disable-lastlog was given. 8141# Check whether --enable-lastlog or --disable-lastlog was given.
5258if test "${enable_lastlog+set}" = set; then 8142if test "${enable_lastlog+set}" = set; then
5259 enableval="$enable_lastlog" 8143 enableval="$enable_lastlog"
5260 if test x$enableval = xyes -o x$enableval = xno; then 8144 if test x$enableval = xyes -o x$enableval = xno; then
5261 support_lastlog=$enableval 8145 support_lastlog=$enableval
5262 fi 8146 fi
5263fi 8147fi;
5264
5265 8148
5266# Check whether --enable-xpm-background or --disable-xpm-background was given. 8149# Check whether --enable-xpm-background or --disable-xpm-background was given.
5267if test "${enable_xpm_background+set}" = set; then 8150if test "${enable_xpm_background+set}" = set; then
5268 enableval="$enable_xpm_background" 8151 enableval="$enable_xpm_background"
5269 if test x$enableval = xyes -o x$enableval = xno; then 8152 if test x$enableval = xyes -o x$enableval = xno; then
5270 support_xpm=$enableval 8153 support_xpm=$enableval
5271 fi 8154 fi
5272fi 8155fi;
5273
5274 8156
5275# Check whether --enable-transparency or --disable-transparency was given. 8157# Check whether --enable-transparency or --disable-transparency was given.
5276if test "${enable_transparency+set}" = set; then 8158if test "${enable_transparency+set}" = set; then
5277 enableval="$enable_transparency" 8159 enableval="$enable_transparency"
5278 if test x$enableval = xyes -o x$enableval = xno; then 8160 if test x$enableval = xyes -o x$enableval = xno; then
5279 support_inheritpixmap=$enableval 8161 support_inheritpixmap=$enableval
5280 fi 8162 fi
5281fi 8163fi;
5282
5283 8164
5284# Check whether --enable-menubar or --disable-menubar was given. 8165# Check whether --enable-menubar or --disable-menubar was given.
5285if test "${enable_menubar+set}" = set; then 8166if test "${enable_menubar+set}" = set; then
5286 enableval="$enable_menubar" 8167 enableval="$enable_menubar"
5287 if test x$enableval = xyes -o x$enableval = xno; then 8168 if test x$enableval = xyes -o x$enableval = xno; then
5288 support_menubar=$enableval 8169 support_menubar=$enableval
5289 fi 8170 fi
5290fi 8171fi;
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 8172
5302# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given. 8173# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
5303if test "${enable_rxvt_scroll+set}" = set; then 8174if test "${enable_rxvt_scroll+set}" = set; then
5304 enableval="$enable_rxvt_scroll" 8175 enableval="$enable_rxvt_scroll"
5305 if test x$enableval = xyes -o x$enableval = xno; then 8176 if test x$enableval = xyes -o x$enableval = xno; then
5306 support_scroll_rxvt=$enableval 8177 support_scroll_rxvt=$enableval
5307 fi 8178 fi
5308fi 8179fi;
5309
5310 8180
5311# Check whether --enable-next-scroll or --disable-next-scroll was given. 8181# Check whether --enable-next-scroll or --disable-next-scroll was given.
5312if test "${enable_next_scroll+set}" = set; then 8182if test "${enable_next_scroll+set}" = set; then
5313 enableval="$enable_next_scroll" 8183 enableval="$enable_next_scroll"
5314 if test x$enableval = xyes -o x$enableval = xno; then 8184 if test x$enableval = xyes -o x$enableval = xno; then
5315 support_scroll_next=$enableval 8185 support_scroll_next=$enableval
5316 fi 8186 fi
5317fi 8187fi;
5318
5319 8188
5320# Check whether --enable-xterm-scroll or --disable-xterm-scroll was given. 8189# Check whether --enable-xterm-scroll or --disable-xterm-scroll was given.
5321if test "${enable_xterm_scroll+set}" = set; then 8190if test "${enable_xterm_scroll+set}" = set; then
5322 enableval="$enable_xterm_scroll" 8191 enableval="$enable_xterm_scroll"
5323 if test x$enableval = xyes -o x$enableval = xno; then 8192 if test x$enableval = xyes -o x$enableval = xno; then
5324 support_scroll_xterm=$enableval 8193 support_scroll_xterm=$enableval
5325 fi 8194 fi
5326fi 8195fi;
5327 8196
8197# Check whether --enable-plain-scroll or --disable-plain-scroll was given.
8198if test "${enable_plain_scroll+set}" = set; then
8199 enableval="$enable_plain_scroll"
8200 if test x$enableval = xyes -o x$enableval = xno; then
8201 support_scroll_plain=$enableval
8202 fi
8203fi;
5328 8204
5329# Check whether --enable-half-shadow or --disable-half-shadow was given. 8205# Check whether --enable-half-shadow or --disable-half-shadow was given.
5330if test "${enable_half_shadow+set}" = set; then 8206if test "${enable_half_shadow+set}" = set; then
5331 enableval="$enable_half_shadow" 8207 enableval="$enable_half_shadow"
5332 if test x$enableval = xyes; then 8208 if test x$enableval = xyes; then
8209
5333 cat >> confdefs.h <<\EOF 8210cat >>confdefs.h <<\_ACEOF
5334#define HALFSHADOW 1 8211#define HALFSHADOW 1
5335EOF 8212_ACEOF
5336 8213
5337 fi 8214 fi
5338fi 8215fi;
5339 8216
8217
8218# Check whether --with-codesets or --without-codesets was given.
8219if test "${with_codesets+set}" = set; then
8220 withval="$with_codesets"
8221 codesets="$withval"
8222fi;
5340 8223
5341# Check whether --enable-xim or --disable-xim was given. 8224# Check whether --enable-xim or --disable-xim was given.
5342if test "${enable_xim+set}" = set; then 8225if test "${enable_xim+set}" = set; then
5343 enableval="$enable_xim" 8226 enableval="$enable_xim"
5344 if test x$enableval = xyes -o x$enableval = xno; then 8227 if test x$enableval = xyes -o x$enableval = xno; then
5345 support_xim=$enableval 8228 support_xim=$enableval
5346 fi 8229 fi
5347fi 8230fi;
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 8231
5362# Check whether --enable-ttygid or --disable-ttygid was given. 8232# Check whether --enable-ttygid or --disable-ttygid was given.
5363if test "${enable_ttygid+set}" = set; then 8233if test "${enable_ttygid+set}" = set; then
5364 enableval="$enable_ttygid" 8234 enableval="$enable_ttygid"
5365 if test x$enableval = xyes; then 8235 if test x$enableval = xyes; then
8236
5366 cat >> confdefs.h <<\EOF 8237cat >>confdefs.h <<\_ACEOF
5367#define TTY_GID_SUPPORT 1 8238#define TTY_GID_SUPPORT 1
5368EOF 8239_ACEOF
5369 8240
5370 fi 8241 fi
5371fi 8242fi;
5372
5373 8243
5374# Check whether --enable-backspace-key or --disable-backspace-key was given. 8244# Check whether --enable-backspace-key or --disable-backspace-key was given.
5375if test "${enable_backspace_key+set}" = set; then 8245if test "${enable_backspace_key+set}" = set; then
5376 enableval="$enable_backspace_key" 8246 enableval="$enable_backspace_key"
5377 if test x$enableval = xno; then 8247 if test x$enableval = xno; then
8248
5378 cat >> confdefs.h <<\EOF 8249cat >>confdefs.h <<\_ACEOF
5379#define NO_BACKSPACE_KEY 1 8250#define NO_BACKSPACE_KEY 1
5380EOF 8251_ACEOF
5381 8252
5382 fi 8253 fi
5383fi 8254fi;
5384
5385 8255
5386# Check whether --enable-delete-key or --disable-delete-key was given. 8256# Check whether --enable-delete-key or --disable-delete-key was given.
5387if test "${enable_delete_key+set}" = set; then 8257if test "${enable_delete_key+set}" = set; then
5388 enableval="$enable_delete_key" 8258 enableval="$enable_delete_key"
5389 if test x$enableval = xno; then 8259 if test x$enableval = xno; then
8260
5390 cat >> confdefs.h <<\EOF 8261cat >>confdefs.h <<\_ACEOF
5391#define NO_DELETE_KEY 1 8262#define NO_DELETE_KEY 1
5392EOF 8263_ACEOF
5393 8264
5394 fi 8265 fi
5395fi 8266fi;
5396
5397 8267
5398# Check whether --enable-resources or --disable-resources was given. 8268# Check whether --enable-resources or --disable-resources was given.
5399if test "${enable_resources+set}" = set; then 8269if test "${enable_resources+set}" = set; then
5400 enableval="$enable_resources" 8270 enableval="$enable_resources"
5401 if test x$enableval = xno; then 8271 if test x$enableval = xno; then
8272
5402 cat >> confdefs.h <<\EOF 8273cat >>confdefs.h <<\_ACEOF
5403#define NO_RESOURCES 1 8274#define NO_RESOURCES 1
5404EOF 8275_ACEOF
5405 8276
5406 fi 8277 fi
5407fi 8278fi;
5408
5409 8279
5410# Check whether --enable-xgetdefault or --disable-xgetdefault was given. 8280# Check whether --enable-xgetdefault or --disable-xgetdefault was given.
5411if test "${enable_xgetdefault+set}" = set; then 8281if test "${enable_xgetdefault+set}" = set; then
5412 enableval="$enable_xgetdefault" 8282 enableval="$enable_xgetdefault"
5413 if test x$enableval = xyes; then 8283 if test x$enableval = xyes; then
8284
5414 cat >> confdefs.h <<\EOF 8285cat >>confdefs.h <<\_ACEOF
5415#define USE_XGETDEFAULT 1 8286#define USE_XGETDEFAULT 1
5416EOF 8287_ACEOF
5417 8288
5418 fi 8289 fi
5419fi 8290fi;
8291
8292RESFALLBACK=Rxvt
8293# Check whether --enable-fallback or --disable-fallback was given.
8294if test "${enable_fallback+set}" = set; then
8295 enableval="$enable_fallback"
8296
8297 test x$enableval = xyes && enableval=Rxvt
8298 test x$enableval = xno && enableval=
8299 RESFALLBACK="$enableval"
8300
8301fi;
8302
8303if test x$RESFALLBACK != x; then
8304
8305cat >>confdefs.h <<_ACEOF
8306#define RESFALLBACK "$RESFALLBACK"
8307_ACEOF
8308
8309fi
8310
8311RESNAME=urxvt
8312
8313# Check whether --with-res-name or --without-res-name was given.
8314if test "${with_res_name+set}" = set; then
8315 withval="$with_res_name"
8316 RESNAME="$withval"
8317fi;
8318
8319cat >>confdefs.h <<_ACEOF
8320#define RESNAME "$RESNAME"
8321_ACEOF
8322
8323
8324RESCLASS=URxvt
8325
8326# Check whether --with-res-class or --without-res-class was given.
8327if test "${with_res_class+set}" = set; then
8328 withval="$with_res_class"
8329 RESCLASS="$withval"
8330fi;
8331
8332cat >>confdefs.h <<_ACEOF
8333#define RESCLASS "$RESCLASS"
8334_ACEOF
8335
8336
8337RXVTNAME=urxvt
8338
8339# Check whether --with-name or --without-name was given.
8340if test "${with_name+set}" = set; then
8341 withval="$with_name"
8342 RXVTNAME="$withval"
8343fi;
8344
8345RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
5420 8346
5421 8347
5422# Check whether --enable-strings or --disable-strings was given. 8348# Check whether --enable-strings or --disable-strings was given.
5423if test "${enable_strings+set}" = set; then 8349if test "${enable_strings+set}" = set; then
5424 enableval="$enable_strings" 8350 enableval="$enable_strings"
5425 if test x$enableval = xyes -o x$enableval = xno; then 8351 if test x$enableval = xyes -o x$enableval = xno; then
5426 support_addstrings=$enableval 8352 support_addstrings=$enableval
5427 fi 8353 fi
5428fi 8354fi;
5429
5430 8355
5431# Check whether --enable-swapscreen or --disable-swapscreen was given. 8356# Check whether --enable-swapscreen or --disable-swapscreen was given.
5432if test "${enable_swapscreen+set}" = set; then 8357if test "${enable_swapscreen+set}" = set; then
5433 enableval="$enable_swapscreen" 8358 enableval="$enable_swapscreen"
5434 if test x$enableval = xno; then 8359 if test x$enableval = xno; then
8360
5435 cat >> confdefs.h <<\EOF 8361cat >>confdefs.h <<\_ACEOF
5436#define NO_SECONDARY_SCREEN 1 8362#define NO_SECONDARY_SCREEN 1
5437EOF 8363_ACEOF
5438 8364
5439 fi 8365 fi
5440fi 8366fi;
5441
5442 8367
5443# Check whether --enable-frills or --disable-frills was given. 8368# Check whether --enable-frills or --disable-frills was given.
5444if test "${enable_frills+set}" = set; then 8369if test "${enable_frills+set}" = set; then
5445 enableval="$enable_frills" 8370 enableval="$enable_frills"
5446 if test x$enableval = xyes -o x$enableval = xno; then 8371 if test x$enableval = xyes -o x$enableval = xno; then
5447 support_frills=$enableval 8372 support_frills=$enableval
5448 fi 8373 fi
5449fi 8374fi;
5450
5451 8375
5452# Check whether --enable-linespace or --disable-linespace was given. 8376# Check whether --enable-linespace or --disable-linespace was given.
5453if test "${enable_linespace+set}" = set; then 8377if test "${enable_linespace+set}" = set; then
5454 enableval="$enable_linespace" 8378 enableval="$enable_linespace"
5455 if test x$enableval = xyes -o x$enableval = xno; then 8379 if test x$enableval = xyes -o x$enableval = xno; then
5456 support_linespace=$enableval 8380 support_linespace=$enableval
5457 fi 8381 fi
5458fi 8382fi;
5459
5460 8383
5461# Check whether --enable-24bit or --disable-24bit was given. 8384# Check whether --enable-24bit or --disable-24bit was given.
5462if test "${enable_24bit+set}" = set; then 8385if test "${enable_24bit+set}" = set; then
5463 enableval="$enable_24bit" 8386 enableval="$enable_24bit"
5464 if test x$enableval = xyes -o x$enableval = xno; then 8387 if test x$enableval = xyes -o x$enableval = xno; then
5465 support_24bit=$enableval 8388 support_24bit=$enableval
5466 fi 8389 fi
5467fi 8390fi;
5468
5469 8391
5470# Check whether --enable-keepscrolling or --disable-keepscrolling was given. 8392# Check whether --enable-keepscrolling or --disable-keepscrolling was given.
5471if test "${enable_keepscrolling+set}" = set; then 8393if test "${enable_keepscrolling+set}" = set; then
5472 enableval="$enable_keepscrolling" 8394 enableval="$enable_keepscrolling"
5473 if test x$enableval = xyes -o x$enableval = xno; then 8395 if test x$enableval = xyes -o x$enableval = xno; then
5474 support_keepscrolling=$enableval 8396 support_keepscrolling=$enableval
5475 fi 8397 fi
5476fi 8398fi;
5477
5478 8399
5479# Check whether --enable-selectionscrolling or --disable-selectionscrolling was given. 8400# Check whether --enable-selectionscrolling or --disable-selectionscrolling was given.
5480if test "${enable_selectionscrolling+set}" = set; then 8401if test "${enable_selectionscrolling+set}" = set; then
5481 enableval="$enable_selectionscrolling" 8402 enableval="$enable_selectionscrolling"
5482 if test x$enableval = xyes -o x$enableval = xno; then 8403 if test x$enableval = xyes -o x$enableval = xno; then
5483 support_selectionscrolling=$enableval 8404 support_selectionscrolling=$enableval
5484 fi 8405 fi
5485fi 8406fi;
5486
5487 8407
5488# Check whether --enable-mousewheel or --disable-mousewheel was given. 8408# Check whether --enable-mousewheel or --disable-mousewheel was given.
5489if test "${enable_mousewheel+set}" = set; then 8409if test "${enable_mousewheel+set}" = set; then
5490 enableval="$enable_mousewheel" 8410 enableval="$enable_mousewheel"
5491 if test x$enableval = xyes -o x$enableval = xno; then 8411 if test x$enableval = xyes -o x$enableval = xno; then
5492 support_mousewheel=$enableval 8412 support_mousewheel=$enableval
5493 fi 8413 fi
5494fi 8414fi;
5495
5496 8415
5497# Check whether --enable-slipwheeling or --disable-slipwheeling was given. 8416# Check whether --enable-slipwheeling or --disable-slipwheeling was given.
5498if test "${enable_slipwheeling+set}" = set; then 8417if test "${enable_slipwheeling+set}" = set; then
5499 enableval="$enable_slipwheeling" 8418 enableval="$enable_slipwheeling"
5500 if test x$enableval = xyes -o x$enableval = xno; then 8419 if test x$enableval = xyes -o x$enableval = xno; then
5501 support_mouseslipwheel=$enableval 8420 support_mouseslipwheel=$enableval
5502 fi 8421 fi
5503fi 8422fi;
5504
5505
5506# Check whether --enable-old-selection or --disable-old-selection was given.
5507if test "${enable_old_selection+set}" = set; then
5508 enableval="$enable_old_selection"
5509 if test x$enableval = xyes -o x$enableval = xno; then
5510 support_oldselection=$enableval
5511 fi
5512fi
5513
5514
5515# Check whether --enable-new-selection or --disable-new-selection was given.
5516if test "${enable_new_selection+set}" = set; then
5517 enableval="$enable_new_selection"
5518 if test x$enableval = xno; then
5519 cat >> confdefs.h <<\EOF
5520#define NO_NEW_SELECTION 1
5521EOF
5522
5523 fi
5524fi
5525
5526 8423
5527# Check whether --enable-dmalloc or --disable-dmalloc was given. 8424# Check whether --enable-dmalloc or --disable-dmalloc was given.
5528if test "${enable_dmalloc+set}" = set; then 8425if test "${enable_dmalloc+set}" = set; then
5529 enableval="$enable_dmalloc" 8426 enableval="$enable_dmalloc"
5530 if test x$enableval = xyes; then 8427 if test x$enableval = xyes; then
5531 MALLOC_TYPE=G 8428 MALLOC_TYPE=G
5532 DEBUG=-DDEBUG_MALLOC 8429 DEBUG=-DDEBUG_MALLOC
5533 DLIB="-L/usr/local/lib -ldmalloc" 8430 DLIB="-L/usr/local/lib -ldmalloc"
5534 DINCLUDE=-I/usr/local/include 8431 DINCLUDE=-I/usr/local/include
5535 fi 8432 fi
5536fi 8433fi;
5537
5538 8434
5539# Check whether --enable-dlmalloc or --disable-dlmalloc was given. 8435# Check whether --enable-dlmalloc or --disable-dlmalloc was given.
5540if test "${enable_dlmalloc+set}" = set; then 8436if test "${enable_dlmalloc+set}" = set; then
5541 enableval="$enable_dlmalloc" 8437 enableval="$enable_dlmalloc"
5542 if test x$enableval = xyes; then 8438 if test x$enableval = xyes; then
5543 MALLOC_TYPE=D 8439 MALLOC_TYPE=D
5544 DEBUG= 8440 DEBUG=
5545 DLIB="-L/usr/local/lib -ldlmalloc" 8441 DLIB="-L/usr/local/lib -ldlmalloc"
5546 DINCLUDE= 8442 DINCLUDE=
5547 fi 8443 fi
5548fi 8444fi;
5549
5550 8445
5551# Check whether --enable-smart-resize or --disable-smart-resize was given. 8446# Check whether --enable-smart-resize or --disable-smart-resize was given.
5552if test "${enable_smart_resize+set}" = set; then 8447if test "${enable_smart_resize+set}" = set; then
5553 enableval="$enable_smart_resize" 8448 enableval="$enable_smart_resize"
5554 if test x$enableval = xyes; then 8449 if test x$enableval = xyes; then
8450
5555 cat >> confdefs.h <<\EOF 8451cat >>confdefs.h <<\_ACEOF
5556#define SMART_RESIZE 1 8452#define SMART_RESIZE 1
5557EOF 8453_ACEOF
5558 8454
5559 fi 8455 fi
5560fi 8456fi;
5561
5562 8457
5563# Check whether --enable-256-color or --disable-256-color was given. 8458# Check whether --enable-256-color or --disable-256-color was given.
5564if test "${enable_256_color+set}" = set; then 8459if test "${enable_256_color+set}" = set; then
5565 enableval="$enable_256_color" 8460 enableval="$enable_256_color"
5566 if test x$enableval = xyes; then 8461 if test x$enableval = xyes; then
8462
5567 cat >> confdefs.h <<\EOF 8463cat >>confdefs.h <<\_ACEOF
5568#define TTY_256COLOR 1 8464#define TTY_256COLOR 1
5569EOF 8465_ACEOF
5570 8466
5571 fi 8467 fi
5572fi 8468fi;
5573
5574 8469
5575# Check whether --enable-cursor-blink or --disable-cursor-blink was given. 8470# Check whether --enable-cursor-blink or --disable-cursor-blink was given.
5576if test "${enable_cursor_blink+set}" = set; then 8471if test "${enable_cursor_blink+set}" = set; then
5577 enableval="$enable_cursor_blink" 8472 enableval="$enable_cursor_blink"
5578 if test x$enableval = xyes -o x$enableval = xno; then 8473 if test x$enableval = xyes -o x$enableval = xno; then
5579 support_cursor_blink=$enableval 8474 support_cursor_blink=$enableval
5580 fi 8475 fi
5581fi 8476fi;
5582 8477
8478# Check whether --enable-text-blink or --disable-text-blink was given.
8479if test "${enable_text_blink+set}" = set; then
8480 enableval="$enable_text_blink"
8481 if test x$enableval = xyes -o x$enableval = xno; then
8482 support_text_blink=$enableval
8483 fi
8484fi;
5583 8485
5584# Check whether --enable-pointer-blank or --disable-pointer-blank was given. 8486# Check whether --enable-pointer-blank or --disable-pointer-blank was given.
5585if test "${enable_pointer_blank+set}" = set; then 8487if test "${enable_pointer_blank+set}" = set; then
5586 enableval="$enable_pointer_blank" 8488 enableval="$enable_pointer_blank"
5587 if test x$enableval = xyes -o x$enableval = xno; then 8489 if test x$enableval = xyes -o x$enableval = xno; then
5588 support_pointer_blank=$enableval 8490 support_pointer_blank=$enableval
5589 fi 8491 fi
5590fi 8492fi;
5591 8493
5592 8494
5593# Check whether --with-term or --without-term was given. 8495# Check whether --with-term or --without-term was given.
5594if test "${with_term+set}" = set; then 8496if test "${with_term+set}" = set; then
5595 withval="$with_term" 8497 withval="$with_term"
5596 if test x$withval != x; then 8498 if test x$withval != x; then
8499
5597 cat >> confdefs.h <<EOF 8500cat >>confdefs.h <<_ACEOF
5598#define TERMENV "$withval" 8501#define TERMENV "$withval"
5599EOF 8502_ACEOF
5600 term="$withval" 8503 term="$withval"
5601 fi 8504 fi
5602fi 8505fi;
5603 8506
5604 8507
5605# Check whether --with-terminfo or --without-terminfo was given. 8508# Check whether --with-terminfo or --without-terminfo was given.
5606if test "${with_terminfo+set}" = set; then 8509if test "${with_terminfo+set}" = set; then
5607 withval="$with_terminfo" 8510 withval="$with_terminfo"
5608 if test x$withval != x; then 8511 if test x$withval != x; then
8512
5609 cat >> confdefs.h <<EOF 8513cat >>confdefs.h <<_ACEOF
5610#define RXVT_TERMINFO "$withval" 8514#define RXVT_TERMINFO "$withval"
5611EOF 8515_ACEOF
5612 terminfo="$withval" 8516 terminfo="$withval"
5613 fi 8517 fi
5614fi 8518fi;
5615 8519
5616 8520
5617 8521
5618cat >> confdefs.h <<\EOF 8522cat >>confdefs.h <<\_ACEOF
5619#define PROTOTYPES 1 8523#define PROTOTYPES 1
5620EOF 8524_ACEOF
5621 8525
5622 8526
5623if test -z "$CFLAGS"; then 8527if test -z "$CFLAGS"; then
5624 if test -z "$CCOPTS"; then 8528 if test -z "$CCOPTS"; then
5625 CCOPTS='-O' 8529 CCOPTS='-O'
5627 CFLAGS="$CCOPTS" 8531 CFLAGS="$CCOPTS"
5628fi 8532fi
5629 8533
5630# Extract the first word of "mv", so it can be a program name with args. 8534# Extract the first word of "mv", so it can be a program name with args.
5631set dummy mv; ac_word=$2 8535set dummy mv; ac_word=$2
8536echo "$as_me:$LINENO: checking for $ac_word" >&5
5632echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8537echo $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 8538if test "${ac_cv_path_MV+set}" = set; then
5635 echo $ac_n "(cached) $ac_c" 1>&6 8539 echo $ECHO_N "(cached) $ECHO_C" >&6
5636else 8540else
5637 case "$MV" in 8541 case $MV in
5638 /*) 8542 [\\/]* | ?:[\\/]*)
5639 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8543 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5640 ;; 8544 ;;
5641 ?:/*)
5642 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
5643 ;;
5644 *) 8545 *)
5645 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646 ac_dummy="$PATH" 8547for as_dir in $PATH
5647 for ac_dir in $ac_dummy; do 8548do
8549 IFS=$as_save_IFS
5648 test -z "$ac_dir" && ac_dir=. 8550 test -z "$as_dir" && as_dir=.
5649 if test -f $ac_dir/$ac_word; then 8551 for ac_exec_ext in '' $ac_executable_extensions; do
8552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5650 ac_cv_path_MV="$ac_dir/$ac_word" 8553 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5651 break 8555 break 2
5652 fi 8556 fi
5653 done 8557done
5654 IFS="$ac_save_ifs" 8558done
8559
5655 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 8560 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5656 ;; 8561 ;;
5657esac 8562esac
5658fi 8563fi
5659MV="$ac_cv_path_MV" 8564MV=$ac_cv_path_MV
8565
5660if test -n "$MV"; then 8566if test -n "$MV"; then
5661 echo "$ac_t""$MV" 1>&6 8567 echo "$as_me:$LINENO: result: $MV" >&5
8568echo "${ECHO_T}$MV" >&6
5662else 8569else
5663 echo "$ac_t""no" 1>&6 8570 echo "$as_me:$LINENO: result: no" >&5
8571echo "${ECHO_T}no" >&6
5664fi 8572fi
5665 8573
5666# Extract the first word of "rm", so it can be a program name with args. 8574# Extract the first word of "rm", so it can be a program name with args.
5667set dummy rm; ac_word=$2 8575set dummy rm; ac_word=$2
8576echo "$as_me:$LINENO: checking for $ac_word" >&5
5668echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8577echo $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 8578if test "${ac_cv_path_RM+set}" = set; then
5671 echo $ac_n "(cached) $ac_c" 1>&6 8579 echo $ECHO_N "(cached) $ECHO_C" >&6
5672else 8580else
5673 case "$RM" in 8581 case $RM in
5674 /*) 8582 [\\/]* | ?:[\\/]*)
5675 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8583 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5676 ;; 8584 ;;
5677 ?:/*)
5678 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
5679 ;;
5680 *) 8585 *)
5681 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682 ac_dummy="$PATH" 8587for as_dir in $PATH
5683 for ac_dir in $ac_dummy; do 8588do
8589 IFS=$as_save_IFS
5684 test -z "$ac_dir" && ac_dir=. 8590 test -z "$as_dir" && as_dir=.
5685 if test -f $ac_dir/$ac_word; then 8591 for ac_exec_ext in '' $ac_executable_extensions; do
8592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5686 ac_cv_path_RM="$ac_dir/$ac_word" 8593 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5687 break 8595 break 2
5688 fi 8596 fi
5689 done 8597done
5690 IFS="$ac_save_ifs" 8598done
8599
5691 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" 8600 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5692 ;; 8601 ;;
5693esac 8602esac
5694fi 8603fi
5695RM="$ac_cv_path_RM" 8604RM=$ac_cv_path_RM
8605
5696if test -n "$RM"; then 8606if test -n "$RM"; then
5697 echo "$ac_t""$RM" 1>&6 8607 echo "$as_me:$LINENO: result: $RM" >&5
8608echo "${ECHO_T}$RM" >&6
5698else 8609else
5699 echo "$ac_t""no" 1>&6 8610 echo "$as_me:$LINENO: result: no" >&5
8611echo "${ECHO_T}no" >&6
5700fi 8612fi
5701 8613
5702# Extract the first word of "cp", so it can be a program name with args. 8614# Extract the first word of "cp", so it can be a program name with args.
5703set dummy cp; ac_word=$2 8615set dummy cp; ac_word=$2
8616echo "$as_me:$LINENO: checking for $ac_word" >&5
5704echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8617echo $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 8618if test "${ac_cv_path_CP+set}" = set; then
5707 echo $ac_n "(cached) $ac_c" 1>&6 8619 echo $ECHO_N "(cached) $ECHO_C" >&6
5708else 8620else
5709 case "$CP" in 8621 case $CP in
5710 /*) 8622 [\\/]* | ?:[\\/]*)
5711 ac_cv_path_CP="$CP" # Let the user override the test with a path. 8623 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5712 ;; 8624 ;;
5713 ?:/*)
5714 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
5715 ;;
5716 *) 8625 *)
5717 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718 ac_dummy="$PATH" 8627for as_dir in $PATH
5719 for ac_dir in $ac_dummy; do 8628do
8629 IFS=$as_save_IFS
5720 test -z "$ac_dir" && ac_dir=. 8630 test -z "$as_dir" && as_dir=.
5721 if test -f $ac_dir/$ac_word; then 8631 for ac_exec_ext in '' $ac_executable_extensions; do
8632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5722 ac_cv_path_CP="$ac_dir/$ac_word" 8633 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
8634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5723 break 8635 break 2
5724 fi 8636 fi
5725 done 8637done
5726 IFS="$ac_save_ifs" 8638done
8639
5727 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" 8640 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5728 ;; 8641 ;;
5729esac 8642esac
5730fi 8643fi
5731CP="$ac_cv_path_CP" 8644CP=$ac_cv_path_CP
8645
5732if test -n "$CP"; then 8646if test -n "$CP"; then
5733 echo "$ac_t""$CP" 1>&6 8647 echo "$as_me:$LINENO: result: $CP" >&5
8648echo "${ECHO_T}$CP" >&6
5734else 8649else
5735 echo "$ac_t""no" 1>&6 8650 echo "$as_me:$LINENO: result: no" >&5
8651echo "${ECHO_T}no" >&6
5736fi 8652fi
5737 8653
5738# Extract the first word of "ln", so it can be a program name with args. 8654# Extract the first word of "ln", so it can be a program name with args.
5739set dummy ln; ac_word=$2 8655set dummy ln; ac_word=$2
8656echo "$as_me:$LINENO: checking for $ac_word" >&5
5740echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8657echo $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 8658if test "${ac_cv_path_LN+set}" = set; then
5743 echo $ac_n "(cached) $ac_c" 1>&6 8659 echo $ECHO_N "(cached) $ECHO_C" >&6
5744else 8660else
5745 case "$LN" in 8661 case $LN in
5746 /*) 8662 [\\/]* | ?:[\\/]*)
5747 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8663 ac_cv_path_LN="$LN" # Let the user override the test with a path.
5748 ;; 8664 ;;
5749 ?:/*)
5750 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
5751 ;;
5752 *) 8665 *)
5753 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754 ac_dummy="$PATH" 8667for as_dir in $PATH
5755 for ac_dir in $ac_dummy; do 8668do
8669 IFS=$as_save_IFS
5756 test -z "$ac_dir" && ac_dir=. 8670 test -z "$as_dir" && as_dir=.
5757 if test -f $ac_dir/$ac_word; then 8671 for ac_exec_ext in '' $ac_executable_extensions; do
8672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5758 ac_cv_path_LN="$ac_dir/$ac_word" 8673 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5759 break 8675 break 2
5760 fi 8676 fi
5761 done 8677done
5762 IFS="$ac_save_ifs" 8678done
8679
5763 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" 8680 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
5764 ;; 8681 ;;
5765esac 8682esac
5766fi 8683fi
5767LN="$ac_cv_path_LN" 8684LN=$ac_cv_path_LN
8685
5768if test -n "$LN"; then 8686if test -n "$LN"; then
5769 echo "$ac_t""$LN" 1>&6 8687 echo "$as_me:$LINENO: result: $LN" >&5
8688echo "${ECHO_T}$LN" >&6
5770else 8689else
5771 echo "$ac_t""no" 1>&6 8690 echo "$as_me:$LINENO: result: no" >&5
8691echo "${ECHO_T}no" >&6
5772fi 8692fi
5773 8693
5774# Extract the first word of "sed", so it can be a program name with args. 8694# Extract the first word of "sed", so it can be a program name with args.
5775set dummy sed; ac_word=$2 8695set dummy sed; ac_word=$2
8696echo "$as_me:$LINENO: checking for $ac_word" >&5
5776echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8697echo $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 8698if test "${ac_cv_path_SED+set}" = set; then
5779 echo $ac_n "(cached) $ac_c" 1>&6 8699 echo $ECHO_N "(cached) $ECHO_C" >&6
5780else 8700else
5781 case "$SED" in 8701 case $SED in
5782 /*) 8702 [\\/]* | ?:[\\/]*)
5783 ac_cv_path_SED="$SED" # Let the user override the test with a path. 8703 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5784 ;; 8704 ;;
5785 ?:/*)
5786 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
5787 ;;
5788 *) 8705 *)
5789 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5790 ac_dummy="$PATH" 8707for as_dir in $PATH
5791 for ac_dir in $ac_dummy; do 8708do
8709 IFS=$as_save_IFS
5792 test -z "$ac_dir" && ac_dir=. 8710 test -z "$as_dir" && as_dir=.
5793 if test -f $ac_dir/$ac_word; then 8711 for ac_exec_ext in '' $ac_executable_extensions; do
8712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5794 ac_cv_path_SED="$ac_dir/$ac_word" 8713 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
8714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5795 break 8715 break 2
5796 fi 8716 fi
5797 done 8717done
5798 IFS="$ac_save_ifs" 8718done
8719
5799 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" 8720 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5800 ;; 8721 ;;
5801esac 8722esac
5802fi 8723fi
5803SED="$ac_cv_path_SED" 8724SED=$ac_cv_path_SED
8725
5804if test -n "$SED"; then 8726if test -n "$SED"; then
5805 echo "$ac_t""$SED" 1>&6 8727 echo "$as_me:$LINENO: result: $SED" >&5
8728echo "${ECHO_T}$SED" >&6
5806else 8729else
5807 echo "$ac_t""no" 1>&6 8730 echo "$as_me:$LINENO: result: no" >&5
8731echo "${ECHO_T}no" >&6
5808fi 8732fi
5809 8733
5810# Extract the first word of "echo", so it can be a program name with args. 8734# Extract the first word of "echo", so it can be a program name with args.
5811set dummy echo; ac_word=$2 8735set dummy echo; ac_word=$2
8736echo "$as_me:$LINENO: checking for $ac_word" >&5
5812echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8737echo $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 8738if test "${ac_cv_path_ECHO+set}" = set; then
5815 echo $ac_n "(cached) $ac_c" 1>&6 8739 echo $ECHO_N "(cached) $ECHO_C" >&6
5816else 8740else
5817 case "$ECHO" in 8741 case $ECHO in
5818 /*) 8742 [\\/]* | ?:[\\/]*)
5819 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 8743 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5820 ;; 8744 ;;
5821 ?:/*)
5822 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a dos path.
5823 ;;
5824 *) 8745 *)
5825 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826 ac_dummy="$PATH" 8747for as_dir in $PATH
5827 for ac_dir in $ac_dummy; do 8748do
8749 IFS=$as_save_IFS
5828 test -z "$ac_dir" && ac_dir=. 8750 test -z "$as_dir" && as_dir=.
5829 if test -f $ac_dir/$ac_word; then 8751 for ac_exec_ext in '' $ac_executable_extensions; do
8752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5830 ac_cv_path_ECHO="$ac_dir/$ac_word" 8753 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
8754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5831 break 8755 break 2
5832 fi 8756 fi
5833 done 8757done
5834 IFS="$ac_save_ifs" 8758done
8759
5835 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo" 8760 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5836 ;; 8761 ;;
5837esac 8762esac
5838fi 8763fi
5839ECHO="$ac_cv_path_ECHO" 8764ECHO=$ac_cv_path_ECHO
8765
5840if test -n "$ECHO"; then 8766if test -n "$ECHO"; then
5841 echo "$ac_t""$ECHO" 1>&6 8767 echo "$as_me:$LINENO: result: $ECHO" >&5
8768echo "${ECHO_T}$ECHO" >&6
5842else 8769else
5843 echo "$ac_t""no" 1>&6 8770 echo "$as_me:$LINENO: result: no" >&5
8771echo "${ECHO_T}no" >&6
5844fi 8772fi
5845 8773
5846# Extract the first word of "cmp", so it can be a program name with args. 8774# Extract the first word of "cmp", so it can be a program name with args.
5847set dummy cmp; ac_word=$2 8775set dummy cmp; ac_word=$2
8776echo "$as_me:$LINENO: checking for $ac_word" >&5
5848echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8777echo $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 8778if test "${ac_cv_path_CMP+set}" = set; then
5851 echo $ac_n "(cached) $ac_c" 1>&6 8779 echo $ECHO_N "(cached) $ECHO_C" >&6
5852else 8780else
5853 case "$CMP" in 8781 case $CMP in
5854 /*) 8782 [\\/]* | ?:[\\/]*)
5855 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 8783 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5856 ;; 8784 ;;
5857 ?:/*)
5858 ac_cv_path_CMP="$CMP" # Let the user override the test with a dos path.
5859 ;;
5860 *) 8785 *)
5861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862 ac_dummy="$PATH" 8787for as_dir in $PATH
5863 for ac_dir in $ac_dummy; do 8788do
8789 IFS=$as_save_IFS
5864 test -z "$ac_dir" && ac_dir=. 8790 test -z "$as_dir" && as_dir=.
5865 if test -f $ac_dir/$ac_word; then 8791 for ac_exec_ext in '' $ac_executable_extensions; do
8792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5866 ac_cv_path_CMP="$ac_dir/$ac_word" 8793 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
8794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5867 break 8795 break 2
5868 fi 8796 fi
5869 done 8797done
5870 IFS="$ac_save_ifs" 8798done
8799
5871 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" 8800 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5872 ;; 8801 ;;
5873esac 8802esac
5874fi 8803fi
5875CMP="$ac_cv_path_CMP" 8804CMP=$ac_cv_path_CMP
8805
5876if test -n "$CMP"; then 8806if test -n "$CMP"; then
5877 echo "$ac_t""$CMP" 1>&6 8807 echo "$as_me:$LINENO: result: $CMP" >&5
8808echo "${ECHO_T}$CMP" >&6
5878else 8809else
5879 echo "$ac_t""no" 1>&6 8810 echo "$as_me:$LINENO: result: no" >&5
8811echo "${ECHO_T}no" >&6
5880fi 8812fi
5881 8813
5882# Extract the first word of "tbl", so it can be a program name with args. 8814# Extract the first word of "tbl", so it can be a program name with args.
5883set dummy tbl; ac_word=$2 8815set dummy tbl; ac_word=$2
8816echo "$as_me:$LINENO: checking for $ac_word" >&5
5884echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8817echo $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 8818if test "${ac_cv_path_TBL+set}" = set; then
5887 echo $ac_n "(cached) $ac_c" 1>&6 8819 echo $ECHO_N "(cached) $ECHO_C" >&6
5888else 8820else
5889 case "$TBL" in 8821 case $TBL in
5890 /*) 8822 [\\/]* | ?:[\\/]*)
5891 ac_cv_path_TBL="$TBL" # Let the user override the test with a path. 8823 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5892 ;; 8824 ;;
5893 ?:/*)
5894 ac_cv_path_TBL="$TBL" # Let the user override the test with a dos path.
5895 ;;
5896 *) 8825 *)
5897 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 ac_dummy="$PATH" 8827for as_dir in $PATH
5899 for ac_dir in $ac_dummy; do 8828do
8829 IFS=$as_save_IFS
5900 test -z "$ac_dir" && ac_dir=. 8830 test -z "$as_dir" && as_dir=.
5901 if test -f $ac_dir/$ac_word; then 8831 for ac_exec_ext in '' $ac_executable_extensions; do
8832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5902 ac_cv_path_TBL="$ac_dir/$ac_word" 8833 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
8834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5903 break 8835 break 2
5904 fi 8836 fi
5905 done 8837done
5906 IFS="$ac_save_ifs" 8838done
8839
5907 ;; 8840 ;;
5908esac 8841esac
5909fi 8842fi
5910TBL="$ac_cv_path_TBL" 8843TBL=$ac_cv_path_TBL
8844
5911if test -n "$TBL"; then 8845if test -n "$TBL"; then
5912 echo "$ac_t""$TBL" 1>&6 8846 echo "$as_me:$LINENO: result: $TBL" >&5
8847echo "${ECHO_T}$TBL" >&6
5913else 8848else
5914 echo "$ac_t""no" 1>&6 8849 echo "$as_me:$LINENO: result: no" >&5
8850echo "${ECHO_T}no" >&6
5915fi 8851fi
5916 8852
5917 8853
5918 8854
5919 8855
5920# If we find X, set shell vars x_includes and x_libraries to the 8856echo "$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 8857echo $ECHO_N "checking for X... $ECHO_C" >&6
5925echo "configure:5926: checking for X" >&5 8858
5926 8859
5927# Check whether --with-x or --without-x was given. 8860# Check whether --with-x or --without-x was given.
5928if test "${with_x+set}" = set; then 8861if test "${with_x+set}" = set; then
5929 withval="$with_x" 8862 withval="$with_x"
5930 : 8863
5931fi 8864fi;
5932
5933# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 8865# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5934if test "x$with_x" = xno; then 8866if test "x$with_x" = xno; then
5935 # The user explicitly disabled X. 8867 # The user explicitly disabled X.
5936 have_x=disabled 8868 have_x=disabled
5937else 8869else
5938 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 8870 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5939 # Both variables are already set. 8871 # Both variables are already set.
5940 have_x=yes 8872 have_x=yes
5941 else 8873 else
5942if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then 8874 if test "${ac_cv_have_x+set}" = set; then
5943 echo $ac_n "(cached) $ac_c" 1>&6 8875 echo $ECHO_N "(cached) $ECHO_C" >&6
5944else 8876else
5945 # One or both of the vars are not set, and there is no cached value. 8877 # One or both of the vars are not set, and there is no cached value.
5946ac_x_includes=NO ac_x_libraries=NO 8878ac_x_includes=no ac_x_libraries=no
5947rm -fr conftestdir 8879rm -fr conftest.dir
5948if mkdir conftestdir; then 8880if mkdir conftest.dir; then
5949 cd conftestdir 8881 cd conftest.dir
5950 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 8882 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5951 cat > Imakefile <<'EOF' 8883 cat >Imakefile <<'_ACEOF'
5952acfindx: 8884acfindx:
5953 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 8885 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5954EOF 8886_ACEOF
5955 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 8887 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5956 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 8888 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5957 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 8889 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5958 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 8890 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5959 for ac_extension in a so sl; do 8891 for ac_extension in a so sl; do
5960 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 8892 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5961 test -f $ac_im_libdir/libX11.$ac_extension; then 8893 test -f $ac_im_libdir/libX11.$ac_extension; then
5962 ac_im_usrlibdir=$ac_im_libdir; break 8894 ac_im_usrlibdir=$ac_im_libdir; break
5963 fi 8895 fi
5964 done 8896 done
5965 # Screen out bogus values from the imake configuration. They are 8897 # Screen out bogus values from the imake configuration. They are
5966 # bogus both because they are the default anyway, and because 8898 # bogus both because they are the default anyway, and because
5967 # using them would break gcc on systems where it needs fixed includes. 8899 # using them would break gcc on systems where it needs fixed includes.
5968 case "$ac_im_incroot" in 8900 case $ac_im_incroot in
5969 /usr/include) ;; 8901 /usr/include) ;;
5970 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; 8902 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5971 esac 8903 esac
5972 case "$ac_im_usrlibdir" in 8904 case $ac_im_usrlibdir in
5973 /usr/lib | /lib) ;; 8905 /usr/lib | /lib) ;;
5974 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; 8906 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5975 esac 8907 esac
5976 fi 8908 fi
5977 cd .. 8909 cd ..
5978 rm -fr conftestdir 8910 rm -fr conftest.dir
5979fi 8911fi
5980 8912
8913# Standard set of common directories for X headers.
8914# Check X11 before X11Rn because it is often a symlink to the current release.
8915ac_x_header_dirs='
8916/usr/X11/include
8917/usr/X11R6/include
8918/usr/X11R5/include
8919/usr/X11R4/include
8920
8921/usr/include/X11
8922/usr/include/X11R6
8923/usr/include/X11R5
8924/usr/include/X11R4
8925
8926/usr/local/X11/include
8927/usr/local/X11R6/include
8928/usr/local/X11R5/include
8929/usr/local/X11R4/include
8930
8931/usr/local/include/X11
8932/usr/local/include/X11R6
8933/usr/local/include/X11R5
8934/usr/local/include/X11R4
8935
8936/usr/X386/include
8937/usr/x386/include
8938/usr/XFree86/include/X11
8939
8940/usr/include
8941/usr/local/include
8942/usr/unsupported/include
8943/usr/athena/include
8944/usr/local/x11r5/include
8945/usr/lpp/Xamples/include
8946
8947/usr/openwin/include
8948/usr/openwin/share/include'
8949
5981if test "$ac_x_includes" = NO; then 8950if test "$ac_x_includes" = no; then
5982 # Guess where to find include files, by looking for this one X11 .h file. 8951 # 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. 8952 # First, try using that file with no special directory specified.
8953 cat >conftest.$ac_ext <<_ACEOF
8954/* confdefs.h. */
8955_ACEOF
8956cat confdefs.h >>conftest.$ac_ext
5986cat > conftest.$ac_ext <<EOF 8957cat >>conftest.$ac_ext <<_ACEOF
5987#line 5988 "configure" 8958/* end confdefs.h. */
5988#include "confdefs.h" 8959#include <X11/Intrinsic.h>
5989#include <$x_direct_test_include> 8960_ACEOF
5990EOF 8961if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5991ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5992{ (eval echo configure:5993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8963 ac_status=$?
5993ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8964 grep -v '^ *+' conftest.er1 >conftest.err
8965 rm -f conftest.er1
8966 cat conftest.err >&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); } >/dev/null; then
8969 if test -s conftest.err; then
8970 ac_cpp_err=$ac_cxx_preproc_warn_flag
8971 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8972 else
8973 ac_cpp_err=
8974 fi
8975else
8976 ac_cpp_err=yes
8977fi
5994if test -z "$ac_err"; then 8978if test -z "$ac_cpp_err"; then
5995 rm -rf conftest*
5996 # We can compile using X headers with no special include directory. 8979 # We can compile using X headers with no special include directory.
5997ac_x_includes= 8980ac_x_includes=
5998else 8981else
5999 echo "$ac_err" >&5
6000 echo "configure: failed program was:" >&5 8982 echo "$as_me: failed program was:" >&5
6001 cat conftest.$ac_ext >&5 8983sed 's/^/| /' conftest.$ac_ext >&5
6002 rm -rf conftest* 8984
6003 # Look for the header file in a standard set of common directories. 8985 for ac_dir in $ac_x_header_dirs; do
6004# Check X11 before X11Rn because it is often a symlink to the current release. 8986 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 8987 ac_x_includes=$ac_dir
6043 break 8988 break
6044 fi 8989 fi
6045 done 8990done
6046fi 8991fi
6047rm -f conftest* 8992rm -f conftest.err conftest.$ac_ext
6048fi # $ac_x_includes = NO 8993fi # $ac_x_includes = no
6049 8994
6050if test "$ac_x_libraries" = NO; then 8995if test "$ac_x_libraries" = no; then
6051 # Check for the libraries. 8996 # 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. 8997 # See if we find them without any special options.
6057 # Don't add to $LIBS permanently. 8998 # Don't add to $LIBS permanently.
6058 ac_save_LIBS="$LIBS" 8999 ac_save_LIBS=$LIBS
6059 LIBS="-l$x_direct_test_library $LIBS" 9000 LIBS="-lXt $LIBS"
9001 cat >conftest.$ac_ext <<_ACEOF
9002/* confdefs.h. */
9003_ACEOF
9004cat confdefs.h >>conftest.$ac_ext
6060cat > conftest.$ac_ext <<EOF 9005cat >>conftest.$ac_ext <<_ACEOF
6061#line 6062 "configure" 9006/* end confdefs.h. */
6062#include "confdefs.h" 9007#include <X11/Intrinsic.h>
6063 9008int
6064int main() { 9009main ()
6065${x_direct_test_function}() 9010{
9011XtMalloc (0)
9012 ;
6066; return 0; } 9013 return 0;
6067EOF 9014}
6068if { (eval echo configure:6069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9015_ACEOF
9016rm -f conftest.$ac_objext conftest$ac_exeext
9017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9018 (eval $ac_link) 2>conftest.er1
9019 ac_status=$?
9020 grep -v '^ *+' conftest.er1 >conftest.err
6069 rm -rf conftest* 9021 rm -f conftest.er1
9022 cat conftest.err >&5
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); } &&
9025 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9027 (eval $ac_try) 2>&5
9028 ac_status=$?
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); }; } &&
9031 { ac_try='test -s conftest$ac_exeext'
9032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9033 (eval $ac_try) 2>&5
9034 ac_status=$?
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); }; }; then
6070 LIBS="$ac_save_LIBS" 9037 LIBS=$ac_save_LIBS
6071# We can link X programs with no special library path. 9038# We can link X programs with no special library path.
6072ac_x_libraries= 9039ac_x_libraries=
6073else 9040else
6074 echo "configure: failed program was:" >&5 9041 echo "$as_me: failed program was:" >&5
6075 cat conftest.$ac_ext >&5 9042sed 's/^/| /' conftest.$ac_ext >&5
6076 rm -rf conftest* 9043
6077 LIBS="$ac_save_LIBS" 9044LIBS=$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/` \ 9045for 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 9046do
9047 # Don't even attempt the hair of trying to link an X program!
6117 for ac_extension in a so sl; do 9048 for ac_extension in a so sl; do
6118 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then 9049 if test -r $ac_dir/libXt.$ac_extension; then
6119 ac_x_libraries=$ac_dir 9050 ac_x_libraries=$ac_dir
6120 break 2 9051 break 2
6121 fi 9052 fi
6122 done 9053 done
6123done 9054done
6124fi 9055fi
6125rm -f conftest* 9056rm -f conftest.err conftest.$ac_objext \
9057 conftest$ac_exeext conftest.$ac_ext
6126fi # $ac_x_libraries = NO 9058fi # $ac_x_libraries = no
6127 9059
6128if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then 9060if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6129 # Didn't find X anywhere. Cache the known absence of X. 9061 # Didn't find X anywhere. Cache the known absence of X.
6130 ac_cv_have_x="have_x=no" 9062 ac_cv_have_x="have_x=no"
6131else 9063else
6132 # Record where we found X for the cache. 9064 # Record where we found X for the cache.
6133 ac_cv_have_x="have_x=yes \ 9065 ac_cv_have_x="have_x=yes \
6134 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 9066 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6135fi 9067fi
6136fi 9068fi
9069
6137 fi 9070 fi
6138 eval "$ac_cv_have_x" 9071 eval "$ac_cv_have_x"
6139fi # $with_x != no 9072fi # $with_x != no
6140 9073
6141if test "$have_x" != yes; then 9074if test "$have_x" != yes; then
6142 echo "$ac_t""$have_x" 1>&6 9075 echo "$as_me:$LINENO: result: $have_x" >&5
9076echo "${ECHO_T}$have_x" >&6
6143 no_x=yes 9077 no_x=yes
6144else 9078else
6145 # If each of the values was on the command line, it overrides each guess. 9079 # 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 9080 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6147 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 9081 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6148 # Update the cache value to reflect the command line values. 9082 # Update the cache value to reflect the command line values.
6149 ac_cv_have_x="have_x=yes \ 9083 ac_cv_have_x="have_x=yes \
6150 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 9084 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9085 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6151 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 9086echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6152fi 9087fi
6153 9088
6154if test "$no_x" = yes; then 9089if test "$no_x" = yes; then
6155 # Not all programs may use this symbol, but it does not hurt to define it. 9090 # Not all programs may use this symbol, but it does not hurt to define it.
9091
6156 cat >> confdefs.h <<\EOF 9092cat >>confdefs.h <<\_ACEOF
6157#define X_DISPLAY_MISSING 1 9093#define X_DISPLAY_MISSING 1
6158EOF 9094_ACEOF
6159 9095
6160 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 9096 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6161else 9097else
6162 if test -n "$x_includes"; then 9098 if test -n "$x_includes"; then
6163 X_CFLAGS="$X_CFLAGS -I$x_includes" 9099 X_CFLAGS="$X_CFLAGS -I$x_includes"
6166 # It would also be nice to do this for all -L options, not just this one. 9102 # It would also be nice to do this for all -L options, not just this one.
6167 if test -n "$x_libraries"; then 9103 if test -n "$x_libraries"; then
6168 X_LIBS="$X_LIBS -L$x_libraries" 9104 X_LIBS="$X_LIBS -L$x_libraries"
6169 # For Solaris; some versions of Sun CC require a space after -R and 9105 # For Solaris; some versions of Sun CC require a space after -R and
6170 # others require no space. Words are not sufficient . . . . 9106 # others require no space. Words are not sufficient . . . .
6171 case "`(uname -sr) 2>/dev/null`" in 9107 case `(uname -sr) 2>/dev/null` in
6172 "SunOS 5"*) 9108 "SunOS 5"*)
9109 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 9110echo $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" 9111 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6176 cat > conftest.$ac_ext <<EOF 9112 cat >conftest.$ac_ext <<_ACEOF
6177#line 6178 "configure" 9113/* confdefs.h. */
6178#include "confdefs.h" 9114_ACEOF
9115cat confdefs.h >>conftest.$ac_ext
9116cat >>conftest.$ac_ext <<_ACEOF
9117/* end confdefs.h. */
6179 9118
6180int main() { 9119int
9120main ()
9121{
6181 9122
9123 ;
6182; return 0; } 9124 return 0;
6183EOF 9125}
6184if { (eval echo configure:6185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9126_ACEOF
9127rm -f conftest.$ac_objext conftest$ac_exeext
9128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9129 (eval $ac_link) 2>conftest.er1
9130 ac_status=$?
9131 grep -v '^ *+' conftest.er1 >conftest.err
6185 rm -rf conftest* 9132 rm -f conftest.er1
9133 cat conftest.err >&5
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); } &&
9136 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9138 (eval $ac_try) 2>&5
9139 ac_status=$?
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); }; } &&
9142 { ac_try='test -s conftest$ac_exeext'
9143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9144 (eval $ac_try) 2>&5
9145 ac_status=$?
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); }; }; then
6186 ac_R_nospace=yes 9148 ac_R_nospace=yes
6187else 9149else
6188 echo "configure: failed program was:" >&5 9150 echo "$as_me: failed program was:" >&5
6189 cat conftest.$ac_ext >&5 9151sed 's/^/| /' conftest.$ac_ext >&5
6190 rm -rf conftest* 9152
6191 ac_R_nospace=no 9153ac_R_nospace=no
6192fi 9154fi
6193rm -f conftest* 9155rm -f conftest.err conftest.$ac_objext \
9156 conftest$ac_exeext conftest.$ac_ext
6194 if test $ac_R_nospace = yes; then 9157 if test $ac_R_nospace = yes; then
6195 echo "$ac_t""no" 1>&6 9158 echo "$as_me:$LINENO: result: no" >&5
9159echo "${ECHO_T}no" >&6
6196 X_LIBS="$X_LIBS -R$x_libraries" 9160 X_LIBS="$X_LIBS -R$x_libraries"
6197 else 9161 else
6198 LIBS="$ac_xsave_LIBS -R $x_libraries" 9162 LIBS="$ac_xsave_LIBS -R $x_libraries"
6199 cat > conftest.$ac_ext <<EOF 9163 cat >conftest.$ac_ext <<_ACEOF
6200#line 6201 "configure" 9164/* confdefs.h. */
6201#include "confdefs.h" 9165_ACEOF
9166cat confdefs.h >>conftest.$ac_ext
9167cat >>conftest.$ac_ext <<_ACEOF
9168/* end confdefs.h. */
6202 9169
6203int main() { 9170int
9171main ()
9172{
6204 9173
9174 ;
6205; return 0; } 9175 return 0;
6206EOF 9176}
6207if { (eval echo configure:6208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9177_ACEOF
9178rm -f conftest.$ac_objext conftest$ac_exeext
9179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9180 (eval $ac_link) 2>conftest.er1
9181 ac_status=$?
9182 grep -v '^ *+' conftest.er1 >conftest.err
6208 rm -rf conftest* 9183 rm -f conftest.er1
9184 cat conftest.err >&5
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); } &&
9187 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9189 (eval $ac_try) 2>&5
9190 ac_status=$?
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; } &&
9193 { ac_try='test -s conftest$ac_exeext'
9194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9195 (eval $ac_try) 2>&5
9196 ac_status=$?
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); }; }; then
6209 ac_R_space=yes 9199 ac_R_space=yes
6210else 9200else
6211 echo "configure: failed program was:" >&5 9201 echo "$as_me: failed program was:" >&5
6212 cat conftest.$ac_ext >&5 9202sed 's/^/| /' conftest.$ac_ext >&5
6213 rm -rf conftest* 9203
6214 ac_R_space=no 9204ac_R_space=no
6215fi 9205fi
6216rm -f conftest* 9206rm -f conftest.err conftest.$ac_objext \
9207 conftest$ac_exeext conftest.$ac_ext
6217 if test $ac_R_space = yes; then 9208 if test $ac_R_space = yes; then
6218 echo "$ac_t""yes" 1>&6 9209 echo "$as_me:$LINENO: result: yes" >&5
9210echo "${ECHO_T}yes" >&6
6219 X_LIBS="$X_LIBS -R $x_libraries" 9211 X_LIBS="$X_LIBS -R $x_libraries"
6220 else 9212 else
9213 echo "$as_me:$LINENO: result: neither works" >&5
6221 echo "$ac_t""neither works" 1>&6 9214echo "${ECHO_T}neither works" >&6
6222 fi 9215 fi
6223 fi 9216 fi
6224 LIBS="$ac_xsave_LIBS" 9217 LIBS=$ac_xsave_LIBS
6225 esac 9218 esac
6226 fi 9219 fi
6227 9220
6228 # Check for system-dependent libraries X programs must link with. 9221 # Check for system-dependent libraries X programs must link with.
6229 # Do this before checking for the system-independent R6 libraries 9222 # Do this before checking for the system-independent R6 libraries
6230 # (-lICE), since we may need -lsocket or whatever for X linking. 9223 # (-lICE), since we may need -lsocket or whatever for X linking.
6231 9224
6232 if test "$ISC" = yes; then 9225 if test "$ISC" = yes; then
6233 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 9226 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6234 else 9227 else
6235 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X 9228 # Martyn Johnson says this is needed for Ultrix, if the X
6236 # libraries were built with DECnet support. And karl@cs.umb.edu says 9229 # libraries were built with DECnet support. And Karl Berry says
6237 # the Alpha needs dnet_stub (dnet does not exist). 9230 # the Alpha needs dnet_stub (dnet does not exist).
9231 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9232 cat >conftest.$ac_ext <<_ACEOF
9233/* confdefs.h. */
9234_ACEOF
9235cat confdefs.h >>conftest.$ac_ext
9236cat >>conftest.$ac_ext <<_ACEOF
9237/* end confdefs.h. */
9238
9239/* Override any gcc2 internal prototype to avoid an error. */
9240#ifdef __cplusplus
9241extern "C"
9242#endif
9243/* We use char because int might match the return type of a gcc2
9244 builtin and then its argument prototype would still apply. */
9245char XOpenDisplay ();
9246int
9247main ()
9248{
9249XOpenDisplay ();
9250 ;
9251 return 0;
9252}
9253_ACEOF
9254rm -f conftest.$ac_objext conftest$ac_exeext
9255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9256 (eval $ac_link) 2>conftest.er1
9257 ac_status=$?
9258 grep -v '^ *+' conftest.er1 >conftest.err
9259 rm -f conftest.er1
9260 cat conftest.err >&5
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); } &&
9263 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9265 (eval $ac_try) 2>&5
9266 ac_status=$?
9267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268 (exit $ac_status); }; } &&
9269 { ac_try='test -s conftest$ac_exeext'
9270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9271 (eval $ac_try) 2>&5
9272 ac_status=$?
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); }; }; then
9275 :
9276else
9277 echo "$as_me: failed program was:" >&5
9278sed 's/^/| /' conftest.$ac_ext >&5
9279
9280echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6238 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 9281echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6239echo "configure:6240: checking for dnet_ntoa in -ldnet" >&5 9282if 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 9283 echo $ECHO_N "(cached) $ECHO_C" >&6
6243else 9284else
6244 ac_save_LIBS="$LIBS" 9285 ac_check_lib_save_LIBS=$LIBS
6245LIBS="-ldnet $LIBS" 9286LIBS="-ldnet $LIBS"
6246cat > conftest.$ac_ext <<EOF 9287cat >conftest.$ac_ext <<_ACEOF
6247#line 6248 "configure" 9288/* confdefs.h. */
6248#include "confdefs.h" 9289_ACEOF
9290cat confdefs.h >>conftest.$ac_ext
9291cat >>conftest.$ac_ext <<_ACEOF
9292/* end confdefs.h. */
9293
6249/* Override any gcc2 internal prototype to avoid an error. */ 9294/* Override any gcc2 internal prototype to avoid an error. */
9295#ifdef __cplusplus
9296extern "C"
9297#endif
6250/* We use char because int might match the return type of a gcc2 9298/* We use char because int might match the return type of a gcc2
6251 builtin and then its argument prototype would still apply. */ 9299 builtin and then its argument prototype would still apply. */
6252char dnet_ntoa(); 9300char dnet_ntoa ();
6253 9301int
6254int main() { 9302main ()
9303{
6255dnet_ntoa() 9304dnet_ntoa ();
9305 ;
6256; return 0; } 9306 return 0;
6257EOF 9307}
6258if { (eval echo configure:6259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9308_ACEOF
9309rm -f conftest.$ac_objext conftest$ac_exeext
9310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9311 (eval $ac_link) 2>conftest.er1
9312 ac_status=$?
9313 grep -v '^ *+' conftest.er1 >conftest.err
6259 rm -rf conftest* 9314 rm -f conftest.er1
6260 eval "ac_cv_lib_$ac_lib_var=yes" 9315 cat conftest.err >&5
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); } &&
9318 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9320 (eval $ac_try) 2>&5
9321 ac_status=$?
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); }; } &&
9324 { ac_try='test -s conftest$ac_exeext'
9325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9326 (eval $ac_try) 2>&5
9327 ac_status=$?
9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); }; }; then
9330 ac_cv_lib_dnet_dnet_ntoa=yes
6261else 9331else
6262 echo "configure: failed program was:" >&5 9332 echo "$as_me: failed program was:" >&5
6263 cat conftest.$ac_ext >&5 9333sed 's/^/| /' conftest.$ac_ext >&5
6264 rm -rf conftest* 9334
6265 eval "ac_cv_lib_$ac_lib_var=no" 9335ac_cv_lib_dnet_dnet_ntoa=no
6266fi 9336fi
6267rm -f conftest* 9337rm -f conftest.err conftest.$ac_objext \
9338 conftest$ac_exeext conftest.$ac_ext
6268LIBS="$ac_save_LIBS" 9339LIBS=$ac_check_lib_save_LIBS
6269
6270fi 9340fi
6271if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9341echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6272 echo "$ac_t""yes" 1>&6 9342echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9343if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6273 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 9344 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6274else
6275 echo "$ac_t""no" 1>&6
6276fi 9345fi
6277 9346
6278 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 9347 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9348 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 9349echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
6280echo "configure:6281: checking for dnet_ntoa in -ldnet_stub" >&5 9350if 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 9351 echo $ECHO_N "(cached) $ECHO_C" >&6
6284else 9352else
6285 ac_save_LIBS="$LIBS" 9353 ac_check_lib_save_LIBS=$LIBS
6286LIBS="-ldnet_stub $LIBS" 9354LIBS="-ldnet_stub $LIBS"
6287cat > conftest.$ac_ext <<EOF 9355cat >conftest.$ac_ext <<_ACEOF
6288#line 6289 "configure" 9356/* confdefs.h. */
6289#include "confdefs.h" 9357_ACEOF
9358cat confdefs.h >>conftest.$ac_ext
9359cat >>conftest.$ac_ext <<_ACEOF
9360/* end confdefs.h. */
9361
6290/* Override any gcc2 internal prototype to avoid an error. */ 9362/* Override any gcc2 internal prototype to avoid an error. */
9363#ifdef __cplusplus
9364extern "C"
9365#endif
6291/* We use char because int might match the return type of a gcc2 9366/* We use char because int might match the return type of a gcc2
6292 builtin and then its argument prototype would still apply. */ 9367 builtin and then its argument prototype would still apply. */
6293char dnet_ntoa(); 9368char dnet_ntoa ();
6294 9369int
6295int main() { 9370main ()
9371{
6296dnet_ntoa() 9372dnet_ntoa ();
9373 ;
6297; return 0; } 9374 return 0;
6298EOF 9375}
6299if { (eval echo configure:6300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9376_ACEOF
9377rm -f conftest.$ac_objext conftest$ac_exeext
9378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9379 (eval $ac_link) 2>conftest.er1
9380 ac_status=$?
9381 grep -v '^ *+' conftest.er1 >conftest.err
6300 rm -rf conftest* 9382 rm -f conftest.er1
6301 eval "ac_cv_lib_$ac_lib_var=yes" 9383 cat conftest.err >&5
9384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9385 (exit $ac_status); } &&
9386 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9388 (eval $ac_try) 2>&5
9389 ac_status=$?
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); }; } &&
9392 { ac_try='test -s conftest$ac_exeext'
9393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9394 (eval $ac_try) 2>&5
9395 ac_status=$?
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); }; }; then
9398 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6302else 9399else
6303 echo "configure: failed program was:" >&5 9400 echo "$as_me: failed program was:" >&5
6304 cat conftest.$ac_ext >&5 9401sed 's/^/| /' conftest.$ac_ext >&5
6305 rm -rf conftest* 9402
6306 eval "ac_cv_lib_$ac_lib_var=no" 9403ac_cv_lib_dnet_stub_dnet_ntoa=no
6307fi 9404fi
6308rm -f conftest* 9405rm -f conftest.err conftest.$ac_objext \
9406 conftest$ac_exeext conftest.$ac_ext
6309LIBS="$ac_save_LIBS" 9407LIBS=$ac_check_lib_save_LIBS
6310
6311fi 9408fi
6312if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9409echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6313 echo "$ac_t""yes" 1>&6 9410echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9411if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6314 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 9412 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6315else
6316 echo "$ac_t""no" 1>&6
6317fi 9413fi
6318 9414
6319 fi 9415 fi
9416fi
9417rm -f conftest.err conftest.$ac_objext \
9418 conftest$ac_exeext conftest.$ac_ext
9419 LIBS="$ac_xsave_LIBS"
6320 9420
6321 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 9421 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6322 # to get the SysV transport functions. 9422 # to get the SysV transport functions.
6323 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 9423 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6324 # needs -lnsl. 9424 # needs -lnsl.
6325 # The nsl library prevents programs from opening the X display 9425 # The nsl library prevents programs from opening the X display
6326 # on Irix 5.2, according to dickey@clark.net. 9426 # on Irix 5.2, according to T.E. Dickey.
9427 # The functions gethostbyname, getservbyname, and inet_addr are
9428 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9429 echo "$as_me:$LINENO: checking for gethostbyname" >&5
6327 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 9430echo $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 9431if test "${ac_cv_func_gethostbyname+set}" = set; then
6330 echo $ac_n "(cached) $ac_c" 1>&6 9432 echo $ECHO_N "(cached) $ECHO_C" >&6
6331else 9433else
6332 cat > conftest.$ac_ext <<EOF 9434 cat >conftest.$ac_ext <<_ACEOF
6333#line 6334 "configure" 9435/* confdefs.h. */
6334#include "confdefs.h" 9436_ACEOF
9437cat confdefs.h >>conftest.$ac_ext
9438cat >>conftest.$ac_ext <<_ACEOF
9439/* end confdefs.h. */
9440/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
9441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9442#define gethostbyname innocuous_gethostbyname
9443
6335/* System header to define __stub macros and hopefully few prototypes, 9444/* System header to define __stub macros and hopefully few prototypes,
6336 which can conflict with char gethostbyname(); below. */ 9445 which can conflict with char gethostbyname (); below.
9446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9447 <limits.h> exists even on freestanding compilers. */
9448
9449#ifdef __STDC__
9450# include <limits.h>
9451#else
6337#include <assert.h> 9452# include <assert.h>
9453#endif
9454
9455#undef gethostbyname
9456
6338/* Override any gcc2 internal prototype to avoid an error. */ 9457/* Override any gcc2 internal prototype to avoid an error. */
9458#ifdef __cplusplus
9459extern "C"
9460{
9461#endif
6339/* We use char because int might match the return type of a gcc2 9462/* We use char because int might match the return type of a gcc2
6340 builtin and then its argument prototype would still apply. */ 9463 builtin and then its argument prototype would still apply. */
6341char gethostbyname(); 9464char gethostbyname ();
6342
6343int main() {
6344
6345/* The GNU C library defines this for functions which it implements 9465/* The GNU C library defines this for functions which it implements
6346 to always fail with ENOSYS. Some functions are actually named 9466 to always fail with ENOSYS. Some functions are actually named
6347 something starting with __ and the normal name is an alias. */ 9467 something starting with __ and the normal name is an alias. */
6348#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 9468#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6349choke me 9469choke me
6350#else 9470#else
6351gethostbyname(); 9471char (*f) () = gethostbyname;
6352#endif 9472#endif
9473#ifdef __cplusplus
9474}
9475#endif
6353 9476
9477int
9478main ()
9479{
9480return f != gethostbyname;
9481 ;
6354; return 0; } 9482 return 0;
6355EOF 9483}
6356if { (eval echo configure:6357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9484_ACEOF
9485rm -f conftest.$ac_objext conftest$ac_exeext
9486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9487 (eval $ac_link) 2>conftest.er1
9488 ac_status=$?
9489 grep -v '^ *+' conftest.er1 >conftest.err
6357 rm -rf conftest* 9490 rm -f conftest.er1
9491 cat conftest.err >&5
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 (exit $ac_status); } &&
9494 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9496 (eval $ac_try) 2>&5
9497 ac_status=$?
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); }; } &&
9500 { ac_try='test -s conftest$ac_exeext'
9501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9502 (eval $ac_try) 2>&5
9503 ac_status=$?
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); }; }; then
6358 eval "ac_cv_func_gethostbyname=yes" 9506 ac_cv_func_gethostbyname=yes
6359else 9507else
6360 echo "configure: failed program was:" >&5 9508 echo "$as_me: failed program was:" >&5
6361 cat conftest.$ac_ext >&5 9509sed 's/^/| /' conftest.$ac_ext >&5
6362 rm -rf conftest* 9510
6363 eval "ac_cv_func_gethostbyname=no" 9511ac_cv_func_gethostbyname=no
6364fi 9512fi
6365rm -f conftest* 9513rm -f conftest.err conftest.$ac_objext \
9514 conftest$ac_exeext conftest.$ac_ext
6366fi 9515fi
6367 9516echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6368if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then 9517echo "${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 9518
6375 if test $ac_cv_func_gethostbyname = no; then 9519 if test $ac_cv_func_gethostbyname = no; then
9520 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6376 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 9521echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6377echo "configure:6378: checking for gethostbyname in -lnsl" >&5 9522if 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 9523 echo $ECHO_N "(cached) $ECHO_C" >&6
6381else 9524else
6382 ac_save_LIBS="$LIBS" 9525 ac_check_lib_save_LIBS=$LIBS
6383LIBS="-lnsl $LIBS" 9526LIBS="-lnsl $LIBS"
6384cat > conftest.$ac_ext <<EOF 9527cat >conftest.$ac_ext <<_ACEOF
6385#line 6386 "configure" 9528/* confdefs.h. */
6386#include "confdefs.h" 9529_ACEOF
9530cat confdefs.h >>conftest.$ac_ext
9531cat >>conftest.$ac_ext <<_ACEOF
9532/* end confdefs.h. */
9533
6387/* Override any gcc2 internal prototype to avoid an error. */ 9534/* Override any gcc2 internal prototype to avoid an error. */
9535#ifdef __cplusplus
9536extern "C"
9537#endif
6388/* We use char because int might match the return type of a gcc2 9538/* We use char because int might match the return type of a gcc2
6389 builtin and then its argument prototype would still apply. */ 9539 builtin and then its argument prototype would still apply. */
6390char gethostbyname(); 9540char gethostbyname ();
6391 9541int
6392int main() { 9542main ()
9543{
6393gethostbyname() 9544gethostbyname ();
9545 ;
6394; return 0; } 9546 return 0;
6395EOF 9547}
6396if { (eval echo configure:6397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9548_ACEOF
9549rm -f conftest.$ac_objext conftest$ac_exeext
9550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9551 (eval $ac_link) 2>conftest.er1
9552 ac_status=$?
9553 grep -v '^ *+' conftest.er1 >conftest.err
6397 rm -rf conftest* 9554 rm -f conftest.er1
6398 eval "ac_cv_lib_$ac_lib_var=yes" 9555 cat conftest.err >&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); } &&
9558 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9560 (eval $ac_try) 2>&5
9561 ac_status=$?
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); }; } &&
9564 { ac_try='test -s conftest$ac_exeext'
9565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9566 (eval $ac_try) 2>&5
9567 ac_status=$?
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); }; }; then
9570 ac_cv_lib_nsl_gethostbyname=yes
6399else 9571else
6400 echo "configure: failed program was:" >&5 9572 echo "$as_me: failed program was:" >&5
6401 cat conftest.$ac_ext >&5 9573sed 's/^/| /' conftest.$ac_ext >&5
6402 rm -rf conftest* 9574
6403 eval "ac_cv_lib_$ac_lib_var=no" 9575ac_cv_lib_nsl_gethostbyname=no
6404fi 9576fi
6405rm -f conftest* 9577rm -f conftest.err conftest.$ac_objext \
9578 conftest$ac_exeext conftest.$ac_ext
6406LIBS="$ac_save_LIBS" 9579LIBS=$ac_check_lib_save_LIBS
6407
6408fi 9580fi
6409if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9581echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6410 echo "$ac_t""yes" 1>&6 9582echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9583if test $ac_cv_lib_nsl_gethostbyname = yes; then
6411 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 9584 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6412else
6413 echo "$ac_t""no" 1>&6
6414fi 9585fi
6415 9586
9587 if test $ac_cv_lib_nsl_gethostbyname = no; then
9588 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9589echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9590if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9591 echo $ECHO_N "(cached) $ECHO_C" >&6
9592else
9593 ac_check_lib_save_LIBS=$LIBS
9594LIBS="-lbsd $LIBS"
9595cat >conftest.$ac_ext <<_ACEOF
9596/* confdefs.h. */
9597_ACEOF
9598cat confdefs.h >>conftest.$ac_ext
9599cat >>conftest.$ac_ext <<_ACEOF
9600/* end confdefs.h. */
9601
9602/* Override any gcc2 internal prototype to avoid an error. */
9603#ifdef __cplusplus
9604extern "C"
9605#endif
9606/* We use char because int might match the return type of a gcc2
9607 builtin and then its argument prototype would still apply. */
9608char gethostbyname ();
9609int
9610main ()
9611{
9612gethostbyname ();
9613 ;
9614 return 0;
9615}
9616_ACEOF
9617rm -f conftest.$ac_objext conftest$ac_exeext
9618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9619 (eval $ac_link) 2>conftest.er1
9620 ac_status=$?
9621 grep -v '^ *+' conftest.er1 >conftest.err
9622 rm -f conftest.er1
9623 cat conftest.err >&5
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); } &&
9626 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9628 (eval $ac_try) 2>&5
9629 ac_status=$?
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); }; } &&
9632 { ac_try='test -s conftest$ac_exeext'
9633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9634 (eval $ac_try) 2>&5
9635 ac_status=$?
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); }; }; then
9638 ac_cv_lib_bsd_gethostbyname=yes
9639else
9640 echo "$as_me: failed program was:" >&5
9641sed 's/^/| /' conftest.$ac_ext >&5
9642
9643ac_cv_lib_bsd_gethostbyname=no
9644fi
9645rm -f conftest.err conftest.$ac_objext \
9646 conftest$ac_exeext conftest.$ac_ext
9647LIBS=$ac_check_lib_save_LIBS
9648fi
9649echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9650echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9651if test $ac_cv_lib_bsd_gethostbyname = yes; then
9652 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9653fi
9654
9655 fi
6416 fi 9656 fi
6417 9657
6418 # lieder@skyler.mavd.honeywell.com says without -lsocket, 9658 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6419 # socket/setsockopt and other routines are undefined under SCO ODT 9659 # 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 9660 # 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 9661 # on later versions), says Simon Leinen: it contains gethostby*
6422 # gethostby* variants that don't use the nameserver (or something). 9662 # variants that don't use the name server (or something). -lsocket
6423 # -lsocket must be given before -lnsl if both are needed. 9663 # must be given before -lnsl if both are needed. We assume that
6424 # We assume that if connect needs -lnsl, so does gethostbyname. 9664 # if connect needs -lnsl, so does gethostbyname.
9665 echo "$as_me:$LINENO: checking for connect" >&5
6425 echo $ac_n "checking for connect""... $ac_c" 1>&6 9666echo $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 9667if test "${ac_cv_func_connect+set}" = set; then
6428 echo $ac_n "(cached) $ac_c" 1>&6 9668 echo $ECHO_N "(cached) $ECHO_C" >&6
6429else 9669else
6430 cat > conftest.$ac_ext <<EOF 9670 cat >conftest.$ac_ext <<_ACEOF
6431#line 6432 "configure" 9671/* confdefs.h. */
6432#include "confdefs.h" 9672_ACEOF
9673cat confdefs.h >>conftest.$ac_ext
9674cat >>conftest.$ac_ext <<_ACEOF
9675/* end confdefs.h. */
9676/* Define connect to an innocuous variant, in case <limits.h> declares connect.
9677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9678#define connect innocuous_connect
9679
6433/* System header to define __stub macros and hopefully few prototypes, 9680/* System header to define __stub macros and hopefully few prototypes,
6434 which can conflict with char connect(); below. */ 9681 which can conflict with char connect (); below.
9682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9683 <limits.h> exists even on freestanding compilers. */
9684
9685#ifdef __STDC__
9686# include <limits.h>
9687#else
6435#include <assert.h> 9688# include <assert.h>
9689#endif
9690
9691#undef connect
9692
6436/* Override any gcc2 internal prototype to avoid an error. */ 9693/* Override any gcc2 internal prototype to avoid an error. */
9694#ifdef __cplusplus
9695extern "C"
9696{
9697#endif
6437/* We use char because int might match the return type of a gcc2 9698/* We use char because int might match the return type of a gcc2
6438 builtin and then its argument prototype would still apply. */ 9699 builtin and then its argument prototype would still apply. */
6439char connect(); 9700char connect ();
6440
6441int main() {
6442
6443/* The GNU C library defines this for functions which it implements 9701/* The GNU C library defines this for functions which it implements
6444 to always fail with ENOSYS. Some functions are actually named 9702 to always fail with ENOSYS. Some functions are actually named
6445 something starting with __ and the normal name is an alias. */ 9703 something starting with __ and the normal name is an alias. */
6446#if defined (__stub_connect) || defined (__stub___connect) 9704#if defined (__stub_connect) || defined (__stub___connect)
6447choke me 9705choke me
6448#else 9706#else
6449connect(); 9707char (*f) () = connect;
6450#endif 9708#endif
9709#ifdef __cplusplus
9710}
9711#endif
6451 9712
9713int
9714main ()
9715{
9716return f != connect;
9717 ;
6452; return 0; } 9718 return 0;
6453EOF 9719}
6454if { (eval echo configure:6455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9720_ACEOF
9721rm -f conftest.$ac_objext conftest$ac_exeext
9722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9723 (eval $ac_link) 2>conftest.er1
9724 ac_status=$?
9725 grep -v '^ *+' conftest.er1 >conftest.err
6455 rm -rf conftest* 9726 rm -f conftest.er1
9727 cat conftest.err >&5
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); } &&
9730 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9732 (eval $ac_try) 2>&5
9733 ac_status=$?
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); }; } &&
9736 { ac_try='test -s conftest$ac_exeext'
9737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9738 (eval $ac_try) 2>&5
9739 ac_status=$?
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); }; }; then
6456 eval "ac_cv_func_connect=yes" 9742 ac_cv_func_connect=yes
6457else 9743else
6458 echo "configure: failed program was:" >&5 9744 echo "$as_me: failed program was:" >&5
6459 cat conftest.$ac_ext >&5 9745sed 's/^/| /' conftest.$ac_ext >&5
6460 rm -rf conftest* 9746
6461 eval "ac_cv_func_connect=no" 9747ac_cv_func_connect=no
6462fi 9748fi
6463rm -f conftest* 9749rm -f conftest.err conftest.$ac_objext \
9750 conftest$ac_exeext conftest.$ac_ext
6464fi 9751fi
6465 9752echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6466if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then 9753echo "${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 9754
6473 if test $ac_cv_func_connect = no; then 9755 if test $ac_cv_func_connect = no; then
9756 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6474 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 9757echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6475echo "configure:6476: checking for connect in -lsocket" >&5 9758if 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 9759 echo $ECHO_N "(cached) $ECHO_C" >&6
6479else 9760else
6480 ac_save_LIBS="$LIBS" 9761 ac_check_lib_save_LIBS=$LIBS
6481LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 9762LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6482cat > conftest.$ac_ext <<EOF 9763cat >conftest.$ac_ext <<_ACEOF
6483#line 6484 "configure" 9764/* confdefs.h. */
6484#include "confdefs.h" 9765_ACEOF
9766cat confdefs.h >>conftest.$ac_ext
9767cat >>conftest.$ac_ext <<_ACEOF
9768/* end confdefs.h. */
9769
6485/* Override any gcc2 internal prototype to avoid an error. */ 9770/* Override any gcc2 internal prototype to avoid an error. */
9771#ifdef __cplusplus
9772extern "C"
9773#endif
6486/* We use char because int might match the return type of a gcc2 9774/* We use char because int might match the return type of a gcc2
6487 builtin and then its argument prototype would still apply. */ 9775 builtin and then its argument prototype would still apply. */
6488char connect(); 9776char connect ();
6489 9777int
6490int main() { 9778main ()
9779{
6491connect() 9780connect ();
9781 ;
6492; return 0; } 9782 return 0;
6493EOF 9783}
6494if { (eval echo configure:6495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9784_ACEOF
9785rm -f conftest.$ac_objext conftest$ac_exeext
9786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9787 (eval $ac_link) 2>conftest.er1
9788 ac_status=$?
9789 grep -v '^ *+' conftest.er1 >conftest.err
6495 rm -rf conftest* 9790 rm -f conftest.er1
6496 eval "ac_cv_lib_$ac_lib_var=yes" 9791 cat conftest.err >&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); } &&
9794 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9796 (eval $ac_try) 2>&5
9797 ac_status=$?
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); }; } &&
9800 { ac_try='test -s conftest$ac_exeext'
9801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9802 (eval $ac_try) 2>&5
9803 ac_status=$?
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); }; }; then
9806 ac_cv_lib_socket_connect=yes
6497else 9807else
6498 echo "configure: failed program was:" >&5 9808 echo "$as_me: failed program was:" >&5
6499 cat conftest.$ac_ext >&5 9809sed 's/^/| /' conftest.$ac_ext >&5
6500 rm -rf conftest* 9810
6501 eval "ac_cv_lib_$ac_lib_var=no" 9811ac_cv_lib_socket_connect=no
6502fi 9812fi
6503rm -f conftest* 9813rm -f conftest.err conftest.$ac_objext \
9814 conftest$ac_exeext conftest.$ac_ext
6504LIBS="$ac_save_LIBS" 9815LIBS=$ac_check_lib_save_LIBS
6505
6506fi 9816fi
6507if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9817echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6508 echo "$ac_t""yes" 1>&6 9818echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9819if test $ac_cv_lib_socket_connect = yes; then
6509 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 9820 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6510else
6511 echo "$ac_t""no" 1>&6
6512fi 9821fi
6513 9822
6514 fi 9823 fi
6515 9824
6516 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 9825 # Guillermo Gomez says -lposix is necessary on A/UX.
9826 echo "$as_me:$LINENO: checking for remove" >&5
6517 echo $ac_n "checking for remove""... $ac_c" 1>&6 9827echo $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 9828if test "${ac_cv_func_remove+set}" = set; then
6520 echo $ac_n "(cached) $ac_c" 1>&6 9829 echo $ECHO_N "(cached) $ECHO_C" >&6
6521else 9830else
6522 cat > conftest.$ac_ext <<EOF 9831 cat >conftest.$ac_ext <<_ACEOF
6523#line 6524 "configure" 9832/* confdefs.h. */
6524#include "confdefs.h" 9833_ACEOF
9834cat confdefs.h >>conftest.$ac_ext
9835cat >>conftest.$ac_ext <<_ACEOF
9836/* end confdefs.h. */
9837/* Define remove to an innocuous variant, in case <limits.h> declares remove.
9838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9839#define remove innocuous_remove
9840
6525/* System header to define __stub macros and hopefully few prototypes, 9841/* System header to define __stub macros and hopefully few prototypes,
6526 which can conflict with char remove(); below. */ 9842 which can conflict with char remove (); below.
9843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9844 <limits.h> exists even on freestanding compilers. */
9845
9846#ifdef __STDC__
9847# include <limits.h>
9848#else
6527#include <assert.h> 9849# include <assert.h>
9850#endif
9851
9852#undef remove
9853
6528/* Override any gcc2 internal prototype to avoid an error. */ 9854/* Override any gcc2 internal prototype to avoid an error. */
9855#ifdef __cplusplus
9856extern "C"
9857{
9858#endif
6529/* We use char because int might match the return type of a gcc2 9859/* We use char because int might match the return type of a gcc2
6530 builtin and then its argument prototype would still apply. */ 9860 builtin and then its argument prototype would still apply. */
6531char remove(); 9861char remove ();
6532
6533int main() {
6534
6535/* The GNU C library defines this for functions which it implements 9862/* The GNU C library defines this for functions which it implements
6536 to always fail with ENOSYS. Some functions are actually named 9863 to always fail with ENOSYS. Some functions are actually named
6537 something starting with __ and the normal name is an alias. */ 9864 something starting with __ and the normal name is an alias. */
6538#if defined (__stub_remove) || defined (__stub___remove) 9865#if defined (__stub_remove) || defined (__stub___remove)
6539choke me 9866choke me
6540#else 9867#else
6541remove(); 9868char (*f) () = remove;
6542#endif 9869#endif
9870#ifdef __cplusplus
9871}
9872#endif
6543 9873
9874int
9875main ()
9876{
9877return f != remove;
9878 ;
6544; return 0; } 9879 return 0;
6545EOF 9880}
6546if { (eval echo configure:6547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9881_ACEOF
9882rm -f conftest.$ac_objext conftest$ac_exeext
9883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9884 (eval $ac_link) 2>conftest.er1
9885 ac_status=$?
9886 grep -v '^ *+' conftest.er1 >conftest.err
6547 rm -rf conftest* 9887 rm -f conftest.er1
9888 cat conftest.err >&5
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); } &&
9891 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9893 (eval $ac_try) 2>&5
9894 ac_status=$?
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); }; } &&
9897 { ac_try='test -s conftest$ac_exeext'
9898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9899 (eval $ac_try) 2>&5
9900 ac_status=$?
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); }; }; then
6548 eval "ac_cv_func_remove=yes" 9903 ac_cv_func_remove=yes
6549else 9904else
6550 echo "configure: failed program was:" >&5 9905 echo "$as_me: failed program was:" >&5
6551 cat conftest.$ac_ext >&5 9906sed 's/^/| /' conftest.$ac_ext >&5
6552 rm -rf conftest* 9907
6553 eval "ac_cv_func_remove=no" 9908ac_cv_func_remove=no
6554fi 9909fi
6555rm -f conftest* 9910rm -f conftest.err conftest.$ac_objext \
9911 conftest$ac_exeext conftest.$ac_ext
6556fi 9912fi
6557 9913echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6558if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then 9914echo "${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 9915
6565 if test $ac_cv_func_remove = no; then 9916 if test $ac_cv_func_remove = no; then
9917 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6566 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 9918echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6567echo "configure:6568: checking for remove in -lposix" >&5 9919if 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 9920 echo $ECHO_N "(cached) $ECHO_C" >&6
6571else 9921else
6572 ac_save_LIBS="$LIBS" 9922 ac_check_lib_save_LIBS=$LIBS
6573LIBS="-lposix $LIBS" 9923LIBS="-lposix $LIBS"
6574cat > conftest.$ac_ext <<EOF 9924cat >conftest.$ac_ext <<_ACEOF
6575#line 6576 "configure" 9925/* confdefs.h. */
6576#include "confdefs.h" 9926_ACEOF
9927cat confdefs.h >>conftest.$ac_ext
9928cat >>conftest.$ac_ext <<_ACEOF
9929/* end confdefs.h. */
9930
6577/* Override any gcc2 internal prototype to avoid an error. */ 9931/* Override any gcc2 internal prototype to avoid an error. */
9932#ifdef __cplusplus
9933extern "C"
9934#endif
6578/* We use char because int might match the return type of a gcc2 9935/* We use char because int might match the return type of a gcc2
6579 builtin and then its argument prototype would still apply. */ 9936 builtin and then its argument prototype would still apply. */
6580char remove(); 9937char remove ();
6581 9938int
6582int main() { 9939main ()
9940{
6583remove() 9941remove ();
9942 ;
6584; return 0; } 9943 return 0;
6585EOF 9944}
6586if { (eval echo configure:6587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9945_ACEOF
9946rm -f conftest.$ac_objext conftest$ac_exeext
9947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9948 (eval $ac_link) 2>conftest.er1
9949 ac_status=$?
9950 grep -v '^ *+' conftest.er1 >conftest.err
6587 rm -rf conftest* 9951 rm -f conftest.er1
6588 eval "ac_cv_lib_$ac_lib_var=yes" 9952 cat conftest.err >&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); } &&
9955 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9957 (eval $ac_try) 2>&5
9958 ac_status=$?
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); }; } &&
9961 { ac_try='test -s conftest$ac_exeext'
9962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963 (eval $ac_try) 2>&5
9964 ac_status=$?
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); }; }; then
9967 ac_cv_lib_posix_remove=yes
6589else 9968else
6590 echo "configure: failed program was:" >&5 9969 echo "$as_me: failed program was:" >&5
6591 cat conftest.$ac_ext >&5 9970sed 's/^/| /' conftest.$ac_ext >&5
6592 rm -rf conftest* 9971
6593 eval "ac_cv_lib_$ac_lib_var=no" 9972ac_cv_lib_posix_remove=no
6594fi 9973fi
6595rm -f conftest* 9974rm -f conftest.err conftest.$ac_objext \
9975 conftest$ac_exeext conftest.$ac_ext
6596LIBS="$ac_save_LIBS" 9976LIBS=$ac_check_lib_save_LIBS
6597
6598fi 9977fi
6599if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9978echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6600 echo "$ac_t""yes" 1>&6 9979echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9980if test $ac_cv_lib_posix_remove = yes; then
6601 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 9981 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6602else
6603 echo "$ac_t""no" 1>&6
6604fi 9982fi
6605 9983
6606 fi 9984 fi
6607 9985
6608 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 9986 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9987 echo "$as_me:$LINENO: checking for shmat" >&5
6609 echo $ac_n "checking for shmat""... $ac_c" 1>&6 9988echo $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 9989if test "${ac_cv_func_shmat+set}" = set; then
6612 echo $ac_n "(cached) $ac_c" 1>&6 9990 echo $ECHO_N "(cached) $ECHO_C" >&6
6613else 9991else
6614 cat > conftest.$ac_ext <<EOF 9992 cat >conftest.$ac_ext <<_ACEOF
6615#line 6616 "configure" 9993/* confdefs.h. */
6616#include "confdefs.h" 9994_ACEOF
9995cat confdefs.h >>conftest.$ac_ext
9996cat >>conftest.$ac_ext <<_ACEOF
9997/* end confdefs.h. */
9998/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
9999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10000#define shmat innocuous_shmat
10001
6617/* System header to define __stub macros and hopefully few prototypes, 10002/* System header to define __stub macros and hopefully few prototypes,
6618 which can conflict with char shmat(); below. */ 10003 which can conflict with char shmat (); below.
10004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10005 <limits.h> exists even on freestanding compilers. */
10006
10007#ifdef __STDC__
10008# include <limits.h>
10009#else
6619#include <assert.h> 10010# include <assert.h>
10011#endif
10012
10013#undef shmat
10014
6620/* Override any gcc2 internal prototype to avoid an error. */ 10015/* Override any gcc2 internal prototype to avoid an error. */
10016#ifdef __cplusplus
10017extern "C"
10018{
10019#endif
6621/* We use char because int might match the return type of a gcc2 10020/* We use char because int might match the return type of a gcc2
6622 builtin and then its argument prototype would still apply. */ 10021 builtin and then its argument prototype would still apply. */
6623char shmat(); 10022char shmat ();
6624
6625int main() {
6626
6627/* The GNU C library defines this for functions which it implements 10023/* The GNU C library defines this for functions which it implements
6628 to always fail with ENOSYS. Some functions are actually named 10024 to always fail with ENOSYS. Some functions are actually named
6629 something starting with __ and the normal name is an alias. */ 10025 something starting with __ and the normal name is an alias. */
6630#if defined (__stub_shmat) || defined (__stub___shmat) 10026#if defined (__stub_shmat) || defined (__stub___shmat)
6631choke me 10027choke me
6632#else 10028#else
6633shmat(); 10029char (*f) () = shmat;
6634#endif 10030#endif
10031#ifdef __cplusplus
10032}
10033#endif
6635 10034
10035int
10036main ()
10037{
10038return f != shmat;
10039 ;
6636; return 0; } 10040 return 0;
6637EOF 10041}
6638if { (eval echo configure:6639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10042_ACEOF
10043rm -f conftest.$ac_objext conftest$ac_exeext
10044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10045 (eval $ac_link) 2>conftest.er1
10046 ac_status=$?
10047 grep -v '^ *+' conftest.er1 >conftest.err
6639 rm -rf conftest* 10048 rm -f conftest.er1
10049 cat conftest.err >&5
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); } &&
10052 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10054 (eval $ac_try) 2>&5
10055 ac_status=$?
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); }; } &&
10058 { ac_try='test -s conftest$ac_exeext'
10059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10060 (eval $ac_try) 2>&5
10061 ac_status=$?
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); }; }; then
6640 eval "ac_cv_func_shmat=yes" 10064 ac_cv_func_shmat=yes
6641else 10065else
6642 echo "configure: failed program was:" >&5 10066 echo "$as_me: failed program was:" >&5
6643 cat conftest.$ac_ext >&5 10067sed 's/^/| /' conftest.$ac_ext >&5
6644 rm -rf conftest* 10068
6645 eval "ac_cv_func_shmat=no" 10069ac_cv_func_shmat=no
6646fi 10070fi
6647rm -f conftest* 10071rm -f conftest.err conftest.$ac_objext \
10072 conftest$ac_exeext conftest.$ac_ext
6648fi 10073fi
6649 10074echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6650if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then 10075echo "${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 10076
6657 if test $ac_cv_func_shmat = no; then 10077 if test $ac_cv_func_shmat = no; then
10078 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6658 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 10079echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6659echo "configure:6660: checking for shmat in -lipc" >&5 10080if 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 10081 echo $ECHO_N "(cached) $ECHO_C" >&6
6663else 10082else
6664 ac_save_LIBS="$LIBS" 10083 ac_check_lib_save_LIBS=$LIBS
6665LIBS="-lipc $LIBS" 10084LIBS="-lipc $LIBS"
6666cat > conftest.$ac_ext <<EOF 10085cat >conftest.$ac_ext <<_ACEOF
6667#line 6668 "configure" 10086/* confdefs.h. */
6668#include "confdefs.h" 10087_ACEOF
10088cat confdefs.h >>conftest.$ac_ext
10089cat >>conftest.$ac_ext <<_ACEOF
10090/* end confdefs.h. */
10091
6669/* Override any gcc2 internal prototype to avoid an error. */ 10092/* Override any gcc2 internal prototype to avoid an error. */
10093#ifdef __cplusplus
10094extern "C"
10095#endif
6670/* We use char because int might match the return type of a gcc2 10096/* We use char because int might match the return type of a gcc2
6671 builtin and then its argument prototype would still apply. */ 10097 builtin and then its argument prototype would still apply. */
6672char shmat(); 10098char shmat ();
6673 10099int
6674int main() { 10100main ()
10101{
6675shmat() 10102shmat ();
10103 ;
6676; return 0; } 10104 return 0;
6677EOF 10105}
6678if { (eval echo configure:6679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10106_ACEOF
10107rm -f conftest.$ac_objext conftest$ac_exeext
10108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10109 (eval $ac_link) 2>conftest.er1
10110 ac_status=$?
10111 grep -v '^ *+' conftest.er1 >conftest.err
6679 rm -rf conftest* 10112 rm -f conftest.er1
6680 eval "ac_cv_lib_$ac_lib_var=yes" 10113 cat conftest.err >&5
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); } &&
10116 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10118 (eval $ac_try) 2>&5
10119 ac_status=$?
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); }; } &&
10122 { ac_try='test -s conftest$ac_exeext'
10123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10124 (eval $ac_try) 2>&5
10125 ac_status=$?
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); }; }; then
10128 ac_cv_lib_ipc_shmat=yes
6681else 10129else
6682 echo "configure: failed program was:" >&5 10130 echo "$as_me: failed program was:" >&5
6683 cat conftest.$ac_ext >&5 10131sed 's/^/| /' conftest.$ac_ext >&5
6684 rm -rf conftest* 10132
6685 eval "ac_cv_lib_$ac_lib_var=no" 10133ac_cv_lib_ipc_shmat=no
6686fi 10134fi
6687rm -f conftest* 10135rm -f conftest.err conftest.$ac_objext \
10136 conftest$ac_exeext conftest.$ac_ext
6688LIBS="$ac_save_LIBS" 10137LIBS=$ac_check_lib_save_LIBS
6689
6690fi 10138fi
6691if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 10139echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6692 echo "$ac_t""yes" 1>&6 10140echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10141if test $ac_cv_lib_ipc_shmat = yes; then
6693 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 10142 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6694else
6695 echo "$ac_t""no" 1>&6
6696fi 10143fi
6697 10144
6698 fi 10145 fi
6699 fi 10146 fi
6700 10147
6701 # Check for libraries that X11R6 Xt/Xaw programs need. 10148 # Check for libraries that X11R6 Xt/Xaw programs need.
6702 ac_save_LDFLAGS="$LDFLAGS" 10149 ac_save_LDFLAGS=$LDFLAGS
6703 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 10150 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6704 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 10151 # 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 10152 # 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. 10153 # 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 10154 # These have to be linked with before -lX11, unlike the other
6708 # libraries we check for below, so use a different variable. 10155 # libraries we check for below, so use a different variable.
6709 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 10156 # John Interrante, Karl Berry
10157 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6710 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 10158echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6711echo "configure:6712: checking for IceConnectionNumber in -lICE" >&5 10159if 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 10160 echo $ECHO_N "(cached) $ECHO_C" >&6
6715else 10161else
6716 ac_save_LIBS="$LIBS" 10162 ac_check_lib_save_LIBS=$LIBS
6717LIBS="-lICE $X_EXTRA_LIBS $LIBS" 10163LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6718cat > conftest.$ac_ext <<EOF 10164cat >conftest.$ac_ext <<_ACEOF
6719#line 6720 "configure" 10165/* confdefs.h. */
6720#include "confdefs.h" 10166_ACEOF
10167cat confdefs.h >>conftest.$ac_ext
10168cat >>conftest.$ac_ext <<_ACEOF
10169/* end confdefs.h. */
10170
6721/* Override any gcc2 internal prototype to avoid an error. */ 10171/* Override any gcc2 internal prototype to avoid an error. */
10172#ifdef __cplusplus
10173extern "C"
10174#endif
6722/* We use char because int might match the return type of a gcc2 10175/* We use char because int might match the return type of a gcc2
6723 builtin and then its argument prototype would still apply. */ 10176 builtin and then its argument prototype would still apply. */
6724char IceConnectionNumber(); 10177char IceConnectionNumber ();
6725 10178int
6726int main() { 10179main ()
10180{
6727IceConnectionNumber() 10181IceConnectionNumber ();
10182 ;
6728; return 0; } 10183 return 0;
6729EOF 10184}
6730if { (eval echo configure:6731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10185_ACEOF
10186rm -f conftest.$ac_objext conftest$ac_exeext
10187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10188 (eval $ac_link) 2>conftest.er1
10189 ac_status=$?
10190 grep -v '^ *+' conftest.er1 >conftest.err
6731 rm -rf conftest* 10191 rm -f conftest.er1
6732 eval "ac_cv_lib_$ac_lib_var=yes" 10192 cat conftest.err >&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); } &&
10195 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10197 (eval $ac_try) 2>&5
10198 ac_status=$?
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); }; } &&
10201 { ac_try='test -s conftest$ac_exeext'
10202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203 (eval $ac_try) 2>&5
10204 ac_status=$?
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; }; then
10207 ac_cv_lib_ICE_IceConnectionNumber=yes
6733else 10208else
6734 echo "configure: failed program was:" >&5 10209 echo "$as_me: failed program was:" >&5
6735 cat conftest.$ac_ext >&5 10210sed 's/^/| /' conftest.$ac_ext >&5
6736 rm -rf conftest* 10211
6737 eval "ac_cv_lib_$ac_lib_var=no" 10212ac_cv_lib_ICE_IceConnectionNumber=no
6738fi 10213fi
6739rm -f conftest* 10214rm -f conftest.err conftest.$ac_objext \
10215 conftest$ac_exeext conftest.$ac_ext
6740LIBS="$ac_save_LIBS" 10216LIBS=$ac_check_lib_save_LIBS
6741
6742fi 10217fi
6743if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 10218echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6744 echo "$ac_t""yes" 1>&6 10219echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10220if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6745 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 10221 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6746else
6747 echo "$ac_t""no" 1>&6
6748fi 10222fi
6749 10223
6750 LDFLAGS="$ac_save_LDFLAGS" 10224 LDFLAGS=$ac_save_LDFLAGS
6751 10225
6752fi 10226fi
6753 10227
6754 10228
6755 10229
6756if test x$support_xpm = xyes; then 10230if test x$support_xpm = xyes; then
6757 10231
6758 10232
6759 10233
6760# Initialize some more variables set by options. 10234# Initialize some more variables set by options.
6761# The variables have the same names as the options, with 10235# The variables have the same names as the options, with
6762# dashes changed to underlines. 10236# dashes changed to underlines.
6763 10237
6764# If we find XPM, set shell vars xpm_includes and xpm_libraries to the 10238# If we find XPM, set shell vars xpm_includes and xpm_libraries to the
6765# paths, otherwise set no_xpm=yes. 10239# paths, otherwise set no_xpm=yes.
6766# Uses ac_ vars as temps to allow command line to override cache and checks. 10240# Uses ac_ vars as temps to allow command line to override cache and checks.
10241echo "$as_me:$LINENO: checking for libXpm" >&5
6767echo $ac_n "checking for libXpm""... $ac_c" 1>&6 10242echo $ECHO_N "checking for libXpm... $ECHO_C" >&6
6768echo "configure:6769: checking for libXpm" >&5 10243
6769 10244
6770# Check whether --with-xpm_includes or --without-xpm_includes was given. 10245# Check whether --with-xpm_includes or --without-xpm_includes was given.
6771if test "${with_xpm_includes+set}" = set; then 10246if test "${with_xpm_includes+set}" = set; then
6772 withval="$with_xpm_includes" 10247 withval="$with_xpm_includes"
6773 xpm_includes="$withval" 10248 xpm_includes="$withval"
6774else 10249else
6775 xpm_includes=NO 10250 xpm_includes=NO
6776fi 10251fi;
6777 10252
6778# Check whether --with-xpm_library or --without-xpm_library was given. 10253# Check whether --with-xpm_library or --without-xpm_library was given.
6779if test "${with_xpm_library+set}" = set; then 10254if test "${with_xpm_library+set}" = set; then
6780 withval="$with_xpm_library" 10255 withval="$with_xpm_library"
6781 xpm_libraries="$withval" 10256 xpm_libraries="$withval"
6782else 10257else
6783 xpm_libraries=NO 10258 xpm_libraries=NO
6784fi 10259fi;
6785
6786 10260
6787# --without-xpm overrides everything else, but does not touch the cache. 10261# --without-xpm overrides everything else, but does not touch the cache.
10262
6788# Check whether --with-xpm or --without-xpm was given. 10263# Check whether --with-xpm or --without-xpm was given.
6789if test "${with_xpm+set}" = set; then 10264if test "${with_xpm+set}" = set; then
6790 withval="$with_xpm" 10265 withval="$with_xpm"
6791 : 10266
6792fi 10267fi;
6793
6794if test "$with_xpm" = no; then 10268if test "$with_xpm" = no; then
6795 have_xpm=disabled 10269 have_xpm=disabled
6796else 10270else
6797 if eval "test \"`echo '$''{'ac_cv_have_xpm'+set}'`\" = set"; then 10271 if test "${ac_cv_have_xpm+set}" = set; then
6798 echo $ac_n "(cached) $ac_c" 1>&6 10272 echo $ECHO_N "(cached) $ECHO_C" >&6
6799else 10273else
6800 10274
6801 vt_xpm_include_X11=no 10275 vt_xpm_include_X11=no
6802 if test -n "$xpm_includes"; then 10276 if test -n "$xpm_includes"; then
6803 vt_xpm_includes=$xpm_includes 10277 vt_xpm_includes=$xpm_includes
6804 else 10278 else
6805 vt_xpm_includes=NO 10279 vt_xpm_includes=NO
6815 10289
6816ac_save_CPPFLAGS="$CPPFLAGS" 10290ac_save_CPPFLAGS="$CPPFLAGS"
6817CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10291CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6818 10292
6819 # First, try using that file with no special directory specified. 10293 # First, try using that file with no special directory specified.
6820cat > conftest.$ac_ext <<EOF 10294cat >conftest.$ac_ext <<_ACEOF
6821#line 6822 "configure" 10295/* confdefs.h. */
6822#include "confdefs.h" 10296_ACEOF
10297cat confdefs.h >>conftest.$ac_ext
10298cat >>conftest.$ac_ext <<_ACEOF
10299/* end confdefs.h. */
6823#include <X11/xpm.h> 10300#include <X11/xpm.h>
6824EOF 10301_ACEOF
6825ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10302if { (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; } 10303 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6827ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10304 ac_status=$?
10305 grep -v '^ *+' conftest.er1 >conftest.err
10306 rm -f conftest.er1
10307 cat conftest.err >&5
10308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309 (exit $ac_status); } >/dev/null; then
10310 if test -s conftest.err; then
10311 ac_cpp_err=$ac_cxx_preproc_warn_flag
10312 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10313 else
10314 ac_cpp_err=
10315 fi
10316else
10317 ac_cpp_err=yes
10318fi
6828if test -z "$ac_err"; then 10319if test -z "$ac_cpp_err"; then
6829 rm -rf conftest*
6830 # We can compile using X headers with no special include directory. 10320 # We can compile using X headers with no special include directory.
6831vt_xpm_includes= 10321vt_xpm_includes=
6832vt_xpm_include_X11=yes 10322vt_xpm_include_X11=yes
6833else 10323else
6834 echo "$ac_err" >&5
6835 echo "configure: failed program was:" >&5 10324 echo "$as_me: failed program was:" >&5
6836 cat conftest.$ac_ext >&5 10325sed 's/^/| /' conftest.$ac_ext >&5
6837 rm -rf conftest* 10326
6838 CPPFLAGS="$ac_save_CPPFLAGS" 10327 CPPFLAGS="$ac_save_CPPFLAGS"
6839# Look for the header file in a standard set of common directories. 10328# Look for the header file in a standard set of common directories.
6840 for ac_dir in \ 10329 for ac_dir in \
6841 /usr/X11/include \ 10330 /usr/X11/include \
6842 /usr/X11R6/include \ 10331 /usr/X11R6/include \
6883 break 10372 break
6884 fi 10373 fi
6885 fi 10374 fi
6886 done 10375 done
6887fi 10376fi
6888rm -f conftest* 10377rm -f conftest.err conftest.$ac_ext
6889fi 10378fi
6890 10379
6891if test "$vt_xpm_libraries" = NO; then 10380if test "$vt_xpm_libraries" = NO; then
6892 # Check for the libraries. 10381 # Check for the libraries.
6893 10382
6894 # See if we find them without any special options. 10383 # See if we find them without any special options.
6895 # Don't add to $LIBS permanently. 10384 # Don't add to $LIBS permanently.
6896 ac_save_LIBS="$LIBS" 10385 ac_save_LIBS="$LIBS"
6897 LIBS="$LIBS $X_LIBS -lXpm -lX11" 10386 LIBS="$LIBS $X_LIBS -lXpm -lX11"
6898cat > conftest.$ac_ext <<EOF 10387cat >conftest.$ac_ext <<_ACEOF
6899#line 6900 "configure" 10388/* confdefs.h. */
6900#include "confdefs.h" 10389_ACEOF
10390cat confdefs.h >>conftest.$ac_ext
10391cat >>conftest.$ac_ext <<_ACEOF
10392/* end confdefs.h. */
6901 10393
6902int main() { 10394int
10395main ()
10396{
6903XpmReadFileToPixmap() 10397XpmReadFileToPixmap()
10398 ;
6904; return 0; } 10399 return 0;
6905EOF 10400}
6906if { (eval echo configure:6907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10401_ACEOF
10402rm -f conftest.$ac_objext conftest$ac_exeext
10403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10404 (eval $ac_link) 2>conftest.er1
10405 ac_status=$?
10406 grep -v '^ *+' conftest.er1 >conftest.err
6907 rm -rf conftest* 10407 rm -f conftest.er1
10408 cat conftest.err >&5
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); } &&
10411 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10413 (eval $ac_try) 2>&5
10414 ac_status=$?
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); }; } &&
10417 { ac_try='test -s conftest$ac_exeext'
10418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10419 (eval $ac_try) 2>&5
10420 ac_status=$?
10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); }; }; then
6908 LIBS="$ac_save_LIBS" 10423 LIBS="$ac_save_LIBS"
6909# We can link libXpm with no special library path. 10424# We can link libXpm with no special library path.
6910vt_xpm_libraries= 10425vt_xpm_libraries=
6911else 10426else
6912 echo "configure: failed program was:" >&5 10427 echo "$as_me: failed program was:" >&5
6913 cat conftest.$ac_ext >&5 10428sed 's/^/| /' conftest.$ac_ext >&5
6914 rm -rf conftest* 10429
6915 LIBS="$ac_save_LIBS" 10430LIBS="$ac_save_LIBS"
6916# First see if replacing the include by lib works. 10431# First see if replacing the include by lib works.
6917for ac_dir in \ 10432for ac_dir in \
6918 `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \ 10433 `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
6919 /usr/X11/lib \ 10434 /usr/X11/lib \
6920 /usr/X11R6/lib \ 10435 /usr/X11R6/lib \
6957 break 2 10472 break 2
6958 fi 10473 fi
6959 done 10474 done
6960done 10475done
6961fi 10476fi
6962rm -f conftest* 10477rm -f conftest.err conftest.$ac_objext \
10478 conftest$ac_exeext conftest.$ac_ext
6963fi 10479fi
6964 10480
6965 10481
6966 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then 10482 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then
6967 ac_cv_have_xpm="have_xpm=no" 10483 ac_cv_have_xpm="have_xpm=no"
6973fi 10489fi
6974 eval "$ac_cv_have_xpm" 10490 eval "$ac_cv_have_xpm"
6975fi 10491fi
6976 10492
6977if test "$have_xpm" != yes; then 10493if test "$have_xpm" != yes; then
6978 echo "$ac_t""$have_xpm" 1>&6 10494 echo "$as_me:$LINENO: result: $have_xpm" >&5
10495echo "${ECHO_T}$have_xpm" >&6
6979 no_xpm=yes 10496 no_xpm=yes
6980else 10497else
6981 if test "$xpm_includes" != NO; then 10498 if test "$xpm_includes" != NO; then
6982 if test "$xpm_includes" = "$vt_xpm_includes"; then 10499 if test "$xpm_includes" = "$vt_xpm_includes"; then
6983 if test -r "$xpm_includes/X11/xpm.h"; then 10500 if test -r "$xpm_includes/X11/xpm.h"; then
6984 vt_xpm_include_X11=yes 10501 vt_xpm_include_X11=yes
6985 fi 10502 fi
6986 else 10503 else
6987 vt_xpm_include_X11=no 10504 vt_xpm_include_X11=no
6988 if test -z "$xpm_includes"; then 10505 if test -z "$xpm_includes"; then
6989 cat > conftest.$ac_ext <<EOF 10506 cat >conftest.$ac_ext <<_ACEOF
6990#line 6991 "configure" 10507/* confdefs.h. */
6991#include "confdefs.h" 10508_ACEOF
10509cat confdefs.h >>conftest.$ac_ext
10510cat >>conftest.$ac_ext <<_ACEOF
10511/* end confdefs.h. */
6992#include <X11/xpm.h> 10512#include <X11/xpm.h>
6993EOF 10513_ACEOF
6994ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10514if { (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; } 10515 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6996ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10516 ac_status=$?
10517 grep -v '^ *+' conftest.er1 >conftest.err
10518 rm -f conftest.er1
10519 cat conftest.err >&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); } >/dev/null; then
10522 if test -s conftest.err; then
10523 ac_cpp_err=$ac_cxx_preproc_warn_flag
10524 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10525 else
10526 ac_cpp_err=
10527 fi
10528else
10529 ac_cpp_err=yes
10530fi
6997if test -z "$ac_err"; then 10531if test -z "$ac_cpp_err"; then
6998 rm -rf conftest*
6999 vt_xpm_include_X11=yes 10532 vt_xpm_include_X11=yes
7000else 10533else
7001 echo "$ac_err" >&5
7002 echo "configure: failed program was:" >&5 10534 echo "$as_me: failed program was:" >&5
7003 cat conftest.$ac_ext >&5 10535sed 's/^/| /' conftest.$ac_ext >&5
10536
10537
7004fi 10538fi
7005rm -f conftest* 10539rm -f conftest.err conftest.$ac_ext
7006 else 10540 else
7007 if test -r "$xpm_includes/X11/xpm.h"; then 10541 if test -r "$xpm_includes/X11/xpm.h"; then
7008 vt_xpm_include_X11=yes 10542 vt_xpm_include_X11=yes
7009 fi 10543 fi
7010 fi 10544 fi
7017 # Update the cache value to reflect the command line values. 10551 # Update the cache value to reflect the command line values.
7018 ac_cv_have_xpm="have_xpm=yes \ 10552 ac_cv_have_xpm="have_xpm=yes \
7019 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \ 10553 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
7020 vt_xpm_include_X11=$vt_xpm_include_X11" 10554 vt_xpm_include_X11=$vt_xpm_include_X11"
7021 eval "$ac_cv_have_xpm" 10555 eval "$ac_cv_have_xpm"
10556 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 10557echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6
7023 if test -n "$vt_xpm_includes"; then 10558 if test -n "$vt_xpm_includes"; then
7024 XPM_CPPFLAGS="-DHAVE_LIBXPM" 10559 XPM_CPPFLAGS="-DHAVE_LIBXPM"
7025 fi 10560 fi
7026 if test -n "$vt_xpm_includes"; then 10561 if test -n "$vt_xpm_includes"; then
7027 XPM_CFLAGS="-I$vt_xpm_includes" 10562 XPM_CFLAGS="-I$vt_xpm_includes"
7029 XPM_LIBS="-lXpm" 10564 XPM_LIBS="-lXpm"
7030 if test -n "$vt_xpm_libraries"; then 10565 if test -n "$vt_xpm_libraries"; then
7031 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS" 10566 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
7032 fi 10567 fi
7033 if test "x$vt_xpm_include_X11" = xyes; then 10568 if test "x$vt_xpm_include_X11" = xyes; then
10569
7034 cat >> confdefs.h <<\EOF 10570cat >>confdefs.h <<\_ACEOF
7035#define XPM_INC_X11 1 10571#define XPM_INC_X11 1
7036EOF 10572_ACEOF
7037 10573
7038 fi 10574 fi
7039fi 10575fi
7040 10576
7041 10577
7045 if test x$no_xpm = xyes; then 10581 if test x$no_xpm = xyes; then
7046 support_xpm=needsmanualspecification 10582 support_xpm=needsmanualspecification
7047 fi 10583 fi
7048fi 10584fi
7049 10585
10586echo "$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 10587echo $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 10588if test "${ac_cv_header_sys_wait_h+set}" = set; then
7053 echo $ac_n "(cached) $ac_c" 1>&6 10589 echo $ECHO_N "(cached) $ECHO_C" >&6
7054else 10590else
7055 cat > conftest.$ac_ext <<EOF 10591 cat >conftest.$ac_ext <<_ACEOF
7056#line 7057 "configure" 10592/* confdefs.h. */
7057#include "confdefs.h" 10593_ACEOF
10594cat confdefs.h >>conftest.$ac_ext
10595cat >>conftest.$ac_ext <<_ACEOF
10596/* end confdefs.h. */
7058#include <sys/types.h> 10597#include <sys/types.h>
7059#include <sys/wait.h> 10598#include <sys/wait.h>
7060#ifndef WEXITSTATUS 10599#ifndef WEXITSTATUS
7061#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 10600# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7062#endif 10601#endif
7063#ifndef WIFEXITED 10602#ifndef WIFEXITED
7064#define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 10603# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7065#endif 10604#endif
7066int main() { 10605
10606int
10607main ()
10608{
7067int s; 10609 int s;
7068wait (&s); 10610 wait (&s);
7069s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 10611 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10612 ;
7070; return 0; } 10613 return 0;
7071EOF 10614}
7072if { (eval echo configure:7073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10615_ACEOF
10616rm -f conftest.$ac_objext
10617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10618 (eval $ac_compile) 2>conftest.er1
10619 ac_status=$?
10620 grep -v '^ *+' conftest.er1 >conftest.err
7073 rm -rf conftest* 10621 rm -f conftest.er1
10622 cat conftest.err >&5
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); } &&
10625 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10627 (eval $ac_try) 2>&5
10628 ac_status=$?
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); }; } &&
10631 { ac_try='test -s conftest.$ac_objext'
10632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10633 (eval $ac_try) 2>&5
10634 ac_status=$?
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); }; }; then
7074 ac_cv_header_sys_wait_h=yes 10637 ac_cv_header_sys_wait_h=yes
7075else 10638else
7076 echo "configure: failed program was:" >&5 10639 echo "$as_me: failed program was:" >&5
7077 cat conftest.$ac_ext >&5 10640sed 's/^/| /' conftest.$ac_ext >&5
7078 rm -rf conftest* 10641
7079 ac_cv_header_sys_wait_h=no 10642ac_cv_header_sys_wait_h=no
7080fi 10643fi
7081rm -f conftest* 10644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7082fi 10645fi
7083 10646echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7084echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 10647echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7085if test $ac_cv_header_sys_wait_h = yes; then 10648if test $ac_cv_header_sys_wait_h = yes; then
10649
7086 cat >> confdefs.h <<\EOF 10650cat >>confdefs.h <<\_ACEOF
7087#define HAVE_SYS_WAIT_H 1 10651#define HAVE_SYS_WAIT_H 1
7088EOF 10652_ACEOF
7089 10653
7090fi 10654fi
7091 10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
7092for ac_hdr in \ 10675for ac_header in \
7093 assert.h \ 10676 assert.h \
7094 fcntl.h \ 10677 fcntl.h \
7095 grp.h \ 10678 grp.h \
7096 libc.h \ 10679 libc.h \
7097 lastlog.h \ 10680 lastlog.h \
7109 utmp.h \ 10692 utmp.h \
7110 utmpx.h \ 10693 utmpx.h \
7111 stdint.h \ 10694 stdint.h \
7112 10695
7113do 10696do
7114ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 10697as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10698if eval "test \"\${$as_ac_Header+set}\" = set"; then
10699 echo "$as_me:$LINENO: checking for $ac_header" >&5
7115echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10700echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7116echo "configure:7117: checking for $ac_hdr" >&5 10701if 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 10702 echo $ECHO_N "(cached) $ECHO_C" >&6
10703fi
10704echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10705echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7119else 10706else
10707 # Is the header compilable?
10708echo "$as_me:$LINENO: checking $ac_header usability" >&5
10709echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7120 cat > conftest.$ac_ext <<EOF 10710cat >conftest.$ac_ext <<_ACEOF
7121#line 7122 "configure" 10711/* confdefs.h. */
7122#include "confdefs.h" 10712_ACEOF
10713cat confdefs.h >>conftest.$ac_ext
10714cat >>conftest.$ac_ext <<_ACEOF
10715/* end confdefs.h. */
10716$ac_includes_default
7123#include <$ac_hdr> 10717#include <$ac_header>
7124EOF 10718_ACEOF
7125ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10719rm -f conftest.$ac_objext
7126{ (eval echo configure:7127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7127ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10721 (eval $ac_compile) 2>conftest.er1
10722 ac_status=$?
10723 grep -v '^ *+' conftest.er1 >conftest.err
10724 rm -f conftest.er1
10725 cat conftest.err >&5
10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727 (exit $ac_status); } &&
10728 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10730 (eval $ac_try) 2>&5
10731 ac_status=$?
10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); }; } &&
10734 { ac_try='test -s conftest.$ac_objext'
10735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10736 (eval $ac_try) 2>&5
10737 ac_status=$?
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); }; }; then
10740 ac_header_compiler=yes
10741else
10742 echo "$as_me: failed program was:" >&5
10743sed 's/^/| /' conftest.$ac_ext >&5
10744
10745ac_header_compiler=no
10746fi
10747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10748echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10749echo "${ECHO_T}$ac_header_compiler" >&6
10750
10751# Is the header present?
10752echo "$as_me:$LINENO: checking $ac_header presence" >&5
10753echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10754cat >conftest.$ac_ext <<_ACEOF
10755/* confdefs.h. */
10756_ACEOF
10757cat confdefs.h >>conftest.$ac_ext
10758cat >>conftest.$ac_ext <<_ACEOF
10759/* end confdefs.h. */
10760#include <$ac_header>
10761_ACEOF
10762if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10764 ac_status=$?
10765 grep -v '^ *+' conftest.er1 >conftest.err
10766 rm -f conftest.er1
10767 cat conftest.err >&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); } >/dev/null; then
10770 if test -s conftest.err; then
10771 ac_cpp_err=$ac_cxx_preproc_warn_flag
10772 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10773 else
10774 ac_cpp_err=
10775 fi
10776else
10777 ac_cpp_err=yes
10778fi
7128if test -z "$ac_err"; then 10779if test -z "$ac_cpp_err"; then
7129 rm -rf conftest* 10780 ac_header_preproc=yes
7130 eval "ac_cv_header_$ac_safe=yes"
7131else 10781else
7132 echo "$ac_err" >&5
7133 echo "configure: failed program was:" >&5 10782 echo "$as_me: failed program was:" >&5
7134 cat conftest.$ac_ext >&5 10783sed 's/^/| /' conftest.$ac_ext >&5
7135 rm -rf conftest* 10784
7136 eval "ac_cv_header_$ac_safe=no" 10785 ac_header_preproc=no
7137fi 10786fi
7138rm -f conftest* 10787rm -f conftest.err conftest.$ac_ext
10788echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10789echo "${ECHO_T}$ac_header_preproc" >&6
10790
10791# So? What about this header?
10792case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10793 yes:no: )
10794 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10795echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10797echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10798 ac_header_preproc=yes
10799 ;;
10800 no:yes:* )
10801 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10802echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10803 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10804echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10805 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10806echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10807 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10808echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10810echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10811 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10812echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10813 (
10814 cat <<\_ASBOX
10815## ------------------------------------------ ##
10816## Report this to the AC_PACKAGE_NAME lists. ##
10817## ------------------------------------------ ##
10818_ASBOX
10819 ) |
10820 sed "s/^/$as_me: WARNING: /" >&2
10821 ;;
10822esac
10823echo "$as_me:$LINENO: checking for $ac_header" >&5
10824echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10825if eval "test \"\${$as_ac_Header+set}\" = set"; then
10826 echo $ECHO_N "(cached) $ECHO_C" >&6
10827else
10828 eval "$as_ac_Header=\$ac_header_preproc"
7139fi 10829fi
7140if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10830echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7141 echo "$ac_t""yes" 1>&6 10831echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7142 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 10832
10833fi
10834if test `eval echo '${'$as_ac_Header'}'` = yes; then
7143 cat >> confdefs.h <<EOF 10835 cat >>confdefs.h <<_ACEOF
7144#define $ac_tr_hdr 1 10836#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7145EOF 10837_ACEOF
7146 10838
7147else
7148 echo "$ac_t""no" 1>&6
7149fi 10839fi
10840
7150done 10841done
7151 10842
7152 10843
10844echo "$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 10845echo $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 10846if test "${ac_cv_header_time+set}" = set; then
7156 echo $ac_n "(cached) $ac_c" 1>&6 10847 echo $ECHO_N "(cached) $ECHO_C" >&6
7157else 10848else
7158 cat > conftest.$ac_ext <<EOF 10849 cat >conftest.$ac_ext <<_ACEOF
7159#line 7160 "configure" 10850/* confdefs.h. */
7160#include "confdefs.h" 10851_ACEOF
10852cat confdefs.h >>conftest.$ac_ext
10853cat >>conftest.$ac_ext <<_ACEOF
10854/* end confdefs.h. */
7161#include <sys/types.h> 10855#include <sys/types.h>
7162#include <sys/time.h> 10856#include <sys/time.h>
7163#include <time.h> 10857#include <time.h>
7164int main() { 10858
7165struct tm *tp; 10859int
10860main ()
10861{
10862if ((struct tm *) 0)
10863return 0;
10864 ;
7166; return 0; } 10865 return 0;
7167EOF 10866}
7168if { (eval echo configure:7169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10867_ACEOF
10868rm -f conftest.$ac_objext
10869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10870 (eval $ac_compile) 2>conftest.er1
10871 ac_status=$?
10872 grep -v '^ *+' conftest.er1 >conftest.err
7169 rm -rf conftest* 10873 rm -f conftest.er1
10874 cat conftest.err >&5
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); } &&
10877 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10879 (eval $ac_try) 2>&5
10880 ac_status=$?
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); }; } &&
10883 { ac_try='test -s conftest.$ac_objext'
10884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10885 (eval $ac_try) 2>&5
10886 ac_status=$?
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); }; }; then
7170 ac_cv_header_time=yes 10889 ac_cv_header_time=yes
7171else 10890else
7172 echo "configure: failed program was:" >&5 10891 echo "$as_me: failed program was:" >&5
7173 cat conftest.$ac_ext >&5 10892sed 's/^/| /' conftest.$ac_ext >&5
7174 rm -rf conftest* 10893
7175 ac_cv_header_time=no 10894ac_cv_header_time=no
7176fi 10895fi
7177rm -f conftest* 10896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7178fi 10897fi
7179 10898echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7180echo "$ac_t""$ac_cv_header_time" 1>&6 10899echo "${ECHO_T}$ac_cv_header_time" >&6
7181if test $ac_cv_header_time = yes; then 10900if test $ac_cv_header_time = yes; then
10901
7182 cat >> confdefs.h <<\EOF 10902cat >>confdefs.h <<\_ACEOF
7183#define TIME_WITH_SYS_TIME 1 10903#define TIME_WITH_SYS_TIME 1
7184EOF 10904_ACEOF
7185 10905
7186fi 10906fi
7187 10907
7188 10908
10909echo "$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 10910echo $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 10911if test "${rxvt_cv_header_sysioctl+set}" = set; then
7192 echo $ac_n "(cached) $ac_c" 1>&6 10912 echo $ECHO_N "(cached) $ECHO_C" >&6
7193else 10913else
7194 cat > conftest.$ac_ext <<EOF 10914 cat >conftest.$ac_ext <<_ACEOF
7195#line 7196 "configure" 10915/* confdefs.h. */
7196#include "confdefs.h" 10916_ACEOF
10917cat confdefs.h >>conftest.$ac_ext
10918cat >>conftest.$ac_ext <<_ACEOF
10919/* end confdefs.h. */
7197#include <stdio.h> 10920#include <stdio.h>
7198#include <sys/ioctl.h> 10921#include <sys/ioctl.h>
7199#ifdef HAVE_TERMIOS_H 10922#ifdef HAVE_TERMIOS_H
7200#include <termios.h> 10923#include <termios.h>
7201#endif 10924#endif
7202int main() { 10925int
10926main ()
10927{
7203int a = ECHO; 10928int a = ECHO;
10929 ;
7204; return 0; } 10930 return 0;
7205EOF 10931}
7206if { (eval echo configure:7207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10932_ACEOF
10933rm -f conftest.$ac_objext
10934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10935 (eval $ac_compile) 2>conftest.er1
10936 ac_status=$?
10937 grep -v '^ *+' conftest.er1 >conftest.err
7207 rm -rf conftest* 10938 rm -f conftest.er1
10939 cat conftest.err >&5
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); } &&
10942 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10944 (eval $ac_try) 2>&5
10945 ac_status=$?
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); }; } &&
10948 { ac_try='test -s conftest.$ac_objext'
10949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10950 (eval $ac_try) 2>&5
10951 ac_status=$?
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); }; }; then
7208 rxvt_cv_header_sysioctl=yes 10954 rxvt_cv_header_sysioctl=yes
7209else 10955else
7210 echo "configure: failed program was:" >&5 10956 echo "$as_me: failed program was:" >&5
7211 cat conftest.$ac_ext >&5 10957sed 's/^/| /' conftest.$ac_ext >&5
7212 rm -rf conftest* 10958
7213 rxvt_cv_header_sysioctl=no 10959rxvt_cv_header_sysioctl=no
7214fi 10960fi
7215rm -f conftest* 10961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7216fi 10962fi
7217 10963echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7218echo "$ac_t""$rxvt_cv_header_sysioctl" 1>&6 10964echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6
7219 10965
7220if test -n "$GCC"; then 10966if test -n "$GCC"; then
7221 LDARG="-Wl," 10967 LDARG="-Wl,"
7222else 10968else
7223 LDARG="" 10969 LDARG=""
7226 10972
7227ac_save_CFLAGS=$CFLAGS 10973ac_save_CFLAGS=$CFLAGS
7228ac_save_LIBS=$LIBS 10974ac_save_LIBS=$LIBS
7229CFLAGS="$CFLAGS $X_CFLAGS" 10975CFLAGS="$CFLAGS $X_CFLAGS"
7230LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"` 10976LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
10977echo "$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 10978echo $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 10979if test "${rxvt_cv_rpath+set}" = set; then
7234 echo $ac_n "(cached) $ac_c" 1>&6 10980 echo $ECHO_N "(cached) $ECHO_C" >&6
7235else 10981else
7236 if test "$cross_compiling" = yes; then 10982 if test "$cross_compiling" = yes; then
10983 { 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 10984echo "$as_me: WARNING: You may need to check the LIBS line" >&2;}
7238else 10985else
7239 cat > conftest.$ac_ext <<EOF 10986 cat >conftest.$ac_ext <<_ACEOF
7240#line 7241 "configure" 10987/* confdefs.h. */
7241#include "confdefs.h" 10988_ACEOF
10989cat confdefs.h >>conftest.$ac_ext
10990cat >>conftest.$ac_ext <<_ACEOF
10991/* end confdefs.h. */
7242 10992
7243main() 10993main()
7244{ 10994{
7245 exit(0); 10995 exit(0);
7246 (void) XOpenDisplay("foobar"); 10996 (void) XOpenDisplay("foobar");
7247} 10997}
7248EOF 10998_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 10999rm -f conftest$ac_exeext
7250then 11000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11001 (eval $ac_link) 2>&5
11002 ac_status=$?
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11006 (eval $ac_try) 2>&5
11007 ac_status=$?
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); }; }; then
7251 rxvt_cv_rpath=yes 11010 rxvt_cv_rpath=yes
7252else 11011else
11012 echo "$as_me: program exited with status $ac_status" >&5
7253 echo "configure: failed program was:" >&5 11013echo "$as_me: failed program was:" >&5
7254 cat conftest.$ac_ext >&5 11014sed 's/^/| /' conftest.$ac_ext >&5
7255 rm -fr conftest* 11015
11016( exit $ac_status )
7256 rxvt_cv_rpath=no 11017rxvt_cv_rpath=no
7257fi 11018fi
7258rm -fr conftest* 11019rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7259fi 11020fi
7260
7261fi 11021fi
7262 11022echo "$as_me:$LINENO: result: $rxvt_cv_rpath" >&5
7263echo "$ac_t""$rxvt_cv_rpath" 1>&6 11023echo "${ECHO_T}$rxvt_cv_rpath" >&6
7264if test x$rxvt_cv_rpath != xyes; then 11024if test x$rxvt_cv_rpath != xyes; then
7265 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g' 11025 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"` 11026 LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
11027 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 11028echo $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 11029if test "${rxvt_cv_R+set}" = set; then
7270 echo $ac_n "(cached) $ac_c" 1>&6 11030 echo $ECHO_N "(cached) $ECHO_C" >&6
7271else 11031else
7272 if test "$cross_compiling" = yes; then 11032 if test "$cross_compiling" = yes; then
7273 rxvt_cv_R=no 11033 rxvt_cv_R=no
7274else 11034else
7275 cat > conftest.$ac_ext <<EOF 11035 cat >conftest.$ac_ext <<_ACEOF
7276#line 7277 "configure" 11036/* confdefs.h. */
7277#include "confdefs.h" 11037_ACEOF
11038cat confdefs.h >>conftest.$ac_ext
11039cat >>conftest.$ac_ext <<_ACEOF
11040/* end confdefs.h. */
7278 11041
7279main() 11042main()
7280{ 11043{
7281 exit(0); 11044 exit(0);
7282 (void) XOpenDisplay("foobar"); 11045 (void) XOpenDisplay("foobar");
7283} 11046}
7284EOF 11047_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 11048rm -f conftest$ac_exeext
7286then 11049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11050 (eval $ac_link) 2>&5
11051 ac_status=$?
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11055 (eval $ac_try) 2>&5
11056 ac_status=$?
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); }; }; then
7287 rxvt_cv_R=yes 11059 rxvt_cv_R=yes
7288else 11060else
11061 echo "$as_me: program exited with status $ac_status" >&5
7289 echo "configure: failed program was:" >&5 11062echo "$as_me: failed program was:" >&5
7290 cat conftest.$ac_ext >&5 11063sed 's/^/| /' conftest.$ac_ext >&5
7291 rm -fr conftest* 11064
11065( exit $ac_status )
7292 rxvt_cv_R=no 11066rxvt_cv_R=no
7293fi 11067fi
7294rm -fr conftest* 11068rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7295fi 11069fi
7296
7297fi 11070fi
7298 11071echo "$as_me:$LINENO: result: $rxvt_cv_R" >&5
7299echo "$ac_t""$rxvt_cv_R" 1>&6 11072echo "${ECHO_T}$rxvt_cv_R" >&6
7300 if test x$rxvt_cv_R != xyes; then 11073 if test x$rxvt_cv_R != xyes; then
7301 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 11074 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7302 fi 11075 fi
7303fi 11076fi
7304 11077
11078echo "$as_me:$LINENO: checking for XPointer" >&5
7305echo $ac_n "checking for XPointer""... $ac_c" 1>&6 11079echo $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 11080if test "${rxvt_cv_xpointer+set}" = set; then
7308 echo $ac_n "(cached) $ac_c" 1>&6 11081 echo $ECHO_N "(cached) $ECHO_C" >&6
7309else 11082else
7310 cat > conftest.$ac_ext <<EOF 11083 cat >conftest.$ac_ext <<_ACEOF
7311#line 7312 "configure" 11084/* confdefs.h. */
7312#include "confdefs.h" 11085_ACEOF
11086cat confdefs.h >>conftest.$ac_ext
11087cat >>conftest.$ac_ext <<_ACEOF
11088/* end confdefs.h. */
7313#include <X11/Xlib.h> 11089#include <X11/Xlib.h>
7314int main() { 11090int
11091main ()
11092{
7315XPointer dummy; 11093XPointer dummy;
11094 ;
7316; return 0; } 11095 return 0;
7317EOF 11096}
7318if { (eval echo configure:7319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11097_ACEOF
11098rm -f conftest.$ac_objext
11099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11100 (eval $ac_compile) 2>conftest.er1
11101 ac_status=$?
11102 grep -v '^ *+' conftest.er1 >conftest.err
7319 rm -rf conftest* 11103 rm -f conftest.er1
11104 cat conftest.err >&5
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); } &&
11107 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11109 (eval $ac_try) 2>&5
11110 ac_status=$?
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); }; } &&
11113 { ac_try='test -s conftest.$ac_objext'
11114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11115 (eval $ac_try) 2>&5
11116 ac_status=$?
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); }; }; then
7320 rxvt_cv_xpointer=yes 11119 rxvt_cv_xpointer=yes
7321else 11120else
7322 echo "configure: failed program was:" >&5 11121 echo "$as_me: failed program was:" >&5
7323 cat conftest.$ac_ext >&5 11122sed 's/^/| /' conftest.$ac_ext >&5
7324 rm -rf conftest* 11123
7325 rxvt_cv_xpointer=no 11124rxvt_cv_xpointer=no
7326fi 11125fi
7327rm -f conftest* 11126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7328fi 11127fi
7329 11128echo "$as_me:$LINENO: result: $rxvt_cv_xpointer" >&5
7330echo "$ac_t""$rxvt_cv_xpointer" 1>&6 11129echo "${ECHO_T}$rxvt_cv_xpointer" >&6
7331if test x$rxvt_cv_xpointer = xyes; then 11130if test x$rxvt_cv_xpointer = xyes; then
11131
7332 cat >> confdefs.h <<\EOF 11132cat >>confdefs.h <<\_ACEOF
7333#define HAVE_XPOINTER 1 11133#define HAVE_XPOINTER 1
7334EOF 11134_ACEOF
7335 11135
7336fi 11136fi
7337LIBS=$ac_save_LIBS 11137LIBS=$ac_save_LIBS
7338CFLAGS=$ac_save_CFLAGS 11138CFLAGS=$ac_save_CFLAGS
7339 11139
7340 11140
7341echo $ac_n "checking for working const""... $ac_c" 1>&6 11141echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7342echo "configure:7343: checking for working const" >&5 11142echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7343if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 11143if test "${ac_cv_c_const+set}" = set; then
7344 echo $ac_n "(cached) $ac_c" 1>&6 11144 echo $ECHO_N "(cached) $ECHO_C" >&6
7345else 11145else
7346 cat > conftest.$ac_ext <<EOF 11146 cat >conftest.$ac_ext <<_ACEOF
7347#line 7348 "configure" 11147/* confdefs.h. */
7348#include "confdefs.h" 11148_ACEOF
11149cat confdefs.h >>conftest.$ac_ext
11150cat >>conftest.$ac_ext <<_ACEOF
11151/* end confdefs.h. */
7349 11152
7350int main() { 11153int
7351 11154main ()
11155{
11156/* FIXME: Include the comments suggested by Paul. */
11157#ifndef __cplusplus
7352/* Ultrix mips cc rejects this. */ 11158 /* Ultrix mips cc rejects this. */
7353typedef int charset[2]; const charset x; 11159 typedef int charset[2];
11160 const charset x;
7354/* SunOS 4.1.1 cc rejects this. */ 11161 /* SunOS 4.1.1 cc rejects this. */
7355char const *const *ccp; 11162 char const *const *ccp;
7356char **p; 11163 char **p;
7357/* NEC SVR4.0.2 mips cc rejects this. */ 11164 /* NEC SVR4.0.2 mips cc rejects this. */
7358struct point {int x, y;}; 11165 struct point {int x, y;};
7359static struct point const zero = {0,0}; 11166 static struct point const zero = {0,0};
7360/* AIX XL C 1.02.0.0 rejects this. 11167 /* 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 11168 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 */ 11169 an arm of an if-expression whose if-part is not a constant
11170 expression */
7363const char *g = "string"; 11171 const char *g = "string";
7364ccp = &g + (g ? g-g : 0); 11172 ccp = &g + (g ? g-g : 0);
7365/* HPUX 7.0 cc rejects these. */ 11173 /* HPUX 7.0 cc rejects these. */
7366++ccp; 11174 ++ccp;
7367p = (char**) ccp; 11175 p = (char**) ccp;
7368ccp = (char const *const *) p; 11176 ccp = (char const *const *) p;
7369{ /* SCO 3.2v4 cc rejects this. */ 11177 { /* SCO 3.2v4 cc rejects this. */
7370 char *t; 11178 char *t;
7371 char const *s = 0 ? (char *) 0 : (char const *) 0; 11179 char const *s = 0 ? (char *) 0 : (char const *) 0;
7372 11180
7373 *t++ = 0; 11181 *t++ = 0;
11182 }
11183 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11184 int x[] = {25, 17};
11185 const int *foo = &x[0];
11186 ++foo;
11187 }
11188 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11189 typedef const int *iptr;
11190 iptr p = 0;
11191 ++p;
11192 }
11193 { /* AIX XL C 1.02.0.0 rejects this saying
11194 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11195 struct s { int j; const int *ap[3]; };
11196 struct s *b; b->j = 5;
11197 }
11198 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11199 const int foo = 10;
11200 }
11201#endif
11202
11203 ;
11204 return 0;
7374} 11205}
7375{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 11206_ACEOF
7376 int x[] = {25, 17}; 11207rm -f conftest.$ac_objext
7377 const int *foo = &x[0]; 11208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7378 ++foo; 11209 (eval $ac_compile) 2>conftest.er1
7379} 11210 ac_status=$?
7380{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 11211 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* 11212 rm -f conftest.er1
11213 cat conftest.err >&5
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); } &&
11216 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11218 (eval $ac_try) 2>&5
11219 ac_status=$?
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); }; } &&
11222 { ac_try='test -s conftest.$ac_objext'
11223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11224 (eval $ac_try) 2>&5
11225 ac_status=$?
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); }; }; then
7398 ac_cv_c_const=yes 11228 ac_cv_c_const=yes
7399else 11229else
7400 echo "configure: failed program was:" >&5 11230 echo "$as_me: failed program was:" >&5
7401 cat conftest.$ac_ext >&5 11231sed 's/^/| /' conftest.$ac_ext >&5
7402 rm -rf conftest* 11232
7403 ac_cv_c_const=no 11233ac_cv_c_const=no
7404fi 11234fi
7405rm -f conftest* 11235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7406fi 11236fi
7407 11237echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7408echo "$ac_t""$ac_cv_c_const" 1>&6 11238echo "${ECHO_T}$ac_cv_c_const" >&6
7409if test $ac_cv_c_const = no; then 11239if test $ac_cv_c_const = no; then
11240
7410 cat >> confdefs.h <<\EOF 11241cat >>confdefs.h <<\_ACEOF
7411#define const 11242#define const
7412EOF 11243_ACEOF
7413 11244
7414fi 11245fi
7415 11246
11247echo "$as_me:$LINENO: checking for inline" >&5
7416echo $ac_n "checking for inline""... $ac_c" 1>&6 11248echo $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 11249if test "${ac_cv_c_inline+set}" = set; then
7419 echo $ac_n "(cached) $ac_c" 1>&6 11250 echo $ECHO_N "(cached) $ECHO_C" >&6
7420else 11251else
7421 ac_cv_c_inline=no 11252 ac_cv_c_inline=no
7422for ac_kw in inline __inline__ __inline; do 11253for ac_kw in inline __inline__ __inline; do
7423 cat > conftest.$ac_ext <<EOF 11254 cat >conftest.$ac_ext <<_ACEOF
7424#line 7425 "configure" 11255/* confdefs.h. */
7425#include "confdefs.h" 11256_ACEOF
11257cat confdefs.h >>conftest.$ac_ext
11258cat >>conftest.$ac_ext <<_ACEOF
11259/* end confdefs.h. */
11260#ifndef __cplusplus
11261typedef int foo_t;
11262static $ac_kw foo_t static_foo () {return 0; }
11263$ac_kw foo_t foo () {return 0; }
11264#endif
7426 11265
7427int main() { 11266_ACEOF
7428} $ac_kw foo() { 11267rm -f conftest.$ac_objext
7429; return 0; } 11268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7430EOF 11269 (eval $ac_compile) 2>conftest.er1
7431if { (eval echo configure:7432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11270 ac_status=$?
11271 grep -v '^ *+' conftest.er1 >conftest.err
7432 rm -rf conftest* 11272 rm -f conftest.er1
11273 cat conftest.err >&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); } &&
11276 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11278 (eval $ac_try) 2>&5
11279 ac_status=$?
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); }; } &&
11282 { ac_try='test -s conftest.$ac_objext'
11283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11284 (eval $ac_try) 2>&5
11285 ac_status=$?
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); }; }; then
7433 ac_cv_c_inline=$ac_kw; break 11288 ac_cv_c_inline=$ac_kw; break
7434else 11289else
7435 echo "configure: failed program was:" >&5 11290 echo "$as_me: failed program was:" >&5
11291sed 's/^/| /' conftest.$ac_ext >&5
11292
11293fi
11294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11295done
11296
11297fi
11298echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11299echo "${ECHO_T}$ac_cv_c_inline" >&6
11300
11301
11302case $ac_cv_c_inline in
11303 inline | yes) ;;
11304 *)
11305 case $ac_cv_c_inline in
11306 no) ac_val=;;
11307 *) ac_val=$ac_cv_c_inline;;
11308 esac
11309 cat >>confdefs.h <<_ACEOF
11310#ifndef __cplusplus
11311#define inline $ac_val
11312#endif
11313_ACEOF
11314 ;;
11315esac
11316
11317
11318
11319echo "$as_me:$LINENO: checking for mode_t" >&5
11320echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11321if test "${ac_cv_type_mode_t+set}" = set; then
11322 echo $ECHO_N "(cached) $ECHO_C" >&6
11323else
11324 cat >conftest.$ac_ext <<_ACEOF
11325/* confdefs.h. */
11326_ACEOF
11327cat confdefs.h >>conftest.$ac_ext
11328cat >>conftest.$ac_ext <<_ACEOF
11329/* end confdefs.h. */
11330$ac_includes_default
11331int
11332main ()
11333{
11334if ((mode_t *) 0)
11335 return 0;
11336if (sizeof (mode_t))
11337 return 0;
11338 ;
11339 return 0;
11340}
11341_ACEOF
11342rm -f conftest.$ac_objext
11343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11344 (eval $ac_compile) 2>conftest.er1
11345 ac_status=$?
11346 grep -v '^ *+' conftest.er1 >conftest.err
11347 rm -f conftest.er1
7436 cat conftest.$ac_ext >&5 11348 cat conftest.err >&5
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); } &&
11351 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11353 (eval $ac_try) 2>&5
11354 ac_status=$?
11355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356 (exit $ac_status); }; } &&
11357 { ac_try='test -s conftest.$ac_objext'
11358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11359 (eval $ac_try) 2>&5
11360 ac_status=$?
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); }; }; then
11363 ac_cv_type_mode_t=yes
11364else
11365 echo "$as_me: failed program was:" >&5
11366sed 's/^/| /' conftest.$ac_ext >&5
11367
11368ac_cv_type_mode_t=no
11369fi
11370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11371fi
11372echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11373echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11374if test $ac_cv_type_mode_t = yes; then
11375 :
11376else
11377
11378cat >>confdefs.h <<_ACEOF
11379#define mode_t int
11380_ACEOF
11381
11382fi
11383
11384echo "$as_me:$LINENO: checking for pid_t" >&5
11385echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11386if test "${ac_cv_type_pid_t+set}" = set; then
11387 echo $ECHO_N "(cached) $ECHO_C" >&6
11388else
11389 cat >conftest.$ac_ext <<_ACEOF
11390/* confdefs.h. */
11391_ACEOF
11392cat confdefs.h >>conftest.$ac_ext
11393cat >>conftest.$ac_ext <<_ACEOF
11394/* end confdefs.h. */
11395$ac_includes_default
11396int
11397main ()
11398{
11399if ((pid_t *) 0)
11400 return 0;
11401if (sizeof (pid_t))
11402 return 0;
11403 ;
11404 return 0;
11405}
11406_ACEOF
11407rm -f conftest.$ac_objext
11408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11409 (eval $ac_compile) 2>conftest.er1
11410 ac_status=$?
11411 grep -v '^ *+' conftest.er1 >conftest.err
11412 rm -f conftest.er1
11413 cat conftest.err >&5
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); } &&
11416 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11418 (eval $ac_try) 2>&5
11419 ac_status=$?
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); }; } &&
11422 { ac_try='test -s conftest.$ac_objext'
11423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11424 (eval $ac_try) 2>&5
11425 ac_status=$?
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); }; }; then
11428 ac_cv_type_pid_t=yes
11429else
11430 echo "$as_me: failed program was:" >&5
11431sed 's/^/| /' conftest.$ac_ext >&5
11432
11433ac_cv_type_pid_t=no
11434fi
11435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11436fi
11437echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11438echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11439if test $ac_cv_type_pid_t = yes; then
11440 :
11441else
11442
11443cat >>confdefs.h <<_ACEOF
11444#define pid_t int
11445_ACEOF
11446
11447fi
11448
11449echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11450echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11451if test "${ac_cv_type_uid_t+set}" = set; then
11452 echo $ECHO_N "(cached) $ECHO_C" >&6
11453else
11454 cat >conftest.$ac_ext <<_ACEOF
11455/* confdefs.h. */
11456_ACEOF
11457cat confdefs.h >>conftest.$ac_ext
11458cat >>conftest.$ac_ext <<_ACEOF
11459/* end confdefs.h. */
11460#include <sys/types.h>
11461
11462_ACEOF
11463if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11464 $EGREP "uid_t" >/dev/null 2>&1; then
11465 ac_cv_type_uid_t=yes
11466else
11467 ac_cv_type_uid_t=no
7437fi 11468fi
7438rm -f conftest* 11469rm -f conftest*
11470
11471fi
11472echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11473echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11474if test $ac_cv_type_uid_t = no; then
11475
11476cat >>confdefs.h <<\_ACEOF
11477#define uid_t int
11478_ACEOF
11479
11480
11481cat >>confdefs.h <<\_ACEOF
11482#define gid_t int
11483_ACEOF
11484
11485fi
11486
11487
11488
11489echo "$as_me:$LINENO: checking for char" >&5
11490echo $ECHO_N "checking for char... $ECHO_C" >&6
11491if test "${ac_cv_type_char+set}" = set; then
11492 echo $ECHO_N "(cached) $ECHO_C" >&6
11493else
11494 cat >conftest.$ac_ext <<_ACEOF
11495/* confdefs.h. */
11496_ACEOF
11497cat confdefs.h >>conftest.$ac_ext
11498cat >>conftest.$ac_ext <<_ACEOF
11499/* end confdefs.h. */
11500$ac_includes_default
11501int
11502main ()
11503{
11504if ((char *) 0)
11505 return 0;
11506if (sizeof (char))
11507 return 0;
11508 ;
11509 return 0;
11510}
11511_ACEOF
11512rm -f conftest.$ac_objext
11513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11514 (eval $ac_compile) 2>conftest.er1
11515 ac_status=$?
11516 grep -v '^ *+' conftest.er1 >conftest.err
11517 rm -f conftest.er1
11518 cat conftest.err >&5
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); } &&
11521 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11523 (eval $ac_try) 2>&5
11524 ac_status=$?
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); }; } &&
11527 { ac_try='test -s conftest.$ac_objext'
11528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11529 (eval $ac_try) 2>&5
11530 ac_status=$?
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); }; }; then
11533 ac_cv_type_char=yes
11534else
11535 echo "$as_me: failed program was:" >&5
11536sed 's/^/| /' conftest.$ac_ext >&5
11537
11538ac_cv_type_char=no
11539fi
11540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11541fi
11542echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11543echo "${ECHO_T}$ac_cv_type_char" >&6
11544
11545echo "$as_me:$LINENO: checking size of char" >&5
11546echo $ECHO_N "checking size of char... $ECHO_C" >&6
11547if test "${ac_cv_sizeof_char+set}" = set; then
11548 echo $ECHO_N "(cached) $ECHO_C" >&6
11549else
11550 if test "$ac_cv_type_char" = yes; then
11551 # The cast to unsigned long works around a bug in the HP C Compiler
11552 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11553 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11554 # This bug is HP SR number 8606223364.
11555 if test "$cross_compiling" = yes; then
11556 # Depending upon the size, compute the lo and hi bounds.
11557cat >conftest.$ac_ext <<_ACEOF
11558/* confdefs.h. */
11559_ACEOF
11560cat confdefs.h >>conftest.$ac_ext
11561cat >>conftest.$ac_ext <<_ACEOF
11562/* end confdefs.h. */
11563$ac_includes_default
11564int
11565main ()
11566{
11567static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11568test_array [0] = 0
11569
11570 ;
11571 return 0;
11572}
11573_ACEOF
11574rm -f conftest.$ac_objext
11575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11576 (eval $ac_compile) 2>conftest.er1
11577 ac_status=$?
11578 grep -v '^ *+' conftest.er1 >conftest.err
11579 rm -f conftest.er1
11580 cat conftest.err >&5
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); } &&
11583 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11585 (eval $ac_try) 2>&5
11586 ac_status=$?
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); }; } &&
11589 { ac_try='test -s conftest.$ac_objext'
11590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11591 (eval $ac_try) 2>&5
11592 ac_status=$?
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); }; }; then
11595 ac_lo=0 ac_mid=0
11596 while :; do
11597 cat >conftest.$ac_ext <<_ACEOF
11598/* confdefs.h. */
11599_ACEOF
11600cat confdefs.h >>conftest.$ac_ext
11601cat >>conftest.$ac_ext <<_ACEOF
11602/* end confdefs.h. */
11603$ac_includes_default
11604int
11605main ()
11606{
11607static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11608test_array [0] = 0
11609
11610 ;
11611 return 0;
11612}
11613_ACEOF
11614rm -f conftest.$ac_objext
11615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11616 (eval $ac_compile) 2>conftest.er1
11617 ac_status=$?
11618 grep -v '^ *+' conftest.er1 >conftest.err
11619 rm -f conftest.er1
11620 cat conftest.err >&5
11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622 (exit $ac_status); } &&
11623 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11625 (eval $ac_try) 2>&5
11626 ac_status=$?
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); }; } &&
11629 { ac_try='test -s conftest.$ac_objext'
11630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11631 (eval $ac_try) 2>&5
11632 ac_status=$?
11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); }; }; then
11635 ac_hi=$ac_mid; break
11636else
11637 echo "$as_me: failed program was:" >&5
11638sed 's/^/| /' conftest.$ac_ext >&5
11639
11640ac_lo=`expr $ac_mid + 1`
11641 if test $ac_lo -le $ac_mid; then
11642 ac_lo= ac_hi=
11643 break
11644 fi
11645 ac_mid=`expr 2 '*' $ac_mid + 1`
11646fi
11647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11648 done
11649else
11650 echo "$as_me: failed program was:" >&5
11651sed 's/^/| /' conftest.$ac_ext >&5
11652
11653cat >conftest.$ac_ext <<_ACEOF
11654/* confdefs.h. */
11655_ACEOF
11656cat confdefs.h >>conftest.$ac_ext
11657cat >>conftest.$ac_ext <<_ACEOF
11658/* end confdefs.h. */
11659$ac_includes_default
11660int
11661main ()
11662{
11663static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
11664test_array [0] = 0
11665
11666 ;
11667 return 0;
11668}
11669_ACEOF
11670rm -f conftest.$ac_objext
11671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11672 (eval $ac_compile) 2>conftest.er1
11673 ac_status=$?
11674 grep -v '^ *+' conftest.er1 >conftest.err
11675 rm -f conftest.er1
11676 cat conftest.err >&5
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); } &&
11679 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11681 (eval $ac_try) 2>&5
11682 ac_status=$?
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); }; } &&
11685 { ac_try='test -s conftest.$ac_objext'
11686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11687 (eval $ac_try) 2>&5
11688 ac_status=$?
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); }; }; then
11691 ac_hi=-1 ac_mid=-1
11692 while :; do
11693 cat >conftest.$ac_ext <<_ACEOF
11694/* confdefs.h. */
11695_ACEOF
11696cat confdefs.h >>conftest.$ac_ext
11697cat >>conftest.$ac_ext <<_ACEOF
11698/* end confdefs.h. */
11699$ac_includes_default
11700int
11701main ()
11702{
11703static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11704test_array [0] = 0
11705
11706 ;
11707 return 0;
11708}
11709_ACEOF
11710rm -f conftest.$ac_objext
11711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11712 (eval $ac_compile) 2>conftest.er1
11713 ac_status=$?
11714 grep -v '^ *+' conftest.er1 >conftest.err
11715 rm -f conftest.er1
11716 cat conftest.err >&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); } &&
11719 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11721 (eval $ac_try) 2>&5
11722 ac_status=$?
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); }; } &&
11725 { ac_try='test -s conftest.$ac_objext'
11726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11727 (eval $ac_try) 2>&5
11728 ac_status=$?
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); }; }; then
11731 ac_lo=$ac_mid; break
11732else
11733 echo "$as_me: failed program was:" >&5
11734sed 's/^/| /' conftest.$ac_ext >&5
11735
11736ac_hi=`expr '(' $ac_mid ')' - 1`
11737 if test $ac_mid -le $ac_hi; then
11738 ac_lo= ac_hi=
11739 break
11740 fi
11741 ac_mid=`expr 2 '*' $ac_mid`
11742fi
11743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11744 done
11745else
11746 echo "$as_me: failed program was:" >&5
11747sed 's/^/| /' conftest.$ac_ext >&5
11748
11749ac_lo= ac_hi=
11750fi
11751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11752fi
11753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11754# Binary search between lo and hi bounds.
11755while test "x$ac_lo" != "x$ac_hi"; do
11756 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11757 cat >conftest.$ac_ext <<_ACEOF
11758/* confdefs.h. */
11759_ACEOF
11760cat confdefs.h >>conftest.$ac_ext
11761cat >>conftest.$ac_ext <<_ACEOF
11762/* end confdefs.h. */
11763$ac_includes_default
11764int
11765main ()
11766{
11767static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11768test_array [0] = 0
11769
11770 ;
11771 return 0;
11772}
11773_ACEOF
11774rm -f conftest.$ac_objext
11775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11776 (eval $ac_compile) 2>conftest.er1
11777 ac_status=$?
11778 grep -v '^ *+' conftest.er1 >conftest.err
11779 rm -f conftest.er1
11780 cat conftest.err >&5
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); } &&
11783 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11785 (eval $ac_try) 2>&5
11786 ac_status=$?
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); }; } &&
11789 { ac_try='test -s conftest.$ac_objext'
11790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11791 (eval $ac_try) 2>&5
11792 ac_status=$?
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; }; then
11795 ac_hi=$ac_mid
11796else
11797 echo "$as_me: failed program was:" >&5
11798sed 's/^/| /' conftest.$ac_ext >&5
11799
11800ac_lo=`expr '(' $ac_mid ')' + 1`
11801fi
11802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7439done 11803done
7440 11804case $ac_lo in
7441fi 11805?*) ac_cv_sizeof_char=$ac_lo;;
7442 11806'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
7443echo "$ac_t""$ac_cv_c_inline" 1>&6 11807See \`config.log' for more details." >&5
7444case "$ac_cv_c_inline" in 11808echo "$as_me: error: cannot compute sizeof (char), 77
7445 inline | yes) ;; 11809See \`config.log' for more details." >&2;}
7446 no) cat >> confdefs.h <<\EOF 11810 { (exit 1); exit 1; }; } ;;
7447#define inline
7448EOF
7449 ;;
7450 *) cat >> confdefs.h <<EOF
7451#define inline $ac_cv_c_inline
7452EOF
7453 ;;
7454esac 11811esac
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 11812else
11813 if test "$cross_compiling" = yes; then
11814 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
11815echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
11816 { (exit 1); exit 1; }; }
11817else
7463 cat > conftest.$ac_ext <<EOF 11818 cat >conftest.$ac_ext <<_ACEOF
7464#line 7465 "configure" 11819/* confdefs.h. */
7465#include "confdefs.h" 11820_ACEOF
11821cat confdefs.h >>conftest.$ac_ext
11822cat >>conftest.$ac_ext <<_ACEOF
11823/* end confdefs.h. */
11824$ac_includes_default
11825long longval () { return (long) (sizeof (char)); }
11826unsigned long ulongval () { return (long) (sizeof (char)); }
11827#include <stdio.h>
7466#include <stdlib.h> 11828#include <stdlib.h>
7467#include <stdarg.h> 11829int
7468#include <string.h> 11830main ()
7469#include <float.h> 11831{
7470EOF 11832
7471ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11833 FILE *f = fopen ("conftest.val", "w");
7472{ (eval echo configure:7473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11834 if (! f)
7473ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11835 exit (1);
7474if test -z "$ac_err"; then 11836 if (((long) (sizeof (char))) < 0)
7475 rm -rf conftest* 11837 {
7476 ac_cv_header_stdc=yes 11838 long i = longval ();
11839 if (i != ((long) (sizeof (char))))
11840 exit (1);
11841 fprintf (f, "%ld\n", i);
11842 }
7477else 11843 else
7478 echo "$ac_err" >&5 11844 {
11845 unsigned long i = ulongval ();
11846 if (i != ((long) (sizeof (char))))
11847 exit (1);
11848 fprintf (f, "%lu\n", i);
11849 }
11850 exit (ferror (f) || fclose (f) != 0);
11851
11852 ;
11853 return 0;
11854}
11855_ACEOF
11856rm -f conftest$ac_exeext
11857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11858 (eval $ac_link) 2>&5
11859 ac_status=$?
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11863 (eval $ac_try) 2>&5
11864 ac_status=$?
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); }; }; then
11867 ac_cv_sizeof_char=`cat conftest.val`
11868else
11869 echo "$as_me: program exited with status $ac_status" >&5
7479 echo "configure: failed program was:" >&5 11870echo "$as_me: failed program was:" >&5
7480 cat conftest.$ac_ext >&5 11871sed 's/^/| /' conftest.$ac_ext >&5
7481 rm -rf conftest* 11872
7482 ac_cv_header_stdc=no 11873( exit $ac_status )
11874{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11875See \`config.log' for more details." >&5
11876echo "$as_me: error: cannot compute sizeof (char), 77
11877See \`config.log' for more details." >&2;}
11878 { (exit 1); exit 1; }; }
7483fi 11879fi
11880rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11881fi
11882fi
7484rm -f conftest* 11883rm -f conftest.val
11884else
11885 ac_cv_sizeof_char=0
11886fi
11887fi
11888echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
11889echo "${ECHO_T}$ac_cv_sizeof_char" >&6
11890cat >>confdefs.h <<_ACEOF
11891#define SIZEOF_CHAR $ac_cv_sizeof_char
11892_ACEOF
7485 11893
11894
11895echo "$as_me:$LINENO: checking for short" >&5
11896echo $ECHO_N "checking for short... $ECHO_C" >&6
11897if test "${ac_cv_type_short+set}" = set; then
11898 echo $ECHO_N "(cached) $ECHO_C" >&6
11899else
11900 cat >conftest.$ac_ext <<_ACEOF
11901/* confdefs.h. */
11902_ACEOF
11903cat confdefs.h >>conftest.$ac_ext
11904cat >>conftest.$ac_ext <<_ACEOF
11905/* end confdefs.h. */
11906$ac_includes_default
11907int
11908main ()
11909{
11910if ((short *) 0)
11911 return 0;
11912if (sizeof (short))
11913 return 0;
11914 ;
11915 return 0;
11916}
11917_ACEOF
11918rm -f conftest.$ac_objext
11919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11920 (eval $ac_compile) 2>conftest.er1
11921 ac_status=$?
11922 grep -v '^ *+' conftest.er1 >conftest.err
11923 rm -f conftest.er1
11924 cat conftest.err >&5
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); } &&
11927 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11929 (eval $ac_try) 2>&5
11930 ac_status=$?
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); }; } &&
11933 { ac_try='test -s conftest.$ac_objext'
11934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11935 (eval $ac_try) 2>&5
11936 ac_status=$?
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); }; }; then
11939 ac_cv_type_short=yes
11940else
11941 echo "$as_me: failed program was:" >&5
11942sed 's/^/| /' conftest.$ac_ext >&5
11943
11944ac_cv_type_short=no
11945fi
11946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11947fi
11948echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
11949echo "${ECHO_T}$ac_cv_type_short" >&6
11950
11951echo "$as_me:$LINENO: checking size of short" >&5
11952echo $ECHO_N "checking size of short... $ECHO_C" >&6
11953if test "${ac_cv_sizeof_short+set}" = set; then
11954 echo $ECHO_N "(cached) $ECHO_C" >&6
11955else
7486if test $ac_cv_header_stdc = yes; then 11956 if test "$ac_cv_type_short" = yes; then
7487 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 11957 # The cast to unsigned long works around a bug in the HP C Compiler
11958 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11959 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11960 # This bug is HP SR number 8606223364.
11961 if test "$cross_compiling" = yes; then
11962 # Depending upon the size, compute the lo and hi bounds.
7488cat > conftest.$ac_ext <<EOF 11963cat >conftest.$ac_ext <<_ACEOF
7489#line 7490 "configure" 11964/* confdefs.h. */
7490#include "confdefs.h" 11965_ACEOF
7491#include <string.h> 11966cat confdefs.h >>conftest.$ac_ext
7492EOF 11967cat >>conftest.$ac_ext <<_ACEOF
7493if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11968/* end confdefs.h. */
7494 egrep "memchr" >/dev/null 2>&1; then 11969$ac_includes_default
7495 : 11970int
7496else 11971main ()
11972{
11973static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
11974test_array [0] = 0
11975
11976 ;
11977 return 0;
11978}
11979_ACEOF
11980rm -f conftest.$ac_objext
11981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11982 (eval $ac_compile) 2>conftest.er1
11983 ac_status=$?
11984 grep -v '^ *+' conftest.er1 >conftest.err
7497 rm -rf conftest* 11985 rm -f conftest.er1
7498 ac_cv_header_stdc=no 11986 cat conftest.err >&5
7499fi 11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); } &&
11989 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11991 (eval $ac_try) 2>&5
11992 ac_status=$?
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; } &&
11995 { ac_try='test -s conftest.$ac_objext'
11996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11997 (eval $ac_try) 2>&5
11998 ac_status=$?
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); }; }; then
12001 ac_lo=0 ac_mid=0
12002 while :; do
12003 cat >conftest.$ac_ext <<_ACEOF
12004/* confdefs.h. */
12005_ACEOF
12006cat confdefs.h >>conftest.$ac_ext
12007cat >>conftest.$ac_ext <<_ACEOF
12008/* end confdefs.h. */
12009$ac_includes_default
12010int
12011main ()
12012{
12013static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
12014test_array [0] = 0
12015
12016 ;
12017 return 0;
12018}
12019_ACEOF
12020rm -f conftest.$ac_objext
12021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12022 (eval $ac_compile) 2>conftest.er1
12023 ac_status=$?
12024 grep -v '^ *+' conftest.er1 >conftest.err
7500rm -f conftest* 12025 rm -f conftest.er1
12026 cat conftest.err >&5
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); } &&
12029 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12031 (eval $ac_try) 2>&5
12032 ac_status=$?
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); }; } &&
12035 { ac_try='test -s conftest.$ac_objext'
12036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12037 (eval $ac_try) 2>&5
12038 ac_status=$?
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); }; }; then
12041 ac_hi=$ac_mid; break
12042else
12043 echo "$as_me: failed program was:" >&5
12044sed 's/^/| /' conftest.$ac_ext >&5
7501 12045
12046ac_lo=`expr $ac_mid + 1`
12047 if test $ac_lo -le $ac_mid; then
12048 ac_lo= ac_hi=
12049 break
12050 fi
12051 ac_mid=`expr 2 '*' $ac_mid + 1`
7502fi 12052fi
12053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12054 done
12055else
12056 echo "$as_me: failed program was:" >&5
12057sed 's/^/| /' conftest.$ac_ext >&5
7503 12058
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 12059cat >conftest.$ac_ext <<_ACEOF
7507#line 7508 "configure" 12060/* confdefs.h. */
7508#include "confdefs.h" 12061_ACEOF
12062cat confdefs.h >>conftest.$ac_ext
12063cat >>conftest.$ac_ext <<_ACEOF
12064/* end confdefs.h. */
12065$ac_includes_default
12066int
12067main ()
12068{
12069static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
12070test_array [0] = 0
12071
12072 ;
12073 return 0;
12074}
12075_ACEOF
12076rm -f conftest.$ac_objext
12077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12078 (eval $ac_compile) 2>conftest.er1
12079 ac_status=$?
12080 grep -v '^ *+' conftest.er1 >conftest.err
12081 rm -f conftest.er1
12082 cat conftest.err >&5
12083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); } &&
12085 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12087 (eval $ac_try) 2>&5
12088 ac_status=$?
12089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090 (exit $ac_status); }; } &&
12091 { ac_try='test -s conftest.$ac_objext'
12092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12093 (eval $ac_try) 2>&5
12094 ac_status=$?
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); }; }; then
12097 ac_hi=-1 ac_mid=-1
12098 while :; do
12099 cat >conftest.$ac_ext <<_ACEOF
12100/* confdefs.h. */
12101_ACEOF
12102cat confdefs.h >>conftest.$ac_ext
12103cat >>conftest.$ac_ext <<_ACEOF
12104/* end confdefs.h. */
12105$ac_includes_default
12106int
12107main ()
12108{
12109static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
12110test_array [0] = 0
12111
12112 ;
12113 return 0;
12114}
12115_ACEOF
12116rm -f conftest.$ac_objext
12117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12118 (eval $ac_compile) 2>conftest.er1
12119 ac_status=$?
12120 grep -v '^ *+' conftest.er1 >conftest.err
12121 rm -f conftest.er1
12122 cat conftest.err >&5
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); } &&
12125 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12127 (eval $ac_try) 2>&5
12128 ac_status=$?
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); }; } &&
12131 { ac_try='test -s conftest.$ac_objext'
12132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12133 (eval $ac_try) 2>&5
12134 ac_status=$?
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); }; }; then
12137 ac_lo=$ac_mid; break
12138else
12139 echo "$as_me: failed program was:" >&5
12140sed 's/^/| /' conftest.$ac_ext >&5
12141
12142ac_hi=`expr '(' $ac_mid ')' - 1`
12143 if test $ac_mid -le $ac_hi; then
12144 ac_lo= ac_hi=
12145 break
12146 fi
12147 ac_mid=`expr 2 '*' $ac_mid`
12148fi
12149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12150 done
12151else
12152 echo "$as_me: failed program was:" >&5
12153sed 's/^/| /' conftest.$ac_ext >&5
12154
12155ac_lo= ac_hi=
12156fi
12157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12158fi
12159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12160# Binary search between lo and hi bounds.
12161while test "x$ac_lo" != "x$ac_hi"; do
12162 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12163 cat >conftest.$ac_ext <<_ACEOF
12164/* confdefs.h. */
12165_ACEOF
12166cat confdefs.h >>conftest.$ac_ext
12167cat >>conftest.$ac_ext <<_ACEOF
12168/* end confdefs.h. */
12169$ac_includes_default
12170int
12171main ()
12172{
12173static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
12174test_array [0] = 0
12175
12176 ;
12177 return 0;
12178}
12179_ACEOF
12180rm -f conftest.$ac_objext
12181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12182 (eval $ac_compile) 2>conftest.er1
12183 ac_status=$?
12184 grep -v '^ *+' conftest.er1 >conftest.err
12185 rm -f conftest.er1
12186 cat conftest.err >&5
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); } &&
12189 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12191 (eval $ac_try) 2>&5
12192 ac_status=$?
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); }; } &&
12195 { ac_try='test -s conftest.$ac_objext'
12196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12197 (eval $ac_try) 2>&5
12198 ac_status=$?
12199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); }; }; then
12201 ac_hi=$ac_mid
12202else
12203 echo "$as_me: failed program was:" >&5
12204sed 's/^/| /' conftest.$ac_ext >&5
12205
12206ac_lo=`expr '(' $ac_mid ')' + 1`
12207fi
12208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12209done
12210case $ac_lo in
12211?*) ac_cv_sizeof_short=$ac_lo;;
12212'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
12213See \`config.log' for more details." >&5
12214echo "$as_me: error: cannot compute sizeof (short), 77
12215See \`config.log' for more details." >&2;}
12216 { (exit 1); exit 1; }; } ;;
12217esac
12218else
12219 if test "$cross_compiling" = yes; then
12220 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12221echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12222 { (exit 1); exit 1; }; }
12223else
12224 cat >conftest.$ac_ext <<_ACEOF
12225/* confdefs.h. */
12226_ACEOF
12227cat confdefs.h >>conftest.$ac_ext
12228cat >>conftest.$ac_ext <<_ACEOF
12229/* end confdefs.h. */
12230$ac_includes_default
12231long longval () { return (long) (sizeof (short)); }
12232unsigned long ulongval () { return (long) (sizeof (short)); }
12233#include <stdio.h>
7509#include <stdlib.h> 12234#include <stdlib.h>
7510EOF 12235int
7511if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12236main ()
7512 egrep "free" >/dev/null 2>&1; then 12237{
7513 : 12238
12239 FILE *f = fopen ("conftest.val", "w");
12240 if (! f)
12241 exit (1);
12242 if (((long) (sizeof (short))) < 0)
12243 {
12244 long i = longval ();
12245 if (i != ((long) (sizeof (short))))
12246 exit (1);
12247 fprintf (f, "%ld\n", i);
12248 }
7514else 12249 else
7515 rm -rf conftest* 12250 {
7516 ac_cv_header_stdc=no 12251 unsigned long i = ulongval ();
12252 if (i != ((long) (sizeof (short))))
12253 exit (1);
12254 fprintf (f, "%lu\n", i);
12255 }
12256 exit (ferror (f) || fclose (f) != 0);
12257
12258 ;
12259 return 0;
12260}
12261_ACEOF
12262rm -f conftest$ac_exeext
12263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12264 (eval $ac_link) 2>&5
12265 ac_status=$?
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12269 (eval $ac_try) 2>&5
12270 ac_status=$?
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); }; }; then
12273 ac_cv_sizeof_short=`cat conftest.val`
12274else
12275 echo "$as_me: program exited with status $ac_status" >&5
12276echo "$as_me: failed program was:" >&5
12277sed 's/^/| /' conftest.$ac_ext >&5
12278
12279( exit $ac_status )
12280{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
12281See \`config.log' for more details." >&5
12282echo "$as_me: error: cannot compute sizeof (short), 77
12283See \`config.log' for more details." >&2;}
12284 { (exit 1); exit 1; }; }
7517fi 12285fi
12286rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12287fi
12288fi
7518rm -f conftest* 12289rm -f conftest.val
7519 12290else
12291 ac_cv_sizeof_short=0
7520fi 12292fi
12293fi
12294echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12295echo "${ECHO_T}$ac_cv_sizeof_short" >&6
12296cat >>confdefs.h <<_ACEOF
12297#define SIZEOF_SHORT $ac_cv_sizeof_short
12298_ACEOF
7521 12299
12300
12301echo "$as_me:$LINENO: checking for int" >&5
12302echo $ECHO_N "checking for int... $ECHO_C" >&6
12303if test "${ac_cv_type_int+set}" = set; then
12304 echo $ECHO_N "(cached) $ECHO_C" >&6
12305else
12306 cat >conftest.$ac_ext <<_ACEOF
12307/* confdefs.h. */
12308_ACEOF
12309cat confdefs.h >>conftest.$ac_ext
12310cat >>conftest.$ac_ext <<_ACEOF
12311/* end confdefs.h. */
12312$ac_includes_default
12313int
12314main ()
12315{
12316if ((int *) 0)
12317 return 0;
12318if (sizeof (int))
12319 return 0;
12320 ;
12321 return 0;
12322}
12323_ACEOF
12324rm -f conftest.$ac_objext
12325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12326 (eval $ac_compile) 2>conftest.er1
12327 ac_status=$?
12328 grep -v '^ *+' conftest.er1 >conftest.err
12329 rm -f conftest.er1
12330 cat conftest.err >&5
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); } &&
12333 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12335 (eval $ac_try) 2>&5
12336 ac_status=$?
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); }; } &&
12339 { ac_try='test -s conftest.$ac_objext'
12340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12341 (eval $ac_try) 2>&5
12342 ac_status=$?
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); }; }; then
12345 ac_cv_type_int=yes
12346else
12347 echo "$as_me: failed program was:" >&5
12348sed 's/^/| /' conftest.$ac_ext >&5
12349
12350ac_cv_type_int=no
12351fi
12352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12353fi
12354echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12355echo "${ECHO_T}$ac_cv_type_int" >&6
12356
12357echo "$as_me:$LINENO: checking size of int" >&5
12358echo $ECHO_N "checking size of int... $ECHO_C" >&6
12359if test "${ac_cv_sizeof_int+set}" = set; then
12360 echo $ECHO_N "(cached) $ECHO_C" >&6
12361else
7522if test $ac_cv_header_stdc = yes; then 12362 if test "$ac_cv_type_int" = yes; then
7523 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12363 # The cast to unsigned long works around a bug in the HP C Compiler
12364 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12365 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12366 # This bug is HP SR number 8606223364.
7524if test "$cross_compiling" = yes; then 12367 if test "$cross_compiling" = yes; then
7525 : 12368 # Depending upon the size, compute the lo and hi bounds.
12369cat >conftest.$ac_ext <<_ACEOF
12370/* confdefs.h. */
12371_ACEOF
12372cat confdefs.h >>conftest.$ac_ext
12373cat >>conftest.$ac_ext <<_ACEOF
12374/* end confdefs.h. */
12375$ac_includes_default
12376int
12377main ()
12378{
12379static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12380test_array [0] = 0
12381
12382 ;
12383 return 0;
12384}
12385_ACEOF
12386rm -f conftest.$ac_objext
12387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12388 (eval $ac_compile) 2>conftest.er1
12389 ac_status=$?
12390 grep -v '^ *+' conftest.er1 >conftest.err
12391 rm -f conftest.er1
12392 cat conftest.err >&5
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); } &&
12395 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397 (eval $ac_try) 2>&5
12398 ac_status=$?
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); }; } &&
12401 { ac_try='test -s conftest.$ac_objext'
12402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12403 (eval $ac_try) 2>&5
12404 ac_status=$?
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); }; }; then
12407 ac_lo=0 ac_mid=0
12408 while :; do
12409 cat >conftest.$ac_ext <<_ACEOF
12410/* confdefs.h. */
12411_ACEOF
12412cat confdefs.h >>conftest.$ac_ext
12413cat >>conftest.$ac_ext <<_ACEOF
12414/* end confdefs.h. */
12415$ac_includes_default
12416int
12417main ()
12418{
12419static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12420test_array [0] = 0
12421
12422 ;
12423 return 0;
12424}
12425_ACEOF
12426rm -f conftest.$ac_objext
12427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12428 (eval $ac_compile) 2>conftest.er1
12429 ac_status=$?
12430 grep -v '^ *+' conftest.er1 >conftest.err
12431 rm -f conftest.er1
12432 cat conftest.err >&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); } &&
12435 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12437 (eval $ac_try) 2>&5
12438 ac_status=$?
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); }; } &&
12441 { ac_try='test -s conftest.$ac_objext'
12442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12443 (eval $ac_try) 2>&5
12444 ac_status=$?
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); }; }; then
12447 ac_hi=$ac_mid; break
7526else 12448else
12449 echo "$as_me: failed program was:" >&5
12450sed 's/^/| /' conftest.$ac_ext >&5
12451
12452ac_lo=`expr $ac_mid + 1`
12453 if test $ac_lo -le $ac_mid; then
12454 ac_lo= ac_hi=
12455 break
12456 fi
12457 ac_mid=`expr 2 '*' $ac_mid + 1`
12458fi
12459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12460 done
12461else
12462 echo "$as_me: failed program was:" >&5
12463sed 's/^/| /' conftest.$ac_ext >&5
12464
12465cat >conftest.$ac_ext <<_ACEOF
12466/* confdefs.h. */
12467_ACEOF
12468cat confdefs.h >>conftest.$ac_ext
12469cat >>conftest.$ac_ext <<_ACEOF
12470/* end confdefs.h. */
12471$ac_includes_default
12472int
12473main ()
12474{
12475static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12476test_array [0] = 0
12477
12478 ;
12479 return 0;
12480}
12481_ACEOF
12482rm -f conftest.$ac_objext
12483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12484 (eval $ac_compile) 2>conftest.er1
12485 ac_status=$?
12486 grep -v '^ *+' conftest.er1 >conftest.err
12487 rm -f conftest.er1
12488 cat conftest.err >&5
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); } &&
12491 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12493 (eval $ac_try) 2>&5
12494 ac_status=$?
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); }; } &&
12497 { ac_try='test -s conftest.$ac_objext'
12498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12499 (eval $ac_try) 2>&5
12500 ac_status=$?
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); }; }; then
12503 ac_hi=-1 ac_mid=-1
12504 while :; do
12505 cat >conftest.$ac_ext <<_ACEOF
12506/* confdefs.h. */
12507_ACEOF
12508cat confdefs.h >>conftest.$ac_ext
12509cat >>conftest.$ac_ext <<_ACEOF
12510/* end confdefs.h. */
12511$ac_includes_default
12512int
12513main ()
12514{
12515static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12516test_array [0] = 0
12517
12518 ;
12519 return 0;
12520}
12521_ACEOF
12522rm -f conftest.$ac_objext
12523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12524 (eval $ac_compile) 2>conftest.er1
12525 ac_status=$?
12526 grep -v '^ *+' conftest.er1 >conftest.err
12527 rm -f conftest.er1
12528 cat conftest.err >&5
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); } &&
12531 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12533 (eval $ac_try) 2>&5
12534 ac_status=$?
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); }; } &&
12537 { ac_try='test -s conftest.$ac_objext'
12538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539 (eval $ac_try) 2>&5
12540 ac_status=$?
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); }; }; then
12543 ac_lo=$ac_mid; break
12544else
12545 echo "$as_me: failed program was:" >&5
12546sed 's/^/| /' conftest.$ac_ext >&5
12547
12548ac_hi=`expr '(' $ac_mid ')' - 1`
12549 if test $ac_mid -le $ac_hi; then
12550 ac_lo= ac_hi=
12551 break
12552 fi
12553 ac_mid=`expr 2 '*' $ac_mid`
12554fi
12555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12556 done
12557else
12558 echo "$as_me: failed program was:" >&5
12559sed 's/^/| /' conftest.$ac_ext >&5
12560
12561ac_lo= ac_hi=
12562fi
12563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12564fi
12565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12566# Binary search between lo and hi bounds.
12567while test "x$ac_lo" != "x$ac_hi"; do
12568 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7527 cat > conftest.$ac_ext <<EOF 12569 cat >conftest.$ac_ext <<_ACEOF
7528#line 7529 "configure" 12570/* confdefs.h. */
7529#include "confdefs.h" 12571_ACEOF
7530#include <ctype.h> 12572cat confdefs.h >>conftest.$ac_ext
7531#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12573cat >>conftest.$ac_ext <<_ACEOF
7532#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12574/* end confdefs.h. */
7533#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12575$ac_includes_default
7534int main () { int i; for (i = 0; i < 256; i++) 12576int
7535if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 12577main ()
7536exit (0); } 12578{
12579static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12580test_array [0] = 0
7537 12581
7538EOF 12582 ;
7539if { (eval echo configure:7540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 12583 return 0;
7540then 12584}
7541 : 12585_ACEOF
12586rm -f conftest.$ac_objext
12587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12588 (eval $ac_compile) 2>conftest.er1
12589 ac_status=$?
12590 grep -v '^ *+' conftest.er1 >conftest.err
12591 rm -f conftest.er1
12592 cat conftest.err >&5
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); } &&
12595 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12597 (eval $ac_try) 2>&5
12598 ac_status=$?
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); }; } &&
12601 { ac_try='test -s conftest.$ac_objext'
12602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12603 (eval $ac_try) 2>&5
12604 ac_status=$?
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); }; }; then
12607 ac_hi=$ac_mid
7542else 12608else
7543 echo "configure: failed program was:" >&5 12609 echo "$as_me: failed program was:" >&5
7544 cat conftest.$ac_ext >&5 12610sed 's/^/| /' conftest.$ac_ext >&5
7545 rm -fr conftest*
7546 ac_cv_header_stdc=no
7547fi
7548rm -fr conftest*
7549fi
7550 12611
12612ac_lo=`expr '(' $ac_mid ')' + 1`
7551fi 12613fi
7552fi 12614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7553 12615done
7554echo "$ac_t""$ac_cv_header_stdc" 1>&6 12616case $ac_lo in
7555if test $ac_cv_header_stdc = yes; then 12617?*) ac_cv_sizeof_int=$ac_lo;;
7556 cat >> confdefs.h <<\EOF 12618'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7557#define STDC_HEADERS 1 12619See \`config.log' for more details." >&5
7558EOF 12620echo "$as_me: error: cannot compute sizeof (int), 77
7559 12621See \`config.log' for more details." >&2;}
7560fi 12622 { (exit 1); exit 1; }; } ;;
7561 12623esac
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 12624else
12625 if test "$cross_compiling" = yes; then
12626 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12627echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12628 { (exit 1); exit 1; }; }
12629else
7567 cat > conftest.$ac_ext <<EOF 12630 cat >conftest.$ac_ext <<_ACEOF
7568#line 7569 "configure" 12631/* confdefs.h. */
7569#include "confdefs.h" 12632_ACEOF
12633cat confdefs.h >>conftest.$ac_ext
12634cat >>conftest.$ac_ext <<_ACEOF
12635/* end confdefs.h. */
12636$ac_includes_default
12637long longval () { return (long) (sizeof (int)); }
12638unsigned long ulongval () { return (long) (sizeof (int)); }
7570#include <sys/types.h> 12639#include <stdio.h>
7571#if STDC_HEADERS
7572#include <stdlib.h> 12640#include <stdlib.h>
7573#include <stddef.h> 12641int
7574#endif 12642main ()
7575EOF 12643{
7576if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12644
7577 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 12645 FILE *f = fopen ("conftest.val", "w");
7578 rm -rf conftest* 12646 if (! f)
7579 ac_cv_type_mode_t=yes 12647 exit (1);
12648 if (((long) (sizeof (int))) < 0)
12649 {
12650 long i = longval ();
12651 if (i != ((long) (sizeof (int))))
12652 exit (1);
12653 fprintf (f, "%ld\n", i);
12654 }
7580else 12655 else
7581 rm -rf conftest* 12656 {
7582 ac_cv_type_mode_t=no 12657 unsigned long i = ulongval ();
12658 if (i != ((long) (sizeof (int))))
12659 exit (1);
12660 fprintf (f, "%lu\n", i);
12661 }
12662 exit (ferror (f) || fclose (f) != 0);
12663
12664 ;
12665 return 0;
12666}
12667_ACEOF
12668rm -f conftest$ac_exeext
12669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12670 (eval $ac_link) 2>&5
12671 ac_status=$?
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12675 (eval $ac_try) 2>&5
12676 ac_status=$?
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); }; }; then
12679 ac_cv_sizeof_int=`cat conftest.val`
12680else
12681 echo "$as_me: program exited with status $ac_status" >&5
12682echo "$as_me: failed program was:" >&5
12683sed 's/^/| /' conftest.$ac_ext >&5
12684
12685( exit $ac_status )
12686{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12687See \`config.log' for more details." >&5
12688echo "$as_me: error: cannot compute sizeof (int), 77
12689See \`config.log' for more details." >&2;}
12690 { (exit 1); exit 1; }; }
7583fi 12691fi
12692rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12693fi
12694fi
7584rm -f conftest* 12695rm -f conftest.val
7585 12696else
12697 ac_cv_sizeof_int=0
7586fi 12698fi
7587echo "$ac_t""$ac_cv_type_mode_t" 1>&6 12699fi
7588if test $ac_cv_type_mode_t = no; then 12700echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12701echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7589 cat >> confdefs.h <<\EOF 12702cat >>confdefs.h <<_ACEOF
7590#define mode_t int 12703#define SIZEOF_INT $ac_cv_sizeof_int
7591EOF 12704_ACEOF
7592 12705
7593fi
7594 12706
7595echo $ac_n "checking for pid_t""... $ac_c" 1>&6 12707echo "$as_me:$LINENO: checking for long" >&5
7596echo "configure:7597: checking for pid_t" >&5 12708echo $ECHO_N "checking for long... $ECHO_C" >&6
7597if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then 12709if test "${ac_cv_type_long+set}" = set; then
7598 echo $ac_n "(cached) $ac_c" 1>&6 12710 echo $ECHO_N "(cached) $ECHO_C" >&6
7599else 12711else
7600 cat > conftest.$ac_ext <<EOF 12712 cat >conftest.$ac_ext <<_ACEOF
7601#line 7602 "configure" 12713/* confdefs.h. */
7602#include "confdefs.h" 12714_ACEOF
12715cat confdefs.h >>conftest.$ac_ext
12716cat >>conftest.$ac_ext <<_ACEOF
12717/* end confdefs.h. */
12718$ac_includes_default
12719int
12720main ()
12721{
12722if ((long *) 0)
12723 return 0;
12724if (sizeof (long))
12725 return 0;
12726 ;
12727 return 0;
12728}
12729_ACEOF
12730rm -f conftest.$ac_objext
12731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12732 (eval $ac_compile) 2>conftest.er1
12733 ac_status=$?
12734 grep -v '^ *+' conftest.er1 >conftest.err
12735 rm -f conftest.er1
12736 cat conftest.err >&5
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); } &&
12739 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12741 (eval $ac_try) 2>&5
12742 ac_status=$?
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); }; } &&
12745 { ac_try='test -s conftest.$ac_objext'
12746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12747 (eval $ac_try) 2>&5
12748 ac_status=$?
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); }; }; then
12751 ac_cv_type_long=yes
12752else
12753 echo "$as_me: failed program was:" >&5
12754sed 's/^/| /' conftest.$ac_ext >&5
12755
12756ac_cv_type_long=no
12757fi
12758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12759fi
12760echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12761echo "${ECHO_T}$ac_cv_type_long" >&6
12762
12763echo "$as_me:$LINENO: checking size of long" >&5
12764echo $ECHO_N "checking size of long... $ECHO_C" >&6
12765if test "${ac_cv_sizeof_long+set}" = set; then
12766 echo $ECHO_N "(cached) $ECHO_C" >&6
12767else
12768 if test "$ac_cv_type_long" = yes; then
12769 # The cast to unsigned long works around a bug in the HP C Compiler
12770 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12771 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12772 # This bug is HP SR number 8606223364.
12773 if test "$cross_compiling" = yes; then
12774 # Depending upon the size, compute the lo and hi bounds.
12775cat >conftest.$ac_ext <<_ACEOF
12776/* confdefs.h. */
12777_ACEOF
12778cat confdefs.h >>conftest.$ac_ext
12779cat >>conftest.$ac_ext <<_ACEOF
12780/* end confdefs.h. */
12781$ac_includes_default
12782int
12783main ()
12784{
12785static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12786test_array [0] = 0
12787
12788 ;
12789 return 0;
12790}
12791_ACEOF
12792rm -f conftest.$ac_objext
12793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12794 (eval $ac_compile) 2>conftest.er1
12795 ac_status=$?
12796 grep -v '^ *+' conftest.er1 >conftest.err
12797 rm -f conftest.er1
12798 cat conftest.err >&5
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); } &&
12801 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12803 (eval $ac_try) 2>&5
12804 ac_status=$?
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); }; } &&
12807 { ac_try='test -s conftest.$ac_objext'
12808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12809 (eval $ac_try) 2>&5
12810 ac_status=$?
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); }; }; then
12813 ac_lo=0 ac_mid=0
12814 while :; do
12815 cat >conftest.$ac_ext <<_ACEOF
12816/* confdefs.h. */
12817_ACEOF
12818cat confdefs.h >>conftest.$ac_ext
12819cat >>conftest.$ac_ext <<_ACEOF
12820/* end confdefs.h. */
12821$ac_includes_default
12822int
12823main ()
12824{
12825static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12826test_array [0] = 0
12827
12828 ;
12829 return 0;
12830}
12831_ACEOF
12832rm -f conftest.$ac_objext
12833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12834 (eval $ac_compile) 2>conftest.er1
12835 ac_status=$?
12836 grep -v '^ *+' conftest.er1 >conftest.err
12837 rm -f conftest.er1
12838 cat conftest.err >&5
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); } &&
12841 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12843 (eval $ac_try) 2>&5
12844 ac_status=$?
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); }; } &&
12847 { ac_try='test -s conftest.$ac_objext'
12848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12849 (eval $ac_try) 2>&5
12850 ac_status=$?
12851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 (exit $ac_status); }; }; then
12853 ac_hi=$ac_mid; break
12854else
12855 echo "$as_me: failed program was:" >&5
12856sed 's/^/| /' conftest.$ac_ext >&5
12857
12858ac_lo=`expr $ac_mid + 1`
12859 if test $ac_lo -le $ac_mid; then
12860 ac_lo= ac_hi=
12861 break
12862 fi
12863 ac_mid=`expr 2 '*' $ac_mid + 1`
12864fi
12865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12866 done
12867else
12868 echo "$as_me: failed program was:" >&5
12869sed 's/^/| /' conftest.$ac_ext >&5
12870
12871cat >conftest.$ac_ext <<_ACEOF
12872/* confdefs.h. */
12873_ACEOF
12874cat confdefs.h >>conftest.$ac_ext
12875cat >>conftest.$ac_ext <<_ACEOF
12876/* end confdefs.h. */
12877$ac_includes_default
12878int
12879main ()
12880{
12881static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12882test_array [0] = 0
12883
12884 ;
12885 return 0;
12886}
12887_ACEOF
12888rm -f conftest.$ac_objext
12889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12890 (eval $ac_compile) 2>conftest.er1
12891 ac_status=$?
12892 grep -v '^ *+' conftest.er1 >conftest.err
12893 rm -f conftest.er1
12894 cat conftest.err >&5
12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); } &&
12897 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12899 (eval $ac_try) 2>&5
12900 ac_status=$?
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); }; } &&
12903 { ac_try='test -s conftest.$ac_objext'
12904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12905 (eval $ac_try) 2>&5
12906 ac_status=$?
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); }; }; then
12909 ac_hi=-1 ac_mid=-1
12910 while :; do
12911 cat >conftest.$ac_ext <<_ACEOF
12912/* confdefs.h. */
12913_ACEOF
12914cat confdefs.h >>conftest.$ac_ext
12915cat >>conftest.$ac_ext <<_ACEOF
12916/* end confdefs.h. */
12917$ac_includes_default
12918int
12919main ()
12920{
12921static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12922test_array [0] = 0
12923
12924 ;
12925 return 0;
12926}
12927_ACEOF
12928rm -f conftest.$ac_objext
12929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12930 (eval $ac_compile) 2>conftest.er1
12931 ac_status=$?
12932 grep -v '^ *+' conftest.er1 >conftest.err
12933 rm -f conftest.er1
12934 cat conftest.err >&5
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); } &&
12937 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12939 (eval $ac_try) 2>&5
12940 ac_status=$?
12941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942 (exit $ac_status); }; } &&
12943 { ac_try='test -s conftest.$ac_objext'
12944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12945 (eval $ac_try) 2>&5
12946 ac_status=$?
12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); }; }; then
12949 ac_lo=$ac_mid; break
12950else
12951 echo "$as_me: failed program was:" >&5
12952sed 's/^/| /' conftest.$ac_ext >&5
12953
12954ac_hi=`expr '(' $ac_mid ')' - 1`
12955 if test $ac_mid -le $ac_hi; then
12956 ac_lo= ac_hi=
12957 break
12958 fi
12959 ac_mid=`expr 2 '*' $ac_mid`
12960fi
12961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12962 done
12963else
12964 echo "$as_me: failed program was:" >&5
12965sed 's/^/| /' conftest.$ac_ext >&5
12966
12967ac_lo= ac_hi=
12968fi
12969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12970fi
12971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12972# Binary search between lo and hi bounds.
12973while test "x$ac_lo" != "x$ac_hi"; do
12974 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12975 cat >conftest.$ac_ext <<_ACEOF
12976/* confdefs.h. */
12977_ACEOF
12978cat confdefs.h >>conftest.$ac_ext
12979cat >>conftest.$ac_ext <<_ACEOF
12980/* end confdefs.h. */
12981$ac_includes_default
12982int
12983main ()
12984{
12985static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12986test_array [0] = 0
12987
12988 ;
12989 return 0;
12990}
12991_ACEOF
12992rm -f conftest.$ac_objext
12993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12994 (eval $ac_compile) 2>conftest.er1
12995 ac_status=$?
12996 grep -v '^ *+' conftest.er1 >conftest.err
12997 rm -f conftest.er1
12998 cat conftest.err >&5
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); } &&
13001 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13003 (eval $ac_try) 2>&5
13004 ac_status=$?
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); }; } &&
13007 { ac_try='test -s conftest.$ac_objext'
13008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13009 (eval $ac_try) 2>&5
13010 ac_status=$?
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); }; }; then
13013 ac_hi=$ac_mid
13014else
13015 echo "$as_me: failed program was:" >&5
13016sed 's/^/| /' conftest.$ac_ext >&5
13017
13018ac_lo=`expr '(' $ac_mid ')' + 1`
13019fi
13020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13021done
13022case $ac_lo in
13023?*) ac_cv_sizeof_long=$ac_lo;;
13024'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13025See \`config.log' for more details." >&5
13026echo "$as_me: error: cannot compute sizeof (long), 77
13027See \`config.log' for more details." >&2;}
13028 { (exit 1); exit 1; }; } ;;
13029esac
13030else
13031 if test "$cross_compiling" = yes; then
13032 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13033echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13034 { (exit 1); exit 1; }; }
13035else
13036 cat >conftest.$ac_ext <<_ACEOF
13037/* confdefs.h. */
13038_ACEOF
13039cat confdefs.h >>conftest.$ac_ext
13040cat >>conftest.$ac_ext <<_ACEOF
13041/* end confdefs.h. */
13042$ac_includes_default
13043long longval () { return (long) (sizeof (long)); }
13044unsigned long ulongval () { return (long) (sizeof (long)); }
7603#include <sys/types.h> 13045#include <stdio.h>
7604#if STDC_HEADERS
7605#include <stdlib.h> 13046#include <stdlib.h>
7606#include <stddef.h> 13047int
7607#endif 13048main ()
7608EOF 13049{
7609if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13050
7610 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 13051 FILE *f = fopen ("conftest.val", "w");
7611 rm -rf conftest* 13052 if (! f)
7612 ac_cv_type_pid_t=yes 13053 exit (1);
13054 if (((long) (sizeof (long))) < 0)
13055 {
13056 long i = longval ();
13057 if (i != ((long) (sizeof (long))))
13058 exit (1);
13059 fprintf (f, "%ld\n", i);
13060 }
7613else 13061 else
7614 rm -rf conftest* 13062 {
7615 ac_cv_type_pid_t=no 13063 unsigned long i = ulongval ();
13064 if (i != ((long) (sizeof (long))))
13065 exit (1);
13066 fprintf (f, "%lu\n", i);
13067 }
13068 exit (ferror (f) || fclose (f) != 0);
13069
13070 ;
13071 return 0;
13072}
13073_ACEOF
13074rm -f conftest$ac_exeext
13075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13076 (eval $ac_link) 2>&5
13077 ac_status=$?
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13081 (eval $ac_try) 2>&5
13082 ac_status=$?
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); }; }; then
13085 ac_cv_sizeof_long=`cat conftest.val`
13086else
13087 echo "$as_me: program exited with status $ac_status" >&5
13088echo "$as_me: failed program was:" >&5
13089sed 's/^/| /' conftest.$ac_ext >&5
13090
13091( exit $ac_status )
13092{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13093See \`config.log' for more details." >&5
13094echo "$as_me: error: cannot compute sizeof (long), 77
13095See \`config.log' for more details." >&2;}
13096 { (exit 1); exit 1; }; }
7616fi 13097fi
13098rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13099fi
13100fi
7617rm -f conftest* 13101rm -f conftest.val
7618 13102else
13103 ac_cv_sizeof_long=0
7619fi 13104fi
7620echo "$ac_t""$ac_cv_type_pid_t" 1>&6 13105fi
7621if test $ac_cv_type_pid_t = no; then 13106echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13107echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7622 cat >> confdefs.h <<\EOF 13108cat >>confdefs.h <<_ACEOF
7623#define pid_t int 13109#define SIZEOF_LONG $ac_cv_sizeof_long
7624EOF 13110_ACEOF
7625 13111
7626fi
7627 13112
7628echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 13113echo "$as_me:$LINENO: checking for long long" >&5
7629echo "configure:7630: checking for uid_t in sys/types.h" >&5 13114echo $ECHO_N "checking for long long... $ECHO_C" >&6
7630if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then 13115if test "${ac_cv_type_long_long+set}" = set; then
7631 echo $ac_n "(cached) $ac_c" 1>&6 13116 echo $ECHO_N "(cached) $ECHO_C" >&6
7632else 13117else
7633 cat > conftest.$ac_ext <<EOF 13118 cat >conftest.$ac_ext <<_ACEOF
7634#line 7635 "configure" 13119/* confdefs.h. */
7635#include "confdefs.h" 13120_ACEOF
7636#include <sys/types.h> 13121cat confdefs.h >>conftest.$ac_ext
7637EOF 13122cat >>conftest.$ac_ext <<_ACEOF
7638if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13123/* end confdefs.h. */
7639 egrep "uid_t" >/dev/null 2>&1; then 13124$ac_includes_default
13125int
13126main ()
13127{
13128if ((long long *) 0)
13129 return 0;
13130if (sizeof (long long))
13131 return 0;
13132 ;
13133 return 0;
13134}
13135_ACEOF
13136rm -f conftest.$ac_objext
13137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13138 (eval $ac_compile) 2>conftest.er1
13139 ac_status=$?
13140 grep -v '^ *+' conftest.er1 >conftest.err
7640 rm -rf conftest* 13141 rm -f conftest.er1
13142 cat conftest.err >&5
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); } &&
13145 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13147 (eval $ac_try) 2>&5
13148 ac_status=$?
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); }; } &&
13151 { ac_try='test -s conftest.$ac_objext'
13152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13153 (eval $ac_try) 2>&5
13154 ac_status=$?
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; }; then
7641 ac_cv_type_uid_t=yes 13157 ac_cv_type_long_long=yes
7642else 13158else
7643 rm -rf conftest* 13159 echo "$as_me: failed program was:" >&5
7644 ac_cv_type_uid_t=no 13160sed 's/^/| /' conftest.$ac_ext >&5
7645fi
7646rm -f conftest*
7647 13161
13162ac_cv_type_long_long=no
7648fi 13163fi
7649 13164rm -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 13165fi
13166echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13167echo "${ECHO_T}$ac_cv_type_long_long" >&6
7661 13168
7662 13169echo "$as_me:$LINENO: checking size of long long" >&5
7663 13170echo $ECHO_N "checking size of long long... $ECHO_C" >&6
7664echo $ac_n "checking size of char""... $ac_c" 1>&6 13171if 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 13172 echo $ECHO_N "(cached) $ECHO_C" >&6
7668else 13173else
13174 if test "$ac_cv_type_long_long" = yes; then
13175 # The cast to unsigned long works around a bug in the HP C Compiler
13176 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13177 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13178 # This bug is HP SR number 8606223364.
7669 if test "$cross_compiling" = yes; then 13179 if test "$cross_compiling" = yes; then
7670 ac_cv_sizeof_char=1 13180 # Depending upon the size, compute the lo and hi bounds.
13181cat >conftest.$ac_ext <<_ACEOF
13182/* confdefs.h. */
13183_ACEOF
13184cat confdefs.h >>conftest.$ac_ext
13185cat >>conftest.$ac_ext <<_ACEOF
13186/* end confdefs.h. */
13187$ac_includes_default
13188int
13189main ()
13190{
13191static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
13192test_array [0] = 0
13193
13194 ;
13195 return 0;
13196}
13197_ACEOF
13198rm -f conftest.$ac_objext
13199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13200 (eval $ac_compile) 2>conftest.er1
13201 ac_status=$?
13202 grep -v '^ *+' conftest.er1 >conftest.err
13203 rm -f conftest.er1
13204 cat conftest.err >&5
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); } &&
13207 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13209 (eval $ac_try) 2>&5
13210 ac_status=$?
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); }; } &&
13213 { ac_try='test -s conftest.$ac_objext'
13214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13215 (eval $ac_try) 2>&5
13216 ac_status=$?
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); }; }; then
13219 ac_lo=0 ac_mid=0
13220 while :; do
13221 cat >conftest.$ac_ext <<_ACEOF
13222/* confdefs.h. */
13223_ACEOF
13224cat confdefs.h >>conftest.$ac_ext
13225cat >>conftest.$ac_ext <<_ACEOF
13226/* end confdefs.h. */
13227$ac_includes_default
13228int
13229main ()
13230{
13231static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
13232test_array [0] = 0
13233
13234 ;
13235 return 0;
13236}
13237_ACEOF
13238rm -f conftest.$ac_objext
13239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13240 (eval $ac_compile) 2>conftest.er1
13241 ac_status=$?
13242 grep -v '^ *+' conftest.er1 >conftest.err
13243 rm -f conftest.er1
13244 cat conftest.err >&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); } &&
13247 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249 (eval $ac_try) 2>&5
13250 ac_status=$?
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); }; } &&
13253 { ac_try='test -s conftest.$ac_objext'
13254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13255 (eval $ac_try) 2>&5
13256 ac_status=$?
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); }; }; then
13259 ac_hi=$ac_mid; break
7671else 13260else
13261 echo "$as_me: failed program was:" >&5
13262sed 's/^/| /' conftest.$ac_ext >&5
13263
13264ac_lo=`expr $ac_mid + 1`
13265 if test $ac_lo -le $ac_mid; then
13266 ac_lo= ac_hi=
13267 break
13268 fi
13269 ac_mid=`expr 2 '*' $ac_mid + 1`
13270fi
13271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13272 done
13273else
13274 echo "$as_me: failed program was:" >&5
13275sed 's/^/| /' conftest.$ac_ext >&5
13276
13277cat >conftest.$ac_ext <<_ACEOF
13278/* confdefs.h. */
13279_ACEOF
13280cat confdefs.h >>conftest.$ac_ext
13281cat >>conftest.$ac_ext <<_ACEOF
13282/* end confdefs.h. */
13283$ac_includes_default
13284int
13285main ()
13286{
13287static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
13288test_array [0] = 0
13289
13290 ;
13291 return 0;
13292}
13293_ACEOF
13294rm -f conftest.$ac_objext
13295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13296 (eval $ac_compile) 2>conftest.er1
13297 ac_status=$?
13298 grep -v '^ *+' conftest.er1 >conftest.err
13299 rm -f conftest.er1
13300 cat conftest.err >&5
13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); } &&
13303 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13305 (eval $ac_try) 2>&5
13306 ac_status=$?
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); }; } &&
13309 { ac_try='test -s conftest.$ac_objext'
13310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13311 (eval $ac_try) 2>&5
13312 ac_status=$?
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); }; }; then
13315 ac_hi=-1 ac_mid=-1
13316 while :; do
13317 cat >conftest.$ac_ext <<_ACEOF
13318/* confdefs.h. */
13319_ACEOF
13320cat confdefs.h >>conftest.$ac_ext
13321cat >>conftest.$ac_ext <<_ACEOF
13322/* end confdefs.h. */
13323$ac_includes_default
13324int
13325main ()
13326{
13327static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
13328test_array [0] = 0
13329
13330 ;
13331 return 0;
13332}
13333_ACEOF
13334rm -f conftest.$ac_objext
13335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13336 (eval $ac_compile) 2>conftest.er1
13337 ac_status=$?
13338 grep -v '^ *+' conftest.er1 >conftest.err
13339 rm -f conftest.er1
13340 cat conftest.err >&5
13341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342 (exit $ac_status); } &&
13343 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13345 (eval $ac_try) 2>&5
13346 ac_status=$?
13347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); }; } &&
13349 { ac_try='test -s conftest.$ac_objext'
13350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13351 (eval $ac_try) 2>&5
13352 ac_status=$?
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); }; }; then
13355 ac_lo=$ac_mid; break
13356else
13357 echo "$as_me: failed program was:" >&5
13358sed 's/^/| /' conftest.$ac_ext >&5
13359
13360ac_hi=`expr '(' $ac_mid ')' - 1`
13361 if test $ac_mid -le $ac_hi; then
13362 ac_lo= ac_hi=
13363 break
13364 fi
13365 ac_mid=`expr 2 '*' $ac_mid`
13366fi
13367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13368 done
13369else
13370 echo "$as_me: failed program was:" >&5
13371sed 's/^/| /' conftest.$ac_ext >&5
13372
13373ac_lo= ac_hi=
13374fi
13375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13376fi
13377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13378# Binary search between lo and hi bounds.
13379while test "x$ac_lo" != "x$ac_hi"; do
13380 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7672 cat > conftest.$ac_ext <<EOF 13381 cat >conftest.$ac_ext <<_ACEOF
7673#line 7674 "configure" 13382/* confdefs.h. */
7674#include "confdefs.h" 13383_ACEOF
13384cat confdefs.h >>conftest.$ac_ext
13385cat >>conftest.$ac_ext <<_ACEOF
13386/* end confdefs.h. */
13387$ac_includes_default
13388int
13389main ()
13390{
13391static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
13392test_array [0] = 0
13393
13394 ;
13395 return 0;
13396}
13397_ACEOF
13398rm -f conftest.$ac_objext
13399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13400 (eval $ac_compile) 2>conftest.er1
13401 ac_status=$?
13402 grep -v '^ *+' conftest.er1 >conftest.err
13403 rm -f conftest.er1
13404 cat conftest.err >&5
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); } &&
13407 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13409 (eval $ac_try) 2>&5
13410 ac_status=$?
13411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); }; } &&
13413 { ac_try='test -s conftest.$ac_objext'
13414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13415 (eval $ac_try) 2>&5
13416 ac_status=$?
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); }; }; then
13419 ac_hi=$ac_mid
13420else
13421 echo "$as_me: failed program was:" >&5
13422sed 's/^/| /' conftest.$ac_ext >&5
13423
13424ac_lo=`expr '(' $ac_mid ')' + 1`
13425fi
13426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13427done
13428case $ac_lo in
13429?*) ac_cv_sizeof_long_long=$ac_lo;;
13430'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13431See \`config.log' for more details." >&5
13432echo "$as_me: error: cannot compute sizeof (long long), 77
13433See \`config.log' for more details." >&2;}
13434 { (exit 1); exit 1; }; } ;;
13435esac
13436else
13437 if test "$cross_compiling" = yes; then
13438 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13439echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13440 { (exit 1); exit 1; }; }
13441else
13442 cat >conftest.$ac_ext <<_ACEOF
13443/* confdefs.h. */
13444_ACEOF
13445cat confdefs.h >>conftest.$ac_ext
13446cat >>conftest.$ac_ext <<_ACEOF
13447/* end confdefs.h. */
13448$ac_includes_default
13449long longval () { return (long) (sizeof (long long)); }
13450unsigned long ulongval () { return (long) (sizeof (long long)); }
7675#include <stdio.h> 13451#include <stdio.h>
7676#include <sys/types.h> 13452#include <stdlib.h>
13453int
7677main() 13454main ()
7678{ 13455{
13456
7679 FILE *f=fopen("conftestval", "w"); 13457 FILE *f = fopen ("conftest.val", "w");
7680 if (!f) exit(1); 13458 if (! f)
7681 fprintf(f, "%d\n", sizeof(char));
7682 exit(0); 13459 exit (1);
13460 if (((long) (sizeof (long long))) < 0)
13461 {
13462 long i = longval ();
13463 if (i != ((long) (sizeof (long long))))
13464 exit (1);
13465 fprintf (f, "%ld\n", i);
13466 }
13467 else
13468 {
13469 unsigned long i = ulongval ();
13470 if (i != ((long) (sizeof (long long))))
13471 exit (1);
13472 fprintf (f, "%lu\n", i);
13473 }
13474 exit (ferror (f) || fclose (f) != 0);
13475
13476 ;
13477 return 0;
7683} 13478}
7684EOF 13479_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 13480rm -f conftest$ac_exeext
7686then 13481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13482 (eval $ac_link) 2>&5
13483 ac_status=$?
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13487 (eval $ac_try) 2>&5
13488 ac_status=$?
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; }; then
7687 ac_cv_sizeof_char=`cat conftestval` 13491 ac_cv_sizeof_long_long=`cat conftest.val`
7688else 13492else
13493 echo "$as_me: program exited with status $ac_status" >&5
7689 echo "configure: failed program was:" >&5 13494echo "$as_me: failed program was:" >&5
7690 cat conftest.$ac_ext >&5 13495sed 's/^/| /' conftest.$ac_ext >&5
7691 rm -fr conftest* 13496
7692 ac_cv_sizeof_char=0 13497( exit $ac_status )
13498{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13499See \`config.log' for more details." >&5
13500echo "$as_me: error: cannot compute sizeof (long long), 77
13501See \`config.log' for more details." >&2;}
13502 { (exit 1); exit 1; }; }
7693fi 13503fi
13504rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13505fi
13506fi
7694rm -fr conftest* 13507rm -f conftest.val
13508else
13509 ac_cv_sizeof_long_long=0
7695fi 13510fi
7696
7697fi 13511fi
7698echo "$ac_t""$ac_cv_sizeof_char" 1>&6 13512echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13513echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
7699cat >> confdefs.h <<EOF 13514cat >>confdefs.h <<_ACEOF
7700#define SIZEOF_CHAR $ac_cv_sizeof_char 13515#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7701EOF 13516_ACEOF
7702 13517
7703 13518
7704echo $ac_n "checking size of short""... $ac_c" 1>&6 13519echo "$as_me:$LINENO: checking for int *" >&5
7705echo "configure:7706: checking size of short" >&5 13520echo $ECHO_N "checking for int *... $ECHO_C" >&6
7706if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then 13521if test "${ac_cv_type_int_p+set}" = set; then
7707 echo $ac_n "(cached) $ac_c" 1>&6 13522 echo $ECHO_N "(cached) $ECHO_C" >&6
7708else 13523else
13524 cat >conftest.$ac_ext <<_ACEOF
13525/* confdefs.h. */
13526_ACEOF
13527cat confdefs.h >>conftest.$ac_ext
13528cat >>conftest.$ac_ext <<_ACEOF
13529/* end confdefs.h. */
13530$ac_includes_default
13531int
13532main ()
13533{
13534if ((int * *) 0)
13535 return 0;
13536if (sizeof (int *))
13537 return 0;
13538 ;
13539 return 0;
13540}
13541_ACEOF
13542rm -f conftest.$ac_objext
13543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13544 (eval $ac_compile) 2>conftest.er1
13545 ac_status=$?
13546 grep -v '^ *+' conftest.er1 >conftest.err
13547 rm -f conftest.er1
13548 cat conftest.err >&5
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); } &&
13551 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13553 (eval $ac_try) 2>&5
13554 ac_status=$?
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); }; } &&
13557 { ac_try='test -s conftest.$ac_objext'
13558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559 (eval $ac_try) 2>&5
13560 ac_status=$?
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); }; }; then
13563 ac_cv_type_int_p=yes
13564else
13565 echo "$as_me: failed program was:" >&5
13566sed 's/^/| /' conftest.$ac_ext >&5
13567
13568ac_cv_type_int_p=no
13569fi
13570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13571fi
13572echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
13573echo "${ECHO_T}$ac_cv_type_int_p" >&6
13574
13575echo "$as_me:$LINENO: checking size of int *" >&5
13576echo $ECHO_N "checking size of int *... $ECHO_C" >&6
13577if test "${ac_cv_sizeof_int_p+set}" = set; then
13578 echo $ECHO_N "(cached) $ECHO_C" >&6
13579else
13580 if test "$ac_cv_type_int_p" = yes; then
13581 # The cast to unsigned long works around a bug in the HP C Compiler
13582 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13583 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13584 # This bug is HP SR number 8606223364.
7709 if test "$cross_compiling" = yes; then 13585 if test "$cross_compiling" = yes; then
7710 ac_cv_sizeof_short=2 13586 # Depending upon the size, compute the lo and hi bounds.
13587cat >conftest.$ac_ext <<_ACEOF
13588/* confdefs.h. */
13589_ACEOF
13590cat confdefs.h >>conftest.$ac_ext
13591cat >>conftest.$ac_ext <<_ACEOF
13592/* end confdefs.h. */
13593$ac_includes_default
13594int
13595main ()
13596{
13597static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
13598test_array [0] = 0
13599
13600 ;
13601 return 0;
13602}
13603_ACEOF
13604rm -f conftest.$ac_objext
13605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13606 (eval $ac_compile) 2>conftest.er1
13607 ac_status=$?
13608 grep -v '^ *+' conftest.er1 >conftest.err
13609 rm -f conftest.er1
13610 cat conftest.err >&5
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); } &&
13613 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615 (eval $ac_try) 2>&5
13616 ac_status=$?
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); }; } &&
13619 { ac_try='test -s conftest.$ac_objext'
13620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621 (eval $ac_try) 2>&5
13622 ac_status=$?
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); }; }; then
13625 ac_lo=0 ac_mid=0
13626 while :; do
13627 cat >conftest.$ac_ext <<_ACEOF
13628/* confdefs.h. */
13629_ACEOF
13630cat confdefs.h >>conftest.$ac_ext
13631cat >>conftest.$ac_ext <<_ACEOF
13632/* end confdefs.h. */
13633$ac_includes_default
13634int
13635main ()
13636{
13637static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13638test_array [0] = 0
13639
13640 ;
13641 return 0;
13642}
13643_ACEOF
13644rm -f conftest.$ac_objext
13645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13646 (eval $ac_compile) 2>conftest.er1
13647 ac_status=$?
13648 grep -v '^ *+' conftest.er1 >conftest.err
13649 rm -f conftest.er1
13650 cat conftest.err >&5
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); } &&
13653 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13655 (eval $ac_try) 2>&5
13656 ac_status=$?
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); }; } &&
13659 { ac_try='test -s conftest.$ac_objext'
13660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13661 (eval $ac_try) 2>&5
13662 ac_status=$?
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); }; }; then
13665 ac_hi=$ac_mid; break
7711else 13666else
13667 echo "$as_me: failed program was:" >&5
13668sed 's/^/| /' conftest.$ac_ext >&5
13669
13670ac_lo=`expr $ac_mid + 1`
13671 if test $ac_lo -le $ac_mid; then
13672 ac_lo= ac_hi=
13673 break
13674 fi
13675 ac_mid=`expr 2 '*' $ac_mid + 1`
13676fi
13677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13678 done
13679else
13680 echo "$as_me: failed program was:" >&5
13681sed 's/^/| /' conftest.$ac_ext >&5
13682
13683cat >conftest.$ac_ext <<_ACEOF
13684/* confdefs.h. */
13685_ACEOF
13686cat confdefs.h >>conftest.$ac_ext
13687cat >>conftest.$ac_ext <<_ACEOF
13688/* end confdefs.h. */
13689$ac_includes_default
13690int
13691main ()
13692{
13693static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
13694test_array [0] = 0
13695
13696 ;
13697 return 0;
13698}
13699_ACEOF
13700rm -f conftest.$ac_objext
13701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13702 (eval $ac_compile) 2>conftest.er1
13703 ac_status=$?
13704 grep -v '^ *+' conftest.er1 >conftest.err
13705 rm -f conftest.er1
13706 cat conftest.err >&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); } &&
13709 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13711 (eval $ac_try) 2>&5
13712 ac_status=$?
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); }; } &&
13715 { ac_try='test -s conftest.$ac_objext'
13716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13717 (eval $ac_try) 2>&5
13718 ac_status=$?
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); }; }; then
13721 ac_hi=-1 ac_mid=-1
13722 while :; do
13723 cat >conftest.$ac_ext <<_ACEOF
13724/* confdefs.h. */
13725_ACEOF
13726cat confdefs.h >>conftest.$ac_ext
13727cat >>conftest.$ac_ext <<_ACEOF
13728/* end confdefs.h. */
13729$ac_includes_default
13730int
13731main ()
13732{
13733static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
13734test_array [0] = 0
13735
13736 ;
13737 return 0;
13738}
13739_ACEOF
13740rm -f conftest.$ac_objext
13741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13742 (eval $ac_compile) 2>conftest.er1
13743 ac_status=$?
13744 grep -v '^ *+' conftest.er1 >conftest.err
13745 rm -f conftest.er1
13746 cat conftest.err >&5
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); } &&
13749 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13751 (eval $ac_try) 2>&5
13752 ac_status=$?
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); }; } &&
13755 { ac_try='test -s conftest.$ac_objext'
13756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13757 (eval $ac_try) 2>&5
13758 ac_status=$?
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); }; }; then
13761 ac_lo=$ac_mid; break
13762else
13763 echo "$as_me: failed program was:" >&5
13764sed 's/^/| /' conftest.$ac_ext >&5
13765
13766ac_hi=`expr '(' $ac_mid ')' - 1`
13767 if test $ac_mid -le $ac_hi; then
13768 ac_lo= ac_hi=
13769 break
13770 fi
13771 ac_mid=`expr 2 '*' $ac_mid`
13772fi
13773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13774 done
13775else
13776 echo "$as_me: failed program was:" >&5
13777sed 's/^/| /' conftest.$ac_ext >&5
13778
13779ac_lo= ac_hi=
13780fi
13781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13782fi
13783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13784# Binary search between lo and hi bounds.
13785while test "x$ac_lo" != "x$ac_hi"; do
13786 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7712 cat > conftest.$ac_ext <<EOF 13787 cat >conftest.$ac_ext <<_ACEOF
7713#line 7714 "configure" 13788/* confdefs.h. */
7714#include "confdefs.h" 13789_ACEOF
13790cat confdefs.h >>conftest.$ac_ext
13791cat >>conftest.$ac_ext <<_ACEOF
13792/* end confdefs.h. */
13793$ac_includes_default
13794int
13795main ()
13796{
13797static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13798test_array [0] = 0
13799
13800 ;
13801 return 0;
13802}
13803_ACEOF
13804rm -f conftest.$ac_objext
13805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13806 (eval $ac_compile) 2>conftest.er1
13807 ac_status=$?
13808 grep -v '^ *+' conftest.er1 >conftest.err
13809 rm -f conftest.er1
13810 cat conftest.err >&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); } &&
13813 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13815 (eval $ac_try) 2>&5
13816 ac_status=$?
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); }; } &&
13819 { ac_try='test -s conftest.$ac_objext'
13820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13821 (eval $ac_try) 2>&5
13822 ac_status=$?
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); }; }; then
13825 ac_hi=$ac_mid
13826else
13827 echo "$as_me: failed program was:" >&5
13828sed 's/^/| /' conftest.$ac_ext >&5
13829
13830ac_lo=`expr '(' $ac_mid ')' + 1`
13831fi
13832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13833done
13834case $ac_lo in
13835?*) ac_cv_sizeof_int_p=$ac_lo;;
13836'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
13837See \`config.log' for more details." >&5
13838echo "$as_me: error: cannot compute sizeof (int *), 77
13839See \`config.log' for more details." >&2;}
13840 { (exit 1); exit 1; }; } ;;
13841esac
13842else
13843 if test "$cross_compiling" = yes; then
13844 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13845echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13846 { (exit 1); exit 1; }; }
13847else
13848 cat >conftest.$ac_ext <<_ACEOF
13849/* confdefs.h. */
13850_ACEOF
13851cat confdefs.h >>conftest.$ac_ext
13852cat >>conftest.$ac_ext <<_ACEOF
13853/* end confdefs.h. */
13854$ac_includes_default
13855long longval () { return (long) (sizeof (int *)); }
13856unsigned long ulongval () { return (long) (sizeof (int *)); }
7715#include <stdio.h> 13857#include <stdio.h>
7716#include <sys/types.h> 13858#include <stdlib.h>
13859int
7717main() 13860main ()
7718{ 13861{
13862
7719 FILE *f=fopen("conftestval", "w"); 13863 FILE *f = fopen ("conftest.val", "w");
7720 if (!f) exit(1); 13864 if (! f)
7721 fprintf(f, "%d\n", sizeof(short));
7722 exit(0); 13865 exit (1);
13866 if (((long) (sizeof (int *))) < 0)
13867 {
13868 long i = longval ();
13869 if (i != ((long) (sizeof (int *))))
13870 exit (1);
13871 fprintf (f, "%ld\n", i);
13872 }
13873 else
13874 {
13875 unsigned long i = ulongval ();
13876 if (i != ((long) (sizeof (int *))))
13877 exit (1);
13878 fprintf (f, "%lu\n", i);
13879 }
13880 exit (ferror (f) || fclose (f) != 0);
13881
13882 ;
13883 return 0;
7723} 13884}
7724EOF 13885_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 13886rm -f conftest$ac_exeext
7726then 13887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13888 (eval $ac_link) 2>&5
13889 ac_status=$?
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13893 (eval $ac_try) 2>&5
13894 ac_status=$?
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); }; }; then
7727 ac_cv_sizeof_short=`cat conftestval` 13897 ac_cv_sizeof_int_p=`cat conftest.val`
7728else 13898else
13899 echo "$as_me: program exited with status $ac_status" >&5
7729 echo "configure: failed program was:" >&5 13900echo "$as_me: failed program was:" >&5
7730 cat conftest.$ac_ext >&5 13901sed 's/^/| /' conftest.$ac_ext >&5
7731 rm -fr conftest* 13902
7732 ac_cv_sizeof_short=0 13903( exit $ac_status )
13904{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
13905See \`config.log' for more details." >&5
13906echo "$as_me: error: cannot compute sizeof (int *), 77
13907See \`config.log' for more details." >&2;}
13908 { (exit 1); exit 1; }; }
7733fi 13909fi
13910rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13911fi
13912fi
7734rm -fr conftest* 13913rm -f conftest.val
13914else
13915 ac_cv_sizeof_int_p=0
7735fi 13916fi
7736
7737fi 13917fi
7738echo "$ac_t""$ac_cv_sizeof_short" 1>&6 13918echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
13919echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
7739cat >> confdefs.h <<EOF 13920cat >>confdefs.h <<_ACEOF
7740#define SIZEOF_SHORT $ac_cv_sizeof_short 13921#define SIZEOF_INT_P $ac_cv_sizeof_int_p
7741EOF 13922_ACEOF
7742 13923
7743 13924
7744echo $ac_n "checking size of int""... $ac_c" 1>&6 13925
7745echo "configure:7746: checking size of int" >&5 13926
7746if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then 13927echo "$as_me:$LINENO: checking for int16_t" >&5
13928echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
13929if test "${rxvt_cv_int16_t+set}" = set; then
7747 echo $ac_n "(cached) $ac_c" 1>&6 13930 echo $ECHO_N "(cached) $ECHO_C" >&6
7748else 13931else
7749 if test "$cross_compiling" = yes; then
7750 ac_cv_sizeof_int=4
7751else
7752 cat > conftest.$ac_ext <<EOF 13932 cat >conftest.$ac_ext <<_ACEOF
7753#line 7754 "configure" 13933/* confdefs.h. */
7754#include "confdefs.h" 13934_ACEOF
13935cat confdefs.h >>conftest.$ac_ext
13936cat >>conftest.$ac_ext <<_ACEOF
13937/* end confdefs.h. */
7755#include <stdio.h> 13938#include <stdint.h>
7756#include <sys/types.h> 13939int
7757main() 13940main ()
7758{ 13941{
7759 FILE *f=fopen("conftestval", "w"); 13942int16_t dummy;
7760 if (!f) exit(1); 13943 ;
7761 fprintf(f, "%d\n", sizeof(int)); 13944 return 0;
7762 exit(0);
7763} 13945}
7764EOF 13946_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 13947rm -f conftest.$ac_objext
7766then 13948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7767 ac_cv_sizeof_int=`cat conftestval` 13949 (eval $ac_compile) 2>conftest.er1
7768else 13950 ac_status=$?
7769 echo "configure: failed program was:" >&5 13951 grep -v '^ *+' conftest.er1 >conftest.err
7770 cat conftest.$ac_ext >&5
7771 rm -fr conftest* 13952 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 13953 cat conftest.err >&5
7811 rm -fr conftest* 13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 ac_cv_sizeof_long=0 13955 (exit $ac_status); } &&
7813fi 13956 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7814rm -fr conftest* 13957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7815fi 13958 (eval $ac_try) 2>&5
7816 13959 ac_status=$?
7817fi 13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818echo "$ac_t""$ac_cv_sizeof_long" 1>&6 13961 (exit $ac_status); }; } &&
7819cat >> confdefs.h <<EOF 13962 { ac_try='test -s conftest.$ac_objext'
7820#define SIZEOF_LONG $ac_cv_sizeof_long 13963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7821EOF 13964 (eval $ac_try) 2>&5
7822 13965 ac_status=$?
7823 13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824echo $ac_n "checking size of long long""... $ac_c" 1>&6 13967 (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 13968 rxvt_cv_int16_t=yes
7922else 13969else
7923 echo "configure: failed program was:" >&5 13970 echo "$as_me: failed program was:" >&5
7924 cat conftest.$ac_ext >&5 13971sed 's/^/| /' conftest.$ac_ext >&5
7925 rm -rf conftest* 13972
7926 if test $ac_cv_sizeof_char -ge 2; then 13973if test $ac_cv_sizeof_char -ge 2; then
7927 rxvt_cv_int16_t=" char" 13974 rxvt_cv_int16_t=" char"
7928else 13975else
7929 if test $ac_cv_sizeof_short -ge 2; then 13976 if test $ac_cv_sizeof_short -ge 2; then
7930 rxvt_cv_int16_t=" short" 13977 rxvt_cv_int16_t=" short"
7931 else 13978 else
7943 fi 13990 fi
7944 fi 13991 fi
7945 fi 13992 fi
7946fi 13993fi
7947fi 13994fi
7948rm -f conftest* 13995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7949fi 13996fi
7950 13997echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
7951echo "$ac_t""$rxvt_cv_int16_t" 1>&6 13998echo "${ECHO_T}$rxvt_cv_int16_t" >&6
7952if test x"$rxvt_cv_int16_t" != xyes; then 13999if test x"$rxvt_cv_int16_t" != xyes; then
7953 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;" 14000 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
7954else 14001else
7955 if test x"" = x; then 14002 if test x"" = x; then
7956 rxvt_int16_typedef="/* typedef short int16_t; */" 14003 rxvt_int16_typedef="/* typedef short int16_t; */"
7957 else 14004 else
7958 rxvt_int16_typedef="/* typedef short int16_t; */" 14005 rxvt_int16_typedef="/* typedef short int16_t; */"
7959 fi 14006 fi
7960fi 14007fi
7961 14008
14009echo "$as_me:$LINENO: checking for uint16_t" >&5
7962echo $ac_n "checking for uint16_t""... $ac_c" 1>&6 14010echo $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 14011if test "${rxvt_cv_uint16_t+set}" = set; then
7965 echo $ac_n "(cached) $ac_c" 1>&6 14012 echo $ECHO_N "(cached) $ECHO_C" >&6
7966else 14013else
7967 cat > conftest.$ac_ext <<EOF 14014 cat >conftest.$ac_ext <<_ACEOF
7968#line 7969 "configure" 14015/* confdefs.h. */
7969#include "confdefs.h" 14016_ACEOF
14017cat confdefs.h >>conftest.$ac_ext
14018cat >>conftest.$ac_ext <<_ACEOF
14019/* end confdefs.h. */
7970#include <stdint.h> 14020#include <stdint.h>
7971int main() { 14021int
14022main ()
14023{
7972uint16_t dummy; 14024uint16_t dummy;
14025 ;
7973; return 0; } 14026 return 0;
7974EOF 14027}
7975if { (eval echo configure:7976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14028_ACEOF
14029rm -f conftest.$ac_objext
14030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14031 (eval $ac_compile) 2>conftest.er1
14032 ac_status=$?
14033 grep -v '^ *+' conftest.er1 >conftest.err
7976 rm -rf conftest* 14034 rm -f conftest.er1
14035 cat conftest.err >&5
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); } &&
14038 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14040 (eval $ac_try) 2>&5
14041 ac_status=$?
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); }; } &&
14044 { ac_try='test -s conftest.$ac_objext'
14045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14046 (eval $ac_try) 2>&5
14047 ac_status=$?
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); }; }; then
7977 rxvt_cv_uint16_t=yes 14050 rxvt_cv_uint16_t=yes
7978else 14051else
7979 echo "configure: failed program was:" >&5 14052 echo "$as_me: failed program was:" >&5
7980 cat conftest.$ac_ext >&5 14053sed 's/^/| /' conftest.$ac_ext >&5
7981 rm -rf conftest* 14054
7982 if test $ac_cv_sizeof_char -ge 2; then 14055if test $ac_cv_sizeof_char -ge 2; then
7983 rxvt_cv_uint16_t="unsigned char" 14056 rxvt_cv_uint16_t="unsigned char"
7984else 14057else
7985 if test $ac_cv_sizeof_short -ge 2; then 14058 if test $ac_cv_sizeof_short -ge 2; then
7986 rxvt_cv_uint16_t="unsigned short" 14059 rxvt_cv_uint16_t="unsigned short"
7987 else 14060 else
7999 fi 14072 fi
8000 fi 14073 fi
8001 fi 14074 fi
8002fi 14075fi
8003fi 14076fi
8004rm -f conftest* 14077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8005fi 14078fi
8006 14079echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
8007echo "$ac_t""$rxvt_cv_uint16_t" 1>&6 14080echo "${ECHO_T}$rxvt_cv_uint16_t" >&6
8008if test x"$rxvt_cv_uint16_t" != xyes; then 14081if test x"$rxvt_cv_uint16_t" != xyes; then
8009 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;" 14082 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
8010else 14083else
8011 if test x"unsigned" = x; then 14084 if test x"unsigned" = x; then
8012 rxvt_uint16_typedef="/* typedef short uint16_t; */" 14085 rxvt_uint16_typedef="/* typedef short uint16_t; */"
8013 else 14086 else
8014 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */" 14087 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
8015 fi 14088 fi
8016fi 14089fi
8017 14090
14091echo "$as_me:$LINENO: checking for int32_t" >&5
8018echo $ac_n "checking for int32_t""... $ac_c" 1>&6 14092echo $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 14093if test "${rxvt_cv_int32_t+set}" = set; then
8021 echo $ac_n "(cached) $ac_c" 1>&6 14094 echo $ECHO_N "(cached) $ECHO_C" >&6
8022else 14095else
8023 cat > conftest.$ac_ext <<EOF 14096 cat >conftest.$ac_ext <<_ACEOF
8024#line 8025 "configure" 14097/* confdefs.h. */
8025#include "confdefs.h" 14098_ACEOF
14099cat confdefs.h >>conftest.$ac_ext
14100cat >>conftest.$ac_ext <<_ACEOF
14101/* end confdefs.h. */
8026#include <stdint.h> 14102#include <stdint.h>
8027int main() { 14103int
14104main ()
14105{
8028int32_t dummy; 14106int32_t dummy;
14107 ;
8029; return 0; } 14108 return 0;
8030EOF 14109}
8031if { (eval echo configure:8032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14110_ACEOF
14111rm -f conftest.$ac_objext
14112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14113 (eval $ac_compile) 2>conftest.er1
14114 ac_status=$?
14115 grep -v '^ *+' conftest.er1 >conftest.err
8032 rm -rf conftest* 14116 rm -f conftest.er1
14117 cat conftest.err >&5
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); } &&
14120 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14122 (eval $ac_try) 2>&5
14123 ac_status=$?
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); }; } &&
14126 { ac_try='test -s conftest.$ac_objext'
14127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14128 (eval $ac_try) 2>&5
14129 ac_status=$?
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); }; }; then
8033 rxvt_cv_int32_t=yes 14132 rxvt_cv_int32_t=yes
8034else 14133else
8035 echo "configure: failed program was:" >&5 14134 echo "$as_me: failed program was:" >&5
8036 cat conftest.$ac_ext >&5 14135sed 's/^/| /' conftest.$ac_ext >&5
8037 rm -rf conftest* 14136
8038 if test $ac_cv_sizeof_char -ge 4; then 14137if test $ac_cv_sizeof_char -ge 4; then
8039 rxvt_cv_int32_t=" char" 14138 rxvt_cv_int32_t=" char"
8040else 14139else
8041 if test $ac_cv_sizeof_short -ge 4; then 14140 if test $ac_cv_sizeof_short -ge 4; then
8042 rxvt_cv_int32_t=" short" 14141 rxvt_cv_int32_t=" short"
8043 else 14142 else
8055 fi 14154 fi
8056 fi 14155 fi
8057 fi 14156 fi
8058fi 14157fi
8059fi 14158fi
8060rm -f conftest* 14159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8061fi 14160fi
8062 14161echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
8063echo "$ac_t""$rxvt_cv_int32_t" 1>&6 14162echo "${ECHO_T}$rxvt_cv_int32_t" >&6
8064if test x"$rxvt_cv_int32_t" != xyes; then 14163if test x"$rxvt_cv_int32_t" != xyes; then
8065 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;" 14164 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
8066else 14165else
8067 if test x"" = x; then 14166 if test x"" = x; then
8068 rxvt_int32_typedef="/* typedef int int32_t; */" 14167 rxvt_int32_typedef="/* typedef int int32_t; */"
8069 else 14168 else
8070 rxvt_int32_typedef="/* typedef int int32_t; */" 14169 rxvt_int32_typedef="/* typedef int int32_t; */"
8071 fi 14170 fi
8072fi 14171fi
8073 14172
14173echo "$as_me:$LINENO: checking for uint32_t" >&5
8074echo $ac_n "checking for uint32_t""... $ac_c" 1>&6 14174echo $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 14175if test "${rxvt_cv_uint32_t+set}" = set; then
8077 echo $ac_n "(cached) $ac_c" 1>&6 14176 echo $ECHO_N "(cached) $ECHO_C" >&6
8078else 14177else
8079 cat > conftest.$ac_ext <<EOF 14178 cat >conftest.$ac_ext <<_ACEOF
8080#line 8081 "configure" 14179/* confdefs.h. */
8081#include "confdefs.h" 14180_ACEOF
14181cat confdefs.h >>conftest.$ac_ext
14182cat >>conftest.$ac_ext <<_ACEOF
14183/* end confdefs.h. */
8082#include <stdint.h> 14184#include <stdint.h>
8083int main() { 14185int
14186main ()
14187{
8084uint32_t dummy; 14188uint32_t dummy;
14189 ;
8085; return 0; } 14190 return 0;
8086EOF 14191}
8087if { (eval echo configure:8088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14192_ACEOF
14193rm -f conftest.$ac_objext
14194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14195 (eval $ac_compile) 2>conftest.er1
14196 ac_status=$?
14197 grep -v '^ *+' conftest.er1 >conftest.err
8088 rm -rf conftest* 14198 rm -f conftest.er1
14199 cat conftest.err >&5
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); } &&
14202 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14204 (eval $ac_try) 2>&5
14205 ac_status=$?
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); }; } &&
14208 { ac_try='test -s conftest.$ac_objext'
14209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14210 (eval $ac_try) 2>&5
14211 ac_status=$?
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); }; }; then
8089 rxvt_cv_uint32_t=yes 14214 rxvt_cv_uint32_t=yes
8090else 14215else
8091 echo "configure: failed program was:" >&5 14216 echo "$as_me: failed program was:" >&5
8092 cat conftest.$ac_ext >&5 14217sed 's/^/| /' conftest.$ac_ext >&5
8093 rm -rf conftest* 14218
8094 if test $ac_cv_sizeof_char -ge 4; then 14219if test $ac_cv_sizeof_char -ge 4; then
8095 rxvt_cv_uint32_t="unsigned char" 14220 rxvt_cv_uint32_t="unsigned char"
8096else 14221else
8097 if test $ac_cv_sizeof_short -ge 4; then 14222 if test $ac_cv_sizeof_short -ge 4; then
8098 rxvt_cv_uint32_t="unsigned short" 14223 rxvt_cv_uint32_t="unsigned short"
8099 else 14224 else
8111 fi 14236 fi
8112 fi 14237 fi
8113 fi 14238 fi
8114fi 14239fi
8115fi 14240fi
8116rm -f conftest* 14241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8117fi 14242fi
8118 14243echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
8119echo "$ac_t""$rxvt_cv_uint32_t" 1>&6 14244echo "${ECHO_T}$rxvt_cv_uint32_t" >&6
8120if test x"$rxvt_cv_uint32_t" != xyes; then 14245if test x"$rxvt_cv_uint32_t" != xyes; then
8121 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;" 14246 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
8122else 14247else
8123 if test x"unsigned" = x; then 14248 if test x"unsigned" = x; then
8124 rxvt_uint32_typedef="/* typedef int uint32_t; */" 14249 rxvt_uint32_typedef="/* typedef int uint32_t; */"
8125 else 14250 else
8126 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" 14251 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
8127 fi 14252 fi
8128fi 14253fi
8129 14254
8130if test $ac_cv_sizeof_int_p -eq 8; then 14255if test $ac_cv_sizeof_int_p -eq 8; then
8131 rxvt_intp_define="#define intp_t int64_t" 14256 rxvt_intp_define="#define intp_t int64_t"
8132 rxvt_u_intp_define="#define u_intp_t u_int64_t" 14257 rxvt_u_intp_define="#define u_intp_t u_int64_t"
8133else 14258else
8145 fi 14270 fi
8146fi 14271fi
8147 14272
8148 14273
8149 14274
14275echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8150echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 14276echo $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 14277if test "${ac_cv_type_signal+set}" = set; then
8153 echo $ac_n "(cached) $ac_c" 1>&6 14278 echo $ECHO_N "(cached) $ECHO_C" >&6
8154else 14279else
8155 cat > conftest.$ac_ext <<EOF 14280 cat >conftest.$ac_ext <<_ACEOF
8156#line 8157 "configure" 14281/* confdefs.h. */
8157#include "confdefs.h" 14282_ACEOF
14283cat confdefs.h >>conftest.$ac_ext
14284cat >>conftest.$ac_ext <<_ACEOF
14285/* end confdefs.h. */
8158#include <sys/types.h> 14286#include <sys/types.h>
8159#include <signal.h> 14287#include <signal.h>
8160#ifdef signal 14288#ifdef signal
8161#undef signal 14289# undef signal
8162#endif 14290#endif
8163#ifdef __cplusplus 14291#ifdef __cplusplus
8164extern "C" void (*signal (int, void (*)(int)))(int); 14292extern "C" void (*signal (int, void (*)(int)))(int);
8165#else 14293#else
8166void (*signal ()) (); 14294void (*signal ()) ();
8167#endif 14295#endif
8168 14296
8169int main() { 14297int
14298main ()
14299{
8170int i; 14300int i;
14301 ;
8171; return 0; } 14302 return 0;
8172EOF 14303}
8173if { (eval echo configure:8174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14304_ACEOF
14305rm -f conftest.$ac_objext
14306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14307 (eval $ac_compile) 2>conftest.er1
14308 ac_status=$?
14309 grep -v '^ *+' conftest.er1 >conftest.err
8174 rm -rf conftest* 14310 rm -f conftest.er1
14311 cat conftest.err >&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); } &&
14314 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14316 (eval $ac_try) 2>&5
14317 ac_status=$?
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); }; } &&
14320 { ac_try='test -s conftest.$ac_objext'
14321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14322 (eval $ac_try) 2>&5
14323 ac_status=$?
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); }; }; then
8175 ac_cv_type_signal=void 14326 ac_cv_type_signal=void
8176else 14327else
8177 echo "configure: failed program was:" >&5 14328 echo "$as_me: failed program was:" >&5
8178 cat conftest.$ac_ext >&5 14329sed 's/^/| /' conftest.$ac_ext >&5
8179 rm -rf conftest* 14330
8180 ac_cv_type_signal=int 14331ac_cv_type_signal=int
8181fi 14332fi
8182rm -f conftest* 14333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8183fi 14334fi
8184 14335echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8185echo "$ac_t""$ac_cv_type_signal" 1>&6 14336echo "${ECHO_T}$ac_cv_type_signal" >&6
14337
8186cat >> confdefs.h <<EOF 14338cat >>confdefs.h <<_ACEOF
8187#define RETSIGTYPE $ac_cv_type_signal 14339#define RETSIGTYPE $ac_cv_type_signal
8188EOF 14340_ACEOF
8189 14341
8190 14342
8191 14343
8192case "$host_alias" in 14344case "$host_alias" in
8193 *ultrix) ac_cv_func_setsid='no' ;; 14345 *ultrix) ac_cv_func_setsid='no' ;;
8194 *) break;; 14346 *) break;;
8195esac 14347esac
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
8196 14366
8197for ac_func in \ 14367for ac_func in \
8198 atexit \ 14368 atexit \
8199 revoke \ 14369 revoke \
8200 unsetenv \ 14370 unsetenv \
8213 nanosleep \ 14383 nanosleep \
8214 updwtmp \ 14384 updwtmp \
8215 ttyslot \ 14385 ttyslot \
8216 14386
8217do 14387do
14388as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14389echo "$as_me:$LINENO: checking for $ac_func" >&5
8218echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 14390echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8219echo "configure:8220: checking for $ac_func" >&5 14391if 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 14392 echo $ECHO_N "(cached) $ECHO_C" >&6
8222else 14393else
8223 cat > conftest.$ac_ext <<EOF 14394 cat >conftest.$ac_ext <<_ACEOF
8224#line 8225 "configure" 14395/* confdefs.h. */
8225#include "confdefs.h" 14396_ACEOF
14397cat confdefs.h >>conftest.$ac_ext
14398cat >>conftest.$ac_ext <<_ACEOF
14399/* end confdefs.h. */
14400/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14402#define $ac_func innocuous_$ac_func
14403
8226/* System header to define __stub macros and hopefully few prototypes, 14404/* System header to define __stub macros and hopefully few prototypes,
8227 which can conflict with char $ac_func(); below. */ 14405 which can conflict with char $ac_func (); below.
14406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14407 <limits.h> exists even on freestanding compilers. */
14408
14409#ifdef __STDC__
14410# include <limits.h>
14411#else
8228#include <assert.h> 14412# include <assert.h>
14413#endif
14414
14415#undef $ac_func
14416
8229/* Override any gcc2 internal prototype to avoid an error. */ 14417/* Override any gcc2 internal prototype to avoid an error. */
14418#ifdef __cplusplus
14419extern "C"
14420{
14421#endif
8230/* We use char because int might match the return type of a gcc2 14422/* We use char because int might match the return type of a gcc2
8231 builtin and then its argument prototype would still apply. */ 14423 builtin and then its argument prototype would still apply. */
8232char $ac_func(); 14424char $ac_func ();
8233
8234int main() {
8235
8236/* The GNU C library defines this for functions which it implements 14425/* The GNU C library defines this for functions which it implements
8237 to always fail with ENOSYS. Some functions are actually named 14426 to always fail with ENOSYS. Some functions are actually named
8238 something starting with __ and the normal name is an alias. */ 14427 something starting with __ and the normal name is an alias. */
8239#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 14428#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8240choke me 14429choke me
8241#else 14430#else
8242$ac_func(); 14431char (*f) () = $ac_func;
8243#endif 14432#endif
14433#ifdef __cplusplus
14434}
14435#endif
8244 14436
14437int
14438main ()
14439{
14440return f != $ac_func;
14441 ;
8245; return 0; } 14442 return 0;
8246EOF 14443}
8247if { (eval echo configure:8248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14444_ACEOF
14445rm -f conftest.$ac_objext conftest$ac_exeext
14446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14447 (eval $ac_link) 2>conftest.er1
14448 ac_status=$?
14449 grep -v '^ *+' conftest.er1 >conftest.err
8248 rm -rf conftest* 14450 rm -f conftest.er1
8249 eval "ac_cv_func_$ac_func=yes" 14451 cat conftest.err >&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); } &&
14454 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14456 (eval $ac_try) 2>&5
14457 ac_status=$?
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); }; } &&
14460 { ac_try='test -s conftest$ac_exeext'
14461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14462 (eval $ac_try) 2>&5
14463 ac_status=$?
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); }; }; then
14466 eval "$as_ac_var=yes"
8250else 14467else
8251 echo "configure: failed program was:" >&5 14468 echo "$as_me: failed program was:" >&5
8252 cat conftest.$ac_ext >&5 14469sed 's/^/| /' conftest.$ac_ext >&5
8253 rm -rf conftest*
8254 eval "ac_cv_func_$ac_func=no"
8255fi
8256rm -f conftest*
8257fi
8258 14470
8259if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 14471eval "$as_ac_var=no"
8260 echo "$ac_t""yes" 1>&6 14472fi
8261 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 14473rm -f conftest.err conftest.$ac_objext \
14474 conftest$ac_exeext conftest.$ac_ext
14475fi
14476echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14477echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14478if test `eval echo '${'$as_ac_var'}'` = yes; then
8262 cat >> confdefs.h <<EOF 14479 cat >>confdefs.h <<_ACEOF
8263#define $ac_tr_func 1 14480#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8264EOF 14481_ACEOF
8265 14482
8266else
8267 echo "$ac_t""no" 1>&6
8268fi 14483fi
8269done 14484done
8270 14485
8271 14486
8272 14487
8273ac_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` 14488if test "${ac_cv_header_utmp_h+set}" = set; then
14489 echo "$as_me:$LINENO: checking for utmp.h" >&5
8274echo $ac_n "checking for utmp.h""... $ac_c" 1>&6 14490echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
8275echo "configure:8276: checking for utmp.h" >&5 14491if 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 14492 echo $ECHO_N "(cached) $ECHO_C" >&6
14493fi
14494echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
14495echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
8278else 14496else
14497 # Is the header compilable?
14498echo "$as_me:$LINENO: checking utmp.h usability" >&5
14499echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6
8279 cat > conftest.$ac_ext <<EOF 14500cat >conftest.$ac_ext <<_ACEOF
8280#line 8281 "configure" 14501/* confdefs.h. */
8281#include "confdefs.h" 14502_ACEOF
14503cat confdefs.h >>conftest.$ac_ext
14504cat >>conftest.$ac_ext <<_ACEOF
14505/* end confdefs.h. */
14506$ac_includes_default
8282#include <utmp.h> 14507#include <utmp.h>
8283EOF 14508_ACEOF
8284ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14509rm -f conftest.$ac_objext
8285{ (eval echo configure:8286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8286ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14511 (eval $ac_compile) 2>conftest.er1
14512 ac_status=$?
14513 grep -v '^ *+' conftest.er1 >conftest.err
14514 rm -f conftest.er1
14515 cat conftest.err >&5
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); } &&
14518 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14520 (eval $ac_try) 2>&5
14521 ac_status=$?
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); }; } &&
14524 { ac_try='test -s conftest.$ac_objext'
14525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14526 (eval $ac_try) 2>&5
14527 ac_status=$?
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); }; }; then
14530 ac_header_compiler=yes
14531else
14532 echo "$as_me: failed program was:" >&5
14533sed 's/^/| /' conftest.$ac_ext >&5
14534
14535ac_header_compiler=no
14536fi
14537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14538echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14539echo "${ECHO_T}$ac_header_compiler" >&6
14540
14541# Is the header present?
14542echo "$as_me:$LINENO: checking utmp.h presence" >&5
14543echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6
14544cat >conftest.$ac_ext <<_ACEOF
14545/* confdefs.h. */
14546_ACEOF
14547cat confdefs.h >>conftest.$ac_ext
14548cat >>conftest.$ac_ext <<_ACEOF
14549/* end confdefs.h. */
14550#include <utmp.h>
14551_ACEOF
14552if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14554 ac_status=$?
14555 grep -v '^ *+' conftest.er1 >conftest.err
14556 rm -f conftest.er1
14557 cat conftest.err >&5
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); } >/dev/null; then
14560 if test -s conftest.err; then
14561 ac_cpp_err=$ac_cxx_preproc_warn_flag
14562 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14563 else
14564 ac_cpp_err=
14565 fi
14566else
14567 ac_cpp_err=yes
14568fi
8287if test -z "$ac_err"; then 14569if test -z "$ac_cpp_err"; then
8288 rm -rf conftest* 14570 ac_header_preproc=yes
8289 eval "ac_cv_header_$ac_safe=yes"
8290else 14571else
8291 echo "$ac_err" >&5
8292 echo "configure: failed program was:" >&5 14572 echo "$as_me: failed program was:" >&5
8293 cat conftest.$ac_ext >&5 14573sed 's/^/| /' conftest.$ac_ext >&5
8294 rm -rf conftest* 14574
8295 eval "ac_cv_header_$ac_safe=no" 14575 ac_header_preproc=no
8296fi 14576fi
8297rm -f conftest* 14577rm -f conftest.err conftest.$ac_ext
14578echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14579echo "${ECHO_T}$ac_header_preproc" >&6
14580
14581# So? What about this header?
14582case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14583 yes:no: )
14584 { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
14585echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14586 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5
14587echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;}
14588 ac_header_preproc=yes
14589 ;;
14590 no:yes:* )
14591 { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5
14592echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;}
14593 { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5
14594echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;}
14595 { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5
14596echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;}
14597 { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5
14598echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
14599 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5
14600echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;}
14601 { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5
14602echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;}
14603 (
14604 cat <<\_ASBOX
14605## ------------------------------------------ ##
14606## Report this to the AC_PACKAGE_NAME lists. ##
14607## ------------------------------------------ ##
14608_ASBOX
14609 ) |
14610 sed "s/^/$as_me: WARNING: /" >&2
14611 ;;
14612esac
14613echo "$as_me:$LINENO: checking for utmp.h" >&5
14614echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
14615if test "${ac_cv_header_utmp_h+set}" = set; then
14616 echo $ECHO_N "(cached) $ECHO_C" >&6
14617else
14618 ac_cv_header_utmp_h=$ac_header_preproc
8298fi 14619fi
8299if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 14620echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
8300 echo "$ac_t""yes" 1>&6 14621echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
14622
14623fi
14624if test $ac_cv_header_utmp_h = yes; then
14625 echo "$as_me:$LINENO: checking for struct utmp" >&5
8301 echo $ac_n "checking for struct utmp""... $ac_c" 1>&6 14626echo $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 14627if test "${rxvt_cv_struct_utmp+set}" = set; then
8304 echo $ac_n "(cached) $ac_c" 1>&6 14628 echo $ECHO_N "(cached) $ECHO_C" >&6
8305else 14629else
8306 cat > conftest.$ac_ext <<EOF 14630 cat >conftest.$ac_ext <<_ACEOF
8307#line 8308 "configure" 14631/* confdefs.h. */
8308#include "confdefs.h" 14632_ACEOF
14633cat confdefs.h >>conftest.$ac_ext
14634cat >>conftest.$ac_ext <<_ACEOF
14635/* end confdefs.h. */
8309#include <sys/types.h> 14636#include <sys/types.h>
8310#include <stdint.h> 14637#include <stdint.h>
8311#include <utmp.h> 14638#include <utmp.h>
8312int main() { 14639int
14640main ()
14641{
8313struct utmp ut; 14642struct utmp ut;
14643 ;
8314; return 0; } 14644 return 0;
8315EOF 14645}
8316if { (eval echo configure:8317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14646_ACEOF
14647rm -f conftest.$ac_objext
14648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14649 (eval $ac_compile) 2>conftest.er1
14650 ac_status=$?
14651 grep -v '^ *+' conftest.er1 >conftest.err
8317 rm -rf conftest* 14652 rm -f conftest.er1
14653 cat conftest.err >&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); } &&
14656 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14658 (eval $ac_try) 2>&5
14659 ac_status=$?
14660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661 (exit $ac_status); }; } &&
14662 { ac_try='test -s conftest.$ac_objext'
14663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14664 (eval $ac_try) 2>&5
14665 ac_status=$?
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); }; }; then
8318 rxvt_cv_struct_utmp=yes 14668 rxvt_cv_struct_utmp=yes
8319else 14669else
8320 echo "configure: failed program was:" >&5 14670 echo "$as_me: failed program was:" >&5
8321 cat conftest.$ac_ext >&5 14671sed 's/^/| /' conftest.$ac_ext >&5
8322 rm -rf conftest* 14672
8323 rxvt_cv_struct_utmp=no 14673rxvt_cv_struct_utmp=no
8324fi 14674fi
8325rm -f conftest* 14675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8326fi 14676fi
8327 14677echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5
8328echo "$ac_t""$rxvt_cv_struct_utmp" 1>&6 14678echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6
8329if test x$rxvt_cv_struct_utmp = xyes; then 14679if test x$rxvt_cv_struct_utmp = xyes; then
14680
8330 cat >> confdefs.h <<\EOF 14681cat >>confdefs.h <<\_ACEOF
8331#define HAVE_STRUCT_UTMP 1 14682#define HAVE_STRUCT_UTMP 1
8332EOF 14683_ACEOF
8333 14684
8334fi 14685fi
8335 14686
8336 14687
14688echo "$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 14689echo $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 14690if test "${rxvt_cv_struct_utmp_host+set}" = set; then
8340 echo $ac_n "(cached) $ac_c" 1>&6 14691 echo $ECHO_N "(cached) $ECHO_C" >&6
8341else 14692else
8342 cat > conftest.$ac_ext <<EOF 14693 cat >conftest.$ac_ext <<_ACEOF
8343#line 8344 "configure" 14694/* confdefs.h. */
8344#include "confdefs.h" 14695_ACEOF
14696cat confdefs.h >>conftest.$ac_ext
14697cat >>conftest.$ac_ext <<_ACEOF
14698/* end confdefs.h. */
8345#include <sys/types.h> 14699#include <sys/types.h>
8346#include <utmp.h> 14700#include <utmp.h>
8347int main() { 14701int
14702main ()
14703{
8348struct utmp ut; ut.ut_host; 14704struct utmp ut; ut.ut_host;
14705 ;
8349; return 0; } 14706 return 0;
8350EOF 14707}
8351if { (eval echo configure:8352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14708_ACEOF
14709rm -f conftest.$ac_objext
14710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14711 (eval $ac_compile) 2>conftest.er1
14712 ac_status=$?
14713 grep -v '^ *+' conftest.er1 >conftest.err
8352 rm -rf conftest* 14714 rm -f conftest.er1
14715 cat conftest.err >&5
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); } &&
14718 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14720 (eval $ac_try) 2>&5
14721 ac_status=$?
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); }; } &&
14724 { ac_try='test -s conftest.$ac_objext'
14725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14726 (eval $ac_try) 2>&5
14727 ac_status=$?
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); }; }; then
8353 rxvt_cv_struct_utmp_host=yes 14730 rxvt_cv_struct_utmp_host=yes
8354else 14731else
8355 echo "configure: failed program was:" >&5 14732 echo "$as_me: failed program was:" >&5
8356 cat conftest.$ac_ext >&5 14733sed 's/^/| /' conftest.$ac_ext >&5
8357 rm -rf conftest* 14734
8358 rxvt_cv_struct_utmp_host=no 14735rxvt_cv_struct_utmp_host=no
8359fi 14736fi
8360rm -f conftest* 14737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8361fi 14738fi
8362 14739echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5
8363echo "$ac_t""$rxvt_cv_struct_utmp_host" 1>&6 14740echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6
8364if test x$rxvt_cv_struct_utmp_host = xyes; then 14741if test x$rxvt_cv_struct_utmp_host = xyes; then
14742
8365 cat >> confdefs.h <<\EOF 14743cat >>confdefs.h <<\_ACEOF
8366#define HAVE_UTMP_HOST 1 14744#define HAVE_UTMP_HOST 1
8367EOF 14745_ACEOF
8368 14746
8369fi 14747fi
8370 14748
14749echo "$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 14750echo $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 14751if test "${rxvt_cv_struct_utmp_pid+set}" = set; then
8374 echo $ac_n "(cached) $ac_c" 1>&6 14752 echo $ECHO_N "(cached) $ECHO_C" >&6
8375else 14753else
8376 cat > conftest.$ac_ext <<EOF 14754 cat >conftest.$ac_ext <<_ACEOF
8377#line 8378 "configure" 14755/* confdefs.h. */
8378#include "confdefs.h" 14756_ACEOF
14757cat confdefs.h >>conftest.$ac_ext
14758cat >>conftest.$ac_ext <<_ACEOF
14759/* end confdefs.h. */
8379#include <sys/types.h> 14760#include <sys/types.h>
8380#include <utmp.h> 14761#include <utmp.h>
8381int main() { 14762int
14763main ()
14764{
8382struct utmp ut; ut.ut_pid; 14765struct utmp ut; ut.ut_pid;
14766 ;
8383; return 0; } 14767 return 0;
8384EOF 14768}
8385if { (eval echo configure:8386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14769_ACEOF
14770rm -f conftest.$ac_objext
14771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14772 (eval $ac_compile) 2>conftest.er1
14773 ac_status=$?
14774 grep -v '^ *+' conftest.er1 >conftest.err
8386 rm -rf conftest* 14775 rm -f conftest.er1
14776 cat conftest.err >&5
14777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778 (exit $ac_status); } &&
14779 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14781 (eval $ac_try) 2>&5
14782 ac_status=$?
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); }; } &&
14785 { ac_try='test -s conftest.$ac_objext'
14786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14787 (eval $ac_try) 2>&5
14788 ac_status=$?
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); }; }; then
8387 rxvt_cv_struct_utmp_pid=yes 14791 rxvt_cv_struct_utmp_pid=yes
8388else 14792else
8389 echo "configure: failed program was:" >&5 14793 echo "$as_me: failed program was:" >&5
8390 cat conftest.$ac_ext >&5 14794sed 's/^/| /' conftest.$ac_ext >&5
8391 rm -rf conftest* 14795
8392 rxvt_cv_struct_utmp_pid=no 14796rxvt_cv_struct_utmp_pid=no
8393fi 14797fi
8394rm -f conftest* 14798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8395fi 14799fi
8396 14800echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5
8397echo "$ac_t""$rxvt_cv_struct_utmp_pid" 1>&6 14801echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6
8398if test x$rxvt_cv_struct_utmp_pid = xyes; then 14802if test x$rxvt_cv_struct_utmp_pid = xyes; then
14803
8399 cat >> confdefs.h <<\EOF 14804cat >>confdefs.h <<\_ACEOF
8400#define HAVE_UTMP_PID 1 14805#define HAVE_UTMP_PID 1
8401EOF 14806_ACEOF
8402 14807
8403fi 14808fi
8404 14809
8405else
8406 echo "$ac_t""no" 1>&6
8407fi 14810fi
8408
8409 14811
8410ac_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` 14812
14813
14814if test "${ac_cv_header_utmpx_h+set}" = set; then
14815 echo "$as_me:$LINENO: checking for utmpx.h" >&5
8411echo $ac_n "checking for utmpx.h""... $ac_c" 1>&6 14816echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
8412echo "configure:8413: checking for utmpx.h" >&5 14817if 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 14818 echo $ECHO_N "(cached) $ECHO_C" >&6
14819fi
14820echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
14821echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
8415else 14822else
14823 # Is the header compilable?
14824echo "$as_me:$LINENO: checking utmpx.h usability" >&5
14825echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6
8416 cat > conftest.$ac_ext <<EOF 14826cat >conftest.$ac_ext <<_ACEOF
8417#line 8418 "configure" 14827/* confdefs.h. */
8418#include "confdefs.h" 14828_ACEOF
14829cat confdefs.h >>conftest.$ac_ext
14830cat >>conftest.$ac_ext <<_ACEOF
14831/* end confdefs.h. */
14832$ac_includes_default
8419#include <utmpx.h> 14833#include <utmpx.h>
8420EOF 14834_ACEOF
8421ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14835rm -f conftest.$ac_objext
8422{ (eval echo configure:8423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8423ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14837 (eval $ac_compile) 2>conftest.er1
14838 ac_status=$?
14839 grep -v '^ *+' conftest.er1 >conftest.err
14840 rm -f conftest.er1
14841 cat conftest.err >&5
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); } &&
14844 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14846 (eval $ac_try) 2>&5
14847 ac_status=$?
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); }; } &&
14850 { ac_try='test -s conftest.$ac_objext'
14851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14852 (eval $ac_try) 2>&5
14853 ac_status=$?
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); }; }; then
14856 ac_header_compiler=yes
14857else
14858 echo "$as_me: failed program was:" >&5
14859sed 's/^/| /' conftest.$ac_ext >&5
14860
14861ac_header_compiler=no
14862fi
14863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14864echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14865echo "${ECHO_T}$ac_header_compiler" >&6
14866
14867# Is the header present?
14868echo "$as_me:$LINENO: checking utmpx.h presence" >&5
14869echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6
14870cat >conftest.$ac_ext <<_ACEOF
14871/* confdefs.h. */
14872_ACEOF
14873cat confdefs.h >>conftest.$ac_ext
14874cat >>conftest.$ac_ext <<_ACEOF
14875/* end confdefs.h. */
14876#include <utmpx.h>
14877_ACEOF
14878if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14880 ac_status=$?
14881 grep -v '^ *+' conftest.er1 >conftest.err
14882 rm -f conftest.er1
14883 cat conftest.err >&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); } >/dev/null; then
14886 if test -s conftest.err; then
14887 ac_cpp_err=$ac_cxx_preproc_warn_flag
14888 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14889 else
14890 ac_cpp_err=
14891 fi
14892else
14893 ac_cpp_err=yes
14894fi
8424if test -z "$ac_err"; then 14895if test -z "$ac_cpp_err"; then
8425 rm -rf conftest* 14896 ac_header_preproc=yes
8426 eval "ac_cv_header_$ac_safe=yes"
8427else 14897else
8428 echo "$ac_err" >&5
8429 echo "configure: failed program was:" >&5 14898 echo "$as_me: failed program was:" >&5
8430 cat conftest.$ac_ext >&5 14899sed 's/^/| /' conftest.$ac_ext >&5
8431 rm -rf conftest* 14900
8432 eval "ac_cv_header_$ac_safe=no" 14901 ac_header_preproc=no
8433fi 14902fi
8434rm -f conftest* 14903rm -f conftest.err conftest.$ac_ext
14904echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14905echo "${ECHO_T}$ac_header_preproc" >&6
14906
14907# So? What about this header?
14908case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14909 yes:no: )
14910 { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5
14911echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14912 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5
14913echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;}
14914 ac_header_preproc=yes
14915 ;;
14916 no:yes:* )
14917 { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5
14918echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;}
14919 { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5
14920echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;}
14921 { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5
14922echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;}
14923 { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5
14924echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;}
14925 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5
14926echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;}
14927 { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5
14928echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;}
14929 (
14930 cat <<\_ASBOX
14931## ------------------------------------------ ##
14932## Report this to the AC_PACKAGE_NAME lists. ##
14933## ------------------------------------------ ##
14934_ASBOX
14935 ) |
14936 sed "s/^/$as_me: WARNING: /" >&2
14937 ;;
14938esac
14939echo "$as_me:$LINENO: checking for utmpx.h" >&5
14940echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
14941if test "${ac_cv_header_utmpx_h+set}" = set; then
14942 echo $ECHO_N "(cached) $ECHO_C" >&6
14943else
14944 ac_cv_header_utmpx_h=$ac_header_preproc
8435fi 14945fi
8436if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 14946echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
8437 echo "$ac_t""yes" 1>&6 14947echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
14948
14949fi
14950if test $ac_cv_header_utmpx_h = yes; then
14951 echo "$as_me:$LINENO: checking for struct utmpx" >&5
8438 echo $ac_n "checking for struct utmpx""... $ac_c" 1>&6 14952echo $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 14953if test "${rxvt_cv_struct_utmpx+set}" = set; then
8441 echo $ac_n "(cached) $ac_c" 1>&6 14954 echo $ECHO_N "(cached) $ECHO_C" >&6
8442else 14955else
8443 cat > conftest.$ac_ext <<EOF 14956 cat >conftest.$ac_ext <<_ACEOF
8444#line 8445 "configure" 14957/* confdefs.h. */
8445#include "confdefs.h" 14958_ACEOF
14959cat confdefs.h >>conftest.$ac_ext
14960cat >>conftest.$ac_ext <<_ACEOF
14961/* end confdefs.h. */
8446#include <sys/types.h> 14962#include <sys/types.h>
8447#include <utmpx.h> 14963#include <utmpx.h>
8448int main() { 14964int
14965main ()
14966{
8449struct utmpx ut; 14967struct utmpx ut;
14968 ;
8450; return 0; } 14969 return 0;
8451EOF 14970}
8452if { (eval echo configure:8453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14971_ACEOF
14972rm -f conftest.$ac_objext
14973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14974 (eval $ac_compile) 2>conftest.er1
14975 ac_status=$?
14976 grep -v '^ *+' conftest.er1 >conftest.err
8453 rm -rf conftest* 14977 rm -f conftest.er1
14978 cat conftest.err >&5
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); } &&
14981 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14983 (eval $ac_try) 2>&5
14984 ac_status=$?
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); }; } &&
14987 { ac_try='test -s conftest.$ac_objext'
14988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14989 (eval $ac_try) 2>&5
14990 ac_status=$?
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); }; }; then
8454 rxvt_cv_struct_utmpx=yes 14993 rxvt_cv_struct_utmpx=yes
8455else 14994else
8456 echo "configure: failed program was:" >&5 14995 echo "$as_me: failed program was:" >&5
8457 cat conftest.$ac_ext >&5 14996sed 's/^/| /' conftest.$ac_ext >&5
8458 rm -rf conftest* 14997
8459 rxvt_cv_struct_utmpx=no 14998rxvt_cv_struct_utmpx=no
8460fi 14999fi
8461rm -f conftest* 15000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8462fi 15001fi
8463 15002echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5
8464echo "$ac_t""$rxvt_cv_struct_utmpx" 1>&6 15003echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6
8465if test x$rxvt_cv_struct_utmpx = xyes; then 15004if test x$rxvt_cv_struct_utmpx = xyes; then
15005
8466 cat >> confdefs.h <<\EOF 15006cat >>confdefs.h <<\_ACEOF
8467#define HAVE_STRUCT_UTMPX 1 15007#define HAVE_STRUCT_UTMPX 1
8468EOF 15008_ACEOF
8469 15009
8470fi 15010fi
8471 15011
8472 15012
15013echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
8473echo $ac_n "checking for host in utmpx struct""... $ac_c" 1>&6 15014echo $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 15015if test "${rxvt_cv_struct_utmpx_host+set}" = set; then
8476 echo $ac_n "(cached) $ac_c" 1>&6 15016 echo $ECHO_N "(cached) $ECHO_C" >&6
8477else 15017else
8478 cat > conftest.$ac_ext <<EOF 15018 cat >conftest.$ac_ext <<_ACEOF
8479#line 8480 "configure" 15019/* confdefs.h. */
8480#include "confdefs.h" 15020_ACEOF
15021cat confdefs.h >>conftest.$ac_ext
15022cat >>conftest.$ac_ext <<_ACEOF
15023/* end confdefs.h. */
8481#include <sys/types.h> 15024#include <sys/types.h>
8482#include <utmpx.h> 15025#include <utmpx.h>
8483int main() { 15026int
15027main ()
15028{
8484struct utmpx utx; utx.ut_host; 15029struct utmpx utx; utx.ut_host;
15030 ;
8485; return 0; } 15031 return 0;
8486EOF 15032}
8487if { (eval echo configure:8488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 15033_ACEOF
15034rm -f conftest.$ac_objext
15035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15036 (eval $ac_compile) 2>conftest.er1
15037 ac_status=$?
15038 grep -v '^ *+' conftest.er1 >conftest.err
8488 rm -rf conftest* 15039 rm -f conftest.er1
15040 cat conftest.err >&5
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); } &&
15043 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15045 (eval $ac_try) 2>&5
15046 ac_status=$?
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); }; } &&
15049 { ac_try='test -s conftest.$ac_objext'
15050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15051 (eval $ac_try) 2>&5
15052 ac_status=$?
15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); }; }; then
8489 rxvt_cv_struct_utmpx_host=yes 15055 rxvt_cv_struct_utmpx_host=yes
8490else 15056else
8491 echo "configure: failed program was:" >&5 15057 echo "$as_me: failed program was:" >&5
8492 cat conftest.$ac_ext >&5 15058sed 's/^/| /' conftest.$ac_ext >&5
8493 rm -rf conftest* 15059
8494 rxvt_cv_struct_utmpx_host=no 15060rxvt_cv_struct_utmpx_host=no
8495fi 15061fi
8496rm -f conftest* 15062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8497fi 15063fi
8498 15064echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5
8499echo "$ac_t""$rxvt_cv_struct_utmpx_host" 1>&6 15065echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6
8500if test x$rxvt_cv_struct_utmpx_host = xyes; then 15066if test x$rxvt_cv_struct_utmpx_host = xyes; then
15067
8501 cat >> confdefs.h <<\EOF 15068cat >>confdefs.h <<\_ACEOF
8502#define HAVE_UTMPX_HOST 1 15069#define HAVE_UTMPX_HOST 1
8503EOF 15070_ACEOF
8504 15071
8505fi 15072fi
8506 15073
8507else
8508 echo "$ac_t""no" 1>&6
8509fi 15074fi
8510
8511 15075
15076
15077
15078echo "$as_me:$LINENO: checking for struct lastlog" >&5
8512echo $ac_n "checking for struct lastlog""... $ac_c" 1>&6 15079echo $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 15080if test "${rxvt_cv_struct_lastlog+set}" = set; then
8515 echo $ac_n "(cached) $ac_c" 1>&6 15081 echo $ECHO_N "(cached) $ECHO_C" >&6
8516else 15082else
8517 cat > conftest.$ac_ext <<EOF 15083 cat >conftest.$ac_ext <<_ACEOF
8518#line 8519 "configure" 15084/* confdefs.h. */
8519#include "confdefs.h" 15085_ACEOF
15086cat confdefs.h >>conftest.$ac_ext
15087cat >>conftest.$ac_ext <<_ACEOF
15088/* end confdefs.h. */
8520#include <sys/types.h> 15089#include <sys/types.h>
8521#include <utmp.h> 15090#include <utmp.h>
8522#ifdef HAVE_LASTLOG_H 15091#ifdef HAVE_LASTLOG_H
8523#include <lastlog.h> 15092#include <lastlog.h>
8524#endif 15093#endif
8525 15094
8526int main() { 15095int
15096main ()
15097{
8527struct lastlog ll; 15098struct lastlog ll;
15099 ;
8528; return 0; } 15100 return 0;
8529EOF 15101}
8530if { (eval echo configure:8531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 15102_ACEOF
15103rm -f conftest.$ac_objext
15104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15105 (eval $ac_compile) 2>conftest.er1
15106 ac_status=$?
15107 grep -v '^ *+' conftest.er1 >conftest.err
8531 rm -rf conftest* 15108 rm -f conftest.er1
15109 cat conftest.err >&5
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); } &&
15112 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15114 (eval $ac_try) 2>&5
15115 ac_status=$?
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); }; } &&
15118 { ac_try='test -s conftest.$ac_objext'
15119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15120 (eval $ac_try) 2>&5
15121 ac_status=$?
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); }; }; then
8532 rxvt_cv_struct_lastlog=yes 15124 rxvt_cv_struct_lastlog=yes
8533else 15125else
8534 echo "configure: failed program was:" >&5 15126 echo "$as_me: failed program was:" >&5
8535 cat conftest.$ac_ext >&5 15127sed 's/^/| /' conftest.$ac_ext >&5
8536 rm -rf conftest* 15128
8537 rxvt_cv_struct_lastlog=no 15129rxvt_cv_struct_lastlog=no
8538fi 15130fi
8539rm -f conftest* 15131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8540fi 15132fi
8541 15133echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5
8542echo "$ac_t""$rxvt_cv_struct_lastlog" 1>&6 15134echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6
8543if test x$rxvt_cv_struct_lastlog = xyes; then 15135if test x$rxvt_cv_struct_lastlog = xyes; then
15136
8544 cat >> confdefs.h <<\EOF 15137cat >>confdefs.h <<\_ACEOF
8545#define HAVE_STRUCT_LASTLOG 1 15138#define HAVE_STRUCT_LASTLOG 1
8546EOF 15139_ACEOF
8547 15140
8548fi 15141fi
8549 15142
15143echo "$as_me:$LINENO: checking for struct lastlogx" >&5
8550echo $ac_n "checking for struct lastlogx""... $ac_c" 1>&6 15144echo $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 15145if test "${rxvt_cv_struct_lastlogx+set}" = set; then
8553 echo $ac_n "(cached) $ac_c" 1>&6 15146 echo $ECHO_N "(cached) $ECHO_C" >&6
8554else 15147else
8555 cat > conftest.$ac_ext <<EOF 15148 cat >conftest.$ac_ext <<_ACEOF
8556#line 8557 "configure" 15149/* confdefs.h. */
8557#include "confdefs.h" 15150_ACEOF
15151cat confdefs.h >>conftest.$ac_ext
15152cat >>conftest.$ac_ext <<_ACEOF
15153/* end confdefs.h. */
8558#include <sys/types.h> 15154#include <sys/types.h>
8559#include <utmpx.h> 15155#include <utmpx.h>
8560#ifdef HAVE_LASTLOG_H 15156#ifdef HAVE_LASTLOG_H
8561#include <lastlog.h> 15157#include <lastlog.h>
8562#endif 15158#endif
8563 15159
8564int main() { 15160int
15161main ()
15162{
8565struct lastlogx ll; 15163struct lastlogx ll;
15164 ;
8566; return 0; } 15165 return 0;
8567EOF 15166}
8568if { (eval echo configure:8569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 15167_ACEOF
15168rm -f conftest.$ac_objext
15169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15170 (eval $ac_compile) 2>conftest.er1
15171 ac_status=$?
15172 grep -v '^ *+' conftest.er1 >conftest.err
8569 rm -rf conftest* 15173 rm -f conftest.er1
15174 cat conftest.err >&5
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); } &&
15177 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15179 (eval $ac_try) 2>&5
15180 ac_status=$?
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); }; } &&
15183 { ac_try='test -s conftest.$ac_objext'
15184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15185 (eval $ac_try) 2>&5
15186 ac_status=$?
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); }; }; then
8570 rxvt_cv_struct_lastlogx=yes 15189 rxvt_cv_struct_lastlogx=yes
8571else 15190else
8572 echo "configure: failed program was:" >&5 15191 echo "$as_me: failed program was:" >&5
8573 cat conftest.$ac_ext >&5 15192sed 's/^/| /' conftest.$ac_ext >&5
8574 rm -rf conftest* 15193
8575 rxvt_cv_struct_lastlogx=no 15194rxvt_cv_struct_lastlogx=no
8576fi 15195fi
8577rm -f conftest* 15196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8578fi 15197fi
8579 15198echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5
8580echo "$ac_t""$rxvt_cv_struct_lastlogx" 1>&6 15199echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6
8581if test x$rxvt_cv_struct_lastlogx = xyes; then 15200if test x$rxvt_cv_struct_lastlogx = xyes; then
15201
8582 cat >> confdefs.h <<\EOF 15202cat >>confdefs.h <<\_ACEOF
8583#define HAVE_STRUCT_LASTLOGX 1 15203#define HAVE_STRUCT_LASTLOGX 1
8584EOF 15204_ACEOF
8585 15205
8586fi 15206fi
8587 15207
8588 15208
15209echo "$as_me:$LINENO: checking where utmp is located" >&5
8589echo $ac_n "checking where utmp is located""... $ac_c" 1>&6 15210echo $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 15211if test "${rxvt_cv_path_utmp+set}" = set; then
8592 echo $ac_n "(cached) $ac_c" 1>&6 15212 echo $ECHO_N "(cached) $ECHO_C" >&6
8593else 15213else
8594 if test "$cross_compiling" = yes; then 15214 if test "$cross_compiling" = yes; then
15215 { 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 15216echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;}
8596else 15217else
8597 cat > conftest.$ac_ext <<EOF 15218 cat >conftest.$ac_ext <<_ACEOF
8598#line 8599 "configure" 15219/* confdefs.h. */
8599#include "confdefs.h" 15220_ACEOF
15221cat confdefs.h >>conftest.$ac_ext
15222cat >>conftest.$ac_ext <<_ACEOF
15223/* end confdefs.h. */
8600#include <stdio.h> 15224#include <stdio.h>
8601#include <sys/types.h> 15225#include <sys/types.h>
8602#include <utmp.h> 15226#include <utmp.h>
8603#include <errno.h> 15227#include <errno.h>
8604main() 15228main()
8621 exit(0); 15245 exit(0);
8622 } 15246 }
8623 } 15247 }
8624 exit(0); 15248 exit(0);
8625} 15249}
8626EOF 15250_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 15251rm -f conftest$ac_exeext
8628then 15252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15253 (eval $ac_link) 2>&5
15254 ac_status=$?
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15258 (eval $ac_try) 2>&5
15259 ac_status=$?
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); }; }; then
8629 rxvt_cv_path_utmp=`cat conftestval` 15262 rxvt_cv_path_utmp=`cat conftestval`
8630else 15263else
15264 echo "$as_me: program exited with status $ac_status" >&5
8631 echo "configure: failed program was:" >&5 15265echo "$as_me: failed program was:" >&5
8632 cat conftest.$ac_ext >&5 15266sed 's/^/| /' conftest.$ac_ext >&5
8633 rm -fr conftest* 15267
15268( exit $ac_status )
8634 rxvt_cv_path_utmp= 15269rxvt_cv_path_utmp=
8635fi 15270fi
8636rm -fr conftest* 15271rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8637fi 15272fi
8638
8639fi 15273fi
8640 15274echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5
8641echo "$ac_t""$rxvt_cv_path_utmp" 1>&6 15275echo "${ECHO_T}$rxvt_cv_path_utmp" >&6
8642if test x$rxvt_cv_path_utmp != x; then 15276if test x$rxvt_cv_path_utmp != x; then
15277
8643 cat >> confdefs.h <<EOF 15278cat >>confdefs.h <<_ACEOF
8644#define RXVT_UTMP_FILE "$rxvt_cv_path_utmp" 15279#define RXVT_UTMP_FILE "$rxvt_cv_path_utmp"
8645EOF 15280_ACEOF
8646 15281
8647fi 15282fi
8648 15283
8649 15284
15285echo "$as_me:$LINENO: checking where utmpx is located" >&5
8650echo $ac_n "checking where utmpx is located""... $ac_c" 1>&6 15286echo $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 15287if test "${rxvt_cv_path_utmpx+set}" = set; then
8653 echo $ac_n "(cached) $ac_c" 1>&6 15288 echo $ECHO_N "(cached) $ECHO_C" >&6
8654else 15289else
8655 if test "$cross_compiling" = yes; then 15290 if test "$cross_compiling" = yes; then
15291 { 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 15292echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;}
8657else 15293else
8658 cat > conftest.$ac_ext <<EOF 15294 cat >conftest.$ac_ext <<_ACEOF
8659#line 8660 "configure" 15295/* confdefs.h. */
8660#include "confdefs.h" 15296_ACEOF
15297cat confdefs.h >>conftest.$ac_ext
15298cat >>conftest.$ac_ext <<_ACEOF
15299/* end confdefs.h. */
8661#include <stdio.h> 15300#include <stdio.h>
8662#include <sys/types.h> 15301#include <sys/types.h>
8663#include <utmpx.h> 15302#include <utmpx.h>
8664#include <errno.h> 15303#include <errno.h>
8665#include <sys/stat.h> 15304#include <sys/stat.h>
8692 exit(0); 15331 exit(0);
8693 } 15332 }
8694 } 15333 }
8695 exit(0); 15334 exit(0);
8696} 15335}
8697EOF 15336_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 15337rm -f conftest$ac_exeext
8699then 15338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15339 (eval $ac_link) 2>&5
15340 ac_status=$?
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15344 (eval $ac_try) 2>&5
15345 ac_status=$?
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); }; }; then
8700 rxvt_cv_path_utmpx=`cat conftestval` 15348 rxvt_cv_path_utmpx=`cat conftestval`
8701else 15349else
15350 echo "$as_me: program exited with status $ac_status" >&5
8702 echo "configure: failed program was:" >&5 15351echo "$as_me: failed program was:" >&5
8703 cat conftest.$ac_ext >&5 15352sed 's/^/| /' conftest.$ac_ext >&5
8704 rm -fr conftest* 15353
15354( exit $ac_status )
8705 rxvt_cv_path_utmpx= 15355rxvt_cv_path_utmpx=
8706fi 15356fi
8707rm -fr conftest* 15357rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8708fi 15358fi
8709
8710fi 15359fi
8711 15360echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5
8712echo "$ac_t""$rxvt_cv_path_utmpx" 1>&6 15361echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6
8713if test x$rxvt_cv_path_utmpx != x; then 15362if test x$rxvt_cv_path_utmpx != x; then
15363
8714 cat >> confdefs.h <<EOF 15364cat >>confdefs.h <<_ACEOF
8715#define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx" 15365#define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx"
8716EOF 15366_ACEOF
8717 15367
8718fi 15368fi
8719 15369
8720 15370
15371echo "$as_me:$LINENO: checking where wtmp is located" >&5
8721echo $ac_n "checking where wtmp is located""... $ac_c" 1>&6 15372echo $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 15373if test "${rxvt_cv_path_wtmp+set}" = set; then
8724 echo $ac_n "(cached) $ac_c" 1>&6 15374 echo $ECHO_N "(cached) $ECHO_C" >&6
8725else 15375else
8726 if test "$cross_compiling" = yes; then 15376 if test "$cross_compiling" = yes; then
15377 { 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 15378echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;}
8728else 15379else
8729 cat > conftest.$ac_ext <<EOF 15380 cat >conftest.$ac_ext <<_ACEOF
8730#line 8731 "configure" 15381/* confdefs.h. */
8731#include "confdefs.h" 15382_ACEOF
15383cat confdefs.h >>conftest.$ac_ext
15384cat >>conftest.$ac_ext <<_ACEOF
15385/* end confdefs.h. */
8732#include <stdio.h> 15386#include <stdio.h>
8733#include <sys/types.h> 15387#include <sys/types.h>
8734#ifdef HAVE_UTMP_H 15388#ifdef HAVE_UTMP_H
8735#include <utmp.h> 15389#include <utmp.h>
8736#endif 15390#endif
8737#include <errno.h> 15391#include <errno.h>
8738main() 15392main()
8739{ 15393{
8740 char **w, *wtmplist[] = { 15394 char **w, *wtmplist[] = {
8741 "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL }; 15395 "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL };
8742 FILE *a, *f=fopen("conftestval", "w"); 15396 FILE *a, *f=fopen("conftestval", "w");
8743 if (!f) exit(1); 15397 if (!f) exit(1);
8744#ifdef WTMP_FILE 15398#ifdef WTMP_FILE
8745 fprintf(f, "%s\n", WTMP_FILE); 15399 fprintf(f, "%s\n", WTMP_FILE);
8746 exit(0); 15400 exit(0);
8755 exit(0); 15409 exit(0);
8756 } 15410 }
8757 } 15411 }
8758 exit(0); 15412 exit(0);
8759} 15413}
8760EOF 15414_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 15415rm -f conftest$ac_exeext
8762then 15416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15417 (eval $ac_link) 2>&5
15418 ac_status=$?
15419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15422 (eval $ac_try) 2>&5
15423 ac_status=$?
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); }; }; then
8763 rxvt_cv_path_wtmp=`cat conftestval` 15426 rxvt_cv_path_wtmp=`cat conftestval`
8764else 15427else
15428 echo "$as_me: program exited with status $ac_status" >&5
8765 echo "configure: failed program was:" >&5 15429echo "$as_me: failed program was:" >&5
8766 cat conftest.$ac_ext >&5 15430sed 's/^/| /' conftest.$ac_ext >&5
8767 rm -fr conftest* 15431
15432( exit $ac_status )
8768 rxvt_cv_path_wtmp= 15433rxvt_cv_path_wtmp=
8769fi 15434fi
8770rm -fr conftest* 15435rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8771fi 15436fi
8772
8773fi 15437fi
8774 15438echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5
8775echo "$ac_t""$rxvt_cv_path_wtmp" 1>&6 15439echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6
8776if test x$rxvt_cv_path_wtmp != x; then 15440if test x$rxvt_cv_path_wtmp != x; then
15441
8777 cat >> confdefs.h <<EOF 15442cat >>confdefs.h <<_ACEOF
8778#define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp" 15443#define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp"
8779EOF 15444_ACEOF
8780 15445
8781fi 15446fi
8782 15447
15448echo "$as_me:$LINENO: checking where wtmpx is located" >&5
8783echo $ac_n "checking where wtmpx is located""... $ac_c" 1>&6 15449echo $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 15450if test "${rxvt_cv_path_wtmpx+set}" = set; then
8786 echo $ac_n "(cached) $ac_c" 1>&6 15451 echo $ECHO_N "(cached) $ECHO_C" >&6
8787else 15452else
8788 if test "$cross_compiling" = yes; then 15453 if test "$cross_compiling" = yes; then
15454 { 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 15455echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;}
8790else 15456else
8791 cat > conftest.$ac_ext <<EOF 15457 cat >conftest.$ac_ext <<_ACEOF
8792#line 8793 "configure" 15458/* confdefs.h. */
8793#include "confdefs.h" 15459_ACEOF
15460cat confdefs.h >>conftest.$ac_ext
15461cat >>conftest.$ac_ext <<_ACEOF
15462/* end confdefs.h. */
8794#include <stdio.h> 15463#include <stdio.h>
8795#ifdef HAVE_UTMPX_H 15464#ifdef HAVE_UTMPX_H
8796#include <utmpx.h> 15465#include <utmpx.h>
8797#endif 15466#endif
8798#include <errno.h> 15467#include <errno.h>
8799main() 15468main()
8800{ 15469{
8801 char **w, *wtmplist[] = { 15470 char **w, *wtmplist[] = {
8802 "/var/log/wtmpx", "/var/adm/wtmpx", NULL }; 15471 "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
8803 FILE *a, *f=fopen("conftestval", "w"); 15472 FILE *a, *f=fopen("conftestval", "w");
8804 if (!f) exit(1); 15473 if (!f) exit(1);
8805#ifdef WTMPX_FILE 15474#ifdef WTMPX_FILE
8806 fprintf(f, "%s\n", WTMPX_FILE); 15475 fprintf(f, "%s\n", WTMPX_FILE);
8807 exit(0); 15476 exit(0);
8816 exit(0); 15485 exit(0);
8817 } 15486 }
8818 } 15487 }
8819 exit(0); 15488 exit(0);
8820} 15489}
8821EOF 15490_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 15491rm -f conftest$ac_exeext
8823then 15492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15493 (eval $ac_link) 2>&5
15494 ac_status=$?
15495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15498 (eval $ac_try) 2>&5
15499 ac_status=$?
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); }; }; then
8824 rxvt_cv_path_wtmpx=`cat conftestval` 15502 rxvt_cv_path_wtmpx=`cat conftestval`
8825else 15503else
15504 echo "$as_me: program exited with status $ac_status" >&5
8826 echo "configure: failed program was:" >&5 15505echo "$as_me: failed program was:" >&5
8827 cat conftest.$ac_ext >&5 15506sed 's/^/| /' conftest.$ac_ext >&5
8828 rm -fr conftest* 15507
15508( exit $ac_status )
8829 rxvt_cv_path_wtmpx= 15509rxvt_cv_path_wtmpx=
8830fi 15510fi
8831rm -fr conftest* 15511rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8832fi 15512fi
8833
8834fi 15513fi
8835 15514echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5
8836echo "$ac_t""$rxvt_cv_path_wtmpx" 1>&6 15515echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6
8837if test x$rxvt_cv_path_wtmpx != x; then 15516if test x$rxvt_cv_path_wtmpx != x; then
15517
8838 cat >> confdefs.h <<EOF 15518cat >>confdefs.h <<_ACEOF
8839#define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx" 15519#define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx"
8840EOF 15520_ACEOF
8841 15521
8842fi 15522fi
8843 15523
15524echo "$as_me:$LINENO: checking where lastlog is located" >&5
8844echo $ac_n "checking where lastlog is located""... $ac_c" 1>&6 15525echo $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 15526if test "${rxvt_cv_path_lastlog+set}" = set; then
8847 echo $ac_n "(cached) $ac_c" 1>&6 15527 echo $ECHO_N "(cached) $ECHO_C" >&6
8848else 15528else
8849 if test "$cross_compiling" = yes; then 15529 if test "$cross_compiling" = yes; then
15530 { 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 15531echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;}
8851else 15532else
8852 cat > conftest.$ac_ext <<EOF 15533 cat >conftest.$ac_ext <<_ACEOF
8853#line 8854 "configure" 15534/* confdefs.h. */
8854#include "confdefs.h" 15535_ACEOF
15536cat confdefs.h >>conftest.$ac_ext
15537cat >>conftest.$ac_ext <<_ACEOF
15538/* end confdefs.h. */
8855#include <stdio.h> 15539#include <stdio.h>
8856#include <sys/types.h> 15540#include <sys/types.h>
8857#ifdef HAVE_UTMPX_H 15541#ifdef HAVE_UTMPX_H
8858#include <utmpx.h> 15542#include <utmpx.h>
8859#elif defined(HAVE_UTMP_H) 15543#elif defined(HAVE_UTMP_H)
8882 exit(0); 15566 exit(0);
8883 } 15567 }
8884 } 15568 }
8885 exit(0); 15569 exit(0);
8886} 15570}
8887EOF 15571_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 15572rm -f conftest$ac_exeext
8889then 15573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15574 (eval $ac_link) 2>&5
15575 ac_status=$?
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15579 (eval $ac_try) 2>&5
15580 ac_status=$?
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); }; }; then
8890 rxvt_cv_path_lastlog=`cat conftestval` 15583 rxvt_cv_path_lastlog=`cat conftestval`
8891else 15584else
15585 echo "$as_me: program exited with status $ac_status" >&5
8892 echo "configure: failed program was:" >&5 15586echo "$as_me: failed program was:" >&5
8893 cat conftest.$ac_ext >&5 15587sed 's/^/| /' conftest.$ac_ext >&5
8894 rm -fr conftest* 15588
15589( exit $ac_status )
8895 rxvt_cv_path_lastlog= 15590rxvt_cv_path_lastlog=
8896fi 15591fi
8897rm -fr conftest* 15592rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8898fi 15593fi
8899
8900fi 15594fi
8901 15595echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5
8902echo "$ac_t""$rxvt_cv_path_lastlog" 1>&6 15596echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6
8903if test x$rxvt_cv_path_lastlog != x; then 15597if test x$rxvt_cv_path_lastlog != x; then
15598
8904 cat >> confdefs.h <<EOF 15599cat >>confdefs.h <<_ACEOF
8905#define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog" 15600#define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog"
8906EOF 15601_ACEOF
8907 15602
8908 if test -d "$rxvt_cv_path_lastlog"; then 15603 if test -d "$rxvt_cv_path_lastlog"; then
15604
8909 cat >> confdefs.h <<\EOF 15605cat >>confdefs.h <<\_ACEOF
8910#define LASTLOG_IS_DIR 1 15606#define LASTLOG_IS_DIR 1
8911EOF 15607_ACEOF
8912 15608
8913 fi 15609 fi
8914fi 15610fi
8915 15611
15612echo "$as_me:$LINENO: checking where lastlogx is located" >&5
8916echo $ac_n "checking where lastlogx is located""... $ac_c" 1>&6 15613echo $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 15614if test "${rxvt_cv_path_lastlogx+set}" = set; then
8919 echo $ac_n "(cached) $ac_c" 1>&6 15615 echo $ECHO_N "(cached) $ECHO_C" >&6
8920else 15616else
8921 if test "$cross_compiling" = yes; then 15617 if test "$cross_compiling" = yes; then
15618 { 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 15619echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;}
8923else 15620else
8924 cat > conftest.$ac_ext <<EOF 15621 cat >conftest.$ac_ext <<_ACEOF
8925#line 8926 "configure" 15622/* confdefs.h. */
8926#include "confdefs.h" 15623_ACEOF
15624cat confdefs.h >>conftest.$ac_ext
15625cat >>conftest.$ac_ext <<_ACEOF
15626/* end confdefs.h. */
8927#include <stdio.h> 15627#include <stdio.h>
8928#ifdef HAVE_UTMPX_H 15628#ifdef HAVE_UTMPX_H
8929#include <utmpx.h> 15629#include <utmpx.h>
8930#endif 15630#endif
8931#include <errno.h> 15631#include <errno.h>
8948 exit(0); 15648 exit(0);
8949 } 15649 }
8950 } 15650 }
8951 exit(0); 15651 exit(0);
8952} 15652}
8953EOF 15653_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 15654rm -f conftest$ac_exeext
8955then 15655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15656 (eval $ac_link) 2>&5
15657 ac_status=$?
15658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15661 (eval $ac_try) 2>&5
15662 ac_status=$?
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); }; }; then
8956 rxvt_cv_path_lastlogx=`cat conftestval` 15665 rxvt_cv_path_lastlogx=`cat conftestval`
8957else 15666else
15667 echo "$as_me: program exited with status $ac_status" >&5
8958 echo "configure: failed program was:" >&5 15668echo "$as_me: failed program was:" >&5
8959 cat conftest.$ac_ext >&5 15669sed 's/^/| /' conftest.$ac_ext >&5
8960 rm -fr conftest* 15670
15671( exit $ac_status )
8961 rxvt_cv_path_lastlogx= 15672rxvt_cv_path_lastlogx=
8962fi 15673fi
8963rm -fr conftest* 15674rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8964fi 15675fi
8965
8966fi 15676fi
8967 15677echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5
8968echo "$ac_t""$rxvt_cv_path_lastlogx" 1>&6 15678echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6
8969if test x$rxvt_cv_path_lastlogx != x; then 15679if test x$rxvt_cv_path_lastlogx != x; then
15680
8970 cat >> confdefs.h <<EOF 15681cat >>confdefs.h <<_ACEOF
8971#define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx" 15682#define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx"
8972EOF 15683_ACEOF
8973 15684
8974fi 15685fi
8975 15686
8976 15687
15688echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
8977echo $ac_n "checking where ttys/ttytab is located""... $ac_c" 1>&6 15689echo $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 15690if test "${rxvt_cv_path_ttytab+set}" = set; then
8980 echo $ac_n "(cached) $ac_c" 1>&6 15691 echo $ECHO_N "(cached) $ECHO_C" >&6
8981else 15692else
8982 for ttys_file in /etc/ttys /etc/ttytab; 15693 for ttys_file in /etc/ttys /etc/ttytab;
8983do 15694do
8984 if test -f "$ttys_file" ; then 15695 if test -f "$ttys_file" ; then
8985 rxvt_cv_path_ttytab=$ttys_file 15696 rxvt_cv_path_ttytab=$ttys_file
8986 break 15697 break
8987 fi 15698 fi
8988done 15699done
8989 15700
8990fi 15701fi
8991 15702echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
8992echo "$ac_t""$rxvt_cv_path_ttytab" 1>&6 15703echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6
8993if test x$rxvt_cv_path_ttytab != x; then 15704if test x$rxvt_cv_path_ttytab != x; then
15705
8994 cat >> confdefs.h <<EOF 15706cat >>confdefs.h <<_ACEOF
8995#define TTYTAB_FILENAME "$rxvt_cv_path_ttytab" 15707#define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
8996EOF 15708_ACEOF
8997 15709
8998fi 15710fi
8999 15711
9000 15712
9001ac_save_LIBS=$LIBS 15713ac_save_LIBS=$LIBS
9003CFLAGS="$CFLAGS $X_CFLAGS" 15715CFLAGS="$CFLAGS $X_CFLAGS"
9004LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 15716LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
9005if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then 15717if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
9006 LIBS=`echo $LIBS | sed "$R_TRANSLATE"` 15718 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
9007fi 15719fi
15720echo "$as_me:$LINENO: checking for working Xlocale" >&5
9008echo $ac_n "checking for working Xlocale""... $ac_c" 1>&6 15721echo $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 15722if test "${rxvt_cv_func_xlocale+set}" = set; then
9011 echo $ac_n "(cached) $ac_c" 1>&6 15723 echo $ECHO_N "(cached) $ECHO_C" >&6
9012else 15724else
9013 if test "$cross_compiling" = yes; then 15725 if test "$cross_compiling" = yes; then
15726 { 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 15727echo "$as_me: WARNING: Define NO_XLOCALE in config.h manually" >&2;}
9015else 15728else
9016 cat > conftest.$ac_ext <<EOF 15729 cat >conftest.$ac_ext <<_ACEOF
9017#line 9018 "configure" 15730/* confdefs.h. */
9018#include "confdefs.h" 15731_ACEOF
15732cat confdefs.h >>conftest.$ac_ext
15733cat >>conftest.$ac_ext <<_ACEOF
15734/* end confdefs.h. */
9019#include <X11/Xlib.h> 15735#include <X11/Xlib.h>
9020main() { 15736main() {
9021char *p; 15737char *p;
9022if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) 15738if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
9023exit (XSupportsLocale() ? 0 : 1); 15739exit (XSupportsLocale() ? 0 : 1);
9024else 15740else
9025exit (1);} 15741exit (1);}
9026EOF 15742_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 15743rm -f conftest$ac_exeext
9028then 15744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15745 (eval $ac_link) 2>&5
15746 ac_status=$?
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15750 (eval $ac_try) 2>&5
15751 ac_status=$?
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); }; }; then
9029 rxvt_cv_func_xlocale=yes 15754 rxvt_cv_func_xlocale=yes
9030else 15755else
15756 echo "$as_me: program exited with status $ac_status" >&5
9031 echo "configure: failed program was:" >&5 15757echo "$as_me: failed program was:" >&5
9032 cat conftest.$ac_ext >&5 15758sed 's/^/| /' conftest.$ac_ext >&5
9033 rm -fr conftest* 15759
15760( exit $ac_status )
9034 rxvt_cv_func_xlocale=no 15761rxvt_cv_func_xlocale=no
9035fi 15762fi
9036rm -fr conftest* 15763rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9037fi 15764fi
9038
9039fi 15765fi
9040 15766echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
9041echo "$ac_t""$rxvt_cv_func_xlocale" 1>&6 15767echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6
9042if test x$rxvt_cv_func_xlocale = xyes; then 15768if test x$rxvt_cv_func_xlocale = xyes; then
15769
9043 cat >> confdefs.h <<\EOF 15770cat >>confdefs.h <<\_ACEOF
9044#define HAVE_XLOCALE 1 15771#define HAVE_XLOCALE 1
9045EOF 15772_ACEOF
9046 15773
9047fi 15774fi
9048 15775
15776echo "$as_me:$LINENO: checking for working X setlocale" >&5
9049echo $ac_n "checking for working X setlocale""... $ac_c" 1>&6 15777echo $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 15778if test "${rxvt_cv_func_xsetlocale+set}" = set; then
9052 echo $ac_n "(cached) $ac_c" 1>&6 15779 echo $ECHO_N "(cached) $ECHO_C" >&6
9053else 15780else
9054 cat > conftest.$ac_ext <<EOF 15781 cat >conftest.$ac_ext <<_ACEOF
9055#line 9056 "configure" 15782/* confdefs.h. */
9056#include "confdefs.h" 15783_ACEOF
15784cat confdefs.h >>conftest.$ac_ext
15785cat >>conftest.$ac_ext <<_ACEOF
15786/* end confdefs.h. */
9057#define X_LOCALE 1 15787#define X_LOCALE 1
9058#include <X11/Xlocale.h> 15788#include <X11/Xlocale.h>
9059int main() { 15789int
15790main ()
15791{
9060setlocale(LC_CTYPE, ""); 15792setlocale(LC_CTYPE, "");
15793 ;
9061; return 0; } 15794 return 0;
9062EOF 15795}
9063if { (eval echo configure:9064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15796_ACEOF
15797rm -f conftest.$ac_objext conftest$ac_exeext
15798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15799 (eval $ac_link) 2>conftest.er1
15800 ac_status=$?
15801 grep -v '^ *+' conftest.er1 >conftest.err
9064 rm -rf conftest* 15802 rm -f conftest.er1
15803 cat conftest.err >&5
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); } &&
15806 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15808 (eval $ac_try) 2>&5
15809 ac_status=$?
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); }; } &&
15812 { ac_try='test -s conftest$ac_exeext'
15813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15814 (eval $ac_try) 2>&5
15815 ac_status=$?
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); }; }; then
9065 rxvt_cv_func_xsetlocale=yes 15818 rxvt_cv_func_xsetlocale=yes
9066else 15819else
9067 echo "configure: failed program was:" >&5 15820 echo "$as_me: failed program was:" >&5
9068 cat conftest.$ac_ext >&5 15821sed 's/^/| /' conftest.$ac_ext >&5
9069 rm -rf conftest* 15822
9070 rxvt_cv_func_xsetlocale=no 15823rxvt_cv_func_xsetlocale=no
9071fi 15824fi
9072rm -f conftest* 15825rm -f conftest.err conftest.$ac_objext \
15826 conftest$ac_exeext conftest.$ac_ext
9073fi 15827fi
9074 15828echo "$as_me:$LINENO: result: $rxvt_cv_func_xsetlocale" >&5
9075echo "$ac_t""$rxvt_cv_func_xsetlocale" 1>&6 15829echo "${ECHO_T}$rxvt_cv_func_xsetlocale" >&6
9076if test x$rxvt_cv_func_xsetlocale = xyes; then 15830if test x$rxvt_cv_func_xsetlocale = xyes; then
15831
9077 cat >> confdefs.h <<\EOF 15832cat >>confdefs.h <<\_ACEOF
9078#define HAVE_XSETLOCALE 1 15833#define HAVE_XSETLOCALE 1
9079EOF 15834_ACEOF
9080 15835
9081fi 15836fi
9082LIBS=$ac_save_LIBS 15837LIBS=$ac_save_LIBS
9083CFLAGS=$ac_save_CFLAGS 15838CFLAGS=$ac_save_CFLAGS
9084 15839
15840echo "$as_me:$LINENO: checking for working plain setlocale" >&5
9085echo $ac_n "checking for working plain setlocale""... $ac_c" 1>&6 15841echo $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 15842if test "${rxvt_cv_func_setlocale+set}" = set; then
9088 echo $ac_n "(cached) $ac_c" 1>&6 15843 echo $ECHO_N "(cached) $ECHO_C" >&6
9089else 15844else
9090 cat > conftest.$ac_ext <<EOF 15845 cat >conftest.$ac_ext <<_ACEOF
9091#line 9092 "configure" 15846/* confdefs.h. */
9092#include "confdefs.h" 15847_ACEOF
15848cat confdefs.h >>conftest.$ac_ext
15849cat >>conftest.$ac_ext <<_ACEOF
15850/* end confdefs.h. */
9093#include <locale.h> 15851#include <clocale>
9094int main() { 15852int
15853main ()
15854{
9095setlocale(LC_CTYPE, ""); 15855setlocale(LC_CTYPE, "");
15856 ;
9096; return 0; } 15857 return 0;
9097EOF 15858}
9098if { (eval echo configure:9099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15859_ACEOF
15860rm -f conftest.$ac_objext conftest$ac_exeext
15861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15862 (eval $ac_link) 2>conftest.er1
15863 ac_status=$?
15864 grep -v '^ *+' conftest.er1 >conftest.err
9099 rm -rf conftest* 15865 rm -f conftest.er1
15866 cat conftest.err >&5
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); } &&
15869 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15871 (eval $ac_try) 2>&5
15872 ac_status=$?
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); }; } &&
15875 { ac_try='test -s conftest$ac_exeext'
15876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15877 (eval $ac_try) 2>&5
15878 ac_status=$?
15879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 (exit $ac_status); }; }; then
9100 rxvt_cv_func_setlocale=yes 15881 rxvt_cv_func_setlocale=yes
9101else 15882else
9102 echo "configure: failed program was:" >&5 15883 echo "$as_me: failed program was:" >&5
9103 cat conftest.$ac_ext >&5 15884sed 's/^/| /' conftest.$ac_ext >&5
9104 rm -rf conftest* 15885
9105 rxvt_cv_func_setlocale=no 15886rxvt_cv_func_setlocale=no
9106fi 15887fi
9107rm -f conftest* 15888rm -f conftest.err conftest.$ac_objext \
15889 conftest$ac_exeext conftest.$ac_ext
9108fi 15890fi
9109 15891echo "$as_me:$LINENO: result: $rxvt_cv_func_setlocale" >&5
9110echo "$ac_t""$rxvt_cv_func_setlocale" 1>&6 15892echo "${ECHO_T}$rxvt_cv_func_setlocale" >&6
9111if test x$rxvt_cv_func_setlocale = xyes; then 15893if test x$rxvt_cv_func_setlocale = xyes; then
15894
9112 cat >> confdefs.h <<\EOF 15895cat >>confdefs.h <<\_ACEOF
9113#define HAVE_SETLOCALE 1 15896#define HAVE_SETLOCALE 1
9114EOF 15897_ACEOF
9115 15898
9116fi 15899fi
9117 15900
15901echo "$as_me:$LINENO: checking for working nl_langinfo" >&5
9118echo $ac_n "checking for working nl_langinfo""... $ac_c" 1>&6 15902echo $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 15903if test "${rxvt_cv_func_nl_langinfo+set}" = set; then
9121 echo $ac_n "(cached) $ac_c" 1>&6 15904 echo $ECHO_N "(cached) $ECHO_C" >&6
9122else 15905else
9123 cat > conftest.$ac_ext <<EOF 15906 cat >conftest.$ac_ext <<_ACEOF
9124#line 9125 "configure" 15907/* confdefs.h. */
9125#include "confdefs.h" 15908_ACEOF
15909cat confdefs.h >>conftest.$ac_ext
15910cat >>conftest.$ac_ext <<_ACEOF
15911/* end confdefs.h. */
9126#include <langinfo.h> 15912#include <langinfo.h>
9127int main() { 15913int
15914main ()
15915{
9128nl_langinfo(CODESET); 15916nl_langinfo(CODESET);
15917 ;
9129; return 0; } 15918 return 0;
9130EOF 15919}
9131if { (eval echo configure:9132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15920_ACEOF
15921rm -f conftest.$ac_objext conftest$ac_exeext
15922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15923 (eval $ac_link) 2>conftest.er1
15924 ac_status=$?
15925 grep -v '^ *+' conftest.er1 >conftest.err
9132 rm -rf conftest* 15926 rm -f conftest.er1
15927 cat conftest.err >&5
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); } &&
15930 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15932 (eval $ac_try) 2>&5
15933 ac_status=$?
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); }; } &&
15936 { ac_try='test -s conftest$ac_exeext'
15937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15938 (eval $ac_try) 2>&5
15939 ac_status=$?
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); }; }; then
9133 rxvt_cv_func_nl_langinfo=yes 15942 rxvt_cv_func_nl_langinfo=yes
9134else 15943else
9135 echo "configure: failed program was:" >&5 15944 echo "$as_me: failed program was:" >&5
9136 cat conftest.$ac_ext >&5 15945sed 's/^/| /' conftest.$ac_ext >&5
9137 rm -rf conftest* 15946
9138 rxvt_cv_func_nl_langinfo=no 15947rxvt_cv_func_nl_langinfo=no
9139fi 15948fi
9140rm -f conftest* 15949rm -f conftest.err conftest.$ac_objext \
15950 conftest$ac_exeext conftest.$ac_ext
9141fi 15951fi
9142 15952echo "$as_me:$LINENO: result: $rxvt_cv_func_nl_langinfo" >&5
9143echo "$ac_t""$rxvt_cv_func_nl_langinfo" 1>&6 15953echo "${ECHO_T}$rxvt_cv_func_nl_langinfo" >&6
9144if test x$rxvt_cv_func_nl_langinfo = xyes; then 15954if test x$rxvt_cv_func_nl_langinfo = xyes; then
15955
9145 cat >> confdefs.h <<\EOF 15956cat >>confdefs.h <<\_ACEOF
9146#define HAVE_NL_LANGINFO 1 15957#define HAVE_NL_LANGINFO 1
9147EOF 15958_ACEOF
9148 15959
9149fi 15960fi
9150 15961
15962echo "$as_me:$LINENO: checking for getpt" >&5
9151echo $ac_n "checking for getpt""... $ac_c" 1>&6 15963echo $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 15964if test "${rxvt_cv_func_getpt+set}" = set; then
9154 echo $ac_n "(cached) $ac_c" 1>&6 15965 echo $ECHO_N "(cached) $ECHO_C" >&6
9155else 15966else
9156 cat > conftest.$ac_ext <<EOF 15967 cat >conftest.$ac_ext <<_ACEOF
9157#line 9158 "configure" 15968/* confdefs.h. */
9158#include "confdefs.h" 15969_ACEOF
15970cat confdefs.h >>conftest.$ac_ext
15971cat >>conftest.$ac_ext <<_ACEOF
15972/* end confdefs.h. */
9159#define _GNU_SOURCE 15973#define _GNU_SOURCE
9160#ifdef HAVE_STDLIB_H 15974#ifdef HAVE_STDLIB_H
9161# include <stdlib.h> 15975# include <cstdlib>
9162#endif 15976#endif
9163int main() { 15977int
15978main ()
15979{
9164(void)getpt(); 15980(void)getpt();
15981 ;
9165; return 0; } 15982 return 0;
9166EOF 15983}
9167if { (eval echo configure:9168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15984_ACEOF
15985rm -f conftest.$ac_objext conftest$ac_exeext
15986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15987 (eval $ac_link) 2>conftest.er1
15988 ac_status=$?
15989 grep -v '^ *+' conftest.er1 >conftest.err
9168 rm -rf conftest* 15990 rm -f conftest.er1
15991 cat conftest.err >&5
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); } &&
15994 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15996 (eval $ac_try) 2>&5
15997 ac_status=$?
15998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999 (exit $ac_status); }; } &&
16000 { ac_try='test -s conftest$ac_exeext'
16001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16002 (eval $ac_try) 2>&5
16003 ac_status=$?
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); }; }; then
9169 rxvt_cv_func_getpt=yes 16006 rxvt_cv_func_getpt=yes
9170else 16007else
9171 echo "configure: failed program was:" >&5 16008 echo "$as_me: failed program was:" >&5
9172 cat conftest.$ac_ext >&5 16009sed 's/^/| /' conftest.$ac_ext >&5
9173 rm -rf conftest* 16010
9174 rxvt_cv_func_getpt=no 16011rxvt_cv_func_getpt=no
9175fi 16012fi
9176rm -f conftest* 16013rm -f conftest.err conftest.$ac_objext \
16014 conftest$ac_exeext conftest.$ac_ext
9177fi 16015fi
9178 16016echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5
9179echo "$ac_t""$rxvt_cv_func_getpt" 1>&6 16017echo "${ECHO_T}$rxvt_cv_func_getpt" >&6
9180if test x$rxvt_cv_func_getpt = xyes; then 16018if test x$rxvt_cv_func_getpt = xyes; then
16019
9181 cat >> confdefs.h <<\EOF 16020cat >>confdefs.h <<\_ACEOF
9182#define HAVE_GETPT 1 16021#define HAVE_GETPT 1
9183EOF 16022_ACEOF
9184 16023
9185fi 16024fi
9186 16025
16026echo "$as_me:$LINENO: checking for pty/tty type" >&5
9187echo $ac_n "checking for pty/tty type""... $ac_c" 1>&6 16027echo $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 16028if test "${rxvt_cv_ptys+set}" = set; then
9190 echo $ac_n "(cached) $ac_c" 1>&6 16029 echo $ECHO_N "(cached) $ECHO_C" >&6
9191else 16030else
9192 if test x$ac_cv_func_openpty = xyes; then 16031 if test x$ac_cv_func_openpty = xyes; then
9193 rxvt_cv_ptys=OPENPTY 16032 rxvt_cv_ptys=OPENPTY
9194 else if test x$ac_cv_func__getpty = xyes; then 16033 else if test x$ac_cv_func__getpty = xyes; then
9195 rxvt_cv_ptys=SGI4 16034 rxvt_cv_ptys=SGI4
9218fi 16057fi
9219fi 16058fi
9220fi 16059fi
9221 16060
9222fi 16061fi
9223 16062echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
9224echo "$ac_t""$rxvt_cv_ptys" 1>&6 16063echo "${ECHO_T}$rxvt_cv_ptys" >&6
9225 16064
9226if test x$rxvt_cv_ptys = xOPENPTY; then 16065if test x$rxvt_cv_ptys = xOPENPTY; then
16066
9227 cat >> confdefs.h <<\EOF 16067cat >>confdefs.h <<\_ACEOF
9228#define PTYS_ARE_OPENPTY 1 16068#define PTYS_ARE_OPENPTY 1
9229EOF 16069_ACEOF
9230 16070
9231fi 16071fi
9232if test x$rxvt_cv_ptys = xSCO; then 16072if test x$rxvt_cv_ptys = xSCO; then
16073
9233 cat >> confdefs.h <<\EOF 16074cat >>confdefs.h <<\_ACEOF
9234#define PTYS_ARE_NUMERIC 1 16075#define PTYS_ARE_NUMERIC 1
9235EOF 16076_ACEOF
9236 16077
9237fi 16078fi
9238if test x$rxvt_cv_ptys = xSTREAMS; then 16079if test x$rxvt_cv_ptys = xSTREAMS; then
16080
9239 cat >> confdefs.h <<\EOF 16081cat >>confdefs.h <<\_ACEOF
9240#define PTYS_ARE_PTMX 1 16082#define PTYS_ARE_PTMX 1
9241EOF 16083_ACEOF
9242 16084
9243fi 16085fi
9244if test x$rxvt_cv_ptys = xPTC; then 16086if test x$rxvt_cv_ptys = xPTC; then
16087
9245 cat >> confdefs.h <<\EOF 16088cat >>confdefs.h <<\_ACEOF
9246#define PTYS_ARE_PTC 1 16089#define PTYS_ARE_PTC 1
9247EOF 16090_ACEOF
9248 16091
9249fi 16092fi
9250if test x$rxvt_cv_ptys = xSGI4; then 16093if test x$rxvt_cv_ptys = xSGI4; then
16094
9251 cat >> confdefs.h <<\EOF 16095cat >>confdefs.h <<\_ACEOF
9252#define PTYS_ARE__GETPTY 1 16096#define PTYS_ARE__GETPTY 1
9253EOF 16097_ACEOF
9254 16098
9255fi 16099fi
9256if test x$rxvt_cv_ptys = xCONVEX; then 16100if test x$rxvt_cv_ptys = xCONVEX; then
16101
9257 cat >> confdefs.h <<\EOF 16102cat >>confdefs.h <<\_ACEOF
9258#define PTYS_ARE_GETPTY 1 16103#define PTYS_ARE_GETPTY 1
9259EOF 16104_ACEOF
9260 16105
9261fi 16106fi
9262if test x$rxvt_cv_ptys = xGLIBC; then 16107if test x$rxvt_cv_ptys = xGLIBC; then
16108
9263 cat >> confdefs.h <<\EOF 16109cat >>confdefs.h <<\_ACEOF
9264#define PTYS_ARE_GETPT 1 16110#define PTYS_ARE_GETPT 1
9265EOF 16111_ACEOF
9266 16112
9267fi 16113fi
9268if test x$rxvt_cv_ptys = xHPUX; then 16114if test x$rxvt_cv_ptys = xHPUX; then
16115
9269 cat >> confdefs.h <<\EOF 16116cat >>confdefs.h <<\_ACEOF
9270#define PTYS_ARE_CLONE 1 16117#define PTYS_ARE_CLONE 1
9271EOF 16118_ACEOF
9272 16119
9273fi 16120fi
9274if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then 16121if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then
16122
9275 cat >> confdefs.h <<\EOF 16123cat >>confdefs.h <<\_ACEOF
9276#define PTYS_ARE_SEARCHED 1 16124#define PTYS_ARE_SEARCHED 1
9277EOF 16125_ACEOF
9278 16126
9279fi 16127fi
9280 16128
9281 16129
16130{ echo "$as_me:$LINENO: checking for pty ranges..." >&5
9282echo "checking for pty ranges" 1>&6 16131echo "$as_me: checking for pty ranges..." >&6;}
9283echo "configure:9284: checking for pty ranges" >&5
9284ptys=`echo /dev/pty??` 16132ptys=`echo /dev/pty??`
9285pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` 16133pch1=`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'` 16134pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
9287if test x$pch1 != x; then 16135if test x$pch1 != x; then
16136
9288 cat >> confdefs.h <<EOF 16137cat >>confdefs.h <<_ACEOF
9289#define PTYCHAR1 "$pch1" 16138#define PTYCHAR1 "$pch1"
9290EOF 16139_ACEOF
9291 16140
9292fi 16141fi
9293if test x$pch2 != x; then 16142if test x$pch2 != x; then
16143
9294 cat >> confdefs.h <<EOF 16144cat >>confdefs.h <<_ACEOF
9295#define PTYCHAR2 "$pch2" 16145#define PTYCHAR2 "$pch2"
9296EOF 16146_ACEOF
9297 16147
9298fi 16148fi
9299 16149
16150echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
9300echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6 16151echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
9301echo "configure:9302: checking for setlocale in -lxpg4" >&5 16152if 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 16153 echo $ECHO_N "(cached) $ECHO_C" >&6
9305else 16154else
9306 ac_save_LIBS="$LIBS" 16155 ac_check_lib_save_LIBS=$LIBS
9307LIBS="-lxpg4 $LIBS" 16156LIBS="-lxpg4 $LIBS"
9308cat > conftest.$ac_ext <<EOF 16157cat >conftest.$ac_ext <<_ACEOF
9309#line 9310 "configure" 16158/* confdefs.h. */
9310#include "confdefs.h" 16159_ACEOF
16160cat confdefs.h >>conftest.$ac_ext
16161cat >>conftest.$ac_ext <<_ACEOF
16162/* end confdefs.h. */
16163
9311/* Override any gcc2 internal prototype to avoid an error. */ 16164/* Override any gcc2 internal prototype to avoid an error. */
16165#ifdef __cplusplus
16166extern "C"
16167#endif
9312/* We use char because int might match the return type of a gcc2 16168/* We use char because int might match the return type of a gcc2
9313 builtin and then its argument prototype would still apply. */ 16169 builtin and then its argument prototype would still apply. */
9314char setlocale(); 16170char setlocale ();
9315 16171int
9316int main() { 16172main ()
16173{
9317setlocale() 16174setlocale ();
16175 ;
9318; return 0; } 16176 return 0;
9319EOF 16177}
9320if { (eval echo configure:9321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 16178_ACEOF
16179rm -f conftest.$ac_objext conftest$ac_exeext
16180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16181 (eval $ac_link) 2>conftest.er1
16182 ac_status=$?
16183 grep -v '^ *+' conftest.er1 >conftest.err
9321 rm -rf conftest* 16184 rm -f conftest.er1
9322 eval "ac_cv_lib_$ac_lib_var=yes" 16185 cat conftest.err >&5
16186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187 (exit $ac_status); } &&
16188 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16190 (eval $ac_try) 2>&5
16191 ac_status=$?
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); }; } &&
16194 { ac_try='test -s conftest$ac_exeext'
16195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16196 (eval $ac_try) 2>&5
16197 ac_status=$?
16198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); }; }; then
16200 ac_cv_lib_xpg4_setlocale=yes
9323else 16201else
9324 echo "configure: failed program was:" >&5 16202 echo "$as_me: failed program was:" >&5
9325 cat conftest.$ac_ext >&5 16203sed 's/^/| /' conftest.$ac_ext >&5
9326 rm -rf conftest* 16204
9327 eval "ac_cv_lib_$ac_lib_var=no" 16205ac_cv_lib_xpg4_setlocale=no
9328fi 16206fi
9329rm -f conftest* 16207rm -f conftest.err conftest.$ac_objext \
16208 conftest$ac_exeext conftest.$ac_ext
9330LIBS="$ac_save_LIBS" 16209LIBS=$ac_check_lib_save_LIBS
9331
9332fi 16210fi
9333if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 16211echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
9334 echo "$ac_t""yes" 1>&6 16212echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
16213if test $ac_cv_lib_xpg4_setlocale = yes; then
9335 LIBS="$LIBS -lxpg4" 16214 LIBS="$LIBS -lxpg4"
9336else
9337 echo "$ac_t""no" 1>&6
9338fi 16215fi
9339 16216
9340 16217
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 16218if test x$support_inheritpixmap = xyes; then
16219
9348 cat >> confdefs.h <<\EOF 16220cat >>confdefs.h <<\_ACEOF
9349#define TRANSPARENT 1 16221#define TRANSPARENT 1
9350EOF 16222_ACEOF
9351 16223
9352fi 16224fi
9353if test x$support_keepscrolling = xno; then 16225if test x$support_keepscrolling = xno; then
16226
9354 cat >> confdefs.h <<\EOF 16227cat >>confdefs.h <<\_ACEOF
9355#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1 16228#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
9356EOF 16229_ACEOF
9357 16230
9358fi 16231fi
9359if test x$support_selectionscrolling = xyes; then 16232if test x$support_selectionscrolling = xyes; then
16233
9360 cat >> confdefs.h <<\EOF 16234cat >>confdefs.h <<\_ACEOF
9361#define SELECTION_SCROLLING 1 16235#define SELECTION_SCROLLING 1
9362EOF 16236_ACEOF
9363 16237
9364fi 16238fi
9365if test x$support_menubar = xyes; then 16239if test x$support_menubar = xyes; then
16240
9366 cat >> confdefs.h <<\EOF 16241cat >>confdefs.h <<\_ACEOF
9367#define MENUBAR 1 16242#define MENUBAR 1
9368EOF 16243_ACEOF
9369 16244
9370fi 16245fi
9371if test x$support_frills = xno; then 16246if test x$support_frills = xno; then
16247
9372 cat >> confdefs.h <<\EOF 16248cat >>confdefs.h <<\_ACEOF
9373#define NO_FRILLS 1 16249#define NO_FRILLS 1
9374EOF 16250_ACEOF
9375 16251
9376fi 16252fi
9377if test x$support_linespace = xno; then 16253if test x$support_linespace = xno; then
16254
9378 cat >> confdefs.h <<\EOF 16255cat >>confdefs.h <<\_ACEOF
9379#define NO_LINESPACE 1 16256#define NO_LINESPACE 1
9380EOF 16257_ACEOF
9381 16258
9382fi 16259fi
9383if test x$support_24bit = xyes; then 16260if test x$support_24bit = xyes; then
16261
9384 cat >> confdefs.h <<\EOF 16262cat >>confdefs.h <<\_ACEOF
9385#define PREFER_24BIT 1 16263#define PREFER_24BIT 1
9386EOF 16264_ACEOF
9387 16265
9388fi 16266fi
9389if test x$support_mousewheel = xyes; then 16267if test x$support_mousewheel = xyes; then
16268
9390 cat >> confdefs.h <<\EOF 16269cat >>confdefs.h <<\_ACEOF
9391#define MOUSE_WHEEL 1 16270#define MOUSE_WHEEL 1
9392EOF 16271_ACEOF
9393 16272
9394fi 16273fi
9395if test x$support_mouseslipwheel = xyes; then 16274if test x$support_mouseslipwheel = xyes; then
16275
9396 cat >> confdefs.h <<\EOF 16276cat >>confdefs.h <<\_ACEOF
9397#define MOUSE_SLIP_WHEELING 1 16277#define MOUSE_SLIP_WHEELING 1
9398EOF 16278_ACEOF
9399
9400fi
9401if test x$support_oldselection = xno; then
9402 cat >> confdefs.h <<\EOF
9403#define NO_OLD_SELECTION 1
9404EOF
9405 16279
9406fi 16280fi
9407if test x$support_utmp = xyes; then 16281if test x$support_utmp = xyes; then
16282
9408 cat >> confdefs.h <<\EOF 16283cat >>confdefs.h <<\_ACEOF
9409#define UTMP_SUPPORT 1 16284#define UTMP_SUPPORT 1
9410EOF 16285_ACEOF
9411 16286
9412fi 16287fi
9413if test x$support_wtmp = xyes; then 16288if test x$support_wtmp = xyes; then
16289
9414 cat >> confdefs.h <<\EOF 16290cat >>confdefs.h <<\_ACEOF
9415#define WTMP_SUPPORT 1 16291#define WTMP_SUPPORT 1
9416EOF 16292_ACEOF
9417 16293
9418fi 16294fi
9419if test x$support_lastlog = xyes; then 16295if test x$support_lastlog = xyes; then
16296
9420 cat >> confdefs.h <<\EOF 16297cat >>confdefs.h <<\_ACEOF
9421#define LASTLOG_SUPPORT 1 16298#define LASTLOG_SUPPORT 1
9422EOF 16299_ACEOF
9423 16300
9424fi 16301fi
9425if test x$support_xim = xyes -o x$multichar_set = xyes; then 16302if test x$support_xim = xyes -o x$multichar_set = xyes; then
9426 if test x$rxvt_cv_func_xlocale = xyes; then 16303 if test x$rxvt_cv_func_xlocale = xyes; then
16304
9427 cat >> confdefs.h <<\EOF 16305cat >>confdefs.h <<\_ACEOF
9428#define USE_XIM 1 16306#define USE_XIM 1
9429EOF 16307_ACEOF
9430 16308
9431 fi 16309 fi
9432fi 16310fi
9433if test x$support_xpm = xyes; then 16311if test x$support_xpm = xyes; then
16312
9434 cat >> confdefs.h <<\EOF 16313cat >>confdefs.h <<\_ACEOF
9435#define XPM_BACKGROUND 1 16314#define XPM_BACKGROUND 1
9436EOF 16315_ACEOF
9437 16316
9438fi 16317fi
9439if test x$support_scroll_rxvt = xyes; then 16318if test x$support_scroll_rxvt = xyes; then
16319
9440 cat >> confdefs.h <<\EOF 16320cat >>confdefs.h <<\_ACEOF
9441#define RXVT_SCROLLBAR 1 16321#define RXVT_SCROLLBAR 1
9442EOF 16322_ACEOF
9443 16323
9444 scrolltypes="rxvt" 16324 scrolltypes="rxvt"
9445fi 16325fi
9446if test x$support_scroll_next = xyes; then 16326if test x$support_scroll_next = xyes; then
16327
9447 cat >> confdefs.h <<\EOF 16328cat >>confdefs.h <<\_ACEOF
9448#define NEXT_SCROLLBAR 1 16329#define NEXT_SCROLLBAR 1
9449EOF 16330_ACEOF
9450 16331
9451 scrolltypes="$scrolltypes next" 16332 scrolltypes="$scrolltypes next"
9452fi 16333fi
9453if test x$support_scroll_xterm = xyes; then 16334if test x$support_scroll_xterm = xyes; then
16335
9454 cat >> confdefs.h <<\EOF 16336cat >>confdefs.h <<\_ACEOF
9455#define XTERM_SCROLLBAR 1 16337#define XTERM_SCROLLBAR 1
9456EOF 16338_ACEOF
9457 16339
9458 scrolltypes="$scrolltypes xterm" 16340 scrolltypes="$scrolltypes xterm"
9459fi 16341fi
16342if test x$support_scroll_plain = xyes; then
16343
16344cat >>confdefs.h <<\_ACEOF
16345#define PLAIN_SCROLLBAR 1
16346_ACEOF
16347
16348 scrolltypes="$scrolltypes plain"
16349fi
9460if test x$support_pointer_blank = xyes; then 16350if test x$support_pointer_blank = xyes; then
16351
9461 cat >> confdefs.h <<\EOF 16352cat >>confdefs.h <<\_ACEOF
9462#define POINTER_BLANK 1 16353#define POINTER_BLANK 1
9463EOF 16354_ACEOF
9464 16355
9465fi 16356fi
9466if test x$support_cursor_blink = xyes; then 16357if test x$support_cursor_blink = xyes; then
16358
9467 cat >> confdefs.h <<\EOF 16359cat >>confdefs.h <<\_ACEOF
9468#define CURSOR_BLINK 1 16360#define CURSOR_BLINK 1
9469EOF 16361_ACEOF
16362
16363fi
16364if test x$support_text_blink = xyes; then
16365
16366cat >>confdefs.h <<\_ACEOF
16367#define TEXT_BLINK 1
16368_ACEOF
9470 16369
9471fi 16370fi
9472if test x$support_unicode3 = xyes; then 16371if test x$support_unicode3 = xyes; then
16372
9473 cat >> confdefs.h <<\EOF 16373cat >>confdefs.h <<\_ACEOF
9474#define UNICODE_3 1 16374#define UNICODE_3 1
9475EOF 16375_ACEOF
16376
16377fi
16378if test x$support_combining = xyes; then
16379
16380cat >>confdefs.h <<\_ACEOF
16381#define ENABLE_COMBINING 1
16382_ACEOF
9476 16383
9477fi 16384fi
9478if test x$codesets = xall; then 16385if test x$codesets = xall; then
9479 codesets=jp,jp-ext,kr,cn,cn-ext,vn 16386 codesets=jp,jp-ext,kr,cn,cn-ext
9480fi 16387fi
9481for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do 16388for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
16389
9482 cat >> confdefs.h <<\EOF 16390cat >>confdefs.h <<\_ACEOF
9483#define ENCODING_EU 1 16391#define ENCODING_EU 1
9484EOF 16392_ACEOF
16393
16394
16395cat >>confdefs.h <<\_ACEOF
16396#define ENCODING_VN 1
16397_ACEOF
9485 16398
9486 case "$codeset" in 16399 case "$codeset" in
9487 VN ) cat >> confdefs.h <<\EOF 16400 JP )
16401cat >>confdefs.h <<\_ACEOF
9488#define ENCODING_VN 1 16402#define ENCODING_JP 1
9489EOF 16403_ACEOF
9490 ;; 16404 ;;
9491 JP ) cat >> confdefs.h <<\EOF 16405 JP_EXT )
16406cat >>confdefs.h <<\_ACEOF
9492#define ENCODING_JP 1 16407#define ENCODING_JP_EXT 1
9493EOF 16408_ACEOF
9494 ;; 16409 ;;
9495 JP_EXT ) cat >> confdefs.h <<\EOF 16410 KR )
16411cat >>confdefs.h <<\_ACEOF
9496#define ENCODING_JP_EXT 1 16412#define ENCODING_KR 1
9497EOF 16413_ACEOF
9498 ;; 16414 ;;
9499 KR ) cat >> confdefs.h <<\EOF 16415 CN )
16416cat >>confdefs.h <<\_ACEOF
9500#define ENCODING_KR 1 16417#define ENCODING_CN 1
9501EOF 16418_ACEOF
9502 ;; 16419 ;;
9503 CN ) cat >> confdefs.h <<\EOF 16420 CN_EXT )
9504#define ENCODING_CN 1 16421cat >>confdefs.h <<\_ACEOF
9505EOF
9506 ;;
9507 CN_EXT ) cat >> confdefs.h <<\EOF
9508#define ENCODING_CN_EXT 1 16422#define ENCODING_CN_EXT 1
9509EOF 16423_ACEOF
9510 ;; 16424 ;;
9511 esac 16425 esac
9512done 16426done
9513 16427
9514 16428
9534 16448
9535 16449
9536 16450
9537 16451
9538if test x$support_addstrings = xno; then 16452if test x$support_addstrings = xno; then
16453
9539 cat >> confdefs.h <<\EOF 16454cat >>confdefs.h <<\_ACEOF
9540#define NO_STRINGS 1 16455#define NO_STRINGS 1
9541EOF 16456_ACEOF
9542 16457
9543fi 16458fi
9544 16459
9545MCOMMON=./autoconf/Make.common 16460MCOMMON=./autoconf/Make.common
9546 16461
9547 16462
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 && 16463test "$program_prefix" != NONE &&
9559 program_transform_name="s,^,${program_prefix},; $program_transform_name" 16464 program_transform_name="s,^,$program_prefix,;$program_transform_name"
9560# Use a double $ so make ignores it. 16465# Use a double $ so make ignores it.
9561test "$program_suffix" != NONE && 16466test "$program_suffix" != NONE &&
9562 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 16467 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
9563 16468# Double any \ or $. echo might interpret backslashes.
9564# sed with no file args requires a program. 16469# By default was `s,x,x', remove it if useless.
9565test "$program_transform_name" = "" && program_transform_name="s,x,x," 16470cat <<\_ACEOF >conftest.sed
9566 16471s/[\\$]/&&/g;s/;s,x,x,$//
9567 16472_ACEOF
9568RXVTNAME=`echo rxvt|sed "$program_transform_name"` 16473program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
16474rm conftest.sed
9569 16475
9570 16476
9571 16477
9572 16478
9573 16479
9574if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then 16480if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
9575 include_stdint_h="#include <stdint.h>" 16481 include_stdint_h="#include <stdint.h>"
9576else 16482else
9577 include_stdint_h="/* #include <stdint.h> */" 16483 include_stdint_h="/* #include <stdint.h> */"
9578fi 16484fi
9579if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then 16485if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
9580 include_stdarg_h="#include <stdarg.h>" 16486 include_stdarg_h="#include <cstdarg>"
9581else 16487else
9582 include_stdarg_h="/* #include <stdarg.h> */" 16488 include_stdarg_h="/* #include <cstdarg> */"
9583fi 16489fi
9584if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then 16490if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
9585 include_stdlib_h="#include <stdlib.h>" 16491 include_stdlib_h="#include <cstdlib>"
9586else 16492else
9587 include_stdlib_h="/* #include <stdlib.h> */" 16493 include_stdlib_h="/* #include <cstdlib> */"
9588fi 16494fi
9589if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then 16495if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
9590 include_unistd_h="#include <unistd.h>" 16496 include_unistd_h="#include <unistd.h>"
9591else 16497else
9592 include_unistd_h="/* #include <unistd.h> */" 16498 include_unistd_h="/* #include <unistd.h> */"
9593fi 16499fi
9594if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then 16500if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
9595 include_string_h="#include <string.h>" 16501 include_string_h="#include <cstring>"
9596else 16502else
9597 include_string_h="/* #include <string.h> */" 16503 include_string_h="/* #include <cstring> */"
9598fi 16504fi
9599if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then 16505if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
9600 include_fcntl_h="#include <fcntl.h>" 16506 include_fcntl_h="#include <fcntl.h>"
9601else 16507else
9602 include_fcntl_h="/* #include <fcntl.h> */" 16508 include_fcntl_h="/* #include <fcntl.h> */"
9603fi 16509fi
9604if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then 16510if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
9605 include_util_h="#include <util.h>" 16511 include_util_h="#include <util.h>"
9606else 16512else
9607 include_util_h="/* #include <util.h> */" 16513 include_util_h="/* #include <util.h> */"
9608fi 16514fi
9609if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then 16515if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
9610 include_assert_h="#include <assert.h>" 16516 include_assert_h="#include <assert.h>"
9611else 16517else
9612 include_assert_h="/* #include <assert.h> */" 16518 include_assert_h="/* #include <assert.h> */"
9613fi 16519fi
9614if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then 16520if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
9615 include_sys_ioctl_h="#include <sys/ioctl.h>" 16521 include_sys_ioctl_h="#include <sys/ioctl.h>"
9616else 16522else
9617 include_sys_ioctl_h="/* #include <sys/ioctl.h> */" 16523 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
9618fi 16524fi
9619if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then 16525if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
9620 include_sys_select_h="#include <sys/select.h>" 16526 include_sys_select_h="#include <sys/select.h>"
9621else 16527else
9622 include_sys_select_h="/* #include <sys/select.h> */" 16528 include_sys_select_h="/* #include <sys/select.h> */"
9623fi 16529fi
9624if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then 16530if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
9625 include_sys_strredir_h="#include <sys/strredir.h>" 16531 include_sys_strredir_h="#include <sys/strredir.h>"
9626else 16532else
9627 include_sys_strredir_h="/* #include <sys/strredir.h> */" 16533 include_sys_strredir_h="/* #include <sys/strredir.h> */"
9628fi 16534fi
9629if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then 16535if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
9630 include_sys_time_h="#include <sys/time.h>" 16536 include_sys_time_h="#include <sys/time.h>"
9631else 16537else
9632 include_sys_time_h="/* #include <sys/time.h> */" 16538 include_sys_time_h="/* #include <sys/time.h> */"
9633fi 16539fi
9634if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then 16540if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
9635 include_time_h="#include <time.h>" 16541 include_time_h="#include <time.h>"
9636else 16542else
9637 include_time_h="/* #include <time.h> */" 16543 include_time_h="/* #include <time.h> */"
9638fi 16544fi
9639 16545
9640if test x$support_xft = xyes; then 16546if test x$support_xft = xyes; then
9641 LIBS="$LIBS `pkg-config xft --libs`" 16547 LIBS="$LIBS `pkg-config xft --libs`"
9642 CFLAGS="$CFLAGS `pkg-config xft --cflags`" 16548 CFLAGS="$CFLAGS `pkg-config xft --cflags`"
9643 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`" 16549 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
9644 16550
16551
9645 for ac_hdr in X11/Xft/Xft.h 16552for ac_header in X11/Xft/Xft.h
9646do 16553do
9647ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 16554as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16555if eval "test \"\${$as_ac_Header+set}\" = set"; then
16556 echo "$as_me:$LINENO: checking for $ac_header" >&5
9648echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 16557echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9649echo "configure:9650: checking for $ac_hdr" >&5 16558if 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 16559 echo $ECHO_N "(cached) $ECHO_C" >&6
16560fi
16561echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16562echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9652else 16563else
16564 # Is the header compilable?
16565echo "$as_me:$LINENO: checking $ac_header usability" >&5
16566echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9653 cat > conftest.$ac_ext <<EOF 16567cat >conftest.$ac_ext <<_ACEOF
9654#line 9655 "configure" 16568/* confdefs.h. */
9655#include "confdefs.h" 16569_ACEOF
16570cat confdefs.h >>conftest.$ac_ext
16571cat >>conftest.$ac_ext <<_ACEOF
16572/* end confdefs.h. */
16573$ac_includes_default
9656#include <$ac_hdr> 16574#include <$ac_header>
9657EOF 16575_ACEOF
9658ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 16576rm -f conftest.$ac_objext
9659{ (eval echo configure:9660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 16577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9660ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 16578 (eval $ac_compile) 2>conftest.er1
16579 ac_status=$?
16580 grep -v '^ *+' conftest.er1 >conftest.err
16581 rm -f conftest.er1
16582 cat conftest.err >&5
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); } &&
16585 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16587 (eval $ac_try) 2>&5
16588 ac_status=$?
16589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590 (exit $ac_status); }; } &&
16591 { ac_try='test -s conftest.$ac_objext'
16592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16593 (eval $ac_try) 2>&5
16594 ac_status=$?
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); }; }; then
16597 ac_header_compiler=yes
16598else
16599 echo "$as_me: failed program was:" >&5
16600sed 's/^/| /' conftest.$ac_ext >&5
16601
16602ac_header_compiler=no
16603fi
16604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16605echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16606echo "${ECHO_T}$ac_header_compiler" >&6
16607
16608# Is the header present?
16609echo "$as_me:$LINENO: checking $ac_header presence" >&5
16610echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16611cat >conftest.$ac_ext <<_ACEOF
16612/* confdefs.h. */
16613_ACEOF
16614cat confdefs.h >>conftest.$ac_ext
16615cat >>conftest.$ac_ext <<_ACEOF
16616/* end confdefs.h. */
16617#include <$ac_header>
16618_ACEOF
16619if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16620 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16621 ac_status=$?
16622 grep -v '^ *+' conftest.er1 >conftest.err
16623 rm -f conftest.er1
16624 cat conftest.err >&5
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); } >/dev/null; then
16627 if test -s conftest.err; then
16628 ac_cpp_err=$ac_cxx_preproc_warn_flag
16629 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16630 else
16631 ac_cpp_err=
16632 fi
16633else
16634 ac_cpp_err=yes
16635fi
9661if test -z "$ac_err"; then 16636if test -z "$ac_cpp_err"; then
9662 rm -rf conftest* 16637 ac_header_preproc=yes
9663 eval "ac_cv_header_$ac_safe=yes"
9664else 16638else
9665 echo "$ac_err" >&5
9666 echo "configure: failed program was:" >&5 16639 echo "$as_me: failed program was:" >&5
9667 cat conftest.$ac_ext >&5 16640sed 's/^/| /' conftest.$ac_ext >&5
9668 rm -rf conftest* 16641
9669 eval "ac_cv_header_$ac_safe=no" 16642 ac_header_preproc=no
9670fi 16643fi
9671rm -f conftest* 16644rm -f conftest.err conftest.$ac_ext
16645echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16646echo "${ECHO_T}$ac_header_preproc" >&6
16647
16648# So? What about this header?
16649case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16650 yes:no: )
16651 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16652echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16654echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16655 ac_header_preproc=yes
16656 ;;
16657 no:yes:* )
16658 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16659echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16660 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16661echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16662 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16663echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16664 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16665echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16667echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16668 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16669echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16670 (
16671 cat <<\_ASBOX
16672## ------------------------------------------ ##
16673## Report this to the AC_PACKAGE_NAME lists. ##
16674## ------------------------------------------ ##
16675_ASBOX
16676 ) |
16677 sed "s/^/$as_me: WARNING: /" >&2
16678 ;;
16679esac
16680echo "$as_me:$LINENO: checking for $ac_header" >&5
16681echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16682if eval "test \"\${$as_ac_Header+set}\" = set"; then
16683 echo $ECHO_N "(cached) $ECHO_C" >&6
16684else
16685 eval "$as_ac_Header=\$ac_header_preproc"
9672fi 16686fi
9673if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 16687echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9674 echo "$ac_t""yes" 1>&6 16688echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9675 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 16689
16690fi
16691if test `eval echo '${'$as_ac_Header'}'` = yes; then
9676 cat >> confdefs.h <<EOF 16692 cat >>confdefs.h <<_ACEOF
9677#define $ac_tr_hdr 1 16693#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9678EOF 16694_ACEOF
9679 16695
9680else 16696else
9681 echo "$ac_t""no" 1>&6
9682support_xft=no 16697 support_xft=no
9683fi 16698fi
16699
9684done 16700done
9685 16701
16702
16703echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
9686 echo $ac_n "checking for XftDrawString32 in -lXft""... $ac_c" 1>&6 16704echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6
9687echo "configure:9688: checking for XftDrawString32 in -lXft" >&5 16705if 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 16706 echo $ECHO_N "(cached) $ECHO_C" >&6
9691else 16707else
9692 ac_save_LIBS="$LIBS" 16708 ac_check_lib_save_LIBS=$LIBS
9693LIBS="-lXft $LIBS" 16709LIBS="-lXft $LIBS"
9694cat > conftest.$ac_ext <<EOF 16710cat >conftest.$ac_ext <<_ACEOF
9695#line 9696 "configure" 16711/* confdefs.h. */
9696#include "confdefs.h" 16712_ACEOF
16713cat confdefs.h >>conftest.$ac_ext
16714cat >>conftest.$ac_ext <<_ACEOF
16715/* end confdefs.h. */
16716
9697/* Override any gcc2 internal prototype to avoid an error. */ 16717/* Override any gcc2 internal prototype to avoid an error. */
16718#ifdef __cplusplus
16719extern "C"
16720#endif
9698/* We use char because int might match the return type of a gcc2 16721/* We use char because int might match the return type of a gcc2
9699 builtin and then its argument prototype would still apply. */ 16722 builtin and then its argument prototype would still apply. */
9700char XftDrawString32(); 16723char XftDrawString32 ();
9701 16724int
9702int main() { 16725main ()
16726{
9703XftDrawString32() 16727XftDrawString32 ();
16728 ;
9704; return 0; } 16729 return 0;
9705EOF 16730}
9706if { (eval echo configure:9707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 16731_ACEOF
16732rm -f conftest.$ac_objext conftest$ac_exeext
16733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16734 (eval $ac_link) 2>conftest.er1
16735 ac_status=$?
16736 grep -v '^ *+' conftest.er1 >conftest.err
9707 rm -rf conftest* 16737 rm -f conftest.er1
9708 eval "ac_cv_lib_$ac_lib_var=yes" 16738 cat conftest.err >&5
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); } &&
16741 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16743 (eval $ac_try) 2>&5
16744 ac_status=$?
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); }; } &&
16747 { ac_try='test -s conftest$ac_exeext'
16748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16749 (eval $ac_try) 2>&5
16750 ac_status=$?
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); }; }; then
16753 ac_cv_lib_Xft_XftDrawString32=yes
9709else 16754else
9710 echo "configure: failed program was:" >&5 16755 echo "$as_me: failed program was:" >&5
9711 cat conftest.$ac_ext >&5 16756sed 's/^/| /' conftest.$ac_ext >&5
9712 rm -rf conftest* 16757
9713 eval "ac_cv_lib_$ac_lib_var=no" 16758ac_cv_lib_Xft_XftDrawString32=no
9714fi 16759fi
9715rm -f conftest* 16760rm -f conftest.err conftest.$ac_objext \
16761 conftest$ac_exeext conftest.$ac_ext
9716LIBS="$ac_save_LIBS" 16762LIBS=$ac_check_lib_save_LIBS
9717
9718fi 16763fi
9719if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 16764echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
9720 echo "$ac_t""yes" 1>&6 16765echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6
9721 ac_tr_lib=HAVE_LIB`echo Xft | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 16766if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
9722 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9723 cat >> confdefs.h <<EOF 16767 cat >>confdefs.h <<_ACEOF
9724#define $ac_tr_lib 1 16768#define HAVE_LIBXFT 1
9725EOF 16769_ACEOF
9726 16770
9727 LIBS="-lXft $LIBS" 16771 LIBS="-lXft $LIBS"
9728 16772
9729else 16773else
9730 echo "$ac_t""no" 1>&6
9731support_xft=no 16774 support_xft=no
9732fi 16775fi
9733 16776
9734 16777
9735 if test x$support_xft = xyes; then 16778 if test x$support_xft = xyes; then
16779
9736 cat >> confdefs.h <<\EOF 16780cat >>confdefs.h <<\_ACEOF
9737#define XFT 1 16781#define XFT 1
9738EOF 16782_ACEOF
9739 16783
9740 fi 16784 fi
9741fi 16785fi
9742 16786
9743trap '' 1 2 15 16787 ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/test/Makefile src/rxvtlib.h W11/Makefile"
9744cat > confcache <<\EOF 16788cat >confcache <<\_ACEOF
9745# This file is a shell script that caches the results of configure 16789# This file is a shell script that caches the results of configure
9746# tests run on this system so they can be shared between configure 16790# tests run on this system so they can be shared between configure
9747# scripts and configure runs. It is not useful on other systems. 16791# scripts and configure runs, see configure's option --config-cache.
9748# If it contains results you don't want to keep, you may remove or edit it. 16792# It is not useful on other systems. If it contains results you don't
16793# want to keep, you may remove or edit it.
9749# 16794#
9750# By default, configure uses ./config.cache as the cache file,
9751# creating it if it does not exist already. You can give configure
9752# the --cache-file=FILE option to use a different cache file; that is
9753# what configure does when it calls configure scripts in
9754# subdirectories, so they share the cache.
9755# Giving --cache-file=/dev/null disables caching, for debugging configure.
9756# config.status only pays attention to the cache file if you give it the 16795# config.status only pays attention to the cache file if you give it
9757# --recheck option to rerun configure. 16796# the --recheck option to rerun configure.
9758# 16797#
9759EOF 16798# `ac_cv_env_foo' variables (set or unset) will be overridden when
16799# loading this file, other *unset* `ac_cv_foo' will be assigned the
16800# following values.
16801
16802_ACEOF
16803
9760# The following way of writing the cache mishandles newlines in values, 16804# The following way of writing the cache mishandles newlines in values,
9761# but we know of no workaround that is simple, portable, and efficient. 16805# but we know of no workaround that is simple, portable, and efficient.
9762# So, don't put newlines in cache variables' values. 16806# So, don't put newlines in cache variables' values.
9763# Ultrix sh set writes to stderr and can't be redirected directly, 16807# Ultrix sh set writes to stderr and can't be redirected directly,
9764# and sets the high bit in the cache file unless we assign to the vars. 16808# and sets the high bit in the cache file unless we assign to the vars.
16809{
9765(set) 2>&1 | 16810 (set) 2>&1 |
9766 case `(ac_space=' '; set | grep ac_space) 2>&1` in 16811 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9767 *ac_space=\ *) 16812 *ac_space=\ *)
9768 # `set' does not quote correctly, so add quotes (double-quote substitution 16813 # `set' does not quote correctly, so add quotes (double-quote
9769 # turns \\\\ into \\, and sed turns \\ into \). 16814 # substitution turns \\\\ into \\, and sed turns \\ into \).
9770 sed -n \ 16815 sed -n \
9771 -e "s/'/'\\\\''/g" \ 16816 "s/'/'\\\\''/g;
9772 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 16817 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9773 ;; 16818 ;;
9774 *) 16819 *)
9775 # `set' quotes correctly as required by POSIX, so do not add quotes. 16820 # `set' quotes correctly as required by POSIX, so do not add quotes.
9776 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 16821 sed -n \
16822 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9777 ;; 16823 ;;
9778 esac >> confcache 16824 esac;
9779if cmp -s $cache_file confcache; then 16825} |
9780 : 16826 sed '
9781else 16827 t clear
16828 : clear
16829 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16830 t end
16831 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16832 : end' >>confcache
16833if diff $cache_file confcache >/dev/null 2>&1; then :; else
9782 if test -w $cache_file; then 16834 if test -w $cache_file; then
9783 echo "updating cache $cache_file" 16835 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9784 cat confcache > $cache_file 16836 cat confcache >$cache_file
9785 else 16837 else
9786 echo "not updating unwritable cache $cache_file" 16838 echo "not updating unwritable cache $cache_file"
9787 fi 16839 fi
9788fi 16840fi
9789rm -f confcache 16841rm -f confcache
9790 16842
9791trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9792
9793test "x$prefix" = xNONE && prefix=$ac_default_prefix 16843test "x$prefix" = xNONE && prefix=$ac_default_prefix
9794# Let make expand exec_prefix. 16844# Let make expand exec_prefix.
9795test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16845test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9796 16846
9797# Any assignment to VPATH causes Sun make to only execute 16847# VPATH may cause trouble with some makes, so we remove $(srcdir),
9798# the first set of double-colon rules, so remove it if not needed. 16848# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9799# If there is a colon in the path, we need to keep it. 16849# trailing colons and then remove the whole line if VPATH becomes empty
16850# (actually we leave an empty line to preserve line numbers).
9800if test "x$srcdir" = x.; then 16851if test "x$srcdir" = x.; then
9801 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 16852 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16853s/:*\$(srcdir):*/:/;
16854s/:*\${srcdir}:*/:/;
16855s/:*@srcdir@:*/:/;
16856s/^\([^=]*=[ ]*\):*/\1/;
16857s/:*$//;
16858s/^[^=]*=[ ]*$//;
16859}'
9802fi 16860fi
9803
9804trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9805 16861
9806DEFS=-DHAVE_CONFIG_H 16862DEFS=-DHAVE_CONFIG_H
9807 16863
9808# Without the "./", some shells look in PATH for config.status. 16864ac_libobjs=
16865ac_ltlibobjs=
16866for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16867 # 1. Remove the extension, and $U if already installed.
16868 ac_i=`echo "$ac_i" |
16869 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16870 # 2. Add them.
16871 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16872 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16873done
16874LIBOBJS=$ac_libobjs
16875
16876LTLIBOBJS=$ac_ltlibobjs
16877
16878
16879
9809: ${CONFIG_STATUS=./config.status} 16880: ${CONFIG_STATUS=./config.status}
9810 16881ac_clean_files_save=$ac_clean_files
16882ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16883{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9811echo creating $CONFIG_STATUS 16884echo "$as_me: creating $CONFIG_STATUS" >&6;}
9812rm -f $CONFIG_STATUS
9813cat > $CONFIG_STATUS <<EOF 16885cat >$CONFIG_STATUS <<_ACEOF
9814#! /bin/sh 16886#! $SHELL
9815# Generated automatically by configure. 16887# Generated by $as_me.
9816# Run this file to recreate the current configuration. 16888# Run this file to recreate the current configuration.
9817# This directory was configured as follows,
9818# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9819#
9820# $0 $ac_configure_args
9821#
9822# Compiler output produced by configure, useful for debugging 16889# Compiler output produced by configure, useful for debugging
9823# configure, is in ./config.log if it exists. 16890# configure, is in config.log if it exists.
9824 16891
9825ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 16892debug=false
9826for ac_option 16893ac_cs_recheck=false
16894ac_cs_silent=false
16895SHELL=\${CONFIG_SHELL-$SHELL}
16896_ACEOF
16897
16898cat >>$CONFIG_STATUS <<\_ACEOF
16899## --------------------- ##
16900## M4sh Initialization. ##
16901## --------------------- ##
16902
16903# Be Bourne compatible
16904if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16905 emulate sh
16906 NULLCMD=:
16907 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16908 # is contrary to our usage. Disable this feature.
16909 alias -g '${1+"$@"}'='"$@"'
16910elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16911 set -o posix
16912fi
16913DUALCASE=1; export DUALCASE # for MKS sh
16914
16915# Support unset when possible.
16916if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16917 as_unset=unset
16918else
16919 as_unset=false
16920fi
16921
16922
16923# Work around bugs in pre-3.0 UWIN ksh.
16924$as_unset ENV MAIL MAILPATH
16925PS1='$ '
16926PS2='> '
16927PS4='+ '
16928
16929# NLS nuisances.
16930for as_var in \
16931 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16932 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16933 LC_TELEPHONE LC_TIME
9827do 16934do
16935 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16936 eval $as_var=C; export $as_var
16937 else
16938 $as_unset $as_var
16939 fi
16940done
16941
16942# Required to use basename.
16943if expr a : '\(a\)' >/dev/null 2>&1; then
16944 as_expr=expr
16945else
16946 as_expr=false
16947fi
16948
16949if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16950 as_basename=basename
16951else
16952 as_basename=false
16953fi
16954
16955
16956# Name of the executable.
16957as_me=`$as_basename "$0" ||
16958$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16959 X"$0" : 'X\(//\)$' \| \
16960 X"$0" : 'X\(/\)$' \| \
16961 . : '\(.\)' 2>/dev/null ||
16962echo X/"$0" |
16963 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16964 /^X\/\(\/\/\)$/{ s//\1/; q; }
16965 /^X\/\(\/\).*/{ s//\1/; q; }
16966 s/.*/./; q'`
16967
16968
16969# PATH needs CR, and LINENO needs CR and PATH.
16970# Avoid depending upon Character Ranges.
16971as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16972as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16973as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16974as_cr_digits='0123456789'
16975as_cr_alnum=$as_cr_Letters$as_cr_digits
16976
16977# The user is always right.
16978if test "${PATH_SEPARATOR+set}" != set; then
16979 echo "#! /bin/sh" >conf$$.sh
16980 echo "exit 0" >>conf$$.sh
16981 chmod +x conf$$.sh
16982 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16983 PATH_SEPARATOR=';'
16984 else
16985 PATH_SEPARATOR=:
16986 fi
16987 rm -f conf$$.sh
16988fi
16989
16990
16991 as_lineno_1=$LINENO
16992 as_lineno_2=$LINENO
16993 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16994 test "x$as_lineno_1" != "x$as_lineno_2" &&
16995 test "x$as_lineno_3" = "x$as_lineno_2" || {
16996 # Find who we are. Look in the path if we contain no path at all
16997 # relative or not.
16998 case $0 in
16999 *[\\/]* ) as_myself=$0 ;;
17000 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17001for as_dir in $PATH
17002do
17003 IFS=$as_save_IFS
17004 test -z "$as_dir" && as_dir=.
17005 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17006done
17007
17008 ;;
17009 esac
17010 # We did not find ourselves, most probably we were run as `sh COMMAND'
17011 # in which case we are not to be found in the path.
17012 if test "x$as_myself" = x; then
17013 as_myself=$0
17014 fi
17015 if test ! -f "$as_myself"; then
17016 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17017echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17018 { (exit 1); exit 1; }; }
17019 fi
17020 case $CONFIG_SHELL in
17021 '')
17022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17023for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17024do
17025 IFS=$as_save_IFS
17026 test -z "$as_dir" && as_dir=.
17027 for as_base in sh bash ksh sh5; do
17028 case $as_dir in
17029 /*)
17030 if ("$as_dir/$as_base" -c '
17031 as_lineno_1=$LINENO
17032 as_lineno_2=$LINENO
17033 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17034 test "x$as_lineno_1" != "x$as_lineno_2" &&
17035 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17036 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17037 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17038 CONFIG_SHELL=$as_dir/$as_base
17039 export CONFIG_SHELL
17040 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17041 fi;;
17042 esac
17043 done
17044done
17045;;
17046 esac
17047
17048 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17049 # uniformly replaced by the line number. The first 'sed' inserts a
17050 # line-number line before each line; the second 'sed' does the real
17051 # work. The second script uses 'N' to pair each line-number line
17052 # with the numbered line, and appends trailing '-' during
17053 # substitution so that $LINENO is not a special case at line end.
17054 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17055 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17056 sed '=' <$as_myself |
17057 sed '
17058 N
17059 s,$,-,
17060 : loop
17061 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17062 t loop
17063 s,-$,,
17064 s,^['$as_cr_digits']*\n,,
17065 ' >$as_me.lineno &&
17066 chmod +x $as_me.lineno ||
17067 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17068echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17069 { (exit 1); exit 1; }; }
17070
17071 # Don't try to exec as it changes $[0], causing all sort of problems
17072 # (the dirname of $[0] is not the place where we might find the
17073 # original and so on. Autoconf is especially sensible to this).
17074 . ./$as_me.lineno
17075 # Exit status is that of the last command.
17076 exit
17077}
17078
17079
17080case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17081 *c*,-n*) ECHO_N= ECHO_C='
17082' ECHO_T=' ' ;;
17083 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17084 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17085esac
17086
17087if expr a : '\(a\)' >/dev/null 2>&1; then
17088 as_expr=expr
17089else
17090 as_expr=false
17091fi
17092
17093rm -f conf$$ conf$$.exe conf$$.file
17094echo >conf$$.file
17095if ln -s conf$$.file conf$$ 2>/dev/null; then
17096 # We could just check for DJGPP; but this test a) works b) is more generic
17097 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17098 if test -f conf$$.exe; then
17099 # Don't use ln at all; we don't have any links
17100 as_ln_s='cp -p'
17101 else
17102 as_ln_s='ln -s'
17103 fi
17104elif ln conf$$.file conf$$ 2>/dev/null; then
17105 as_ln_s=ln
17106else
17107 as_ln_s='cp -p'
17108fi
17109rm -f conf$$ conf$$.exe conf$$.file
17110
17111if mkdir -p . 2>/dev/null; then
17112 as_mkdir_p=:
17113else
17114 test -d ./-p && rmdir ./-p
17115 as_mkdir_p=false
17116fi
17117
17118as_executable_p="test -f"
17119
17120# Sed expression to map a string onto a valid CPP name.
17121as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17122
17123# Sed expression to map a string onto a valid variable name.
17124as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17125
17126
17127# IFS
17128# We need space, tab and new line, in precisely that order.
17129as_nl='
17130'
17131IFS=" $as_nl"
17132
17133# CDPATH.
17134$as_unset CDPATH
17135
17136exec 6>&1
17137
17138# Open the log real soon, to keep \$[0] and so on meaningful, and to
17139# report actual input values of CONFIG_FILES etc. instead of their
17140# values after options handling. Logging --version etc. is OK.
17141exec 5>>config.log
17142{
17143 echo
17144 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17145## Running $as_me. ##
17146_ASBOX
17147} >&5
17148cat >&5 <<_CSEOF
17149
17150This file was extended by $as_me, which was
17151generated by GNU Autoconf 2.59. Invocation command line was
17152
17153 CONFIG_FILES = $CONFIG_FILES
17154 CONFIG_HEADERS = $CONFIG_HEADERS
17155 CONFIG_LINKS = $CONFIG_LINKS
17156 CONFIG_COMMANDS = $CONFIG_COMMANDS
17157 $ $0 $@
17158
17159_CSEOF
17160echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17161echo >&5
17162_ACEOF
17163
17164# Files that config.status was made for.
17165if test -n "$ac_config_files"; then
17166 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17167fi
17168
17169if test -n "$ac_config_headers"; then
17170 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17171fi
17172
17173if test -n "$ac_config_links"; then
17174 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17175fi
17176
17177if test -n "$ac_config_commands"; then
17178 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17179fi
17180
17181cat >>$CONFIG_STATUS <<\_ACEOF
17182
17183ac_cs_usage="\
17184\`$as_me' instantiates files from templates according to the
17185current configuration.
17186
17187Usage: $0 [OPTIONS] [FILE]...
17188
17189 -h, --help print this help, then exit
17190 -V, --version print version number, then exit
17191 -q, --quiet do not print progress messages
17192 -d, --debug don't remove temporary files
17193 --recheck update $as_me by reconfiguring in the same conditions
17194 --file=FILE[:TEMPLATE]
17195 instantiate the configuration file FILE
17196 --header=FILE[:TEMPLATE]
17197 instantiate the configuration header FILE
17198
17199Configuration files:
17200$config_files
17201
17202Configuration headers:
17203$config_headers
17204
17205Report bugs to <bug-autoconf@gnu.org>."
17206_ACEOF
17207
17208cat >>$CONFIG_STATUS <<_ACEOF
17209ac_cs_version="\\
17210config.status
17211configured by $0, generated by GNU Autoconf 2.59,
17212 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17213
17214Copyright (C) 2003 Free Software Foundation, Inc.
17215This config.status script is free software; the Free Software Foundation
17216gives unlimited permission to copy, distribute and modify it."
17217srcdir=$srcdir
17218INSTALL="$INSTALL"
17219_ACEOF
17220
17221cat >>$CONFIG_STATUS <<\_ACEOF
17222# If no file are specified by the user, then we need to provide default
17223# value. By we need to know if files were specified by the user.
17224ac_need_defaults=:
17225while test $# != 0
17226do
17227 case $1 in
17228 --*=*)
17229 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17230 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17231 ac_shift=:
17232 ;;
17233 -*)
17234 ac_option=$1
17235 ac_optarg=$2
17236 ac_shift=shift
17237 ;;
17238 *) # This is not an option, so the user has probably given explicit
17239 # arguments.
17240 ac_option=$1
17241 ac_need_defaults=false;;
17242 esac
17243
9828 case "\$ac_option" in 17244 case $ac_option in
17245 # Handling of the options.
17246_ACEOF
17247cat >>$CONFIG_STATUS <<\_ACEOF
9829 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17248 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9830 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 17249 ac_cs_recheck=: ;;
9831 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 17250 --version | --vers* | -V )
9832 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 17251 echo "$ac_cs_version"; exit 0 ;;
9833 echo "$CONFIG_STATUS generated by autoconf version 2.13" 17252 --he | --h)
9834 exit 0 ;; 17253 # Conflict between --help and --header
9835 -help | --help | --hel | --he | --h) 17254 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17255Try \`$0 --help' for more information." >&5
17256echo "$as_me: error: ambiguous option: $1
17257Try \`$0 --help' for more information." >&2;}
17258 { (exit 1); exit 1; }; };;
17259 --help | --hel | -h )
9836 echo "\$ac_cs_usage"; exit 0 ;; 17260 echo "$ac_cs_usage"; exit 0 ;;
9837 *) echo "\$ac_cs_usage"; exit 1 ;; 17261 --debug | --d* | -d )
17262 debug=: ;;
17263 --file | --fil | --fi | --f )
17264 $ac_shift
17265 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17266 ac_need_defaults=false;;
17267 --header | --heade | --head | --hea )
17268 $ac_shift
17269 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17270 ac_need_defaults=false;;
17271 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17272 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17273 ac_cs_silent=: ;;
17274
17275 # This is an error.
17276 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17277Try \`$0 --help' for more information." >&5
17278echo "$as_me: error: unrecognized option: $1
17279Try \`$0 --help' for more information." >&2;}
17280 { (exit 1); exit 1; }; } ;;
17281
17282 *) ac_config_targets="$ac_config_targets $1" ;;
17283
17284 esac
17285 shift
17286done
17287
17288ac_configure_extra_args=
17289
17290if $ac_cs_silent; then
17291 exec 6>/dev/null
17292 ac_configure_extra_args="$ac_configure_extra_args --silent"
17293fi
17294
17295_ACEOF
17296cat >>$CONFIG_STATUS <<_ACEOF
17297if \$ac_cs_recheck; then
17298 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17299 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17300fi
17301
17302_ACEOF
17303
17304
17305
17306
17307
17308cat >>$CONFIG_STATUS <<\_ACEOF
17309for ac_config_target in $ac_config_targets
17310do
17311 case "$ac_config_target" in
17312 # Handling of arguments.
17313 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
17314 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17315 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17316 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17317 "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
17318 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
17319 "W11/Makefile" ) CONFIG_FILES="$CONFIG_FILES W11/Makefile" ;;
17320 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;;
17321 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17322echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17323 { (exit 1); exit 1; }; };;
9838 esac 17324 esac
9839done 17325done
9840 17326
9841ac_given_srcdir=$srcdir 17327# If the user did not use the arguments to specify the items to instantiate,
9842ac_given_INSTALL="$INSTALL" 17328# then the envvar interface is used. Set only those that are not.
17329# We use the long form for the default assignment because of an extremely
17330# bizarre bug on SunOS 4.1.3.
17331if $ac_need_defaults; then
17332 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17333 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17334fi
9843 17335
9844trap 'rm -fr `echo "autoconf/Make.common \ 17336# Have a temporary directory for convenience. Make it in the build tree
9845Makefile \ 17337# simply because there is no reason to put it here, and in addition,
9846doc/Makefile \ 17338# creating and moving files from /tmp can sometimes cause problems.
9847src/Makefile \ 17339# Create a temporary directory, and hook for its removal unless debugging.
9848src/graphics/Makefile \ 17340$debug ||
9849src/test/Makefile \ 17341{
9850src/rxvtlib.h \ 17342 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9851W11/Makefile \ 17343 trap '{ (exit 1); exit 1; }' 1 2 13 15
9852 config.h:autoconf/config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 17344}
9853EOF 17345
17346# Create a (secure) tmp directory for tmp files.
17347
17348{
17349 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17350 test -n "$tmp" && test -d "$tmp"
17351} ||
17352{
17353 tmp=./confstat$$-$RANDOM
17354 (umask 077 && mkdir $tmp)
17355} ||
17356{
17357 echo "$me: cannot create a temporary directory in ." >&2
17358 { (exit 1); exit 1; }
17359}
17360
17361_ACEOF
17362
9854cat >> $CONFIG_STATUS <<EOF 17363cat >>$CONFIG_STATUS <<_ACEOF
9855 17364
17365#
17366# CONFIG_FILES section.
17367#
17368
17369# No need to generate the scripts if there are no CONFIG_FILES.
17370# This happens for instance when ./config.status config.h
17371if test -n "\$CONFIG_FILES"; then
9856# Protect against being on the right side of a sed subst in config.status. 17372 # Protect against being on the right side of a sed subst in config.status.
9857sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 17373 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9858 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 17374 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9859$ac_vpsub 17375s,@SHELL@,$SHELL,;t t
17376s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17377s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17378s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17379s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17380s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17381s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17382s,@exec_prefix@,$exec_prefix,;t t
17383s,@prefix@,$prefix,;t t
17384s,@program_transform_name@,$program_transform_name,;t t
17385s,@bindir@,$bindir,;t t
17386s,@sbindir@,$sbindir,;t t
17387s,@libexecdir@,$libexecdir,;t t
17388s,@datadir@,$datadir,;t t
17389s,@sysconfdir@,$sysconfdir,;t t
17390s,@sharedstatedir@,$sharedstatedir,;t t
17391s,@localstatedir@,$localstatedir,;t t
17392s,@libdir@,$libdir,;t t
17393s,@includedir@,$includedir,;t t
17394s,@oldincludedir@,$oldincludedir,;t t
17395s,@infodir@,$infodir,;t t
17396s,@mandir@,$mandir,;t t
17397s,@build_alias@,$build_alias,;t t
17398s,@host_alias@,$host_alias,;t t
17399s,@target_alias@,$target_alias,;t t
17400s,@DEFS@,$DEFS,;t t
17401s,@ECHO_C@,$ECHO_C,;t t
17402s,@ECHO_N@,$ECHO_N,;t t
17403s,@ECHO_T@,$ECHO_T,;t t
17404s,@LIBS@,$LIBS,;t t
17405s,@VERSION@,$VERSION,;t t
17406s,@DATE@,$DATE,;t t
17407s,@LSMDATE@,$LSMDATE,;t t
17408s,@LIBVERSION@,$LIBVERSION,;t t
17409s,@CC@,$CC,;t t
17410s,@CFLAGS@,$CFLAGS,;t t
17411s,@LDFLAGS@,$LDFLAGS,;t t
17412s,@CPPFLAGS@,$CPPFLAGS,;t t
17413s,@ac_ct_CC@,$ac_ct_CC,;t t
17414s,@EXEEXT@,$EXEEXT,;t t
17415s,@OBJEXT@,$OBJEXT,;t t
17416s,@CXX@,$CXX,;t t
17417s,@CXXFLAGS@,$CXXFLAGS,;t t
17418s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17419s,@CPP@,$CPP,;t t
17420s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17421s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17422s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17423s,@AWK@,$AWK,;t t
17424s,@LINKER@,$LINKER,;t t
17425s,@CXXCPP@,$CXXCPP,;t t
17426s,@EGREP@,$EGREP,;t t
17427s,@build@,$build,;t t
17428s,@build_cpu@,$build_cpu,;t t
17429s,@build_vendor@,$build_vendor,;t t
17430s,@build_os@,$build_os,;t t
17431s,@host@,$host,;t t
17432s,@host_cpu@,$host_cpu,;t t
17433s,@host_vendor@,$host_vendor,;t t
17434s,@host_os@,$host_os,;t t
17435s,@LN_S@,$LN_S,;t t
17436s,@ECHO@,$ECHO,;t t
17437s,@RANLIB@,$RANLIB,;t t
17438s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17439s,@STRIP@,$STRIP,;t t
17440s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17441s,@LIBTOOL@,$LIBTOOL,;t t
17442s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
17443s,@RXVTNAME@,$RXVTNAME,;t t
17444s,@MV@,$MV,;t t
17445s,@RM@,$RM,;t t
17446s,@CP@,$CP,;t t
17447s,@LN@,$LN,;t t
17448s,@SED@,$SED,;t t
17449s,@CMP@,$CMP,;t t
17450s,@TBL@,$TBL,;t t
17451s,@X_CFLAGS@,$X_CFLAGS,;t t
17452s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17453s,@X_LIBS@,$X_LIBS,;t t
17454s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17455s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
17456s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t
17457s,@XPM_LIBS@,$XPM_LIBS,;t t
17458s,@rxvt_int16_typedef@,$rxvt_int16_typedef,;t t
17459s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
17460s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
17461s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
17462s,@rxvt_intp_define@,$rxvt_intp_define,;t t
17463s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
17464s,@DEBUG@,$DEBUG,;t t
17465s,@DINCLUDE@,$DINCLUDE,;t t
17466s,@DLIB@,$DLIB,;t t
17467s,@include_stdint_h@,$include_stdint_h,;t t
17468s,@include_stdarg_h@,$include_stdarg_h,;t t
17469s,@include_stdlib_h@,$include_stdlib_h,;t t
17470s,@include_unistd_h@,$include_unistd_h,;t t
17471s,@include_string_h@,$include_string_h,;t t
17472s,@include_fcntl_h@,$include_fcntl_h,;t t
17473s,@include_util_h@,$include_util_h,;t t
17474s,@include_assert_h@,$include_assert_h,;t t
17475s,@include_sys_ioctl_h@,$include_sys_ioctl_h,;t t
17476s,@include_sys_select_h@,$include_sys_select_h,;t t
17477s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t
17478s,@include_sys_time_h@,$include_sys_time_h,;t t
17479s,@include_time_h@,$include_time_h,;t t
17480s,@LIBOBJS@,$LIBOBJS,;t t
17481s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17482/@MCOMMON@/r $MCOMMON
17483s,@MCOMMON@,,;t t
17484CEOF
17485
17486_ACEOF
17487
17488 cat >>$CONFIG_STATUS <<\_ACEOF
17489 # Split the substitutions into bite-sized pieces for seds with
17490 # small command number limits, like on Digital OSF/1 and HP-UX.
17491 ac_max_sed_lines=48
17492 ac_sed_frag=1 # Number of current file.
17493 ac_beg=1 # First line for current file.
17494 ac_end=$ac_max_sed_lines # Line after last line for current file.
17495 ac_more_lines=:
17496 ac_sed_cmds=
17497 while $ac_more_lines; do
17498 if test $ac_beg -gt 1; then
17499 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17500 else
17501 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17502 fi
17503 if test ! -s $tmp/subs.frag; then
17504 ac_more_lines=false
17505 else
17506 # The purpose of the label and of the branching condition is to
17507 # speed up the sed processing (if there are no `@' at all, there
17508 # is no need to browse any of the substitutions).
17509 # These are the two extra sed commands mentioned above.
17510 (echo ':t
17511 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17512 if test -z "$ac_sed_cmds"; then
17513 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17514 else
17515 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17516 fi
17517 ac_sed_frag=`expr $ac_sed_frag + 1`
17518 ac_beg=$ac_end
17519 ac_end=`expr $ac_end + $ac_max_sed_lines`
17520 fi
17521 done
17522 if test -z "$ac_sed_cmds"; then
17523 ac_sed_cmds=cat
17524 fi
17525fi # test -n "$CONFIG_FILES"
17526
17527_ACEOF
17528cat >>$CONFIG_STATUS <<\_ACEOF
17529for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17530 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17531 case $ac_file in
17532 - | *:- | *:-:* ) # input from stdin
17533 cat >$tmp/stdin
17534 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17535 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17536 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17537 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17538 * ) ac_file_in=$ac_file.in ;;
17539 esac
17540
17541 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17542 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17543$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17544 X"$ac_file" : 'X\(//\)[^/]' \| \
17545 X"$ac_file" : 'X\(//\)$' \| \
17546 X"$ac_file" : 'X\(/\)' \| \
17547 . : '\(.\)' 2>/dev/null ||
17548echo X"$ac_file" |
17549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17550 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17551 /^X\(\/\/\)$/{ s//\1/; q; }
17552 /^X\(\/\).*/{ s//\1/; q; }
17553 s/.*/./; q'`
17554 { if $as_mkdir_p; then
17555 mkdir -p "$ac_dir"
17556 else
17557 as_dir="$ac_dir"
17558 as_dirs=
17559 while test ! -d "$as_dir"; do
17560 as_dirs="$as_dir $as_dirs"
17561 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17562$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17563 X"$as_dir" : 'X\(//\)[^/]' \| \
17564 X"$as_dir" : 'X\(//\)$' \| \
17565 X"$as_dir" : 'X\(/\)' \| \
17566 . : '\(.\)' 2>/dev/null ||
17567echo X"$as_dir" |
17568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17569 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17570 /^X\(\/\/\)$/{ s//\1/; q; }
17571 /^X\(\/\).*/{ s//\1/; q; }
17572 s/.*/./; q'`
17573 done
17574 test ! -n "$as_dirs" || mkdir $as_dirs
17575 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17576echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17577 { (exit 1); exit 1; }; }; }
17578
17579 ac_builddir=.
17580
17581if test "$ac_dir" != .; then
17582 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17583 # A "../" for each directory in $ac_dir_suffix.
17584 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17585else
17586 ac_dir_suffix= ac_top_builddir=
17587fi
17588
17589case $srcdir in
17590 .) # No --srcdir option. We are building in place.
17591 ac_srcdir=.
17592 if test -z "$ac_top_builddir"; then
17593 ac_top_srcdir=.
17594 else
17595 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17596 fi ;;
17597 [\\/]* | ?:[\\/]* ) # Absolute path.
17598 ac_srcdir=$srcdir$ac_dir_suffix;
17599 ac_top_srcdir=$srcdir ;;
17600 *) # Relative path.
17601 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17602 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17603esac
17604
17605# Do not use `cd foo && pwd` to compute absolute paths, because
17606# the directories may not exist.
17607case `pwd` in
17608.) ac_abs_builddir="$ac_dir";;
17609*)
17610 case "$ac_dir" in
17611 .) ac_abs_builddir=`pwd`;;
17612 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17613 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17614 esac;;
17615esac
17616case $ac_abs_builddir in
17617.) ac_abs_top_builddir=${ac_top_builddir}.;;
17618*)
17619 case ${ac_top_builddir}. in
17620 .) ac_abs_top_builddir=$ac_abs_builddir;;
17621 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17622 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17623 esac;;
17624esac
17625case $ac_abs_builddir in
17626.) ac_abs_srcdir=$ac_srcdir;;
17627*)
17628 case $ac_srcdir in
17629 .) ac_abs_srcdir=$ac_abs_builddir;;
17630 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17631 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17632 esac;;
17633esac
17634case $ac_abs_builddir in
17635.) ac_abs_top_srcdir=$ac_top_srcdir;;
17636*)
17637 case $ac_top_srcdir in
17638 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17639 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17640 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17641 esac;;
17642esac
17643
17644
17645 case $INSTALL in
17646 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17647 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17648 esac
17649
17650 # Let's still pretend it is `configure' which instantiates (i.e., don't
17651 # use $as_me), people would be surprised to read:
17652 # /* config.h. Generated by config.status. */
17653 if test x"$ac_file" = x-; then
17654 configure_input=
17655 else
17656 configure_input="$ac_file. "
17657 fi
17658 configure_input=$configure_input"Generated from `echo $ac_file_in |
17659 sed 's,.*/,,'` by configure."
17660
17661 # First look for the input files in the build tree, otherwise in the
17662 # src tree.
17663 ac_file_inputs=`IFS=:
17664 for f in $ac_file_in; do
17665 case $f in
17666 -) echo $tmp/stdin ;;
17667 [\\/$]*)
17668 # Absolute (can't be DOS-style, as IFS=:)
17669 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17670echo "$as_me: error: cannot find input file: $f" >&2;}
17671 { (exit 1); exit 1; }; }
17672 echo "$f";;
17673 *) # Relative
17674 if test -f "$f"; then
17675 # Build tree
17676 echo "$f"
17677 elif test -f "$srcdir/$f"; then
17678 # Source tree
17679 echo "$srcdir/$f"
17680 else
17681 # /dev/null tree
17682 { { 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 fi;;
17686 esac
17687 done` || { (exit 1); exit 1; }
17688
17689 if test x"$ac_file" != x-; then
17690 { echo "$as_me:$LINENO: creating $ac_file" >&5
17691echo "$as_me: creating $ac_file" >&6;}
17692 rm -f "$ac_file"
17693 fi
17694_ACEOF
17695cat >>$CONFIG_STATUS <<_ACEOF
17696 sed "$ac_vpsub
9860$extrasub 17697$extrasub
9861s%@SHELL@%$SHELL%g
9862s%@CFLAGS@%$CFLAGS%g
9863s%@CPPFLAGS@%$CPPFLAGS%g
9864s%@CXXFLAGS@%$CXXFLAGS%g
9865s%@FFLAGS@%$FFLAGS%g
9866s%@DEFS@%$DEFS%g
9867s%@LDFLAGS@%$LDFLAGS%g
9868s%@LIBS@%$LIBS%g
9869s%@exec_prefix@%$exec_prefix%g
9870s%@prefix@%$prefix%g
9871s%@program_transform_name@%$program_transform_name%g
9872s%@bindir@%$bindir%g
9873s%@sbindir@%$sbindir%g
9874s%@libexecdir@%$libexecdir%g
9875s%@datadir@%$datadir%g
9876s%@sysconfdir@%$sysconfdir%g
9877s%@sharedstatedir@%$sharedstatedir%g
9878s%@localstatedir@%$localstatedir%g
9879s%@libdir@%$libdir%g
9880s%@includedir@%$includedir%g
9881s%@oldincludedir@%$oldincludedir%g
9882s%@infodir@%$infodir%g
9883s%@mandir@%$mandir%g
9884s%@VERSION@%$VERSION%g
9885s%@DATE@%$DATE%g
9886s%@LSMDATE@%$LSMDATE%g
9887s%@LIBVERSION@%$LIBVERSION%g
9888s%@CC@%$CC%g
9889s%@CXX@%$CXX%g
9890s%@CPP@%$CPP%g
9891s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9892s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9893s%@INSTALL_DATA@%$INSTALL_DATA%g
9894s%@AWK@%$AWK%g
9895s%@host@%$host%g
9896s%@host_alias@%$host_alias%g
9897s%@host_cpu@%$host_cpu%g
9898s%@host_vendor@%$host_vendor%g
9899s%@host_os@%$host_os%g
9900s%@build@%$build%g
9901s%@build_alias@%$build_alias%g
9902s%@build_cpu@%$build_cpu%g
9903s%@build_vendor@%$build_vendor%g
9904s%@build_os@%$build_os%g
9905s%@LN_S@%$LN_S%g
9906s%@OBJEXT@%$OBJEXT%g
9907s%@EXEEXT@%$EXEEXT%g
9908s%@ECHO@%$ECHO%g
9909s%@RANLIB@%$RANLIB%g
9910s%@STRIP@%$STRIP%g
9911s%@LIBTOOL@%$LIBTOOL%g
9912s%@INSTALL_LIBRXVT@%$INSTALL_LIBRXVT%g
9913s%@MV@%$MV%g
9914s%@RM@%$RM%g
9915s%@CP@%$CP%g
9916s%@LN@%$LN%g
9917s%@SED@%$SED%g
9918s%@CMP@%$CMP%g
9919s%@TBL@%$TBL%g
9920s%@X_CFLAGS@%$X_CFLAGS%g
9921s%@X_PRE_LIBS@%$X_PRE_LIBS%g
9922s%@X_LIBS@%$X_LIBS%g
9923s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
9924s%@XPM_CPPFLAGS@%$XPM_CPPFLAGS%g
9925s%@XPM_CFLAGS@%$XPM_CFLAGS%g
9926s%@XPM_LIBS@%$XPM_LIBS%g
9927s%@rxvt_int16_typedef@%$rxvt_int16_typedef%g
9928s%@rxvt_uint16_typedef@%$rxvt_uint16_typedef%g
9929s%@rxvt_int32_typedef@%$rxvt_int32_typedef%g
9930s%@rxvt_uint32_typedef@%$rxvt_uint32_typedef%g
9931s%@rxvt_intp_define@%$rxvt_intp_define%g
9932s%@rxvt_u_intp_define@%$rxvt_u_intp_define%g
9933s%@DEBUG@%$DEBUG%g
9934s%@DINCLUDE@%$DINCLUDE%g
9935s%@DLIB@%$DLIB%g
9936/@MCOMMON@/r $MCOMMON
9937s%@MCOMMON@%%g
9938s%@RXVTNAME@%$RXVTNAME%g
9939s%@include_stdint_h@%$include_stdint_h%g
9940s%@include_stdarg_h@%$include_stdarg_h%g
9941s%@include_stdlib_h@%$include_stdlib_h%g
9942s%@include_unistd_h@%$include_unistd_h%g
9943s%@include_string_h@%$include_string_h%g
9944s%@include_fcntl_h@%$include_fcntl_h%g
9945s%@include_util_h@%$include_util_h%g
9946s%@include_assert_h@%$include_assert_h%g
9947s%@include_sys_ioctl_h@%$include_sys_ioctl_h%g
9948s%@include_sys_select_h@%$include_sys_select_h%g
9949s%@include_sys_strredir_h@%$include_sys_strredir_h%g
9950s%@include_sys_time_h@%$include_sys_time_h%g
9951s%@include_time_h@%$include_time_h%g
9952
9953CEOF 17698_ACEOF
9954EOF
9955
9956cat >> $CONFIG_STATUS <<\EOF 17699cat >>$CONFIG_STATUS <<\_ACEOF
9957 17700:t
9958# Split the substitutions into bite-sized pieces for seds with 17701/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9959# small command number limits, like on Digital OSF/1 and HP-UX. 17702s,@configure_input@,$configure_input,;t t
9960ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 17703s,@srcdir@,$ac_srcdir,;t t
9961ac_file=1 # Number of current file. 17704s,@abs_srcdir@,$ac_abs_srcdir,;t t
9962ac_beg=1 # First line for current file. 17705s,@top_srcdir@,$ac_top_srcdir,;t t
9963ac_end=$ac_max_sed_cmds # Line after last line for current file. 17706s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9964ac_more_lines=: 17707s,@builddir@,$ac_builddir,;t t
9965ac_sed_cmds="" 17708s,@abs_builddir@,$ac_abs_builddir,;t t
9966while $ac_more_lines; do 17709s,@top_builddir@,$ac_top_builddir,;t t
9967 if test $ac_beg -gt 1; then 17710s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9968 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 17711s,@INSTALL@,$ac_INSTALL,;t t
17712" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17713 rm -f $tmp/stdin
17714 if test x"$ac_file" != x-; then
17715 mv $tmp/out $ac_file
9969 else 17716 else
9970 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 17717 cat $tmp/out
17718 rm -f $tmp/out
9971 fi 17719 fi
9972 if test ! -s conftest.s$ac_file; then 17720
9973 ac_more_lines=false
9974 rm -f conftest.s$ac_file
9975 else
9976 if test -z "$ac_sed_cmds"; then
9977 ac_sed_cmds="sed -f conftest.s$ac_file"
9978 else
9979 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9980 fi
9981 ac_file=`expr $ac_file + 1`
9982 ac_beg=$ac_end
9983 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9984 fi
9985done 17721done
9986if test -z "$ac_sed_cmds"; then 17722_ACEOF
9987 ac_sed_cmds=cat
9988fi
9989EOF
9990
9991cat >> $CONFIG_STATUS <<EOF
9992
9993CONFIG_FILES=\${CONFIG_FILES-"autoconf/Make.common \
9994Makefile \
9995doc/Makefile \
9996src/Makefile \
9997src/graphics/Makefile \
9998src/test/Makefile \
9999src/rxvtlib.h \
10000W11/Makefile \
10001"}
10002EOF
10003cat >> $CONFIG_STATUS <<\EOF 17723cat >>$CONFIG_STATUS <<\_ACEOF
10004for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10005 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10006 case "$ac_file" in
10007 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10008 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10009 *) ac_file_in="${ac_file}.in" ;;
10010 esac
10011 17724
10012 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 17725#
10013 17726# CONFIG_HEADER section.
10014 # Remove last slash and all that follows it. Not all systems have dirname. 17727#
10015 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10016 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10017 # The file is in a subdirectory.
10018 test ! -d "$ac_dir" && mkdir "$ac_dir"
10019 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10020 # A "../" for each directory in $ac_dir_suffix.
10021 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10022 else
10023 ac_dir_suffix= ac_dots=
10024 fi
10025
10026 case "$ac_given_srcdir" in
10027 .) srcdir=.
10028 if test -z "$ac_dots"; then top_srcdir=.
10029 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10030 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10031 *) # Relative path.
10032 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10033 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10034 esac
10035
10036 case "$ac_given_INSTALL" in
10037 [/$]*) INSTALL="$ac_given_INSTALL" ;;
10038 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10039 esac
10040
10041 echo creating "$ac_file"
10042 rm -f "$ac_file"
10043 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10044 case "$ac_file" in
10045 *Makefile*) ac_comsub="1i\\
10046# $configure_input" ;;
10047 *) ac_comsub= ;;
10048 esac
10049
10050 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10051 sed -e "$ac_comsub
10052s%@configure_input@%$configure_input%g
10053s%@srcdir@%$srcdir%g
10054s%@top_srcdir@%$top_srcdir%g
10055s%@INSTALL@%$INSTALL%g
10056" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
10057fi; done
10058rm -f conftest.s*
10059 17728
10060# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 17729# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10061# NAME is the cpp macro being defined and VALUE is the value it is being given. 17730# NAME is the cpp macro being defined and VALUE is the value it is being given.
10062# 17731#
10063# ac_d sets the value in "#define NAME VALUE" lines. 17732# ac_d sets the value in "#define NAME VALUE" lines.
10064ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 17733ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10065ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 17734ac_dB='[ ].*$,\1#\2'
10066ac_dC='\3' 17735ac_dC=' '
10067ac_dD='%g' 17736ac_dD=',;t'
10068# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 17737# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10069ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 17738ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10070ac_uB='\([ ]\)%\1#\2define\3' 17739ac_uB='$,\1#\2define\3'
10071ac_uC=' ' 17740ac_uC=' '
10072ac_uD='\4%g' 17741ac_uD=',;t'
10073# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10074ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10075ac_eB='$%\1#\2define\3'
10076ac_eC=' '
10077ac_eD='%g'
10078 17742
10079if test "${CONFIG_HEADERS+set}" != set; then
10080EOF
10081cat >> $CONFIG_STATUS <<EOF
10082 CONFIG_HEADERS="config.h:autoconf/config.h.in"
10083EOF
10084cat >> $CONFIG_STATUS <<\EOF
10085fi
10086for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 17743for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10087 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 17744 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10088 case "$ac_file" in 17745 case $ac_file in
17746 - | *:- | *:-:* ) # input from stdin
17747 cat >$tmp/stdin
17748 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17749 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10089 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 17750 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10090 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 17751 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10091 *) ac_file_in="${ac_file}.in" ;; 17752 * ) ac_file_in=$ac_file.in ;;
10092 esac 17753 esac
10093 17754
10094 echo creating $ac_file 17755 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17756echo "$as_me: creating $ac_file" >&6;}
10095 17757
10096 rm -f conftest.frag conftest.in conftest.out 17758 # First look for the input files in the build tree, otherwise in the
10097 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 17759 # src tree.
10098 cat $ac_file_inputs > conftest.in 17760 ac_file_inputs=`IFS=:
17761 for f in $ac_file_in; do
17762 case $f in
17763 -) echo $tmp/stdin ;;
17764 [\\/$]*)
17765 # Absolute (can't be DOS-style, as IFS=:)
17766 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17767echo "$as_me: error: cannot find input file: $f" >&2;}
17768 { (exit 1); exit 1; }; }
17769 # Do quote $f, to prevent DOS paths from being IFS'd.
17770 echo "$f";;
17771 *) # Relative
17772 if test -f "$f"; then
17773 # Build tree
17774 echo "$f"
17775 elif test -f "$srcdir/$f"; then
17776 # Source tree
17777 echo "$srcdir/$f"
17778 else
17779 # /dev/null tree
17780 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17781echo "$as_me: error: cannot find input file: $f" >&2;}
17782 { (exit 1); exit 1; }; }
17783 fi;;
17784 esac
17785 done` || { (exit 1); exit 1; }
17786 # Remove the trailing spaces.
17787 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10099 17788
10100EOF 17789_ACEOF
10101 17790
10102# Transform confdefs.h into a sed script conftest.vals that substitutes 17791# Transform confdefs.h into two sed scripts, `conftest.defines' and
10103# the proper values into config.h.in to produce config.h. And first: 17792# `conftest.undefs', that substitutes the proper values into
17793# config.h.in to produce config.h. The first handles `#define'
17794# templates, and the second `#undef' templates.
10104# Protect against being on the right side of a sed subst in config.status. 17795# And first: Protect against being on the right side of a sed subst in
10105# Protect against being in an unquoted here document in config.status. 17796# config.status. Protect against being in an unquoted here document
10106rm -f conftest.vals 17797# in config.status.
10107cat > conftest.hdr <<\EOF 17798rm -f conftest.defines conftest.undefs
17799# Using a here document instead of a string reduces the quoting nightmare.
17800# Putting comments in sed scripts is not portable.
17801#
17802# `end' is used to avoid that the second main sed command (meant for
17803# 0-ary CPP macros) applies to n-ary macro definitions.
17804# See the Autoconf documentation for `clear'.
17805cat >confdef2sed.sed <<\_ACEOF
10108s/[\\&%]/\\&/g 17806s/[\\&,]/\\&/g
10109s%[\\$`]%\\&%g 17807s,[\\$`],\\&,g
10110s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 17808t clear
10111s%ac_d%ac_u%gp 17809: clear
10112s%ac_u%ac_e%gp 17810s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10113EOF 17811t end
10114sed -n -f conftest.hdr confdefs.h > conftest.vals 17812s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10115rm -f conftest.hdr 17813: end
17814_ACEOF
17815# If some macros were called several times there might be several times
17816# the same #defines, which is useless. Nevertheless, we may not want to
17817# sort them, since we want the *last* AC-DEFINE to be honored.
17818uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17819sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17820rm -f confdef2sed.sed
10116 17821
10117# This sed command replaces #undef with comments. This is necessary, for 17822# This sed command replaces #undef with comments. This is necessary, for
10118# example, in the case of _POSIX_SOURCE, which is predefined and required 17823# example, in the case of _POSIX_SOURCE, which is predefined and required
10119# on some systems where configure will not decide to define it. 17824# on some systems where configure will not decide to define it.
10120cat >> conftest.vals <<\EOF 17825cat >>conftest.undefs <<\_ACEOF
10121s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 17826s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10122EOF 17827_ACEOF
10123 17828
10124# Break up conftest.vals because some shells have a limit on 17829# Break up conftest.defines because some shells have a limit on the size
10125# the size of here documents, and old seds have small limits too. 17830# of here documents, and old seds have small limits too (100 cmds).
10126 17831echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17832echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17833echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17834echo ' :' >>$CONFIG_STATUS
10127rm -f conftest.tail 17835rm -f conftest.tail
10128while : 17836while grep . conftest.defines >/dev/null
10129do 17837do
10130 ac_lines=`grep -c . conftest.vals`
10131 # grep -c gives empty output for an empty file on some AIX systems.
10132 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10133 # Write a limited-size here document to conftest.frag. 17838 # Write a limited-size here document to $tmp/defines.sed.
10134 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 17839 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17840 # Speed up: don't consider the non `#define' lines.
17841 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17842 # Work around the forget-to-reset-the-flag bug.
17843 echo 't clr' >>$CONFIG_STATUS
17844 echo ': clr' >>$CONFIG_STATUS
10135 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 17845 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10136 echo 'CEOF 17846 echo 'CEOF
10137 sed -f conftest.frag conftest.in > conftest.out 17847 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10138 rm -f conftest.in 17848 rm -f $tmp/in
10139 mv conftest.out conftest.in 17849 mv $tmp/out $tmp/in
10140' >> $CONFIG_STATUS 17850' >>$CONFIG_STATUS
10141 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 17851 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10142 rm -f conftest.vals 17852 rm -f conftest.defines
10143 mv conftest.tail conftest.vals 17853 mv conftest.tail conftest.defines
10144done 17854done
17855rm -f conftest.defines
17856echo ' fi # grep' >>$CONFIG_STATUS
17857echo >>$CONFIG_STATUS
17858
17859# Break up conftest.undefs because some shells have a limit on the size
17860# of here documents, and old seds have small limits too (100 cmds).
17861echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10145rm -f conftest.vals 17862rm -f conftest.tail
17863while grep . conftest.undefs >/dev/null
17864do
17865 # Write a limited-size here document to $tmp/undefs.sed.
17866 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17867 # Speed up: don't consider the non `#undef'
17868 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17869 # Work around the forget-to-reset-the-flag bug.
17870 echo 't clr' >>$CONFIG_STATUS
17871 echo ': clr' >>$CONFIG_STATUS
17872 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17873 echo 'CEOF
17874 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17875 rm -f $tmp/in
17876 mv $tmp/out $tmp/in
17877' >>$CONFIG_STATUS
17878 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17879 rm -f conftest.undefs
17880 mv conftest.tail conftest.undefs
17881done
17882rm -f conftest.undefs
10146 17883
10147cat >> $CONFIG_STATUS <<\EOF 17884cat >>$CONFIG_STATUS <<\_ACEOF
10148 rm -f conftest.frag conftest.h 17885 # Let's still pretend it is `configure' which instantiates (i.e., don't
10149 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 17886 # use $as_me), people would be surprised to read:
10150 cat conftest.in >> conftest.h 17887 # /* config.h. Generated by config.status. */
10151 rm -f conftest.in 17888 if test x"$ac_file" = x-; then
10152 if cmp -s $ac_file conftest.h 2>/dev/null; then 17889 echo "/* Generated by configure. */" >$tmp/config.h
10153 echo "$ac_file is unchanged"
10154 rm -f conftest.h
10155 else 17890 else
10156 # Remove last slash and all that follows it. Not all systems have dirname. 17891 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10157 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 17892 fi
10158 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 17893 cat $tmp/in >>$tmp/config.h
10159 # The file is in a subdirectory. 17894 rm -f $tmp/in
17895 if test x"$ac_file" != x-; then
17896 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17897 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17898echo "$as_me: $ac_file is unchanged" >&6;}
17899 else
17900 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17901$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17902 X"$ac_file" : 'X\(//\)[^/]' \| \
17903 X"$ac_file" : 'X\(//\)$' \| \
17904 X"$ac_file" : 'X\(/\)' \| \
17905 . : '\(.\)' 2>/dev/null ||
17906echo X"$ac_file" |
17907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17908 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17909 /^X\(\/\/\)$/{ s//\1/; q; }
17910 /^X\(\/\).*/{ s//\1/; q; }
17911 s/.*/./; q'`
17912 { if $as_mkdir_p; then
17913 mkdir -p "$ac_dir"
17914 else
17915 as_dir="$ac_dir"
17916 as_dirs=
17917 while test ! -d "$as_dir"; do
17918 as_dirs="$as_dir $as_dirs"
17919 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17920$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17921 X"$as_dir" : 'X\(//\)[^/]' \| \
17922 X"$as_dir" : 'X\(//\)$' \| \
17923 X"$as_dir" : 'X\(/\)' \| \
17924 . : '\(.\)' 2>/dev/null ||
17925echo X"$as_dir" |
17926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17927 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17928 /^X\(\/\/\)$/{ s//\1/; q; }
17929 /^X\(\/\).*/{ s//\1/; q; }
17930 s/.*/./; q'`
17931 done
10160 test ! -d "$ac_dir" && mkdir "$ac_dir" 17932 test ! -n "$as_dirs" || mkdir $as_dirs
17933 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17934echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17935 { (exit 1); exit 1; }; }; }
17936
17937 rm -f $ac_file
17938 mv $tmp/config.h $ac_file
10161 fi 17939 fi
10162 rm -f $ac_file 17940 else
10163 mv conftest.h $ac_file 17941 cat $tmp/config.h
17942 rm -f $tmp/config.h
10164 fi 17943 fi
10165fi; done 17944done
17945_ACEOF
10166 17946
10167EOF
10168cat >> $CONFIG_STATUS <<EOF
10169
10170EOF
10171cat >> $CONFIG_STATUS <<\EOF 17947cat >>$CONFIG_STATUS <<\_ACEOF
10172 17948
10173exit 0 17949{ (exit 0); exit 0; }
10174EOF 17950_ACEOF
10175chmod +x $CONFIG_STATUS 17951chmod +x $CONFIG_STATUS
10176rm -fr confdefs* $ac_clean_files 17952ac_clean_files=$ac_clean_files_save
10177test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 17953
17954
17955# configure is writing to config.log, and then calls config.status.
17956# config.status does its own redirection, appending to config.log.
17957# Unfortunately, on DOS this fails, as config.log is still kept open
17958# by configure, so config.status won't be able to write to it; its
17959# output is simply discarded. So we exec the FD to /dev/null,
17960# effectively closing config.log, so it can be properly (re)opened and
17961# appended to by config.status. When coming back to configure, we
17962# need to make the FD available again.
17963if test "$no_create" != yes; then
17964 ac_cs_success=:
17965 ac_config_status_args=
17966 test "$silent" = yes &&
17967 ac_config_status_args="$ac_config_status_args --quiet"
17968 exec 5>/dev/null
17969 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17970 exec 5>>config.log
17971 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17972 # would make configure fail if this is the last instruction.
17973 $ac_cs_success || { (exit 1); exit 1; }
17974fi
10178 17975
10179 17976
10180echo "Configuration: 17977echo "Configuration:
10181 17978
10182 Rxvt version: $VERSION : $DATE 17979 Rxvt version: $VERSION : $DATE
10183 Source code location: $srcdir 17980 Source code location: $srcdir
10184 Install path: ${prefix}/bin 17981 Install path: ${prefix}/bin
10185 Compiler: $CC 17982 Compiler: $CXX
10186 Compiler flags: $CFLAGS" 17983 Compiler flags: $CFLAGS
17984 Linker: $LINKER"
10187 17985
10188if test "$MALLOC_TYPE" = S; then 17986if test "$MALLOC_TYPE" = S; then
10189 echo " malloc support: system default" 17987 echo " malloc support: system default"
10190fi 17988fi
10191if test "$MALLOC_TYPE" = G; then 17989if test "$MALLOC_TYPE" = G; then
10202echo " 18000echo "
10203The following are set in config.h 18001The following are set in config.h
10204" 18002"
10205echo " pty/tty type: "$rxvt_cv_ptys 18003echo " pty/tty type: "$rxvt_cv_ptys
10206if test x$support_utmp != xyes; then 18004if test x$support_utmp != xyes; then
10207 echo " utmp support: disabled 18005 echo " utmp support: disabled"
10208" 18006 echo
10209else 18007else
10210 echo " utmp support: enabled 18008 echo " utmp support: enabled
10211 utmp file: $rxvt_cv_path_utmp 18009 utmp file: $rxvt_cv_path_utmp
10212 utmpx file: $rxvt_cv_path_utmpx 18010 utmpx file: $rxvt_cv_path_utmpx
10213 wtmp file: $rxvt_cv_path_wtmp 18011 wtmp file: $rxvt_cv_path_wtmp
10214 wtmpx file: $rxvt_cv_path_wtmpx 18012 wtmpx file: $rxvt_cv_path_wtmpx
10215 lastlog file: $rxvt_cv_path_lastlog 18013 lastlog file: $rxvt_cv_path_lastlog
10216 ttys/ttytab file: $rxvt_cv_path_ttytab 18014 ttys/ttytab file: $rxvt_cv_path_ttytab"
10217" 18015 echo
10218fi 18016fi
10219if test x$term != x; then 18017if test x$term != x; then
10220 echo " set TERM to: $term 18018 echo " set TERM to: $term"
10221"
10222fi 18019fi
10223if test x$terminfo != x; then 18020if test x$terminfo != x; then
10224 echo " set TERMINFO to: $terminfo 18021 echo " set TERMINFO to: $terminfo"
10225"
10226fi 18022fi
18023echo " default resource name: $RESNAME"
18024echo " resource class: $RESCLASS"
18025if test x$RESFALLBACK != x; then
18026 echo " resource class fallback: $RESFALLBACK"
18027fi
18028echo
10227if test x$rxvt_cv_ptys = xUNKNOWN; then 18029if test x$rxvt_cv_ptys = xUNKNOWN; then
10228 echo ".----------------------------------------------------------------." 18030 echo ".----------------------------------------------------------------."
10229 echo ". WARNING: could not determine pty/tty type. Do not build until ." 18031 echo ". WARNING: could not determine pty/tty type. Do not build until ."
10230 echo ". the appropriate PTYS_ARE_* is defined in config.h ." 18032 echo ". the appropriate PTYS_ARE_* is defined in config.h ."
10231 echo ".----------------------------------------------------------------." 18033 echo ".----------------------------------------------------------------."
10245 echo ". WARNING: --enable-xim was specified however the locale support ." 18047 echo ". WARNING: --enable-xim was specified however the locale support ."
10246 echo ". functions could not be found. ." 18048 echo ". functions could not be found. ."
10247 echo ". XIM is now being DISABLED! ." 18049 echo ". XIM is now being DISABLED! ."
10248 echo ".----------------------------------------------------------------." 18050 echo ".----------------------------------------------------------------."
10249fi 18051fi
18052
10250echo " *** Please check src/feature.h for further options *** 18053echo " *** Please check src/feature.h for further options ***"
10251" 18054echo
18055
18056echo ".----------------------------------------------------------------."
18057echo ". NOTE: most features are disabled by default, try ."
18058echo ". configure --help to get an idea of the optional features ."
18059echo ".----------------------------------------------------------------."
18060echo
18061

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines