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

Comparing rxvt-unicode/configure (file contents):
Revision 1.1 by pcg, Mon Nov 24 17:28:07 2003 UTC vs.
Revision 1.11 by pcg, Wed Feb 25 12:03:46 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 (hp,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 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 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 RXVTNAME 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
745 939
940#
941# Report the --help message.
942#
943if test "$ac_init_help" = "long"; then
944 # Omit some internal or obsolete options to make the list less imposing.
945 # This message is too long to be a string in the A/UX 3.1 sh.
946 cat <<_ACEOF
947\`configure' configures this package to adapt to many kinds of systems.
948
949Usage: $0 [OPTION]... [VAR=VALUE]...
950
951To assign environment variables (e.g., CC, CFLAGS...), specify them as
952VAR=VALUE. See below for descriptions of some of the useful variables.
953
954Defaults for the options are specified in brackets.
955
956Configuration:
957 -h, --help display this help and exit
958 --help=short display options specific to this package
959 --help=recursive display the short help of all the included packages
960 -V, --version display version information and exit
961 -q, --quiet, --silent do not print \`checking...' messages
962 --cache-file=FILE cache test results in FILE [disabled]
963 -C, --config-cache alias for \`--cache-file=config.cache'
964 -n, --no-create do not create output files
965 --srcdir=DIR find the sources in DIR [configure dir or \`..']
966
967_ACEOF
968
969 cat <<_ACEOF
970Installation directories:
971 --prefix=PREFIX install architecture-independent files in PREFIX
972 [$ac_default_prefix]
973 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
974 [PREFIX]
975
976By default, \`make install' will install all the files in
977\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
978an installation prefix other than \`$ac_default_prefix' using \`--prefix',
979for instance \`--prefix=\$HOME'.
980
981For better control, use the options below.
982
983Fine tuning of the installation directories:
984 --bindir=DIR user executables [EPREFIX/bin]
985 --sbindir=DIR system admin executables [EPREFIX/sbin]
986 --libexecdir=DIR program executables [EPREFIX/libexec]
987 --datadir=DIR read-only architecture-independent data [PREFIX/share]
988 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
989 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
990 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
991 --libdir=DIR object code libraries [EPREFIX/lib]
992 --includedir=DIR C header files [PREFIX/include]
993 --oldincludedir=DIR C header files for non-gcc [/usr/include]
994 --infodir=DIR info documentation [PREFIX/info]
995 --mandir=DIR man documentation [PREFIX/man]
996_ACEOF
997
998 cat <<\_ACEOF
999
1000X features:
1001 --x-includes=DIR X include files are in DIR
1002 --x-libraries=DIR X library files are in DIR
1003
1004Program names:
1005 --program-prefix=PREFIX prepend PREFIX to installed program names
1006 --program-suffix=SUFFIX append SUFFIX to installed program names
1007 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1008
1009System types:
1010 --build=BUILD configure for building on BUILD [guessed]
1011 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1012_ACEOF
1013fi
1014
1015if test -n "$ac_init_help"; then
1016
1017 cat <<\_ACEOF
1018
1019Optional Features:
1020 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1021 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1022 --enable-shared=PKGS build shared libraries default=no
1023 --enable-static=PKGS build static libraries default=yes
1024 --enable-fast-install=PKGS optimize for fast installation default=yes
1025 --disable-libtool-lock avoid locking (might break parallel builds)
1026 --enable-everything enable standard non-multichoice features: marked *
1027 NOTE: this option is order dependent
1028 NOTE: automatically enabled with --enable-shared
1029 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1030 --enable-xft enable xft support on systems that have it
1031 --enable-utmp enable utmp (utmpx) support
1032 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1033 --enable-lastlog enable lastlog support (requires --enable-utmp)
1034 --enable-xpm-background enable XPM background pixmaps
1035 --enable-transparency enable transparent backgrounds
1036 --enable-menubar enable menubar
1037 --enable-rxvt-scroll enable rxvt style scrollbar
1038 --enable-next-scroll enable NeXT style scrollbar
1039 --enable-xterm-scroll enable Xterm style scrollbar
1040 --enable-plain-scroll enable plain style scrollbar
1041 --enable-half-shadow use half width/height shadow on rxvt scrollbar
1042 --enable-xim XIM (X Input Method) protocol support
1043 --enable-ttygid enable tty setting to group named "tty"
1044 --disable-backspace-key disable handling of the backspace key
1045 --disable-delete-key disable handling of the delete key
1046 --disable-resources disable all resource checking
1047 --enable-xgetdefault enable resources via X instead of our small version
1048 --enable-strings enable some replacement system functions
1049 --disable-swapscreen disable swap screen support
1050 --enable-frills enable support for rarely used features
1051 --enable-linespace enable support for linespace
1052 --enable-24bit enable support for using 24bit visuals if available
1053 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1054 --enable-selectionscrolling enable scrolling during selections
1055 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1056 --enable-slipwheeling enable slip wheel scrolling (requires previous)
1057 --enable-old-selection enable v2.20 (& prior) mouse selection style support
1058 --disable-new-selection disable new mouse (xterm) selection style support
1059 --enable-dmalloc enable Gray Watson's malloc - for debugging use
1060 --enable-dlmalloc enable Doug Lea's malloc - for production use
1061 NOTE: enable only one malloc package
1062 --enable-smart-resize enable smart growth/shrink behaviour
1063 --enable-256-color enable 256-color support
1064 --enable-cursor-blink enable blinking cursor
1065 --enable-text-blink enable blinking text
1066 --enable-pointer-blank enable pointer blank when typing or inactive pointer
1067
1068Optional Packages:
1069 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1070 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1071 --with-gnu-ld assume the C compiler uses GNU ld default=no
1072 --with-pic try to use only PIC/non-PIC objects default=use both
1073 --with-codesets=NAME,... compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,vn,all)
1074 --with-encoding=NAME set language default encoding to NAME (default: sjis)
1075 (eucj|sjis|big5|gb|kr|noenc)
1076 --with-term=NAME set the terminal to NAME (default \"rxvt\")
1077 --with-terminfo=PATH set the path to the terminfo tree to PATH
1078 --with-x use the X Window System
1079 --with-xpm-includes=DIR use XPM includes in DIR
1080 --with-xpm-library=DIR use XPM library in DIR
1081 --with-xpm use XPM
1082
1083Some influential environment variables:
1084 CC C compiler command
1085 CFLAGS C compiler flags
1086 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1087 nonstandard directory <lib dir>
1088 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1089 headers in a nonstandard directory <include dir>
1090 CXX C++ compiler command
1091 CXXFLAGS C++ compiler flags
1092 CPP C preprocessor
1093
1094Use these variables to override the choices made by `configure' or to help
1095it to find libraries and programs with nonstandard names/locations.
1096
1097_ACEOF
1098fi
1099
1100if test "$ac_init_help" = "recursive"; then
1101 # If there are subdirs, report their specific --help.
1102 ac_popdir=`pwd`
1103 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1104 test -d $ac_dir || continue
1105 ac_builddir=.
1106
1107if test "$ac_dir" != .; then
1108 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1109 # A "../" for each directory in $ac_dir_suffix.
1110 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1111else
1112 ac_dir_suffix= ac_top_builddir=
1113fi
1114
1115case $srcdir in
1116 .) # No --srcdir option. We are building in place.
1117 ac_srcdir=.
1118 if test -z "$ac_top_builddir"; then
1119 ac_top_srcdir=.
1120 else
1121 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1122 fi ;;
1123 [\\/]* | ?:[\\/]* ) # Absolute path.
1124 ac_srcdir=$srcdir$ac_dir_suffix;
1125 ac_top_srcdir=$srcdir ;;
1126 *) # Relative path.
1127 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1128 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1129esac
1130
1131# Do not use `cd foo && pwd` to compute absolute paths, because
1132# the directories may not exist.
1133case `pwd` in
1134.) ac_abs_builddir="$ac_dir";;
1135*)
1136 case "$ac_dir" in
1137 .) ac_abs_builddir=`pwd`;;
1138 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1139 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1140 esac;;
1141esac
1142case $ac_abs_builddir in
1143.) ac_abs_top_builddir=${ac_top_builddir}.;;
1144*)
1145 case ${ac_top_builddir}. in
1146 .) ac_abs_top_builddir=$ac_abs_builddir;;
1147 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1148 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1149 esac;;
1150esac
1151case $ac_abs_builddir in
1152.) ac_abs_srcdir=$ac_srcdir;;
1153*)
1154 case $ac_srcdir in
1155 .) ac_abs_srcdir=$ac_abs_builddir;;
1156 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1157 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1158 esac;;
1159esac
1160case $ac_abs_builddir in
1161.) ac_abs_top_srcdir=$ac_top_srcdir;;
1162*)
1163 case $ac_top_srcdir in
1164 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1165 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1166 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1167 esac;;
1168esac
1169
1170 cd $ac_dir
1171 # Check for guested configure; otherwise get Cygnus style configure.
1172 if test -f $ac_srcdir/configure.gnu; then
1173 echo
1174 $SHELL $ac_srcdir/configure.gnu --help=recursive
1175 elif test -f $ac_srcdir/configure; then
1176 echo
1177 $SHELL $ac_srcdir/configure --help=recursive
1178 elif test -f $ac_srcdir/configure.ac ||
1179 test -f $ac_srcdir/configure.in; then
1180 echo
1181 $ac_configure --help
1182 else
1183 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1184 fi
1185 cd "$ac_popdir"
1186 done
1187fi
1188
1189test -n "$ac_init_help" && exit 0
1190if $ac_init_version; then
1191 cat <<\_ACEOF
1192
1193Copyright (C) 2003 Free Software Foundation, Inc.
1194This configure script is free software; the Free Software Foundation
1195gives unlimited permission to copy, distribute and modify it.
1196_ACEOF
1197 exit 0
1198fi
1199exec 5>config.log
1200cat >&5 <<_ACEOF
1201This file contains any messages produced by compilers while
1202running configure, to aid debugging if configure makes a mistake.
1203
1204It was created by $as_me, which was
1205generated by GNU Autoconf 2.59. Invocation command line was
1206
1207 $ $0 $@
1208
1209_ACEOF
1210{
1211cat <<_ASUNAME
1212## --------- ##
1213## Platform. ##
1214## --------- ##
1215
1216hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1217uname -m = `(uname -m) 2>/dev/null || echo unknown`
1218uname -r = `(uname -r) 2>/dev/null || echo unknown`
1219uname -s = `(uname -s) 2>/dev/null || echo unknown`
1220uname -v = `(uname -v) 2>/dev/null || echo unknown`
1221
1222/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1223/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1224
1225/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1226/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1227/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1228hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1229/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1230/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1231/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1232
1233_ASUNAME
1234
1235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1236for as_dir in $PATH
1237do
1238 IFS=$as_save_IFS
1239 test -z "$as_dir" && as_dir=.
1240 echo "PATH: $as_dir"
1241done
1242
1243} >&5
1244
1245cat >&5 <<_ACEOF
1246
1247
1248## ----------- ##
1249## Core tests. ##
1250## ----------- ##
1251
1252_ACEOF
1253
1254
1255# Keep a trace of the command line.
1256# Strip out --no-create and --no-recursion so they do not pile up.
1257# Strip out --silent because we don't want to record it for future runs.
1258# Also quote any args containing shell meta-characters.
1259# Make two passes to allow for proper duplicate-argument suppression.
1260ac_configure_args=
1261ac_configure_args0=
1262ac_configure_args1=
1263ac_sep=
1264ac_must_keep_next=false
1265for ac_pass in 1 2
1266do
1267 for ac_arg
1268 do
1269 case $ac_arg in
1270 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1271 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1272 | -silent | --silent | --silen | --sile | --sil)
1273 continue ;;
1274 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1275 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1276 esac
1277 case $ac_pass in
1278 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1279 2)
1280 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1281 if test $ac_must_keep_next = true; then
1282 ac_must_keep_next=false # Got value, back to normal.
1283 else
1284 case $ac_arg in
1285 *=* | --config-cache | -C | -disable-* | --disable-* \
1286 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1287 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1288 | -with-* | --with-* | -without-* | --without-* | --x)
1289 case "$ac_configure_args0 " in
1290 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1291 esac
1292 ;;
1293 -* ) ac_must_keep_next=true ;;
1294 esac
1295 fi
1296 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1297 # Get rid of the leading space.
1298 ac_sep=" "
1299 ;;
1300 esac
1301 done
1302done
1303$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1304$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1305
1306# When interrupted or exit'd, cleanup temporary files, and complete
1307# config.log. We remove comments because anyway the quotes in there
1308# would cause problems or look ugly.
1309# WARNING: Be sure not to use single quotes in there, as some shells,
1310# such as our DU 5.0 friend, will then `close' the trap.
1311trap 'exit_status=$?
1312 # Save into config.log some information that might help in debugging.
1313 {
1314 echo
1315
1316 cat <<\_ASBOX
1317## ---------------- ##
1318## Cache variables. ##
1319## ---------------- ##
1320_ASBOX
1321 echo
1322 # The following way of writing the cache mishandles newlines in values,
1323{
1324 (set) 2>&1 |
1325 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1326 *ac_space=\ *)
1327 sed -n \
1328 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1329 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1330 ;;
1331 *)
1332 sed -n \
1333 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1334 ;;
1335 esac;
1336}
1337 echo
1338
1339 cat <<\_ASBOX
1340## ----------------- ##
1341## Output variables. ##
1342## ----------------- ##
1343_ASBOX
1344 echo
1345 for ac_var in $ac_subst_vars
1346 do
1347 eval ac_val=$`echo $ac_var`
1348 echo "$ac_var='"'"'$ac_val'"'"'"
1349 done | sort
1350 echo
1351
1352 if test -n "$ac_subst_files"; then
1353 cat <<\_ASBOX
1354## ------------- ##
1355## Output files. ##
1356## ------------- ##
1357_ASBOX
1358 echo
1359 for ac_var in $ac_subst_files
1360 do
1361 eval ac_val=$`echo $ac_var`
1362 echo "$ac_var='"'"'$ac_val'"'"'"
1363 done | sort
1364 echo
1365 fi
1366
1367 if test -s confdefs.h; then
1368 cat <<\_ASBOX
1369## ----------- ##
1370## confdefs.h. ##
1371## ----------- ##
1372_ASBOX
1373 echo
1374 sed "/^$/d" confdefs.h | sort
1375 echo
1376 fi
1377 test "$ac_signal" != 0 &&
1378 echo "$as_me: caught signal $ac_signal"
1379 echo "$as_me: exit $exit_status"
1380 } >&5
1381 rm -f core *.core &&
1382 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1383 exit $exit_status
1384 ' 0
1385for ac_signal in 1 2 13 15; do
1386 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1387done
1388ac_signal=0
1389
1390# confdefs.h avoids OS command line length limits that DEFS can exceed.
1391rm -rf conftest* confdefs.h
1392# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1393echo >confdefs.h
1394
1395# Predefined preprocessor variables.
1396
1397cat >>confdefs.h <<_ACEOF
1398#define PACKAGE_NAME "$PACKAGE_NAME"
1399_ACEOF
1400
1401
1402cat >>confdefs.h <<_ACEOF
1403#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1404_ACEOF
1405
1406
1407cat >>confdefs.h <<_ACEOF
1408#define PACKAGE_VERSION "$PACKAGE_VERSION"
1409_ACEOF
1410
1411
1412cat >>confdefs.h <<_ACEOF
1413#define PACKAGE_STRING "$PACKAGE_STRING"
1414_ACEOF
1415
1416
1417cat >>confdefs.h <<_ACEOF
1418#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1419_ACEOF
1420
1421
1422# Let the site file select an alternate cache file if it wants to.
746# Prefer explicitly selected file to automatically selected ones. 1423# Prefer explicitly selected file to automatically selected ones.
747if test -z "$CONFIG_SITE"; then 1424if test -z "$CONFIG_SITE"; then
748 if test "x$prefix" != xNONE; then 1425 if test "x$prefix" != xNONE; then
749 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1426 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
750 else 1427 else
751 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1428 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
752 fi 1429 fi
753fi 1430fi
754for ac_site_file in $CONFIG_SITE; do 1431for ac_site_file in $CONFIG_SITE; do
755 if test -r "$ac_site_file"; then 1432 if test -r "$ac_site_file"; then
1433 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
756 echo "loading site script $ac_site_file" 1434echo "$as_me: loading site script $ac_site_file" >&6;}
1435 sed 's/^/| /' "$ac_site_file" >&5
757 . "$ac_site_file" 1436 . "$ac_site_file"
758 fi 1437 fi
759done 1438done
760 1439
761if test -r "$cache_file"; then 1440if test -r "$cache_file"; then
1441 # Some versions of bash will fail to source /dev/null (special
1442 # files actually), so we avoid doing that.
1443 if test -f "$cache_file"; then
1444 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
762 echo "loading cache $cache_file" 1445echo "$as_me: loading cache $cache_file" >&6;}
763 . $cache_file 1446 case $cache_file in
1447 [\\/]* | ?:[\\/]* ) . $cache_file;;
1448 *) . ./$cache_file;;
1449 esac
1450 fi
764else 1451else
1452 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
765 echo "creating cache $cache_file" 1453echo "$as_me: creating cache $cache_file" >&6;}
766 > $cache_file 1454 >$cache_file
1455fi
1456
1457# Check that the precious variables saved in the cache have kept the same
1458# value.
1459ac_cache_corrupted=false
1460for ac_var in `(set) 2>&1 |
1461 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1462 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1463 eval ac_new_set=\$ac_env_${ac_var}_set
1464 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1465 eval ac_new_val="\$ac_env_${ac_var}_value"
1466 case $ac_old_set,$ac_new_set in
1467 set,)
1468 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1469echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1470 ac_cache_corrupted=: ;;
1471 ,set)
1472 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1473echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1474 ac_cache_corrupted=: ;;
1475 ,);;
1476 *)
1477 if test "x$ac_old_val" != "x$ac_new_val"; then
1478 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1479echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1480 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1481echo "$as_me: former value: $ac_old_val" >&2;}
1482 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1483echo "$as_me: current value: $ac_new_val" >&2;}
1484 ac_cache_corrupted=:
1485 fi;;
1486 esac
1487 # Pass precious variables to config.status.
1488 if test "$ac_new_set" = set; then
1489 case $ac_new_val in
1490 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1491 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1492 *) ac_arg=$ac_var=$ac_new_val ;;
1493 esac
1494 case " $ac_configure_args " in
1495 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1496 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1497 esac
1498 fi
1499done
1500if $ac_cache_corrupted; then
1501 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1502echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1503 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1504echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1505 { (exit 1); exit 1; }; }
767fi 1506fi
768 1507
769ac_ext=c 1508ac_ext=c
770# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
771ac_cpp='$CPP $CPPFLAGS' 1509ac_cpp='$CPP $CPPFLAGS'
772ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1510ac_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' 1511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
774cross_compiling=$ac_cv_prog_cc_cross 1512ac_compiler_gnu=$ac_cv_c_compiler_gnu
775 1513
776ac_exeext= 1514
777ac_objext=o 1515
778if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 1516
779 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 1517
780 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 1518
781 ac_n= ac_c=' 1519
782' ac_t=' ' 1520
783 else 1521
784 ac_n=-n ac_c= ac_t= 1522
785 fi 1523
786else 1524
787 ac_n= ac_c='\c' ac_t= 1525
788fi 1526
1527
1528
1529
789 1530
790 1531
791ac_aux_dir= 1532ac_aux_dir=
792for ac_dir in autoconf $srcdir/autoconf; do 1533for ac_dir in autoconf $srcdir/autoconf; do
793 if test -f $ac_dir/install-sh; then 1534 if test -f $ac_dir/install-sh; then
796 break 1537 break
797 elif test -f $ac_dir/install.sh; then 1538 elif test -f $ac_dir/install.sh; then
798 ac_aux_dir=$ac_dir 1539 ac_aux_dir=$ac_dir
799 ac_install_sh="$ac_aux_dir/install.sh -c" 1540 ac_install_sh="$ac_aux_dir/install.sh -c"
800 break 1541 break
1542 elif test -f $ac_dir/shtool; then
1543 ac_aux_dir=$ac_dir
1544 ac_install_sh="$ac_aux_dir/shtool install -c"
1545 break
801 fi 1546 fi
802done 1547done
803if test -z "$ac_aux_dir"; then 1548if test -z "$ac_aux_dir"; then
1549 { { 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; } 1550echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1551 { (exit 1); exit 1; }; }
805fi 1552fi
806ac_config_guess=$ac_aux_dir/config.guess 1553ac_config_guess="$SHELL $ac_aux_dir/config.guess"
807ac_config_sub=$ac_aux_dir/config.sub 1554ac_config_sub="$SHELL $ac_aux_dir/config.sub"
808ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 1555ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
809 1556
1557 ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in"
810 1558
811 1559
812VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1560VERSION=`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` 1561DATE=`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` 1562LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
816echo "" 1564echo ""
817echo "configuring for rxvt $VERSION" 1565echo "configuring for rxvt $VERSION"
818echo "" 1566echo ""
819 1567
820 1568
1569ac_ext=c
1570ac_cpp='$CPP $CPPFLAGS'
1571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1573ac_compiler_gnu=$ac_cv_c_compiler_gnu
1574if test -n "$ac_tool_prefix"; then
821# Extract the first word of "gcc", so it can be a program name with args. 1575 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
822set dummy gcc; ac_word=$2 1576set dummy ${ac_tool_prefix}gcc; ac_word=$2
1577echo "$as_me:$LINENO: checking for $ac_word" >&5
823echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1578echo $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 1579if test "${ac_cv_prog_CC+set}" = set; then
826 echo $ac_n "(cached) $ac_c" 1>&6 1580 echo $ECHO_N "(cached) $ECHO_C" >&6
827else 1581else
828 if test -n "$CC"; then 1582 if test -n "$CC"; then
829 ac_cv_prog_CC="$CC" # Let the user override the test. 1583 ac_cv_prog_CC="$CC" # Let the user override the test.
830else 1584else
831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
832 ac_dummy="$PATH" 1586for as_dir in $PATH
833 for ac_dir in $ac_dummy; do 1587do
1588 IFS=$as_save_IFS
834 test -z "$ac_dir" && ac_dir=. 1589 test -z "$as_dir" && as_dir=.
835 if test -f $ac_dir/$ac_word; then 1590 for ac_exec_ext in '' $ac_executable_extensions; do
836 ac_cv_prog_CC="gcc" 1591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1592 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
837 break 1594 break 2
838 fi 1595 fi
839 done 1596done
840 IFS="$ac_save_ifs" 1597done
1598
841fi 1599fi
842fi 1600fi
843CC="$ac_cv_prog_CC" 1601CC=$ac_cv_prog_CC
844if test -n "$CC"; then 1602if test -n "$CC"; then
845 echo "$ac_t""$CC" 1>&6 1603 echo "$as_me:$LINENO: result: $CC" >&5
1604echo "${ECHO_T}$CC" >&6
846else 1605else
847 echo "$ac_t""no" 1>&6 1606 echo "$as_me:$LINENO: result: no" >&5
1607echo "${ECHO_T}no" >&6
848fi 1608fi
849 1609
1610fi
1611if test -z "$ac_cv_prog_CC"; then
1612 ac_ct_CC=$CC
1613 # Extract the first word of "gcc", so it can be a program name with args.
1614set dummy gcc; ac_word=$2
1615echo "$as_me:$LINENO: checking for $ac_word" >&5
1616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1617if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1618 echo $ECHO_N "(cached) $ECHO_C" >&6
1619else
1620 if test -n "$ac_ct_CC"; then
1621 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1622else
1623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1624for as_dir in $PATH
1625do
1626 IFS=$as_save_IFS
1627 test -z "$as_dir" && as_dir=.
1628 for ac_exec_ext in '' $ac_executable_extensions; do
1629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1630 ac_cv_prog_ac_ct_CC="gcc"
1631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1632 break 2
1633 fi
1634done
1635done
1636
1637fi
1638fi
1639ac_ct_CC=$ac_cv_prog_ac_ct_CC
1640if test -n "$ac_ct_CC"; then
1641 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1642echo "${ECHO_T}$ac_ct_CC" >&6
1643else
1644 echo "$as_me:$LINENO: result: no" >&5
1645echo "${ECHO_T}no" >&6
1646fi
1647
1648 CC=$ac_ct_CC
1649else
1650 CC="$ac_cv_prog_CC"
1651fi
1652
1653if test -z "$CC"; then
1654 if test -n "$ac_tool_prefix"; then
1655 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1656set dummy ${ac_tool_prefix}cc; ac_word=$2
1657echo "$as_me:$LINENO: checking for $ac_word" >&5
1658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1659if test "${ac_cv_prog_CC+set}" = set; then
1660 echo $ECHO_N "(cached) $ECHO_C" >&6
1661else
1662 if test -n "$CC"; then
1663 ac_cv_prog_CC="$CC" # Let the user override the test.
1664else
1665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666for as_dir in $PATH
1667do
1668 IFS=$as_save_IFS
1669 test -z "$as_dir" && as_dir=.
1670 for ac_exec_ext in '' $ac_executable_extensions; do
1671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1672 ac_cv_prog_CC="${ac_tool_prefix}cc"
1673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1674 break 2
1675 fi
1676done
1677done
1678
1679fi
1680fi
1681CC=$ac_cv_prog_CC
1682if test -n "$CC"; then
1683 echo "$as_me:$LINENO: result: $CC" >&5
1684echo "${ECHO_T}$CC" >&6
1685else
1686 echo "$as_me:$LINENO: result: no" >&5
1687echo "${ECHO_T}no" >&6
1688fi
1689
1690fi
1691if test -z "$ac_cv_prog_CC"; then
1692 ac_ct_CC=$CC
1693 # Extract the first word of "cc", so it can be a program name with args.
1694set dummy cc; ac_word=$2
1695echo "$as_me:$LINENO: checking for $ac_word" >&5
1696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1697if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1698 echo $ECHO_N "(cached) $ECHO_C" >&6
1699else
1700 if test -n "$ac_ct_CC"; then
1701 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1702else
1703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1704for as_dir in $PATH
1705do
1706 IFS=$as_save_IFS
1707 test -z "$as_dir" && as_dir=.
1708 for ac_exec_ext in '' $ac_executable_extensions; do
1709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1710 ac_cv_prog_ac_ct_CC="cc"
1711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1712 break 2
1713 fi
1714done
1715done
1716
1717fi
1718fi
1719ac_ct_CC=$ac_cv_prog_ac_ct_CC
1720if test -n "$ac_ct_CC"; then
1721 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1722echo "${ECHO_T}$ac_ct_CC" >&6
1723else
1724 echo "$as_me:$LINENO: result: no" >&5
1725echo "${ECHO_T}no" >&6
1726fi
1727
1728 CC=$ac_ct_CC
1729else
1730 CC="$ac_cv_prog_CC"
1731fi
1732
1733fi
850if test -z "$CC"; then 1734if test -z "$CC"; then
851 # Extract the first word of "cc", so it can be a program name with args. 1735 # Extract the first word of "cc", so it can be a program name with args.
852set dummy cc; ac_word=$2 1736set dummy cc; ac_word=$2
1737echo "$as_me:$LINENO: checking for $ac_word" >&5
853echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1738echo $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 1739if test "${ac_cv_prog_CC+set}" = set; then
856 echo $ac_n "(cached) $ac_c" 1>&6 1740 echo $ECHO_N "(cached) $ECHO_C" >&6
857else 1741else
858 if test -n "$CC"; then 1742 if test -n "$CC"; then
859 ac_cv_prog_CC="$CC" # Let the user override the test. 1743 ac_cv_prog_CC="$CC" # Let the user override the test.
860else 1744else
861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
862 ac_prog_rejected=no 1745 ac_prog_rejected=no
863 ac_dummy="$PATH" 1746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
864 for ac_dir in $ac_dummy; do 1747for as_dir in $PATH
1748do
1749 IFS=$as_save_IFS
865 test -z "$ac_dir" && ac_dir=. 1750 test -z "$as_dir" && as_dir=.
866 if test -f $ac_dir/$ac_word; then 1751 for ac_exec_ext in '' $ac_executable_extensions; do
1752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
867 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1753 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
868 ac_prog_rejected=yes 1754 ac_prog_rejected=yes
869 continue 1755 continue
870 fi 1756 fi
871 ac_cv_prog_CC="cc" 1757 ac_cv_prog_CC="cc"
1758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
872 break 1759 break 2
873 fi 1760 fi
874 done 1761done
875 IFS="$ac_save_ifs" 1762done
1763
876if test $ac_prog_rejected = yes; then 1764if test $ac_prog_rejected = yes; then
877 # We found a bogon in the path, so make sure we never use it. 1765 # We found a bogon in the path, so make sure we never use it.
878 set dummy $ac_cv_prog_CC 1766 set dummy $ac_cv_prog_CC
879 shift 1767 shift
880 if test $# -gt 0; then 1768 if test $# != 0; then
881 # We chose a different compiler from the bogus one. 1769 # We chose a different compiler from the bogus one.
882 # However, it has the same basename, so the bogon will be chosen 1770 # 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. 1771 # first if we set CC to just the basename; use the full file name.
884 shift 1772 shift
885 set dummy "$ac_dir/$ac_word" "$@" 1773 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
886 shift
887 ac_cv_prog_CC="$@"
888 fi 1774 fi
889fi 1775fi
890fi 1776fi
891fi 1777fi
892CC="$ac_cv_prog_CC" 1778CC=$ac_cv_prog_CC
893if test -n "$CC"; then 1779if test -n "$CC"; then
894 echo "$ac_t""$CC" 1>&6 1780 echo "$as_me:$LINENO: result: $CC" >&5
1781echo "${ECHO_T}$CC" >&6
895else 1782else
896 echo "$ac_t""no" 1>&6 1783 echo "$as_me:$LINENO: result: no" >&5
1784echo "${ECHO_T}no" >&6
897fi 1785fi
898 1786
1787fi
899 if test -z "$CC"; then 1788if test -z "$CC"; then
900 case "`uname -s`" in 1789 if test -n "$ac_tool_prefix"; then
901 *win32* | *WIN32*) 1790 for ac_prog in cl
1791 do
902 # Extract the first word of "cl", so it can be a program name with args. 1792 # 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 1793set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1794echo "$as_me:$LINENO: checking for $ac_word" >&5
904echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1795echo $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 1796if test "${ac_cv_prog_CC+set}" = set; then
907 echo $ac_n "(cached) $ac_c" 1>&6 1797 echo $ECHO_N "(cached) $ECHO_C" >&6
908else 1798else
909 if test -n "$CC"; then 1799 if test -n "$CC"; then
910 ac_cv_prog_CC="$CC" # Let the user override the test. 1800 ac_cv_prog_CC="$CC" # Let the user override the test.
911else 1801else
912 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
913 ac_dummy="$PATH" 1803for as_dir in $PATH
914 for ac_dir in $ac_dummy; do 1804do
1805 IFS=$as_save_IFS
915 test -z "$ac_dir" && ac_dir=. 1806 test -z "$as_dir" && as_dir=.
916 if test -f $ac_dir/$ac_word; then 1807 for ac_exec_ext in '' $ac_executable_extensions; do
917 ac_cv_prog_CC="cl" 1808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1809 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
918 break 1811 break 2
1812 fi
1813done
1814done
1815
1816fi
1817fi
1818CC=$ac_cv_prog_CC
1819if test -n "$CC"; then
1820 echo "$as_me:$LINENO: result: $CC" >&5
1821echo "${ECHO_T}$CC" >&6
1822else
1823 echo "$as_me:$LINENO: result: no" >&5
1824echo "${ECHO_T}no" >&6
1825fi
1826
1827 test -n "$CC" && break
1828 done
1829fi
1830if test -z "$CC"; then
1831 ac_ct_CC=$CC
1832 for ac_prog in cl
1833do
1834 # Extract the first word of "$ac_prog", so it can be a program name with args.
1835set dummy $ac_prog; ac_word=$2
1836echo "$as_me:$LINENO: checking for $ac_word" >&5
1837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1838if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1839 echo $ECHO_N "(cached) $ECHO_C" >&6
1840else
1841 if test -n "$ac_ct_CC"; then
1842 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1843else
1844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1845for as_dir in $PATH
1846do
1847 IFS=$as_save_IFS
1848 test -z "$as_dir" && as_dir=.
1849 for ac_exec_ext in '' $ac_executable_extensions; do
1850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1851 ac_cv_prog_ac_ct_CC="$ac_prog"
1852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1853 break 2
1854 fi
1855done
1856done
1857
1858fi
1859fi
1860ac_ct_CC=$ac_cv_prog_ac_ct_CC
1861if test -n "$ac_ct_CC"; then
1862 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1863echo "${ECHO_T}$ac_ct_CC" >&6
1864else
1865 echo "$as_me:$LINENO: result: no" >&5
1866echo "${ECHO_T}no" >&6
1867fi
1868
1869 test -n "$ac_ct_CC" && break
1870done
1871
1872 CC=$ac_ct_CC
1873fi
1874
1875fi
1876
1877
1878test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1879See \`config.log' for more details." >&5
1880echo "$as_me: error: no acceptable C compiler found in \$PATH
1881See \`config.log' for more details." >&2;}
1882 { (exit 1); exit 1; }; }
1883
1884# Provide some information about the compiler.
1885echo "$as_me:$LINENO:" \
1886 "checking for C compiler version" >&5
1887ac_compiler=`set X $ac_compile; echo $2`
1888{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1889 (eval $ac_compiler --version </dev/null >&5) 2>&5
1890 ac_status=$?
1891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1892 (exit $ac_status); }
1893{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1894 (eval $ac_compiler -v </dev/null >&5) 2>&5
1895 ac_status=$?
1896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1897 (exit $ac_status); }
1898{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1899 (eval $ac_compiler -V </dev/null >&5) 2>&5
1900 ac_status=$?
1901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1902 (exit $ac_status); }
1903
1904cat >conftest.$ac_ext <<_ACEOF
1905/* confdefs.h. */
1906_ACEOF
1907cat confdefs.h >>conftest.$ac_ext
1908cat >>conftest.$ac_ext <<_ACEOF
1909/* end confdefs.h. */
1910
1911int
1912main ()
1913{
1914
1915 ;
1916 return 0;
1917}
1918_ACEOF
1919ac_clean_files_save=$ac_clean_files
1920ac_clean_files="$ac_clean_files a.out a.exe b.out"
1921# Try to create an executable without -o first, disregard a.out.
1922# It will help us diagnose broken compilers, and finding out an intuition
1923# of exeext.
1924echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1925echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1926ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1927if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1928 (eval $ac_link_default) 2>&5
1929 ac_status=$?
1930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1931 (exit $ac_status); }; then
1932 # Find the output, starting from the most likely. This scheme is
1933# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1934# resort.
1935
1936# Be careful to initialize this variable, since it used to be cached.
1937# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1938ac_cv_exeext=
1939# b.out is created by i960 compilers.
1940for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1941do
1942 test -f "$ac_file" || continue
1943 case $ac_file in
1944 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1945 ;;
1946 conftest.$ac_ext )
1947 # This is the source file.
1948 ;;
1949 [ab].out )
1950 # We found the default executable, but exeext='' is most
1951 # certainly right.
1952 break;;
1953 *.* )
1954 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1955 # FIXME: I believe we export ac_cv_exeext for Libtool,
1956 # but it would be cool to find out if it's true. Does anybody
1957 # maintain Libtool? --akim.
1958 export ac_cv_exeext
1959 break;;
1960 * )
1961 break;;
1962 esac
1963done
1964else
1965 echo "$as_me: failed program was:" >&5
1966sed 's/^/| /' conftest.$ac_ext >&5
1967
1968{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1969See \`config.log' for more details." >&5
1970echo "$as_me: error: C compiler cannot create executables
1971See \`config.log' for more details." >&2;}
1972 { (exit 77); exit 77; }; }
1973fi
1974
1975ac_exeext=$ac_cv_exeext
1976echo "$as_me:$LINENO: result: $ac_file" >&5
1977echo "${ECHO_T}$ac_file" >&6
1978
1979# Check the compiler produces executables we can run. If not, either
1980# the compiler is broken, or we cross compile.
1981echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1982echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1983# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1984# If not cross compiling, check that we can run a simple program.
1985if test "$cross_compiling" != yes; then
1986 if { ac_try='./$ac_file'
1987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1988 (eval $ac_try) 2>&5
1989 ac_status=$?
1990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1991 (exit $ac_status); }; }; then
1992 cross_compiling=no
1993 else
1994 if test "$cross_compiling" = maybe; then
1995 cross_compiling=yes
1996 else
1997 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1998If you meant to cross compile, use \`--host'.
1999See \`config.log' for more details." >&5
2000echo "$as_me: error: cannot run C compiled programs.
2001If you meant to cross compile, use \`--host'.
2002See \`config.log' for more details." >&2;}
2003 { (exit 1); exit 1; }; }
919 fi 2004 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 2005 fi
933 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
934fi 2006fi
2007echo "$as_me:$LINENO: result: yes" >&5
2008echo "${ECHO_T}yes" >&6
935 2009
936echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 2010rm -f a.out a.exe conftest$ac_cv_exeext b.out
937echo "configure:938: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 2011ac_clean_files=$ac_clean_files_save
2012# Check the compiler produces executables we can run. If not, either
2013# the compiler is broken, or we cross compile.
2014echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2015echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2016echo "$as_me:$LINENO: result: $cross_compiling" >&5
2017echo "${ECHO_T}$cross_compiling" >&6
938 2018
939ac_ext=c 2019echo "$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. 2020echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
941ac_cpp='$CPP $CPPFLAGS' 2021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
942ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2022 (eval $ac_link) 2>&5
943ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2023 ac_status=$?
944cross_compiling=$ac_cv_prog_cc_cross 2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); }; then
2026 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2027# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2028# work properly (i.e., refer to `conftest.exe'), while it won't with
2029# `rm'.
2030for ac_file in conftest.exe conftest conftest.*; do
2031 test -f "$ac_file" || continue
2032 case $ac_file in
2033 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2034 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2035 export ac_cv_exeext
2036 break;;
2037 * ) break;;
2038 esac
2039done
2040else
2041 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2042See \`config.log' for more details." >&5
2043echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2044See \`config.log' for more details." >&2;}
2045 { (exit 1); exit 1; }; }
2046fi
945 2047
2048rm -f conftest$ac_cv_exeext
2049echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2050echo "${ECHO_T}$ac_cv_exeext" >&6
2051
2052rm -f conftest.$ac_ext
2053EXEEXT=$ac_cv_exeext
2054ac_exeext=$EXEEXT
2055echo "$as_me:$LINENO: checking for suffix of object files" >&5
2056echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2057if test "${ac_cv_objext+set}" = set; then
2058 echo $ECHO_N "(cached) $ECHO_C" >&6
2059else
2060 cat >conftest.$ac_ext <<_ACEOF
2061/* confdefs.h. */
2062_ACEOF
2063cat confdefs.h >>conftest.$ac_ext
946cat > conftest.$ac_ext << EOF 2064cat >>conftest.$ac_ext <<_ACEOF
2065/* end confdefs.h. */
947 2066
948#line 949 "configure" 2067int
949#include "confdefs.h" 2068main ()
2069{
950 2070
951main(){return(0);} 2071 ;
952EOF 2072 return 0;
953if { (eval echo configure:954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2073}
954 ac_cv_prog_cc_works=yes 2074_ACEOF
955 # If we can't run a trivial program, we are probably using a cross compiler. 2075rm -f conftest.o conftest.obj
956 if (./conftest; exit) 2>/dev/null; then 2076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
957 ac_cv_prog_cc_cross=no 2077 (eval $ac_compile) 2>&5
2078 ac_status=$?
2079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080 (exit $ac_status); }; then
2081 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2082 case $ac_file in
2083 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2084 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2085 break;;
2086 esac
2087done
958 else 2088else
959 ac_cv_prog_cc_cross=yes
960 fi
961else
962 echo "configure: failed program was:" >&5 2089 echo "$as_me: failed program was:" >&5
963 cat conftest.$ac_ext >&5 2090sed '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 2091
974echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 2092{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
975if test $ac_cv_prog_cc_works = no; then 2093See \`config.log' for more details." >&5
976 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 2094echo "$as_me: error: cannot compute suffix of object files: cannot compile
2095See \`config.log' for more details." >&2;}
2096 { (exit 1); exit 1; }; }
977fi 2097fi
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 2098
2099rm -f conftest.$ac_cv_objext conftest.$ac_ext
2100fi
2101echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2102echo "${ECHO_T}$ac_cv_objext" >&6
2103OBJEXT=$ac_cv_objext
2104ac_objext=$OBJEXT
2105echo "$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 2106echo $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 2107if 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 2108 echo $ECHO_N "(cached) $ECHO_C" >&6
987else 2109else
988 cat > conftest.c <<EOF 2110 cat >conftest.$ac_ext <<_ACEOF
2111/* confdefs.h. */
2112_ACEOF
2113cat confdefs.h >>conftest.$ac_ext
2114cat >>conftest.$ac_ext <<_ACEOF
2115/* end confdefs.h. */
2116
2117int
2118main ()
2119{
989#ifdef __GNUC__ 2120#ifndef __GNUC__
990 yes; 2121 choke me
991#endif 2122#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 2123
1000echo "$ac_t""$ac_cv_prog_gcc" 1>&6 2124 ;
1001 2125 return 0;
1002if test $ac_cv_prog_gcc = yes; then 2126}
1003 GCC=yes 2127_ACEOF
2128rm -f conftest.$ac_objext
2129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2130 (eval $ac_compile) 2>conftest.er1
2131 ac_status=$?
2132 grep -v '^ *+' conftest.er1 >conftest.err
2133 rm -f conftest.er1
2134 cat conftest.err >&5
2135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136 (exit $ac_status); } &&
2137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2139 (eval $ac_try) 2>&5
2140 ac_status=$?
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }; } &&
2143 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2149 ac_compiler_gnu=yes
1004else 2150else
1005 GCC= 2151 echo "$as_me: failed program was:" >&5
1006fi 2152sed 's/^/| /' conftest.$ac_ext >&5
1007 2153
2154ac_compiler_gnu=no
2155fi
2156rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2157ac_cv_c_compiler_gnu=$ac_compiler_gnu
2158
2159fi
2160echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2161echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2162GCC=`test $ac_compiler_gnu = yes && echo yes`
1008ac_test_CFLAGS="${CFLAGS+set}" 2163ac_test_CFLAGS=${CFLAGS+set}
1009ac_save_CFLAGS="$CFLAGS" 2164ac_save_CFLAGS=$CFLAGS
1010CFLAGS= 2165CFLAGS="-g"
2166echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1011echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 2167echo $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 2168if test "${ac_cv_prog_cc_g+set}" = set; then
1014 echo $ac_n "(cached) $ac_c" 1>&6 2169 echo $ECHO_N "(cached) $ECHO_C" >&6
1015else 2170else
1016 echo 'void f(){}' > conftest.c 2171 cat >conftest.$ac_ext <<_ACEOF
1017if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 2172/* confdefs.h. */
2173_ACEOF
2174cat confdefs.h >>conftest.$ac_ext
2175cat >>conftest.$ac_ext <<_ACEOF
2176/* end confdefs.h. */
2177
2178int
2179main ()
2180{
2181
2182 ;
2183 return 0;
2184}
2185_ACEOF
2186rm -f conftest.$ac_objext
2187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2188 (eval $ac_compile) 2>conftest.er1
2189 ac_status=$?
2190 grep -v '^ *+' conftest.er1 >conftest.err
2191 rm -f conftest.er1
2192 cat conftest.err >&5
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); } &&
2195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2197 (eval $ac_try) 2>&5
2198 ac_status=$?
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); }; } &&
2201 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
1018 ac_cv_prog_cc_g=yes 2207 ac_cv_prog_cc_g=yes
1019else 2208else
2209 echo "$as_me: failed program was:" >&5
2210sed 's/^/| /' conftest.$ac_ext >&5
2211
1020 ac_cv_prog_cc_g=no 2212ac_cv_prog_cc_g=no
1021fi 2213fi
1022rm -f conftest* 2214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1023
1024fi 2215fi
1025 2216echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1026echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 2217echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1027if test "$ac_test_CFLAGS" = set; then 2218if test "$ac_test_CFLAGS" = set; then
1028 CFLAGS="$ac_save_CFLAGS" 2219 CFLAGS=$ac_save_CFLAGS
1029elif test $ac_cv_prog_cc_g = yes; then 2220elif test $ac_cv_prog_cc_g = yes; then
1030 if test "$GCC" = yes; then 2221 if test "$GCC" = yes; then
1031 CFLAGS="-g -O2" 2222 CFLAGS="-g -O2"
1032 else 2223 else
1033 CFLAGS="-g" 2224 CFLAGS="-g"
1037 CFLAGS="-O2" 2228 CFLAGS="-O2"
1038 else 2229 else
1039 CFLAGS= 2230 CFLAGS=
1040 fi 2231 fi
1041fi 2232fi
2233echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2234echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2235if test "${ac_cv_prog_cc_stdc+set}" = set; then
2236 echo $ECHO_N "(cached) $ECHO_C" >&6
2237else
2238 ac_cv_prog_cc_stdc=no
2239ac_save_CC=$CC
2240cat >conftest.$ac_ext <<_ACEOF
2241/* confdefs.h. */
2242_ACEOF
2243cat confdefs.h >>conftest.$ac_ext
2244cat >>conftest.$ac_ext <<_ACEOF
2245/* end confdefs.h. */
2246#include <stdarg.h>
2247#include <stdio.h>
2248#include <sys/types.h>
2249#include <sys/stat.h>
2250/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2251struct buf { int x; };
2252FILE * (*rcsopen) (struct buf *, struct stat *, int);
2253static char *e (p, i)
2254 char **p;
2255 int i;
2256{
2257 return p[i];
2258}
2259static char *f (char * (*g) (char **, int), char **p, ...)
2260{
2261 char *s;
2262 va_list v;
2263 va_start (v,p);
2264 s = g (p, va_arg (v,int));
2265 va_end (v);
2266 return s;
2267}
1042 2268
1043for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 2269/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2270 function prototypes and stuff, but not '\xHH' hex character constants.
2271 These don't provoke an error unfortunately, instead are silently treated
2272 as 'x'. The following induces an error, until -std1 is added to get
2273 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2274 array size at least. It's necessary to write '\x00'==0 to get something
2275 that's true only with -std1. */
2276int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2277
2278int test (int i, double x);
2279struct s1 {int (*f) (int a);};
2280struct s2 {int (*f) (double a);};
2281int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2282int argc;
2283char **argv;
2284int
2285main ()
2286{
2287return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2288 ;
2289 return 0;
2290}
2291_ACEOF
2292# Don't try gcc -ansi; that turns off useful extensions and
2293# breaks some systems' header files.
2294# AIX -qlanglvl=ansi
2295# Ultrix and OSF/1 -std1
2296# HP-UX 10.20 and later -Ae
2297# HP-UX older versions -Aa -D_HPUX_SOURCE
2298# SVR4 -Xc -D__EXTENSIONS__
2299for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1044do 2300do
2301 CC="$ac_save_CC $ac_arg"
2302 rm -f conftest.$ac_objext
2303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2304 (eval $ac_compile) 2>conftest.er1
2305 ac_status=$?
2306 grep -v '^ *+' conftest.er1 >conftest.err
2307 rm -f conftest.er1
2308 cat conftest.err >&5
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); } &&
2311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2313 (eval $ac_try) 2>&5
2314 ac_status=$?
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); }; } &&
2317 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2323 ac_cv_prog_cc_stdc=$ac_arg
2324break
2325else
2326 echo "$as_me: failed program was:" >&5
2327sed 's/^/| /' conftest.$ac_ext >&5
2328
2329fi
2330rm -f conftest.err conftest.$ac_objext
2331done
2332rm -f conftest.$ac_ext conftest.$ac_objext
2333CC=$ac_save_CC
2334
2335fi
2336
2337case "x$ac_cv_prog_cc_stdc" in
2338 x|xno)
2339 echo "$as_me:$LINENO: result: none needed" >&5
2340echo "${ECHO_T}none needed" >&6 ;;
2341 *)
2342 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2343echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2344 CC="$CC $ac_cv_prog_cc_stdc" ;;
2345esac
2346
2347# Some people use a C++ compiler to compile C. Since we use `exit',
2348# in C++ we need to declare it. In case someone uses the same compiler
2349# for both compiling C and C++ we need to have the C++ compiler decide
2350# the declaration of exit, since it's the most demanding environment.
2351cat >conftest.$ac_ext <<_ACEOF
2352#ifndef __cplusplus
2353 choke me
2354#endif
2355_ACEOF
2356rm -f conftest.$ac_objext
2357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2358 (eval $ac_compile) 2>conftest.er1
2359 ac_status=$?
2360 grep -v '^ *+' conftest.er1 >conftest.err
2361 rm -f conftest.er1
2362 cat conftest.err >&5
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); } &&
2365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367 (eval $ac_try) 2>&5
2368 ac_status=$?
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }; } &&
2371 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2377 for ac_declaration in \
2378 '' \
2379 'extern "C" void std::exit (int) throw (); using std::exit;' \
2380 'extern "C" void std::exit (int); using std::exit;' \
2381 'extern "C" void exit (int) throw ();' \
2382 'extern "C" void exit (int);' \
2383 'void exit (int);'
2384do
2385 cat >conftest.$ac_ext <<_ACEOF
2386/* confdefs.h. */
2387_ACEOF
2388cat confdefs.h >>conftest.$ac_ext
2389cat >>conftest.$ac_ext <<_ACEOF
2390/* end confdefs.h. */
2391$ac_declaration
2392#include <stdlib.h>
2393int
2394main ()
2395{
2396exit (42);
2397 ;
2398 return 0;
2399}
2400_ACEOF
2401rm -f conftest.$ac_objext
2402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2403 (eval $ac_compile) 2>conftest.er1
2404 ac_status=$?
2405 grep -v '^ *+' conftest.er1 >conftest.err
2406 rm -f conftest.er1
2407 cat conftest.err >&5
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); } &&
2410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412 (eval $ac_try) 2>&5
2413 ac_status=$?
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; } &&
2416 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2422 :
2423else
2424 echo "$as_me: failed program was:" >&5
2425sed 's/^/| /' conftest.$ac_ext >&5
2426
2427continue
2428fi
2429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2430 cat >conftest.$ac_ext <<_ACEOF
2431/* confdefs.h. */
2432_ACEOF
2433cat confdefs.h >>conftest.$ac_ext
2434cat >>conftest.$ac_ext <<_ACEOF
2435/* end confdefs.h. */
2436$ac_declaration
2437int
2438main ()
2439{
2440exit (42);
2441 ;
2442 return 0;
2443}
2444_ACEOF
2445rm -f conftest.$ac_objext
2446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2447 (eval $ac_compile) 2>conftest.er1
2448 ac_status=$?
2449 grep -v '^ *+' conftest.er1 >conftest.err
2450 rm -f conftest.er1
2451 cat conftest.err >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); } &&
2454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456 (eval $ac_try) 2>&5
2457 ac_status=$?
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; } &&
2460 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2466 break
2467else
2468 echo "$as_me: failed program was:" >&5
2469sed 's/^/| /' conftest.$ac_ext >&5
2470
2471fi
2472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2473done
2474rm -f conftest*
2475if test -n "$ac_declaration"; then
2476 echo '#ifdef __cplusplus' >>confdefs.h
2477 echo $ac_declaration >>confdefs.h
2478 echo '#endif' >>confdefs.h
2479fi
2480
2481else
2482 echo "$as_me: failed program was:" >&5
2483sed 's/^/| /' conftest.$ac_ext >&5
2484
2485fi
2486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2487ac_ext=c
2488ac_cpp='$CPP $CPPFLAGS'
2489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2491ac_compiler_gnu=$ac_cv_c_compiler_gnu
2492
2493ac_ext=cc
2494ac_cpp='$CXXCPP $CPPFLAGS'
2495ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2496ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2497ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2498if test -n "$ac_tool_prefix"; then
2499 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2500 do
1045# Extract the first word of "$ac_prog", so it can be a program name with args. 2501 # 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 2502set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2503echo "$as_me:$LINENO: checking for $ac_word" >&5
1047echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2504echo $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 2505if test "${ac_cv_prog_CXX+set}" = set; then
1050 echo $ac_n "(cached) $ac_c" 1>&6 2506 echo $ECHO_N "(cached) $ECHO_C" >&6
1051else 2507else
1052 if test -n "$CXX"; then 2508 if test -n "$CXX"; then
1053 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2509 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1054else 2510else
1055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1056 ac_dummy="$PATH" 2512for as_dir in $PATH
1057 for ac_dir in $ac_dummy; do 2513do
2514 IFS=$as_save_IFS
1058 test -z "$ac_dir" && ac_dir=. 2515 test -z "$as_dir" && as_dir=.
1059 if test -f $ac_dir/$ac_word; then 2516 for ac_exec_ext in '' $ac_executable_extensions; do
2517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1060 ac_cv_prog_CXX="$ac_prog" 2518 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1061 break 2520 break 2
1062 fi 2521 fi
2522done
2523done
2524
2525fi
2526fi
2527CXX=$ac_cv_prog_CXX
2528if test -n "$CXX"; then
2529 echo "$as_me:$LINENO: result: $CXX" >&5
2530echo "${ECHO_T}$CXX" >&6
2531else
2532 echo "$as_me:$LINENO: result: no" >&5
2533echo "${ECHO_T}no" >&6
2534fi
2535
2536 test -n "$CXX" && break
1063 done 2537 done
1064 IFS="$ac_save_ifs"
1065fi 2538fi
1066fi
1067CXX="$ac_cv_prog_CXX"
1068if test -n "$CXX"; then 2539if test -z "$CXX"; then
1069 echo "$ac_t""$CXX" 1>&6 2540 ac_ct_CXX=$CXX
2541 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2542do
2543 # Extract the first word of "$ac_prog", so it can be a program name with args.
2544set dummy $ac_prog; ac_word=$2
2545echo "$as_me:$LINENO: checking for $ac_word" >&5
2546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2547if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2548 echo $ECHO_N "(cached) $ECHO_C" >&6
1070else 2549else
1071 echo "$ac_t""no" 1>&6 2550 if test -n "$ac_ct_CXX"; then
1072fi 2551 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1073 2552else
1074test -n "$CXX" && break 2553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2554for as_dir in $PATH
2555do
2556 IFS=$as_save_IFS
2557 test -z "$as_dir" && as_dir=.
2558 for ac_exec_ext in '' $ac_executable_extensions; do
2559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2560 ac_cv_prog_ac_ct_CXX="$ac_prog"
2561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2562 break 2
2563 fi
1075done 2564done
2565done
2566
2567fi
2568fi
2569ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2570if test -n "$ac_ct_CXX"; then
2571 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2572echo "${ECHO_T}$ac_ct_CXX" >&6
2573else
2574 echo "$as_me:$LINENO: result: no" >&5
2575echo "${ECHO_T}no" >&6
2576fi
2577
2578 test -n "$ac_ct_CXX" && break
2579done
1076test -n "$CXX" || CXX="gcc" 2580test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1077 2581
2582 CXX=$ac_ct_CXX
2583fi
1078 2584
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 2585
1082ac_ext=C 2586# Provide some information about the compiler.
1083# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 2587echo "$as_me:$LINENO:" \
1084ac_cpp='$CXXCPP $CPPFLAGS' 2588 "checking for C++ compiler version" >&5
1085ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2589ac_compiler=`set X $ac_compile; echo $2`
1086ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2590{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1087cross_compiling=$ac_cv_prog_cxx_cross 2591 (eval $ac_compiler --version </dev/null >&5) 2>&5
2592 ac_status=$?
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }
2595{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2596 (eval $ac_compiler -v </dev/null >&5) 2>&5
2597 ac_status=$?
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }
2600{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2601 (eval $ac_compiler -V </dev/null >&5) 2>&5
2602 ac_status=$?
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }
1088 2605
2606echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2607echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2608if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2609 echo $ECHO_N "(cached) $ECHO_C" >&6
2610else
2611 cat >conftest.$ac_ext <<_ACEOF
2612/* confdefs.h. */
2613_ACEOF
2614cat confdefs.h >>conftest.$ac_ext
1089cat > conftest.$ac_ext << EOF 2615cat >>conftest.$ac_ext <<_ACEOF
2616/* end confdefs.h. */
1090 2617
1091#line 1092 "configure" 2618int
1092#include "confdefs.h" 2619main ()
1093 2620{
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__ 2621#ifndef __GNUC__
1133 yes; 2622 choke me
1134#endif 2623#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 2624
1143echo "$ac_t""$ac_cv_prog_gxx" 1>&6 2625 ;
1144 2626 return 0;
1145if test $ac_cv_prog_gxx = yes; then 2627}
1146 GXX=yes 2628_ACEOF
2629rm -f conftest.$ac_objext
2630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2631 (eval $ac_compile) 2>conftest.er1
2632 ac_status=$?
2633 grep -v '^ *+' conftest.er1 >conftest.err
2634 rm -f conftest.er1
2635 cat conftest.err >&5
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); } &&
2638 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640 (eval $ac_try) 2>&5
2641 ac_status=$?
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); }; } &&
2644 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2650 ac_compiler_gnu=yes
1147else 2651else
1148 GXX= 2652 echo "$as_me: failed program was:" >&5
1149fi 2653sed 's/^/| /' conftest.$ac_ext >&5
1150 2654
2655ac_compiler_gnu=no
2656fi
2657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2658ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2659
2660fi
2661echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2662echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2663GXX=`test $ac_compiler_gnu = yes && echo yes`
1151ac_test_CXXFLAGS="${CXXFLAGS+set}" 2664ac_test_CXXFLAGS=${CXXFLAGS+set}
1152ac_save_CXXFLAGS="$CXXFLAGS" 2665ac_save_CXXFLAGS=$CXXFLAGS
1153CXXFLAGS= 2666CXXFLAGS="-g"
2667echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1154echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 2668echo $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 2669if test "${ac_cv_prog_cxx_g+set}" = set; then
1157 echo $ac_n "(cached) $ac_c" 1>&6 2670 echo $ECHO_N "(cached) $ECHO_C" >&6
1158else 2671else
1159 echo 'void f(){}' > conftest.cc 2672 cat >conftest.$ac_ext <<_ACEOF
1160if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then 2673/* confdefs.h. */
2674_ACEOF
2675cat confdefs.h >>conftest.$ac_ext
2676cat >>conftest.$ac_ext <<_ACEOF
2677/* end confdefs.h. */
2678
2679int
2680main ()
2681{
2682
2683 ;
2684 return 0;
2685}
2686_ACEOF
2687rm -f conftest.$ac_objext
2688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2689 (eval $ac_compile) 2>conftest.er1
2690 ac_status=$?
2691 grep -v '^ *+' conftest.er1 >conftest.err
2692 rm -f conftest.er1
2693 cat conftest.err >&5
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); } &&
2696 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698 (eval $ac_try) 2>&5
2699 ac_status=$?
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); }; } &&
2702 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
1161 ac_cv_prog_cxx_g=yes 2708 ac_cv_prog_cxx_g=yes
1162else 2709else
2710 echo "$as_me: failed program was:" >&5
2711sed 's/^/| /' conftest.$ac_ext >&5
2712
1163 ac_cv_prog_cxx_g=no 2713ac_cv_prog_cxx_g=no
1164fi 2714fi
1165rm -f conftest* 2715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1166
1167fi 2716fi
1168 2717echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
1169echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 2718echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1170if test "$ac_test_CXXFLAGS" = set; then 2719if test "$ac_test_CXXFLAGS" = set; then
1171 CXXFLAGS="$ac_save_CXXFLAGS" 2720 CXXFLAGS=$ac_save_CXXFLAGS
1172elif test $ac_cv_prog_cxx_g = yes; then 2721elif test $ac_cv_prog_cxx_g = yes; then
1173 if test "$GXX" = yes; then 2722 if test "$GXX" = yes; then
1174 CXXFLAGS="-g -O2" 2723 CXXFLAGS="-g -O2"
1175 else 2724 else
1176 CXXFLAGS="-g" 2725 CXXFLAGS="-g"
1180 CXXFLAGS="-O2" 2729 CXXFLAGS="-O2"
1181 else 2730 else
1182 CXXFLAGS= 2731 CXXFLAGS=
1183 fi 2732 fi
1184fi 2733fi
2734for ac_declaration in \
2735 '' \
2736 'extern "C" void std::exit (int) throw (); using std::exit;' \
2737 'extern "C" void std::exit (int); using std::exit;' \
2738 'extern "C" void exit (int) throw ();' \
2739 'extern "C" void exit (int);' \
2740 'void exit (int);'
2741do
2742 cat >conftest.$ac_ext <<_ACEOF
2743/* confdefs.h. */
2744_ACEOF
2745cat confdefs.h >>conftest.$ac_ext
2746cat >>conftest.$ac_ext <<_ACEOF
2747/* end confdefs.h. */
2748$ac_declaration
2749#include <stdlib.h>
2750int
2751main ()
2752{
2753exit (42);
2754 ;
2755 return 0;
2756}
2757_ACEOF
2758rm -f conftest.$ac_objext
2759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2760 (eval $ac_compile) 2>conftest.er1
2761 ac_status=$?
2762 grep -v '^ *+' conftest.er1 >conftest.err
2763 rm -f conftest.er1
2764 cat conftest.err >&5
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); } &&
2767 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2769 (eval $ac_try) 2>&5
2770 ac_status=$?
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }; } &&
2773 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2779 :
2780else
2781 echo "$as_me: failed program was:" >&5
2782sed 's/^/| /' conftest.$ac_ext >&5
1185 2783
2784continue
2785fi
2786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2787 cat >conftest.$ac_ext <<_ACEOF
2788/* confdefs.h. */
2789_ACEOF
2790cat confdefs.h >>conftest.$ac_ext
2791cat >>conftest.$ac_ext <<_ACEOF
2792/* end confdefs.h. */
2793$ac_declaration
2794int
2795main ()
2796{
2797exit (42);
2798 ;
2799 return 0;
2800}
2801_ACEOF
2802rm -f conftest.$ac_objext
2803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2804 (eval $ac_compile) 2>conftest.er1
2805 ac_status=$?
2806 grep -v '^ *+' conftest.er1 >conftest.err
2807 rm -f conftest.er1
2808 cat conftest.err >&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); } &&
2811 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813 (eval $ac_try) 2>&5
2814 ac_status=$?
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }; } &&
2817 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2823 break
2824else
2825 echo "$as_me: failed program was:" >&5
2826sed 's/^/| /' conftest.$ac_ext >&5
2827
2828fi
2829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2830done
2831rm -f conftest*
2832if test -n "$ac_declaration"; then
2833 echo '#ifdef __cplusplus' >>confdefs.h
2834 echo $ac_declaration >>confdefs.h
2835 echo '#endif' >>confdefs.h
2836fi
2837
2838ac_ext=c
2839ac_cpp='$CPP $CPPFLAGS'
2840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2842ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
2849echo "$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 2850echo $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. 2851# On Suns, sometimes $CPP names a directory.
1189if test -n "$CPP" && test -d "$CPP"; then 2852if test -n "$CPP" && test -d "$CPP"; then
1190 CPP= 2853 CPP=
1191fi 2854fi
1192if test -z "$CPP"; then 2855if test -z "$CPP"; then
1193if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 2856 if test "${ac_cv_prog_CPP+set}" = set; then
1194 echo $ac_n "(cached) $ac_c" 1>&6 2857 echo $ECHO_N "(cached) $ECHO_C" >&6
1195else 2858else
1196 # This must be in double quotes, not single quotes, because CPP may get 2859 # Double quotes because CPP needs to be expanded
1197 # substituted into the Makefile and "${CC-cc}" will confuse make. 2860 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1198 CPP="${CC-cc} -E" 2861 do
2862 ac_preproc_ok=false
2863for ac_c_preproc_warn_flag in '' yes
2864do
2865 # Use a header file that comes with gcc, so configuring glibc
2866 # with a fresh cross-compiler works.
2867 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2868 # <limits.h> exists even on freestanding compilers.
1199 # On the NeXT, cc -E runs the code through the compiler's parser, 2869 # On the NeXT, cc -E runs the code through the compiler's parser,
1200 # not just through cpp. 2870 # not just through cpp. "Syntax error" is here to catch this case.
1201 cat > conftest.$ac_ext <<EOF 2871 cat >conftest.$ac_ext <<_ACEOF
1202#line 1203 "configure" 2872/* confdefs.h. */
1203#include "confdefs.h" 2873_ACEOF
2874cat confdefs.h >>conftest.$ac_ext
2875cat >>conftest.$ac_ext <<_ACEOF
2876/* end confdefs.h. */
2877#ifdef __STDC__
2878# include <limits.h>
2879#else
1204#include <assert.h> 2880# include <assert.h>
1205Syntax Error 2881#endif
1206EOF 2882 Syntax error
1207ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2883_ACEOF
1208{ (eval echo configure:1209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2884if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1209ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2885 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2886 ac_status=$?
2887 grep -v '^ *+' conftest.er1 >conftest.err
2888 rm -f conftest.er1
2889 cat conftest.err >&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); } >/dev/null; then
2892 if test -s conftest.err; then
2893 ac_cpp_err=$ac_c_preproc_warn_flag
2894 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2895 else
2896 ac_cpp_err=
2897 fi
2898else
2899 ac_cpp_err=yes
2900fi
1210if test -z "$ac_err"; then 2901if test -z "$ac_cpp_err"; then
1211 : 2902 :
1212else 2903else
1213 echo "$ac_err" >&5
1214 echo "configure: failed program was:" >&5 2904 echo "$as_me: failed program was:" >&5
1215 cat conftest.$ac_ext >&5 2905sed 's/^/| /' conftest.$ac_ext >&5
1216 rm -rf conftest* 2906
1217 CPP="${CC-cc} -E -traditional-cpp" 2907 # Broken: fails on valid input.
2908continue
2909fi
2910rm -f conftest.err conftest.$ac_ext
2911
2912 # OK, works on sane cases. Now check whether non-existent headers
2913 # can be detected and how.
1218 cat > conftest.$ac_ext <<EOF 2914 cat >conftest.$ac_ext <<_ACEOF
1219#line 1220 "configure" 2915/* confdefs.h. */
1220#include "confdefs.h" 2916_ACEOF
2917cat confdefs.h >>conftest.$ac_ext
2918cat >>conftest.$ac_ext <<_ACEOF
2919/* end confdefs.h. */
2920#include <ac_nonexistent.h>
2921_ACEOF
2922if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2923 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2924 ac_status=$?
2925 grep -v '^ *+' conftest.er1 >conftest.err
2926 rm -f conftest.er1
2927 cat conftest.err >&5
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); } >/dev/null; then
2930 if test -s conftest.err; then
2931 ac_cpp_err=$ac_c_preproc_warn_flag
2932 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2933 else
2934 ac_cpp_err=
2935 fi
2936else
2937 ac_cpp_err=yes
2938fi
2939if test -z "$ac_cpp_err"; then
2940 # Broken: success on invalid input.
2941continue
2942else
2943 echo "$as_me: failed program was:" >&5
2944sed 's/^/| /' conftest.$ac_ext >&5
2945
2946 # Passes both tests.
2947ac_preproc_ok=:
2948break
2949fi
2950rm -f conftest.err conftest.$ac_ext
2951
2952done
2953# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2954rm -f conftest.err conftest.$ac_ext
2955if $ac_preproc_ok; then
2956 break
2957fi
2958
2959 done
2960 ac_cv_prog_CPP=$CPP
2961
2962fi
2963 CPP=$ac_cv_prog_CPP
2964else
2965 ac_cv_prog_CPP=$CPP
2966fi
2967echo "$as_me:$LINENO: result: $CPP" >&5
2968echo "${ECHO_T}$CPP" >&6
2969ac_preproc_ok=false
2970for ac_c_preproc_warn_flag in '' yes
2971do
2972 # Use a header file that comes with gcc, so configuring glibc
2973 # with a fresh cross-compiler works.
2974 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2975 # <limits.h> exists even on freestanding compilers.
2976 # On the NeXT, cc -E runs the code through the compiler's parser,
2977 # not just through cpp. "Syntax error" is here to catch this case.
2978 cat >conftest.$ac_ext <<_ACEOF
2979/* confdefs.h. */
2980_ACEOF
2981cat confdefs.h >>conftest.$ac_ext
2982cat >>conftest.$ac_ext <<_ACEOF
2983/* end confdefs.h. */
2984#ifdef __STDC__
2985# include <limits.h>
2986#else
1221#include <assert.h> 2987# include <assert.h>
1222Syntax Error 2988#endif
1223EOF 2989 Syntax error
1224ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2990_ACEOF
1225{ (eval echo configure:1226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2991if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1226ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2993 ac_status=$?
2994 grep -v '^ *+' conftest.er1 >conftest.err
2995 rm -f conftest.er1
2996 cat conftest.err >&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); } >/dev/null; then
2999 if test -s conftest.err; then
3000 ac_cpp_err=$ac_c_preproc_warn_flag
3001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3002 else
3003 ac_cpp_err=
3004 fi
3005else
3006 ac_cpp_err=yes
3007fi
1227if test -z "$ac_err"; then 3008if test -z "$ac_cpp_err"; then
1228 : 3009 :
1229else 3010else
1230 echo "$ac_err" >&5
1231 echo "configure: failed program was:" >&5 3011 echo "$as_me: failed program was:" >&5
1232 cat conftest.$ac_ext >&5 3012sed 's/^/| /' conftest.$ac_ext >&5
1233 rm -rf conftest* 3013
1234 CPP="${CC-cc} -nologo -E" 3014 # Broken: fails on valid input.
3015continue
3016fi
3017rm -f conftest.err conftest.$ac_ext
3018
3019 # OK, works on sane cases. Now check whether non-existent headers
3020 # can be detected and how.
1235 cat > conftest.$ac_ext <<EOF 3021 cat >conftest.$ac_ext <<_ACEOF
1236#line 1237 "configure" 3022/* confdefs.h. */
1237#include "confdefs.h" 3023_ACEOF
1238#include <assert.h> 3024cat confdefs.h >>conftest.$ac_ext
1239Syntax Error 3025cat >>conftest.$ac_ext <<_ACEOF
1240EOF 3026/* end confdefs.h. */
1241ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3027#include <ac_nonexistent.h>
1242{ (eval echo configure:1243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3028_ACEOF
1243ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3029if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3031 ac_status=$?
3032 grep -v '^ *+' conftest.er1 >conftest.err
3033 rm -f conftest.er1
3034 cat conftest.err >&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); } >/dev/null; then
3037 if test -s conftest.err; then
3038 ac_cpp_err=$ac_c_preproc_warn_flag
3039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3040 else
3041 ac_cpp_err=
3042 fi
3043else
3044 ac_cpp_err=yes
3045fi
1244if test -z "$ac_err"; then 3046if test -z "$ac_cpp_err"; then
3047 # Broken: success on invalid input.
3048continue
3049else
3050 echo "$as_me: failed program was:" >&5
3051sed 's/^/| /' conftest.$ac_ext >&5
3052
3053 # Passes both tests.
3054ac_preproc_ok=:
3055break
3056fi
3057rm -f conftest.err conftest.$ac_ext
3058
3059done
3060# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3061rm -f conftest.err conftest.$ac_ext
3062if $ac_preproc_ok; then
1245 : 3063 :
1246else 3064else
1247 echo "$ac_err" >&5 3065 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
1248 echo "configure: failed program was:" >&5 3066See \`config.log' for more details." >&5
1249 cat conftest.$ac_ext >&5 3067echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
1250 rm -rf conftest* 3068See \`config.log' for more details." >&2;}
1251 CPP=/lib/cpp 3069 { (exit 1); exit 1; }; }
1252fi 3070fi
1253rm -f conftest* 3071
1254fi 3072ac_ext=c
1255rm -f conftest* 3073ac_cpp='$CPP $CPPFLAGS'
1256fi 3074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1257rm -f conftest* 3075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1258 ac_cv_prog_CPP="$CPP" 3076ac_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 3077
1266# Find a good install program. We prefer a C program (faster), 3078# 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 3079# so one script is as good as another. But avoid the broken or
1268# incompatible versions: 3080# incompatible versions:
1269# SysV /etc/install, /usr/sbin/install 3081# SysV /etc/install, /usr/sbin/install
1270# SunOS /usr/etc/install 3082# SunOS /usr/etc/install
1271# IRIX /sbin/install 3083# IRIX /sbin/install
1272# AIX /bin/install 3084# AIX /bin/install
3085# AmigaOS /C/install, which installs bootblocks on floppy discs
1273# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3086# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1274# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3087# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1275# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3088# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3089# OS/2's system install, which has a completely different semantic
1276# ./install, which can be erroneously created by make from ./install.sh. 3090# ./install, which can be erroneously created by make from ./install.sh.
3091echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1277echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 3092echo $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 3093if test -z "$INSTALL"; then
1280if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 3094if test "${ac_cv_path_install+set}" = set; then
1281 echo $ac_n "(cached) $ac_c" 1>&6 3095 echo $ECHO_N "(cached) $ECHO_C" >&6
1282else 3096else
1283 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 3097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1284 for ac_dir in $PATH; do 3098for as_dir in $PATH
3099do
3100 IFS=$as_save_IFS
3101 test -z "$as_dir" && as_dir=.
1285 # Account for people who put trailing slashes in PATH elements. 3102 # Account for people who put trailing slashes in PATH elements.
1286 case "$ac_dir/" in 3103case $as_dir/ in
3104 ./ | .// | /cC/* | \
1287 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 3105 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3106 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3107 /usr/ucb/* ) ;;
1288 *) 3108 *)
1289 # OSF1 and SCO ODT 3.0 have their own names for install. 3109 # 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 3110 # Don't use installbsd from OSF since it installs stuff as root
1291 # by default. 3111 # by default.
1292 for ac_prog in ginstall scoinst install; do 3112 for ac_prog in ginstall scoinst install; do
1293 if test -f $ac_dir/$ac_prog; then 3113 for ac_exec_ext in '' $ac_executable_extensions; do
3114 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1294 if test $ac_prog = install && 3115 if test $ac_prog = install &&
1295 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 3116 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1296 # AIX install. It has an incompatible calling convention. 3117 # AIX install. It has an incompatible calling convention.
1297 : 3118 :
3119 elif test $ac_prog = install &&
3120 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3121 # program-specific install script used by HP pwplus--don't use.
3122 :
1298 else 3123 else
1299 ac_cv_path_install="$ac_dir/$ac_prog -c" 3124 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1300 break 2 3125 break 3
1301 fi 3126 fi
1302 fi 3127 fi
1303 done 3128 done
1304 ;;
1305 esac
1306 done 3129 done
1307 IFS="$ac_save_IFS" 3130 ;;
3131esac
3132done
3133
1308 3134
1309fi 3135fi
1310 if test "${ac_cv_path_install+set}" = set; then 3136 if test "${ac_cv_path_install+set}" = set; then
1311 INSTALL="$ac_cv_path_install" 3137 INSTALL=$ac_cv_path_install
1312 else 3138 else
1313 # As a last resort, use the slow shell script. We don't cache a 3139 # 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 3140 # path for INSTALL within a source directory, because that will
1315 # break other packages using the cache if that directory is 3141 # break other packages using the cache if that directory is
1316 # removed, or if the path is relative. 3142 # removed, or if the path is relative.
1317 INSTALL="$ac_install_sh" 3143 INSTALL=$ac_install_sh
1318 fi 3144 fi
1319fi 3145fi
3146echo "$as_me:$LINENO: result: $INSTALL" >&5
1320echo "$ac_t""$INSTALL" 1>&6 3147echo "${ECHO_T}$INSTALL" >&6
1321 3148
1322# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3149# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1323# It thinks the first close brace ends the variable substitution. 3150# It thinks the first close brace ends the variable substitution.
1324test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3151test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1325 3152
1326test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 3153test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1327 3154
1328test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3155test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1329 3156
1330for ac_prog in mawk gawk nawk awk 3157for ac_prog in gawk mawk nawk awk
1331do 3158do
1332# Extract the first word of "$ac_prog", so it can be a program name with args. 3159 # Extract the first word of "$ac_prog", so it can be a program name with args.
1333set dummy $ac_prog; ac_word=$2 3160set dummy $ac_prog; ac_word=$2
3161echo "$as_me:$LINENO: checking for $ac_word" >&5
1334echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3162echo $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 3163if test "${ac_cv_prog_AWK+set}" = set; then
1337 echo $ac_n "(cached) $ac_c" 1>&6 3164 echo $ECHO_N "(cached) $ECHO_C" >&6
1338else 3165else
1339 if test -n "$AWK"; then 3166 if test -n "$AWK"; then
1340 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3167 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1341else 3168else
1342 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1343 ac_dummy="$PATH" 3170for as_dir in $PATH
1344 for ac_dir in $ac_dummy; do 3171do
3172 IFS=$as_save_IFS
1345 test -z "$ac_dir" && ac_dir=. 3173 test -z "$as_dir" && as_dir=.
1346 if test -f $ac_dir/$ac_word; then 3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1347 ac_cv_prog_AWK="$ac_prog" 3176 ac_cv_prog_AWK="$ac_prog"
3177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1348 break 3178 break 2
3179 fi
3180done
3181done
3182
3183fi
3184fi
3185AWK=$ac_cv_prog_AWK
3186if test -n "$AWK"; then
3187 echo "$as_me:$LINENO: result: $AWK" >&5
3188echo "${ECHO_T}$AWK" >&6
3189else
3190 echo "$as_me:$LINENO: result: no" >&5
3191echo "${ECHO_T}no" >&6
3192fi
3193
3194 test -n "$AWK" && break
3195done
3196
3197
3198
3199
3200echo "$as_me:$LINENO: checking for egrep" >&5
3201echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3202if test "${ac_cv_prog_egrep+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3204else
3205 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3206 then ac_cv_prog_egrep='grep -E'
3207 else ac_cv_prog_egrep='egrep'
1349 fi 3208 fi
1350 done
1351 IFS="$ac_save_ifs"
1352fi 3209fi
1353fi 3210echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
1354AWK="$ac_cv_prog_AWK" 3211echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1355if test -n "$AWK"; then 3212 EGREP=$ac_cv_prog_egrep
1356 echo "$ac_t""$AWK" 1>&6
1357else
1358 echo "$ac_t""no" 1>&6
1359fi
1360 3213
1361test -n "$AWK" && break
1362done
1363 3214
1364 3215
3216echo "$as_me:$LINENO: checking for AIX" >&5
1365echo $ac_n "checking for AIX""... $ac_c" 1>&6 3217echo $ECHO_N "checking for AIX... $ECHO_C" >&6
1366echo "configure:1367: checking for AIX" >&5
1367cat > conftest.$ac_ext <<EOF 3218cat >conftest.$ac_ext <<_ACEOF
1368#line 1369 "configure" 3219/* confdefs.h. */
1369#include "confdefs.h" 3220_ACEOF
3221cat confdefs.h >>conftest.$ac_ext
3222cat >>conftest.$ac_ext <<_ACEOF
3223/* end confdefs.h. */
1370#ifdef _AIX 3224#ifdef _AIX
1371 yes 3225 yes
1372#endif 3226#endif
1373 3227
1374EOF 3228_ACEOF
1375if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3229if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1376 egrep "yes" >/dev/null 2>&1; then 3230 $EGREP "yes" >/dev/null 2>&1; then
1377 rm -rf conftest* 3231 echo "$as_me:$LINENO: result: yes" >&5
1378 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 3232echo "${ECHO_T}yes" >&6
3233cat >>confdefs.h <<\_ACEOF
1379#define _ALL_SOURCE 1 3234#define _ALL_SOURCE 1
1380EOF 3235_ACEOF
1381 3236
1382else 3237else
1383 rm -rf conftest* 3238 echo "$as_me:$LINENO: result: no" >&5
1384 echo "$ac_t""no" 1>&6 3239echo "${ECHO_T}no" >&6
1385fi 3240fi
1386rm -f conftest* 3241rm -f conftest*
1387 3242
1388 3243
1389echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 3244echo "$as_me:$LINENO: checking for library containing strerror" >&5
1390echo "configure:1391: checking for POSIXized ISC" >&5 3245echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
1391if test -d /etc/conf/kconfig.d && 3246if test "${ac_cv_search_strerror+set}" = set; then
1392 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 3247 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 3248else
1403 CC="$CC -Xp" 3249 ac_func_search_save_LIBS=$LIBS
1404 fi 3250ac_cv_search_strerror=no
3251cat >conftest.$ac_ext <<_ACEOF
3252/* confdefs.h. */
3253_ACEOF
3254cat confdefs.h >>conftest.$ac_ext
3255cat >>conftest.$ac_ext <<_ACEOF
3256/* end confdefs.h. */
3257
3258/* Override any gcc2 internal prototype to avoid an error. */
3259#ifdef __cplusplus
3260extern "C"
3261#endif
3262/* We use char because int might match the return type of a gcc2
3263 builtin and then its argument prototype would still apply. */
3264char strerror ();
3265int
3266main ()
3267{
3268strerror ();
3269 ;
3270 return 0;
3271}
3272_ACEOF
3273rm -f conftest.$ac_objext conftest$ac_exeext
3274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3275 (eval $ac_link) 2>conftest.er1
3276 ac_status=$?
3277 grep -v '^ *+' conftest.er1 >conftest.err
3278 rm -f conftest.er1
3279 cat conftest.err >&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } &&
3282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3284 (eval $ac_try) 2>&5
3285 ac_status=$?
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); }; } &&
3288 { ac_try='test -s conftest$ac_exeext'
3289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3290 (eval $ac_try) 2>&5
3291 ac_status=$?
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }; }; then
3294 ac_cv_search_strerror="none required"
1405else 3295else
1406 echo "$ac_t""no" 1>&6 3296 echo "$as_me: failed program was:" >&5
1407 ISC= 3297sed 's/^/| /' conftest.$ac_ext >&5
3298
3299fi
3300rm -f conftest.err conftest.$ac_objext \
3301 conftest$ac_exeext conftest.$ac_ext
3302if test "$ac_cv_search_strerror" = no; then
3303 for ac_lib in cposix; do
3304 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3305 cat >conftest.$ac_ext <<_ACEOF
3306/* confdefs.h. */
3307_ACEOF
3308cat confdefs.h >>conftest.$ac_ext
3309cat >>conftest.$ac_ext <<_ACEOF
3310/* end confdefs.h. */
3311
3312/* Override any gcc2 internal prototype to avoid an error. */
3313#ifdef __cplusplus
3314extern "C"
3315#endif
3316/* We use char because int might match the return type of a gcc2
3317 builtin and then its argument prototype would still apply. */
3318char strerror ();
3319int
3320main ()
3321{
3322strerror ();
3323 ;
3324 return 0;
3325}
3326_ACEOF
3327rm -f conftest.$ac_objext conftest$ac_exeext
3328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3329 (eval $ac_link) 2>conftest.er1
3330 ac_status=$?
3331 grep -v '^ *+' conftest.er1 >conftest.err
3332 rm -f conftest.er1
3333 cat conftest.err >&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); } &&
3336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3338 (eval $ac_try) 2>&5
3339 ac_status=$?
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); }; } &&
3342 { ac_try='test -s conftest$ac_exeext'
3343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3344 (eval $ac_try) 2>&5
3345 ac_status=$?
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }; }; then
3348 ac_cv_search_strerror="-l$ac_lib"
3349break
3350else
3351 echo "$as_me: failed program was:" >&5
3352sed 's/^/| /' conftest.$ac_ext >&5
3353
3354fi
3355rm -f conftest.err conftest.$ac_objext \
3356 conftest$ac_exeext conftest.$ac_ext
3357 done
3358fi
3359LIBS=$ac_func_search_save_LIBS
3360fi
3361echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3362echo "${ECHO_T}$ac_cv_search_strerror" >&6
3363if test "$ac_cv_search_strerror" != no; then
3364 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3365
1408fi 3366fi
1409 3367
1410 3368
1411# Check whether --enable-shared or --disable-shared was given. 3369# Check whether --enable-shared or --disable-shared was given.
1412if test "${enable_shared+set}" = set; then 3370if test "${enable_shared+set}" = set; then
1427 IFS="$ac_save_ifs" 3385 IFS="$ac_save_ifs"
1428 ;; 3386 ;;
1429esac 3387esac
1430else 3388else
1431 enable_shared=no 3389 enable_shared=no
1432fi
1433# Check whether --enable-static or --disable-static was given. 3390fi; # Check whether --enable-static or --disable-static was given.
1434if test "${enable_static+set}" = set; then 3391if test "${enable_static+set}" = set; then
1435 enableval="$enable_static" 3392 enableval="$enable_static"
1436 p=${PACKAGE-default} 3393 p=${PACKAGE-default}
1437case "$enableval" in 3394case "$enableval" in
1438yes) enable_static=yes ;; 3395yes) enable_static=yes ;;
1449 IFS="$ac_save_ifs" 3406 IFS="$ac_save_ifs"
1450 ;; 3407 ;;
1451esac 3408esac
1452else 3409else
1453 enable_static=yes 3410 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. 3411fi; # Check whether --enable-fast-install or --disable-fast-install was given.
1518if test "${enable_fast_install+set}" = set; then 3412if test "${enable_fast_install+set}" = set; then
1519 enableval="$enable_fast_install" 3413 enableval="$enable_fast_install"
1520 p=${PACKAGE-default} 3414 p=${PACKAGE-default}
1521case "$enableval" in 3415case "$enableval" in
1522yes) enable_fast_install=yes ;; 3416yes) enable_fast_install=yes ;;
1533 IFS="$ac_save_ifs" 3427 IFS="$ac_save_ifs"
1534 ;; 3428 ;;
1535esac 3429esac
1536else 3430else
1537 enable_fast_install=yes 3431 enable_fast_install=yes
1538fi 3432fi;
1539
1540
1541# Make sure we can run config.sub. 3433# Make sure we can run config.sub.
1542if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 3434$ac_config_sub sun4 >/dev/null 2>&1 ||
3435 { { 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; } 3436echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1544fi 3437 { (exit 1); exit 1; }; }
1545 3438
1546echo $ac_n "checking host system type""... $ac_c" 1>&6 3439echo "$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 3440echo $ECHO_N "checking build system type... $ECHO_C" >&6
1568echo "configure:1569: checking build system type" >&5 3441if test "${ac_cv_build+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3443else
3444 ac_cv_build_alias=$build_alias
3445test -z "$ac_cv_build_alias" &&
3446 ac_cv_build_alias=`$ac_config_guess`
3447test -z "$ac_cv_build_alias" &&
3448 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3449echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3450 { (exit 1); exit 1; }; }
3451ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3452 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3453echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3454 { (exit 1); exit 1; }; }
1569 3455
1570build_alias=$build 3456fi
1571case "$build_alias" in 3457echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1572NONE) 3458echo "${ECHO_T}$ac_cv_build" >&6
1573 case $nonopt in 3459build=$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/'` 3460build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1581build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3461build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1582build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3462build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1583echo "$ac_t""$build" 1>&6 3463
3464
3465echo "$as_me:$LINENO: checking host system type" >&5
3466echo $ECHO_N "checking host system type... $ECHO_C" >&6
3467if test "${ac_cv_host+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3469else
3470 ac_cv_host_alias=$host_alias
3471test -z "$ac_cv_host_alias" &&
3472 ac_cv_host_alias=$ac_cv_build_alias
3473ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3474 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3475echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3476 { (exit 1); exit 1; }; }
3477
3478fi
3479echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3480echo "${ECHO_T}$ac_cv_host" >&6
3481host=$ac_cv_host
3482host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3483host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3484host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3485
3486
1584 3487
1585# Check whether --with-gnu-ld or --without-gnu-ld was given. 3488# Check whether --with-gnu-ld or --without-gnu-ld was given.
1586if test "${with_gnu_ld+set}" = set; then 3489if test "${with_gnu_ld+set}" = set; then
1587 withval="$with_gnu_ld" 3490 withval="$with_gnu_ld"
1588 test "$withval" = no || with_gnu_ld=yes 3491 test "$withval" = no || with_gnu_ld=yes
1589else 3492else
1590 with_gnu_ld=no 3493 with_gnu_ld=no
1591fi 3494fi;
1592
1593ac_prog=ld 3495ac_prog=ld
1594if test "$GCC" = yes; then 3496if test "$GCC" = yes; then
1595 # Check if gcc -print-prog-name=ld gives a path. 3497 # Check if gcc -print-prog-name=ld gives a path.
3498 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 3499echo $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 3500 case $host in
1599 *-*-mingw*) 3501 *-*-mingw*)
1600 # gcc leaves a trailing carriage return which upsets mingw 3502 # gcc leaves a trailing carriage return which upsets mingw
1601 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3503 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1602 *) 3504 *)
1621 # If it is relative, then search for the first ld in PATH. 3523 # If it is relative, then search for the first ld in PATH.
1622 with_gnu_ld=unknown 3524 with_gnu_ld=unknown
1623 ;; 3525 ;;
1624 esac 3526 esac
1625elif test "$with_gnu_ld" = yes; then 3527elif test "$with_gnu_ld" = yes; then
3528 echo "$as_me:$LINENO: checking for GNU ld" >&5
1626 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 3529echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
1627echo "configure:1628: checking for GNU ld" >&5
1628else 3530else
3531 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
1629 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 3532echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
1630echo "configure:1631: checking for non-GNU ld" >&5
1631fi 3533fi
1632if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then 3534if test "${lt_cv_path_LD+set}" = set; then
1633 echo $ac_n "(cached) $ac_c" 1>&6 3535 echo $ECHO_N "(cached) $ECHO_C" >&6
1634else 3536else
1635 if test -z "$LD"; then 3537 if test -z "$LD"; then
1636 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 3538 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1637 for ac_dir in $PATH; do 3539 for ac_dir in $PATH; do
1638 test -z "$ac_dir" && ac_dir=. 3540 test -z "$ac_dir" && ac_dir=.
1654fi 3556fi
1655fi 3557fi
1656 3558
1657LD="$lt_cv_path_LD" 3559LD="$lt_cv_path_LD"
1658if test -n "$LD"; then 3560if test -n "$LD"; then
1659 echo "$ac_t""$LD" 1>&6 3561 echo "$as_me:$LINENO: result: $LD" >&5
3562echo "${ECHO_T}$LD" >&6
1660else 3563else
1661 echo "$ac_t""no" 1>&6 3564 echo "$as_me:$LINENO: result: no" >&5
3565echo "${ECHO_T}no" >&6
1662fi 3566fi
1663test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } 3567test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3568echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3569 { (exit 1); exit 1; }; }
3570echo "$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 3571echo $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 3572if test "${lt_cv_prog_gnu_ld+set}" = set; then
1667 echo $ac_n "(cached) $ac_c" 1>&6 3573 echo $ECHO_N "(cached) $ECHO_C" >&6
1668else 3574else
1669 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 3575 # 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 3576if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1671 lt_cv_prog_gnu_ld=yes 3577 lt_cv_prog_gnu_ld=yes
1672else 3578else
1673 lt_cv_prog_gnu_ld=no 3579 lt_cv_prog_gnu_ld=no
1674fi 3580fi
1675fi 3581fi
1676 3582echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
1677echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6 3583echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
1678with_gnu_ld=$lt_cv_prog_gnu_ld 3584with_gnu_ld=$lt_cv_prog_gnu_ld
1679 3585
1680 3586
3587echo "$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 3588echo $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 3589if test "${lt_cv_ld_reload_flag+set}" = set; then
1684 echo $ac_n "(cached) $ac_c" 1>&6 3590 echo $ECHO_N "(cached) $ECHO_C" >&6
1685else 3591else
1686 lt_cv_ld_reload_flag='-r' 3592 lt_cv_ld_reload_flag='-r'
1687fi 3593fi
1688 3594echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
1689echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6 3595echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
1690reload_flag=$lt_cv_ld_reload_flag 3596reload_flag=$lt_cv_ld_reload_flag
1691test -n "$reload_flag" && reload_flag=" $reload_flag" 3597test -n "$reload_flag" && reload_flag=" $reload_flag"
1692 3598
3599echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
1693echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 3600echo $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 3601if test "${lt_cv_path_NM+set}" = set; then
1696 echo $ac_n "(cached) $ac_c" 1>&6 3602 echo $ECHO_N "(cached) $ECHO_C" >&6
1697else 3603else
1698 if test -n "$NM"; then 3604 if test -n "$NM"; then
1699 # Let the user override the test. 3605 # Let the user override the test.
1700 lt_cv_path_NM="$NM" 3606 lt_cv_path_NM="$NM"
1701else 3607else
1724 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3630 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1725fi 3631fi
1726fi 3632fi
1727 3633
1728NM="$lt_cv_path_NM" 3634NM="$lt_cv_path_NM"
1729echo "$ac_t""$NM" 1>&6 3635echo "$as_me:$LINENO: result: $NM" >&5
3636echo "${ECHO_T}$NM" >&6
1730 3637
3638echo "$as_me:$LINENO: checking whether ln -s works" >&5
1731echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 3639echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1732echo "configure:1733: checking whether ln -s works" >&5 3640LN_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 3641if test "$LN_S" = "ln -s"; then
1747 echo "$ac_t""yes" 1>&6 3642 echo "$as_me:$LINENO: result: yes" >&5
3643echo "${ECHO_T}yes" >&6
1748else 3644else
1749 echo "$ac_t""no" 1>&6 3645 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3646echo "${ECHO_T}no, using $LN_S" >&6
1750fi 3647fi
1751 3648
3649echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
1752echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6 3650echo $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 3651if test "${lt_cv_deplibs_check_method+set}" = set; then
1755 echo $ac_n "(cached) $ac_c" 1>&6 3652 echo $ECHO_N "(cached) $ECHO_C" >&6
1756else 3653else
1757 lt_cv_file_magic_cmd='$MAGIC_CMD' 3654 lt_cv_file_magic_cmd='$MAGIC_CMD'
1758lt_cv_file_magic_test_file= 3655lt_cv_file_magic_test_file=
1759lt_cv_deplibs_check_method='unknown' 3656lt_cv_deplibs_check_method='unknown'
1760# Need to set the preceding variable on all platforms that support 3657# Need to set the preceding variable on all platforms that support
1906 esac 3803 esac
1907 ;; 3804 ;;
1908esac 3805esac
1909 3806
1910fi 3807fi
1911 3808echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
1912echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6 3809echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
1913file_magic_cmd=$lt_cv_file_magic_cmd 3810file_magic_cmd=$lt_cv_file_magic_cmd
1914deplibs_check_method=$lt_cv_deplibs_check_method 3811deplibs_check_method=$lt_cv_deplibs_check_method
1915 3812
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 3813
1936echo "$ac_t""$ac_cv_objext" 1>&6
1937OBJEXT=$ac_cv_objext
1938ac_objext=$ac_cv_objext
1939 3814
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 3815
1979 3816
1980 3817
1981 3818
1982# Check for command to grab the raw symbol name followed by C symbol from nm. 3819# Check for command to grab the raw symbol name followed by C symbol from nm.
3820echo "$as_me:$LINENO: checking command to parse $NM output" >&5
1983echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6 3821echo $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 3822if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
1986 echo $ac_n "(cached) $ac_c" 1>&6 3823 echo $ECHO_N "(cached) $ECHO_C" >&6
1987else 3824else
1988 3825
1989# These are sane defaults that work on at least a few old systems. 3826# These are sane defaults that work on at least a few old systems.
1990# [They come from Ultrix. What could be older than Ultrix?!! ;)] 3827# [They come from Ultrix. What could be older than Ultrix?!! ;)]
1991 3828
1992# Character class describing NM global symbol codes. 3829# Character class describing NM global symbol codes.
1993symcode='[BCDEGRST]' 3830symcode='[BCDEGRST]'
2055} 3892}
2056#endif 3893#endif
2057main(){nm_test_var='a';nm_test_func();return(0);} 3894main(){nm_test_var='a';nm_test_func();return(0);}
2058EOF 3895EOF
2059 3896
2060 if { (eval echo configure:2061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3898 (eval $ac_compile) 2>&5
3899 ac_status=$?
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); }; then
2061 # Now try to grab the symbols. 3902 # Now try to grab the symbols.
2062 nlist=conftest.nm 3903 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 3904 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3905 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3906 ac_status=$?
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); } && test -s "$nlist"; then
2064 # Try sorting and uniquifying the output. 3909 # Try sorting and uniquifying the output.
2065 if sort "$nlist" | uniq > "$nlist"T; then 3910 if sort "$nlist" | uniq > "$nlist"T; then
2066 mv -f "$nlist"T "$nlist" 3911 mv -f "$nlist"T "$nlist"
2067 else 3912 else
2068 rm -f "$nlist"T 3913 rm -f "$nlist"T
2109 mv conftest.$ac_objext conftstm.$ac_objext 3954 mv conftest.$ac_objext conftstm.$ac_objext
2110 save_LIBS="$LIBS" 3955 save_LIBS="$LIBS"
2111 save_CFLAGS="$CFLAGS" 3956 save_CFLAGS="$CFLAGS"
2112 LIBS="conftstm.$ac_objext" 3957 LIBS="conftstm.$ac_objext"
2113 CFLAGS="$CFLAGS$no_builtin_flag" 3958 CFLAGS="$CFLAGS$no_builtin_flag"
2114 if { (eval echo configure:2115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3960 (eval $ac_link) 2>&5
3961 ac_status=$?
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } && test -s conftest; then
2115 pipe_works=yes 3964 pipe_works=yes
2116 fi 3965 fi
2117 LIBS="$save_LIBS" 3966 LIBS="$save_LIBS"
2118 CFLAGS="$save_CFLAGS" 3967 CFLAGS="$save_CFLAGS"
2119 else 3968 else
2146 global_symbol_to_cdecl= 3995 global_symbol_to_cdecl=
2147else 3996else
2148 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" 3997 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2149fi 3998fi
2150if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then 3999if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
2151 echo "$ac_t""failed" 1>&6 4000 echo "$as_me:$LINENO: result: failed" >&5
4001echo "${ECHO_T}failed" >&6
4002else
4003 echo "$as_me:$LINENO: result: ok" >&5
4004echo "${ECHO_T}ok" >&6
4005fi
4006
4007echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4008echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4009if test "${ac_cv_header_stdc+set}" = set; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
4011else
4012 cat >conftest.$ac_ext <<_ACEOF
4013/* confdefs.h. */
4014_ACEOF
4015cat confdefs.h >>conftest.$ac_ext
4016cat >>conftest.$ac_ext <<_ACEOF
4017/* end confdefs.h. */
4018#include <stdlib.h>
4019#include <stdarg.h>
4020#include <string.h>
4021#include <float.h>
4022
4023int
4024main ()
4025{
4026
4027 ;
4028 return 0;
4029}
4030_ACEOF
4031rm -f conftest.$ac_objext
4032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4033 (eval $ac_compile) 2>conftest.er1
4034 ac_status=$?
4035 grep -v '^ *+' conftest.er1 >conftest.err
4036 rm -f conftest.er1
4037 cat conftest.err >&5
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); } &&
4040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4042 (eval $ac_try) 2>&5
4043 ac_status=$?
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); }; } &&
4046 { ac_try='test -s conftest.$ac_objext'
4047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048 (eval $ac_try) 2>&5
4049 ac_status=$?
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; }; then
4052 ac_cv_header_stdc=yes
4053else
4054 echo "$as_me: failed program was:" >&5
4055sed 's/^/| /' conftest.$ac_ext >&5
4056
4057ac_cv_header_stdc=no
4058fi
4059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4060
4061if test $ac_cv_header_stdc = yes; then
4062 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4063 cat >conftest.$ac_ext <<_ACEOF
4064/* confdefs.h. */
4065_ACEOF
4066cat confdefs.h >>conftest.$ac_ext
4067cat >>conftest.$ac_ext <<_ACEOF
4068/* end confdefs.h. */
4069#include <string.h>
4070
4071_ACEOF
4072if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4073 $EGREP "memchr" >/dev/null 2>&1; then
4074 :
4075else
4076 ac_cv_header_stdc=no
4077fi
4078rm -f conftest*
4079
4080fi
4081
4082if test $ac_cv_header_stdc = yes; then
4083 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4084 cat >conftest.$ac_ext <<_ACEOF
4085/* confdefs.h. */
4086_ACEOF
4087cat confdefs.h >>conftest.$ac_ext
4088cat >>conftest.$ac_ext <<_ACEOF
4089/* end confdefs.h. */
4090#include <stdlib.h>
4091
4092_ACEOF
4093if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4094 $EGREP "free" >/dev/null 2>&1; then
4095 :
4096else
4097 ac_cv_header_stdc=no
4098fi
4099rm -f conftest*
4100
4101fi
4102
4103if test $ac_cv_header_stdc = yes; then
4104 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4105 if test "$cross_compiling" = yes; then
4106 :
4107else
4108 cat >conftest.$ac_ext <<_ACEOF
4109/* confdefs.h. */
4110_ACEOF
4111cat confdefs.h >>conftest.$ac_ext
4112cat >>conftest.$ac_ext <<_ACEOF
4113/* end confdefs.h. */
4114#include <ctype.h>
4115#if ((' ' & 0x0FF) == 0x020)
4116# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4117# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2152else 4118#else
2153 echo "$ac_t""ok" 1>&6 4119# define ISLOWER(c) \
2154fi 4120 (('a' <= (c) && (c) <= 'i') \
4121 || ('j' <= (c) && (c) <= 'r') \
4122 || ('s' <= (c) && (c) <= 'z'))
4123# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4124#endif
2155 4125
2156for ac_hdr in dlfcn.h 4126#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4127int
4128main ()
4129{
4130 int i;
4131 for (i = 0; i < 256; i++)
4132 if (XOR (islower (i), ISLOWER (i))
4133 || toupper (i) != TOUPPER (i))
4134 exit(2);
4135 exit (0);
4136}
4137_ACEOF
4138rm -f conftest$ac_exeext
4139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4140 (eval $ac_link) 2>&5
4141 ac_status=$?
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4145 (eval $ac_try) 2>&5
4146 ac_status=$?
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }; }; then
4149 :
4150else
4151 echo "$as_me: program exited with status $ac_status" >&5
4152echo "$as_me: failed program was:" >&5
4153sed 's/^/| /' conftest.$ac_ext >&5
4154
4155( exit $ac_status )
4156ac_cv_header_stdc=no
4157fi
4158rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4159fi
4160fi
4161fi
4162echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4163echo "${ECHO_T}$ac_cv_header_stdc" >&6
4164if test $ac_cv_header_stdc = yes; then
4165
4166cat >>confdefs.h <<\_ACEOF
4167#define STDC_HEADERS 1
4168_ACEOF
4169
4170fi
4171
4172# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4183 inttypes.h stdint.h unistd.h
2157do 4184do
2158ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4185as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4186echo "$as_me:$LINENO: checking for $ac_header" >&5
2159echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4187echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2160echo "configure:2161: checking for $ac_hdr" >&5 4188if 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 4189 echo $ECHO_N "(cached) $ECHO_C" >&6
2163else 4190else
2164 cat > conftest.$ac_ext <<EOF 4191 cat >conftest.$ac_ext <<_ACEOF
2165#line 2166 "configure" 4192/* confdefs.h. */
2166#include "confdefs.h" 4193_ACEOF
4194cat confdefs.h >>conftest.$ac_ext
4195cat >>conftest.$ac_ext <<_ACEOF
4196/* end confdefs.h. */
4197$ac_includes_default
4198
2167#include <$ac_hdr> 4199#include <$ac_header>
2168EOF 4200_ACEOF
2169ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4201rm -f conftest.$ac_objext
2170{ (eval echo configure:2171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4203 (eval $ac_compile) 2>conftest.er1
4204 ac_status=$?
4205 grep -v '^ *+' conftest.er1 >conftest.err
4206 rm -f conftest.er1
4207 cat conftest.err >&5
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); } &&
4210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4212 (eval $ac_try) 2>&5
4213 ac_status=$?
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); }; } &&
4216 { ac_try='test -s conftest.$ac_objext'
4217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4218 (eval $ac_try) 2>&5
4219 ac_status=$?
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); }; }; then
4222 eval "$as_ac_Header=yes"
4223else
4224 echo "$as_me: failed program was:" >&5
4225sed 's/^/| /' conftest.$ac_ext >&5
4226
4227eval "$as_ac_Header=no"
4228fi
4229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4230fi
4231echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4232echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4233if test `eval echo '${'$as_ac_Header'}'` = yes; then
4234 cat >>confdefs.h <<_ACEOF
4235#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4236_ACEOF
4237
4238fi
4239
4240done
4241
4242
4243
4244for ac_header in dlfcn.h
4245do
4246as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4247if eval "test \"\${$as_ac_Header+set}\" = set"; then
4248 echo "$as_me:$LINENO: checking for $ac_header" >&5
4249echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4250if eval "test \"\${$as_ac_Header+set}\" = set"; then
4251 echo $ECHO_N "(cached) $ECHO_C" >&6
4252fi
4253echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4254echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4255else
4256 # Is the header compilable?
4257echo "$as_me:$LINENO: checking $ac_header usability" >&5
4258echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4259cat >conftest.$ac_ext <<_ACEOF
4260/* confdefs.h. */
4261_ACEOF
4262cat confdefs.h >>conftest.$ac_ext
4263cat >>conftest.$ac_ext <<_ACEOF
4264/* end confdefs.h. */
4265$ac_includes_default
4266#include <$ac_header>
4267_ACEOF
4268rm -f conftest.$ac_objext
4269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4270 (eval $ac_compile) 2>conftest.er1
4271 ac_status=$?
4272 grep -v '^ *+' conftest.er1 >conftest.err
4273 rm -f conftest.er1
4274 cat conftest.err >&5
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); } &&
4277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279 (eval $ac_try) 2>&5
4280 ac_status=$?
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; } &&
4283 { ac_try='test -s conftest.$ac_objext'
4284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4285 (eval $ac_try) 2>&5
4286 ac_status=$?
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); }; }; then
4289 ac_header_compiler=yes
4290else
4291 echo "$as_me: failed program was:" >&5
4292sed 's/^/| /' conftest.$ac_ext >&5
4293
4294ac_header_compiler=no
4295fi
4296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4297echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4298echo "${ECHO_T}$ac_header_compiler" >&6
4299
4300# Is the header present?
4301echo "$as_me:$LINENO: checking $ac_header presence" >&5
4302echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4303cat >conftest.$ac_ext <<_ACEOF
4304/* confdefs.h. */
4305_ACEOF
4306cat confdefs.h >>conftest.$ac_ext
4307cat >>conftest.$ac_ext <<_ACEOF
4308/* end confdefs.h. */
4309#include <$ac_header>
4310_ACEOF
4311if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4313 ac_status=$?
4314 grep -v '^ *+' conftest.er1 >conftest.err
4315 rm -f conftest.er1
4316 cat conftest.err >&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); } >/dev/null; then
4319 if test -s conftest.err; then
4320 ac_cpp_err=$ac_c_preproc_warn_flag
4321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4322 else
4323 ac_cpp_err=
4324 fi
4325else
4326 ac_cpp_err=yes
4327fi
2172if test -z "$ac_err"; then 4328if test -z "$ac_cpp_err"; then
2173 rm -rf conftest* 4329 ac_header_preproc=yes
2174 eval "ac_cv_header_$ac_safe=yes"
2175else 4330else
2176 echo "$ac_err" >&5
2177 echo "configure: failed program was:" >&5 4331 echo "$as_me: failed program was:" >&5
2178 cat conftest.$ac_ext >&5 4332sed 's/^/| /' conftest.$ac_ext >&5
2179 rm -rf conftest* 4333
2180 eval "ac_cv_header_$ac_safe=no" 4334 ac_header_preproc=no
2181fi 4335fi
2182rm -f conftest* 4336rm -f conftest.err conftest.$ac_ext
4337echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4338echo "${ECHO_T}$ac_header_preproc" >&6
4339
4340# So? What about this header?
4341case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4342 yes:no: )
4343 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4344echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4346echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4347 ac_header_preproc=yes
4348 ;;
4349 no:yes:* )
4350 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4351echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4352 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4353echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4354 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4355echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4356 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4357echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4359echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4360 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4361echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4362 (
4363 cat <<\_ASBOX
4364## ------------------------------------------ ##
4365## Report this to the AC_PACKAGE_NAME lists. ##
4366## ------------------------------------------ ##
4367_ASBOX
4368 ) |
4369 sed "s/^/$as_me: WARNING: /" >&2
4370 ;;
4371esac
4372echo "$as_me:$LINENO: checking for $ac_header" >&5
4373echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4374if eval "test \"\${$as_ac_Header+set}\" = set"; then
4375 echo $ECHO_N "(cached) $ECHO_C" >&6
4376else
4377 eval "$as_ac_Header=\$ac_header_preproc"
2183fi 4378fi
2184if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4379echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2185 echo "$ac_t""yes" 1>&6 4380echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2186 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4381
4382fi
4383if test `eval echo '${'$as_ac_Header'}'` = yes; then
2187 cat >> confdefs.h <<EOF 4384 cat >>confdefs.h <<_ACEOF
2188#define $ac_tr_hdr 1 4385#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2189EOF 4386_ACEOF
2190 4387
2191else
2192 echo "$ac_t""no" 1>&6
2193fi 4388fi
4389
2194done 4390done
2195 4391
2196 4392
2197 4393
2198 4394
2199 4395
2200# Only perform the check for file, if the check method requires it 4396# Only perform the check for file, if the check method requires it
2201case "$deplibs_check_method" in 4397case "$deplibs_check_method" in
2202file_magic*) 4398file_magic*)
2203 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 4399 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4400 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 4401echo $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 4402if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
2207 echo $ac_n "(cached) $ac_c" 1>&6 4403 echo $ECHO_N "(cached) $ECHO_C" >&6
2208else 4404else
2209 case "$MAGIC_CMD" in 4405 case "$MAGIC_CMD" in
2210 /*) 4406 /*)
2211 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 4407 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2212 ;; 4408 ;;
2254esac 4450esac
2255fi 4451fi
2256 4452
2257MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4453MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2258if test -n "$MAGIC_CMD"; then 4454if test -n "$MAGIC_CMD"; then
4455 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
2259 echo "$ac_t""$MAGIC_CMD" 1>&6 4456echo "${ECHO_T}$MAGIC_CMD" >&6
2260else 4457else
2261 echo "$ac_t""no" 1>&6 4458 echo "$as_me:$LINENO: result: no" >&5
4459echo "${ECHO_T}no" >&6
2262fi 4460fi
2263 4461
2264if test -z "$lt_cv_path_MAGIC_CMD"; then 4462if test -z "$lt_cv_path_MAGIC_CMD"; then
2265 if test -n "$ac_tool_prefix"; then 4463 if test -n "$ac_tool_prefix"; then
4464 echo "$as_me:$LINENO: checking for file" >&5
2266 echo $ac_n "checking for file""... $ac_c" 1>&6 4465echo $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 4466if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
2269 echo $ac_n "(cached) $ac_c" 1>&6 4467 echo $ECHO_N "(cached) $ECHO_C" >&6
2270else 4468else
2271 case "$MAGIC_CMD" in 4469 case "$MAGIC_CMD" in
2272 /*) 4470 /*)
2273 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 4471 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2274 ;; 4472 ;;
2316esac 4514esac
2317fi 4515fi
2318 4516
2319MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4517MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2320if test -n "$MAGIC_CMD"; then 4518if test -n "$MAGIC_CMD"; then
4519 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
2321 echo "$ac_t""$MAGIC_CMD" 1>&6 4520echo "${ECHO_T}$MAGIC_CMD" >&6
2322else 4521else
2323 echo "$ac_t""no" 1>&6 4522 echo "$as_me:$LINENO: result: no" >&5
4523echo "${ECHO_T}no" >&6
2324fi 4524fi
2325 4525
2326 else 4526 else
2327 MAGIC_CMD=: 4527 MAGIC_CMD=:
2328 fi 4528 fi
2330 4530
2331 fi 4531 fi
2332 ;; 4532 ;;
2333esac 4533esac
2334 4534
4535if 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. 4536 # 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 4537set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4538echo "$as_me:$LINENO: checking for $ac_word" >&5
2337echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4539echo $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 4540if test "${ac_cv_prog_RANLIB+set}" = set; then
2340 echo $ac_n "(cached) $ac_c" 1>&6 4541 echo $ECHO_N "(cached) $ECHO_C" >&6
2341else 4542else
2342 if test -n "$RANLIB"; then 4543 if test -n "$RANLIB"; then
2343 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4544 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2344else 4545else
2345 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 ac_dummy="$PATH" 4547for as_dir in $PATH
2347 for ac_dir in $ac_dummy; do 4548do
4549 IFS=$as_save_IFS
2348 test -z "$ac_dir" && ac_dir=. 4550 test -z "$as_dir" && as_dir=.
2349 if test -f $ac_dir/$ac_word; then 4551 for ac_exec_ext in '' $ac_executable_extensions; do
4552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2350 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4553 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351 break 4555 break 2
2352 fi 4556 fi
2353 done 4557done
2354 IFS="$ac_save_ifs" 4558done
4559
2355fi 4560fi
2356fi 4561fi
2357RANLIB="$ac_cv_prog_RANLIB" 4562RANLIB=$ac_cv_prog_RANLIB
2358if test -n "$RANLIB"; then 4563if test -n "$RANLIB"; then
2359 echo "$ac_t""$RANLIB" 1>&6 4564 echo "$as_me:$LINENO: result: $RANLIB" >&5
4565echo "${ECHO_T}$RANLIB" >&6
2360else 4566else
2361 echo "$ac_t""no" 1>&6 4567 echo "$as_me:$LINENO: result: no" >&5
4568echo "${ECHO_T}no" >&6
2362fi 4569fi
2363 4570
2364 4571fi
2365if test -z "$ac_cv_prog_RANLIB"; then 4572if test -z "$ac_cv_prog_RANLIB"; then
2366if test -n "$ac_tool_prefix"; then 4573 ac_ct_RANLIB=$RANLIB
2367 # Extract the first word of "ranlib", so it can be a program name with args. 4574 # Extract the first word of "ranlib", so it can be a program name with args.
2368set dummy ranlib; ac_word=$2 4575set dummy ranlib; ac_word=$2
4576echo "$as_me:$LINENO: checking for $ac_word" >&5
2369echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4577echo $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 4578if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2372 echo $ac_n "(cached) $ac_c" 1>&6 4579 echo $ECHO_N "(cached) $ECHO_C" >&6
2373else 4580else
2374 if test -n "$RANLIB"; then 4581 if test -n "$ac_ct_RANLIB"; then
2375 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4582 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2376else 4583else
2377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378 ac_dummy="$PATH" 4585for as_dir in $PATH
2379 for ac_dir in $ac_dummy; do 4586do
4587 IFS=$as_save_IFS
2380 test -z "$ac_dir" && ac_dir=. 4588 test -z "$as_dir" && as_dir=.
2381 if test -f $ac_dir/$ac_word; then 4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2382 ac_cv_prog_RANLIB="ranlib" 4591 ac_cv_prog_ac_ct_RANLIB="ranlib"
4592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2383 break 4593 break 2
2384 fi 4594 fi
2385 done 4595done
2386 IFS="$ac_save_ifs" 4596done
4597
2387 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 4598 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2388fi 4599fi
2389fi 4600fi
4601ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4602if test -n "$ac_ct_RANLIB"; then
4603 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4604echo "${ECHO_T}$ac_ct_RANLIB" >&6
4605else
4606 echo "$as_me:$LINENO: result: no" >&5
4607echo "${ECHO_T}no" >&6
4608fi
4609
4610 RANLIB=$ac_ct_RANLIB
4611else
2390RANLIB="$ac_cv_prog_RANLIB" 4612 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 4613fi
2396 4614
2397else 4615if 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. 4616 # 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 4617set dummy ${ac_tool_prefix}strip; ac_word=$2
4618echo "$as_me:$LINENO: checking for $ac_word" >&5
2404echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4619echo $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 4620if test "${ac_cv_prog_STRIP+set}" = set; then
2407 echo $ac_n "(cached) $ac_c" 1>&6 4621 echo $ECHO_N "(cached) $ECHO_C" >&6
2408else 4622else
2409 if test -n "$STRIP"; then 4623 if test -n "$STRIP"; then
2410 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4624 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2411else 4625else
2412 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 ac_dummy="$PATH" 4627for as_dir in $PATH
2414 for ac_dir in $ac_dummy; do 4628do
4629 IFS=$as_save_IFS
2415 test -z "$ac_dir" && ac_dir=. 4630 test -z "$as_dir" && as_dir=.
2416 if test -f $ac_dir/$ac_word; then 4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2417 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4633 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2418 break 4635 break 2
2419 fi 4636 fi
2420 done 4637done
2421 IFS="$ac_save_ifs" 4638done
4639
2422fi 4640fi
2423fi 4641fi
2424STRIP="$ac_cv_prog_STRIP" 4642STRIP=$ac_cv_prog_STRIP
2425if test -n "$STRIP"; then 4643if test -n "$STRIP"; then
2426 echo "$ac_t""$STRIP" 1>&6 4644 echo "$as_me:$LINENO: result: $STRIP" >&5
4645echo "${ECHO_T}$STRIP" >&6
2427else 4646else
2428 echo "$ac_t""no" 1>&6 4647 echo "$as_me:$LINENO: result: no" >&5
4648echo "${ECHO_T}no" >&6
2429fi 4649fi
2430 4650
2431 4651fi
2432if test -z "$ac_cv_prog_STRIP"; then 4652if test -z "$ac_cv_prog_STRIP"; then
2433if test -n "$ac_tool_prefix"; then 4653 ac_ct_STRIP=$STRIP
2434 # Extract the first word of "strip", so it can be a program name with args. 4654 # Extract the first word of "strip", so it can be a program name with args.
2435set dummy strip; ac_word=$2 4655set dummy strip; ac_word=$2
4656echo "$as_me:$LINENO: checking for $ac_word" >&5
2436echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4657echo $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 4658if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2439 echo $ac_n "(cached) $ac_c" 1>&6 4659 echo $ECHO_N "(cached) $ECHO_C" >&6
2440else 4660else
2441 if test -n "$STRIP"; then 4661 if test -n "$ac_ct_STRIP"; then
2442 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4662 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2443else 4663else
2444 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 ac_dummy="$PATH" 4665for as_dir in $PATH
2446 for ac_dir in $ac_dummy; do 4666do
4667 IFS=$as_save_IFS
2447 test -z "$ac_dir" && ac_dir=. 4668 test -z "$as_dir" && as_dir=.
2448 if test -f $ac_dir/$ac_word; then 4669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2449 ac_cv_prog_STRIP="strip" 4671 ac_cv_prog_ac_ct_STRIP="strip"
4672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2450 break 4673 break 2
2451 fi 4674 fi
2452 done 4675done
2453 IFS="$ac_save_ifs" 4676done
4677
2454 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" 4678 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2455fi 4679fi
2456fi 4680fi
4681ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4682if test -n "$ac_ct_STRIP"; then
4683 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4684echo "${ECHO_T}$ac_ct_STRIP" >&6
4685else
4686 echo "$as_me:$LINENO: result: no" >&5
4687echo "${ECHO_T}no" >&6
4688fi
4689
4690 STRIP=$ac_ct_STRIP
4691else
2457STRIP="$ac_cv_prog_STRIP" 4692 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 4693fi
2468 4694
2469 4695
2470enable_dlopen=no 4696enable_dlopen=no
2471enable_win32_dll=no 4697enable_win32_dll=no
2472 4698
2473# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 4699# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2474if test "${enable_libtool_lock+set}" = set; then 4700if test "${enable_libtool_lock+set}" = set; then
2475 enableval="$enable_libtool_lock" 4701 enableval="$enable_libtool_lock"
2476 : 4702
2477fi 4703fi;
2478
2479test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4704test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2480 4705
2481# Some flags need to be propagated to the compiler or linker for good 4706# Some flags need to be propagated to the compiler or linker for good
2482# libtool support. 4707# libtool support.
2483case "$host" in 4708case "$host" in
2484*-*-irix6*) 4709*-*-irix6*)
2485 # Find out which ABI we are using. 4710 # Find out which ABI we are using.
2486 echo '#line 2487 "configure"' > conftest.$ac_ext 4711 echo '#line 4711 "configure"' > conftest.$ac_ext
2487 if { (eval echo configure:2488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4713 (eval $ac_compile) 2>&5
4714 ac_status=$?
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; then
2488 case "`/usr/bin/file conftest.$ac_objext`" in 4717 case "`/usr/bin/file conftest.$ac_objext`" in
2489 *32-bit*) 4718 *32-bit*)
2490 LD="${LD-ld} -32" 4719 LD="${LD-ld} -32"
2491 ;; 4720 ;;
2492 *N32*) 4721 *N32*)
2502 4731
2503*-*-sco3.2v5*) 4732*-*-sco3.2v5*)
2504 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4733 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2505 SAVE_CFLAGS="$CFLAGS" 4734 SAVE_CFLAGS="$CFLAGS"
2506 CFLAGS="$CFLAGS -belf" 4735 CFLAGS="$CFLAGS -belf"
4736 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 4737echo $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 4738if test "${lt_cv_cc_needs_belf+set}" = set; then
2510 echo $ac_n "(cached) $ac_c" 1>&6 4739 echo $ECHO_N "(cached) $ECHO_C" >&6
2511else 4740else
2512 4741
4742
2513 ac_ext=c 4743 ac_ext=c
2514# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2515ac_cpp='$CPP $CPPFLAGS' 4744ac_cpp='$CPP $CPPFLAGS'
2516ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 4745ac_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' 4746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2518cross_compiling=$ac_cv_prog_cc_cross 4747ac_compiler_gnu=$ac_cv_c_compiler_gnu
2519 4748
2520 cat > conftest.$ac_ext <<EOF 4749 cat >conftest.$ac_ext <<_ACEOF
2521#line 2522 "configure" 4750/* confdefs.h. */
2522#include "confdefs.h" 4751_ACEOF
4752cat confdefs.h >>conftest.$ac_ext
4753cat >>conftest.$ac_ext <<_ACEOF
4754/* end confdefs.h. */
2523 4755
2524int main() { 4756int
4757main ()
4758{
2525 4759
4760 ;
2526; return 0; } 4761 return 0;
2527EOF 4762}
2528if { (eval echo configure:2529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4763_ACEOF
4764rm -f conftest.$ac_objext conftest$ac_exeext
4765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4766 (eval $ac_link) 2>conftest.er1
4767 ac_status=$?
4768 grep -v '^ *+' conftest.er1 >conftest.err
2529 rm -rf conftest* 4769 rm -f conftest.er1
4770 cat conftest.err >&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); } &&
4773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4775 (eval $ac_try) 2>&5
4776 ac_status=$?
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); }; } &&
4779 { ac_try='test -s conftest$ac_exeext'
4780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781 (eval $ac_try) 2>&5
4782 ac_status=$?
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); }; }; then
2530 lt_cv_cc_needs_belf=yes 4785 lt_cv_cc_needs_belf=yes
2531else 4786else
2532 echo "configure: failed program was:" >&5 4787 echo "$as_me: failed program was:" >&5
2533 cat conftest.$ac_ext >&5 4788sed 's/^/| /' conftest.$ac_ext >&5
2534 rm -rf conftest* 4789
2535 lt_cv_cc_needs_belf=no 4790lt_cv_cc_needs_belf=no
2536fi 4791fi
2537rm -f conftest* 4792rm -f conftest.err conftest.$ac_objext \
4793 conftest$ac_exeext conftest.$ac_ext
2538 ac_ext=c 4794 ac_ext=c
2539# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2540ac_cpp='$CPP $CPPFLAGS' 4795ac_cpp='$CPP $CPPFLAGS'
2541ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 4796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2542ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 4797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2543cross_compiling=$ac_cv_prog_cc_cross 4798ac_compiler_gnu=$ac_cv_c_compiler_gnu
2544 4799
2545fi 4800fi
2546 4801echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
2547echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 4802echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
2548 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4803 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 4804 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2550 CFLAGS="$SAVE_CFLAGS" 4805 CFLAGS="$SAVE_CFLAGS"
2551 fi 4806 fi
2552 ;; 4807 ;;
2637set dummy $CC 4892set dummy $CC
2638compiler="$2" 4893compiler="$2"
2639 4894
2640## FIXME: this should be a separate macro 4895## FIXME: this should be a separate macro
2641## 4896##
4897echo "$as_me:$LINENO: checking for objdir" >&5
2642echo $ac_n "checking for objdir""... $ac_c" 1>&6 4898echo $ECHO_N "checking for objdir... $ECHO_C" >&6
2643echo "configure:2644: checking for objdir" >&5
2644rm -f .libs 2>/dev/null 4899rm -f .libs 2>/dev/null
2645mkdir .libs 2>/dev/null 4900mkdir .libs 2>/dev/null
2646if test -d .libs; then 4901if test -d .libs; then
2647 objdir=.libs 4902 objdir=.libs
2648else 4903else
2649 # MS-DOS does not allow filenames that begin with a dot. 4904 # MS-DOS does not allow filenames that begin with a dot.
2650 objdir=_libs 4905 objdir=_libs
2651fi 4906fi
2652rmdir .libs 2>/dev/null 4907rmdir .libs 2>/dev/null
4908echo "$as_me:$LINENO: result: $objdir" >&5
2653echo "$ac_t""$objdir" 1>&6 4909echo "${ECHO_T}$objdir" >&6
2654## 4910##
2655## END FIXME 4911## END FIXME
2656 4912
2657 4913
2658## FIXME: this should be a separate macro 4914## FIXME: this should be a separate macro
2659## 4915##
4916
2660# Check whether --with-pic or --without-pic was given. 4917# Check whether --with-pic or --without-pic was given.
2661if test "${with_pic+set}" = set; then 4918if test "${with_pic+set}" = set; then
2662 withval="$with_pic" 4919 withval="$with_pic"
2663 pic_mode="$withval" 4920 pic_mode="$withval"
2664else 4921else
2665 pic_mode=default 4922 pic_mode=default
2666fi 4923fi;
2667
2668test -z "$pic_mode" && pic_mode=default 4924test -z "$pic_mode" && pic_mode=default
2669 4925
2670# We assume here that the value for lt_cv_prog_cc_pic will not be cached 4926# 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 4927# in isolation, and that seeing it set (from the cache) indicates that
2672# the associated values are set (in the cache) correctly too. 4928# the associated values are set (in the cache) correctly too.
4929echo "$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 4930echo $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 4931if test "${lt_cv_prog_cc_pic+set}" = set; then
2676 echo $ac_n "(cached) $ac_c" 1>&6 4932 echo $ECHO_N "(cached) $ECHO_C" >&6
2677else 4933else
2678 lt_cv_prog_cc_pic= 4934 lt_cv_prog_cc_pic=
2679 lt_cv_prog_cc_shlib= 4935 lt_cv_prog_cc_shlib=
2680 lt_cv_prog_cc_wl= 4936 lt_cv_prog_cc_wl=
2681 lt_cv_prog_cc_static= 4937 lt_cv_prog_cc_static=
2804 fi 5060 fi
2805 5061
2806fi 5062fi
2807 5063
2808if test -z "$lt_cv_prog_cc_pic"; then 5064if test -z "$lt_cv_prog_cc_pic"; then
2809 echo "$ac_t""none" 1>&6 5065 echo "$as_me:$LINENO: result: none" >&5
5066echo "${ECHO_T}none" >&6
2810else 5067else
5068 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
2811 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6 5069echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
2812 5070
2813 # Check to make sure the pic_flag actually works. 5071 # Check to make sure the pic_flag actually works.
5072 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 5073echo $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 5074 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
2817 echo $ac_n "(cached) $ac_c" 1>&6 5075 echo $ECHO_N "(cached) $ECHO_C" >&6
2818else 5076else
2819 save_CFLAGS="$CFLAGS" 5077 save_CFLAGS="$CFLAGS"
2820 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" 5078 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
2821 cat > conftest.$ac_ext <<EOF 5079 cat >conftest.$ac_ext <<_ACEOF
2822#line 2823 "configure" 5080/* confdefs.h. */
2823#include "confdefs.h" 5081_ACEOF
5082cat confdefs.h >>conftest.$ac_ext
5083cat >>conftest.$ac_ext <<_ACEOF
5084/* end confdefs.h. */
2824 5085
2825int main() { 5086int
5087main ()
5088{
2826 5089
5090 ;
2827; return 0; } 5091 return 0;
2828EOF 5092}
2829if { (eval echo configure:2830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5093_ACEOF
5094rm -f conftest.$ac_objext
5095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5096 (eval $ac_compile) 2>conftest.er1
5097 ac_status=$?
5098 grep -v '^ *+' conftest.er1 >conftest.err
2830 rm -rf conftest* 5099 rm -f conftest.er1
5100 cat conftest.err >&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } &&
5103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105 (eval $ac_try) 2>&5
5106 ac_status=$?
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }; } &&
5109 { ac_try='test -s conftest.$ac_objext'
5110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5111 (eval $ac_try) 2>&5
5112 ac_status=$?
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); }; }; then
2831 case "$host_os" in 5115 case "$host_os" in
2832 hpux9* | hpux10* | hpux11*) 5116 hpux9* | hpux10* | hpux11*)
2833 # On HP-UX, both CC and GCC only warn that PIC is supported... then 5117 # 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 5118 # they create non-PIC objects. So, if there were any warnings, we
2835 # assume that PIC is not supported. 5119 # assume that PIC is not supported.
2841 ;; 5125 ;;
2842 *) 5126 *)
2843 lt_cv_prog_cc_pic_works=yes 5127 lt_cv_prog_cc_pic_works=yes
2844 ;; 5128 ;;
2845 esac 5129 esac
2846 5130
2847else 5131else
2848 echo "configure: failed program was:" >&5 5132 echo "$as_me: failed program was:" >&5
2849 cat conftest.$ac_ext >&5 5133sed 's/^/| /' conftest.$ac_ext >&5
2850 rm -rf conftest* 5134
2851 lt_cv_prog_cc_pic_works=no 5135 lt_cv_prog_cc_pic_works=no
2852 5136
2853fi 5137fi
2854rm -f conftest* 5138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2855 CFLAGS="$save_CFLAGS" 5139 CFLAGS="$save_CFLAGS"
2856 5140
2857fi 5141fi
2858 5142
2859 5143
2860 if test "X$lt_cv_prog_cc_pic_works" = Xno; then 5144 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
2861 lt_cv_prog_cc_pic= 5145 lt_cv_prog_cc_pic=
2862 lt_cv_prog_cc_can_build_shared=no 5146 lt_cv_prog_cc_can_build_shared=no
2863 else 5147 else
2864 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" 5148 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
2865 fi 5149 fi
2866 5150
5151 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
2867 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6 5152echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
2868fi 5153fi
2869## 5154##
2870## END FIXME 5155## END FIXME
2871 5156
2872# Check for any special shared library compilation flags. 5157# Check for any special shared library compilation flags.
2873if test -n "$lt_cv_prog_cc_shlib"; then 5158if test -n "$lt_cv_prog_cc_shlib"; then
5159 { 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 5160echo "$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 : 5161 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
2876 else 5162 else
5163 { 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 5164echo "$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 5165 lt_cv_prog_cc_can_build_shared=no
2879 fi 5166 fi
2880fi 5167fi
2881 5168
2882## FIXME: this should be a separate macro 5169## FIXME: this should be a separate macro
2883## 5170##
5171echo "$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 5172echo $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 5173if test "${lt_cv_prog_cc_static_works+set}" = set; then
2887 echo $ac_n "(cached) $ac_c" 1>&6 5174 echo $ECHO_N "(cached) $ECHO_C" >&6
2888else 5175else
2889 lt_cv_prog_cc_static_works=no 5176 lt_cv_prog_cc_static_works=no
2890 save_LDFLAGS="$LDFLAGS" 5177 save_LDFLAGS="$LDFLAGS"
2891 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" 5178 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
2892 cat > conftest.$ac_ext <<EOF 5179 cat >conftest.$ac_ext <<_ACEOF
2893#line 2894 "configure" 5180/* confdefs.h. */
2894#include "confdefs.h" 5181_ACEOF
5182cat confdefs.h >>conftest.$ac_ext
5183cat >>conftest.$ac_ext <<_ACEOF
5184/* end confdefs.h. */
2895 5185
2896int main() { 5186int
5187main ()
5188{
2897 5189
5190 ;
2898; return 0; } 5191 return 0;
2899EOF 5192}
2900if { (eval echo configure:2901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5193_ACEOF
5194rm -f conftest.$ac_objext conftest$ac_exeext
5195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5196 (eval $ac_link) 2>conftest.er1
5197 ac_status=$?
5198 grep -v '^ *+' conftest.er1 >conftest.err
2901 rm -rf conftest* 5199 rm -f conftest.er1
5200 cat conftest.err >&5
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); } &&
5203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5205 (eval $ac_try) 2>&5
5206 ac_status=$?
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); }; } &&
5209 { ac_try='test -s conftest$ac_exeext'
5210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5211 (eval $ac_try) 2>&5
5212 ac_status=$?
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); }; }; then
2902 lt_cv_prog_cc_static_works=yes 5215 lt_cv_prog_cc_static_works=yes
2903else 5216else
2904 echo "configure: failed program was:" >&5 5217 echo "$as_me: failed program was:" >&5
2905 cat conftest.$ac_ext >&5 5218sed 's/^/| /' conftest.$ac_ext >&5
5219
2906fi 5220fi
2907rm -f conftest* 5221rm -f conftest.err conftest.$ac_objext \
5222 conftest$ac_exeext conftest.$ac_ext
2908 LDFLAGS="$save_LDFLAGS" 5223 LDFLAGS="$save_LDFLAGS"
2909 5224
2910fi 5225fi
2911 5226
2912 5227
2913# Belt *and* braces to stop my trousers falling down: 5228# Belt *and* braces to stop my trousers falling down:
2914test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= 5229test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5230echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
2915echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6 5231echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
2916 5232
2917pic_flag="$lt_cv_prog_cc_pic" 5233pic_flag="$lt_cv_prog_cc_pic"
2918special_shlib_compile_flags="$lt_cv_prog_cc_shlib" 5234special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
2919wl="$lt_cv_prog_cc_wl" 5235wl="$lt_cv_prog_cc_wl"
2920link_static_flag="$lt_cv_prog_cc_static" 5236link_static_flag="$lt_cv_prog_cc_static"
2925 5241
2926 5242
2927## FIXME: this should be a separate macro 5243## FIXME: this should be a separate macro
2928## 5244##
2929# Check to see if options -o and -c are simultaneously supported by compiler 5245# Check to see if options -o and -c are simultaneously supported by compiler
5246echo "$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 5247echo $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 5248$rm -r conftest 2>/dev/null
2933mkdir conftest 5249mkdir conftest
2934cd conftest 5250cd conftest
2935echo "int some_variable = 0;" > conftest.$ac_ext 5251echo "int some_variable = 0;" > conftest.$ac_ext
2936mkdir out 5252mkdir out
2941# builds. 5257# builds.
2942chmod -w . 5258chmod -w .
2943save_CFLAGS="$CFLAGS" 5259save_CFLAGS="$CFLAGS"
2944CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" 5260CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
2945compiler_c_o=no 5261compiler_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 5262if { (eval echo configure:5262: \"$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 5263 # The compiler can only warn and ignore the option if not recognized
2948 # So say no if there are warnings 5264 # So say no if there are warnings
2949 if test -s out/conftest.err; then 5265 if test -s out/conftest.err; then
2950 compiler_c_o=no 5266 compiler_c_o=no
2951 else 5267 else
2954else 5270else
2955 # Append any errors to the config.log. 5271 # Append any errors to the config.log.
2956 cat out/conftest.err 1>&5 5272 cat out/conftest.err 1>&5
2957 compiler_c_o=no 5273 compiler_c_o=no
2958fi 5274fi
5275echo "$as_me:$LINENO: result: $compiler_c_o" >&5
2959echo "$ac_t""$compiler_c_o" 1>&6 5276echo "${ECHO_T}$compiler_c_o" >&6
2960CFLAGS="$save_CFLAGS" 5277CFLAGS="$save_CFLAGS"
2961chmod u+w . 5278chmod u+w .
2962$rm conftest* out/* 5279$rm conftest* out/*
2963rmdir out 5280rmdir out
2964cd .. 5281cd ..
2965rmdir conftest 5282rmdir conftest
2966$rm -r conftest 2>/dev/null 5283$rm -r conftest 2>/dev/null
2967 5284
2968if test x"$compiler_c_o" = x"yes"; then 5285if test x"$compiler_c_o" = x"yes"; then
2969 # Check to see if we can write to a .lo 5286 # Check to see if we can write to a .lo
5287 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 5288echo $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 5289 compiler_o_lo=no
2973 save_CFLAGS="$CFLAGS" 5290 save_CFLAGS="$CFLAGS"
2974 CFLAGS="$CFLAGS -c -o conftest.lo" 5291 CFLAGS="$CFLAGS -c -o conftest.lo"
2975 cat > conftest.$ac_ext <<EOF 5292 cat >conftest.$ac_ext <<_ACEOF
2976#line 2977 "configure" 5293/* confdefs.h. */
2977#include "confdefs.h" 5294_ACEOF
5295cat confdefs.h >>conftest.$ac_ext
5296cat >>conftest.$ac_ext <<_ACEOF
5297/* end confdefs.h. */
2978 5298
2979int main() { 5299int
5300main ()
5301{
2980int some_variable = 0; 5302int some_variable = 0;
5303 ;
2981; return 0; } 5304 return 0;
2982EOF 5305}
2983if { (eval echo configure:2984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5306_ACEOF
5307rm -f conftest.$ac_objext
5308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5309 (eval $ac_compile) 2>conftest.er1
5310 ac_status=$?
5311 grep -v '^ *+' conftest.er1 >conftest.err
2984 rm -rf conftest* 5312 rm -f conftest.er1
5313 cat conftest.err >&5
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); } &&
5316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318 (eval $ac_try) 2>&5
5319 ac_status=$?
5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321 (exit $ac_status); }; } &&
5322 { ac_try='test -s conftest.$ac_objext'
5323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5324 (eval $ac_try) 2>&5
5325 ac_status=$?
5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); }; }; then
2985 # The compiler can only warn and ignore the option if not recognized 5328 # The compiler can only warn and ignore the option if not recognized
2986 # So say no if there are warnings 5329 # So say no if there are warnings
2987 if test -s conftest.err; then 5330 if test -s conftest.err; then
2988 compiler_o_lo=no 5331 compiler_o_lo=no
2989 else 5332 else
2990 compiler_o_lo=yes 5333 compiler_o_lo=yes
2991 fi 5334 fi
2992 5335
2993else 5336else
2994 echo "configure: failed program was:" >&5 5337 echo "$as_me: failed program was:" >&5
2995 cat conftest.$ac_ext >&5 5338sed 's/^/| /' conftest.$ac_ext >&5
5339
2996fi 5340fi
2997rm -f conftest* 5341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5342 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
2998 echo "$ac_t""$compiler_c_o" 1>&6 5343echo "${ECHO_T}$compiler_c_o" >&6
2999 CFLAGS="$save_CFLAGS" 5344 CFLAGS="$save_CFLAGS"
3000else 5345else
3001 compiler_o_lo=no 5346 compiler_o_lo=no
3002fi 5347fi
3003## 5348##
3007## 5352##
3008# Check to see if we can do hard links to lock some files if needed 5353# Check to see if we can do hard links to lock some files if needed
3009hard_links="nottested" 5354hard_links="nottested"
3010if test "$compiler_c_o" = no && test "$need_locks" != no; then 5355if test "$compiler_c_o" = no && test "$need_locks" != no; then
3011 # do not overwrite the value of need_locks provided by the user 5356 # do not overwrite the value of need_locks provided by the user
5357 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 5358echo $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 5359 hard_links=yes
3015 $rm conftest* 5360 $rm conftest*
3016 ln conftest.a conftest.b 2>/dev/null && hard_links=no 5361 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3017 touch conftest.a 5362 touch conftest.a
3018 ln conftest.a conftest.b 2>&5 || hard_links=no 5363 ln conftest.a conftest.b 2>&5 || hard_links=no
3019 ln conftest.a conftest.b 2>/dev/null && hard_links=no 5364 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5365 echo "$as_me:$LINENO: result: $hard_links" >&5
3020 echo "$ac_t""$hard_links" 1>&6 5366echo "${ECHO_T}$hard_links" >&6
3021 if test "$hard_links" = no; then 5367 if test "$hard_links" = no; then
5368 { 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 5369echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
3023 need_locks=warn 5370 need_locks=warn
3024 fi 5371 fi
3025else 5372else
3026 need_locks=no 5373 need_locks=no
3027fi 5374fi
3030 5377
3031## FIXME: this should be a separate macro 5378## FIXME: this should be a separate macro
3032## 5379##
3033if test "$GCC" = yes; then 5380if test "$GCC" = yes; then
3034 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler 5381 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5382 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 5383echo $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 5384 echo "int some_variable = 0;" > conftest.$ac_ext
3038 save_CFLAGS="$CFLAGS" 5385 save_CFLAGS="$CFLAGS"
3039 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" 5386 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3040 compiler_rtti_exceptions=no 5387 compiler_rtti_exceptions=no
3041 cat > conftest.$ac_ext <<EOF 5388 cat >conftest.$ac_ext <<_ACEOF
3042#line 3043 "configure" 5389/* confdefs.h. */
3043#include "confdefs.h" 5390_ACEOF
5391cat confdefs.h >>conftest.$ac_ext
5392cat >>conftest.$ac_ext <<_ACEOF
5393/* end confdefs.h. */
3044 5394
3045int main() { 5395int
5396main ()
5397{
3046int some_variable = 0; 5398int some_variable = 0;
5399 ;
3047; return 0; } 5400 return 0;
3048EOF 5401}
3049if { (eval echo configure:3050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5402_ACEOF
5403rm -f conftest.$ac_objext
5404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5405 (eval $ac_compile) 2>conftest.er1
5406 ac_status=$?
5407 grep -v '^ *+' conftest.er1 >conftest.err
3050 rm -rf conftest* 5408 rm -f conftest.er1
5409 cat conftest.err >&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); } &&
5412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5414 (eval $ac_try) 2>&5
5415 ac_status=$?
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); }; } &&
5418 { ac_try='test -s conftest.$ac_objext'
5419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5420 (eval $ac_try) 2>&5
5421 ac_status=$?
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); }; }; then
3051 # The compiler can only warn and ignore the option if not recognized 5424 # The compiler can only warn and ignore the option if not recognized
3052 # So say no if there are warnings 5425 # So say no if there are warnings
3053 if test -s conftest.err; then 5426 if test -s conftest.err; then
3054 compiler_rtti_exceptions=no 5427 compiler_rtti_exceptions=no
3055 else 5428 else
3056 compiler_rtti_exceptions=yes 5429 compiler_rtti_exceptions=yes
3057 fi 5430 fi
3058 5431
3059else 5432else
3060 echo "configure: failed program was:" >&5 5433 echo "$as_me: failed program was:" >&5
3061 cat conftest.$ac_ext >&5 5434sed 's/^/| /' conftest.$ac_ext >&5
5435
3062fi 5436fi
3063rm -f conftest* 5437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3064 CFLAGS="$save_CFLAGS" 5438 CFLAGS="$save_CFLAGS"
5439 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
3065 echo "$ac_t""$compiler_rtti_exceptions" 1>&6 5440echo "${ECHO_T}$compiler_rtti_exceptions" >&6
3066 5441
3067 if test "$compiler_rtti_exceptions" = "yes"; then 5442 if test "$compiler_rtti_exceptions" = "yes"; then
3068 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' 5443 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
3069 else 5444 else
3070 no_builtin_flag=' -fno-builtin' 5445 no_builtin_flag=' -fno-builtin'
3074## END FIXME 5449## END FIXME
3075 5450
3076## FIXME: this should be a separate macro 5451## FIXME: this should be a separate macro
3077## 5452##
3078# See if the linker supports building shared libraries. 5453# See if the linker supports building shared libraries.
5454echo "$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 5455echo $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 5456
3082allow_undefined_flag= 5457allow_undefined_flag=
3083no_undefined_flag= 5458no_undefined_flag=
3084need_lib_prefix=unknown 5459need_lib_prefix=unknown
3085need_version=unknown 5460need_version=unknown
3632 *) 6007 *)
3633 ld_shlibs=no 6008 ld_shlibs=no
3634 ;; 6009 ;;
3635 esac 6010 esac
3636fi 6011fi
6012echo "$as_me:$LINENO: result: $ld_shlibs" >&5
3637echo "$ac_t""$ld_shlibs" 1>&6 6013echo "${ECHO_T}$ld_shlibs" >&6
3638test "$ld_shlibs" = no && can_build_shared=no 6014test "$ld_shlibs" = no && can_build_shared=no
3639## 6015##
3640## END FIXME 6016## END FIXME
3641 6017
3642## FIXME: this should be a separate macro 6018## FIXME: this should be a separate macro
3643## 6019##
3644# Check hardcoding attributes. 6020# Check hardcoding attributes.
6021echo "$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 6022echo $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= 6023hardcode_action=
3648if test -n "$hardcode_libdir_flag_spec" || \ 6024if test -n "$hardcode_libdir_flag_spec" || \
3649 test -n "$runpath_var"; then 6025 test -n "$runpath_var"; then
3650 6026
3651 # We can hardcode non-existant directories. 6027 # We can hardcode non-existant directories.
3664else 6040else
3665 # We cannot hardcode anything, or else we can only hardcode existing 6041 # We cannot hardcode anything, or else we can only hardcode existing
3666 # directories. 6042 # directories.
3667 hardcode_action=unsupported 6043 hardcode_action=unsupported
3668fi 6044fi
6045echo "$as_me:$LINENO: result: $hardcode_action" >&5
3669echo "$ac_t""$hardcode_action" 1>&6 6046echo "${ECHO_T}$hardcode_action" >&6
3670## 6047##
3671## END FIXME 6048## END FIXME
3672 6049
3673## FIXME: this should be a separate macro 6050## FIXME: this should be a separate macro
3674## 6051##
3675striplib= 6052striplib=
3676old_striplib= 6053old_striplib=
6054echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
3677echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6 6055echo $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 6056if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
3680 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 6057 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3681 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 6058 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3682 echo "$ac_t""yes" 1>&6 6059 echo "$as_me:$LINENO: result: yes" >&5
6060echo "${ECHO_T}yes" >&6
3683else 6061else
3684 echo "$ac_t""no" 1>&6 6062 echo "$as_me:$LINENO: result: no" >&5
6063echo "${ECHO_T}no" >&6
3685fi 6064fi
3686## 6065##
3687## END FIXME 6066## END FIXME
3688 6067
3689reload_cmds='$LD$reload_flag -o $output$reload_objs' 6068reload_cmds='$LD$reload_flag -o $output$reload_objs'
3690test -z "$deplibs_check_method" && deplibs_check_method=unknown 6069test -z "$deplibs_check_method" && deplibs_check_method=unknown
3691 6070
3692## FIXME: this should be a separate macro 6071## FIXME: this should be a separate macro
3693## 6072##
3694# PORTME Fill in your ld.so characteristics 6073# PORTME Fill in your ld.so characteristics
6074echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
3695echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6 6075echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
3696echo "configure:3697: checking dynamic linker characteristics" >&5
3697library_names_spec= 6076library_names_spec=
3698libname_spec='lib$name' 6077libname_spec='lib$name'
3699soname_spec= 6078soname_spec=
3700postinstall_cmds= 6079postinstall_cmds=
3701postuninstall_cmds= 6080postuninstall_cmds=
4017 6396
4018*) 6397*)
4019 dynamic_linker=no 6398 dynamic_linker=no
4020 ;; 6399 ;;
4021esac 6400esac
6401echo "$as_me:$LINENO: result: $dynamic_linker" >&5
4022echo "$ac_t""$dynamic_linker" 1>&6 6402echo "${ECHO_T}$dynamic_linker" >&6
4023test "$dynamic_linker" = no && can_build_shared=no 6403test "$dynamic_linker" = no && can_build_shared=no
4024## 6404##
4025## END FIXME 6405## END FIXME
4026 6406
4027## FIXME: this should be a separate macro 6407## FIXME: this should be a separate macro
4028## 6408##
4029# Report the final consequences. 6409# Report the final consequences.
6410echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
4030echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6 6411echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
4031echo "configure:4032: checking if libtool supports shared libraries" >&5 6412echo "$as_me:$LINENO: result: $can_build_shared" >&5
4032echo "$ac_t""$can_build_shared" 1>&6 6413echo "${ECHO_T}$can_build_shared" >&6
4033## 6414##
4034## END FIXME 6415## END FIXME
4035 6416
4036if test "$hardcode_action" = relink; then 6417if test "$hardcode_action" = relink; then
4037 # Fast installation is not supported 6418 # Fast installation is not supported
4066 lt_cv_dlopen="LoadLibrary" 6447 lt_cv_dlopen="LoadLibrary"
4067 lt_cv_dlopen_libs= 6448 lt_cv_dlopen_libs=
4068 ;; 6449 ;;
4069 6450
4070 *) 6451 *)
6452 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4071 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 6453echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4072echo "configure:4073: checking for dlopen in -ldl" >&5 6454if 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 6455 echo $ECHO_N "(cached) $ECHO_C" >&6
4076else 6456else
4077 ac_save_LIBS="$LIBS" 6457 ac_check_lib_save_LIBS=$LIBS
4078LIBS="-ldl $LIBS" 6458LIBS="-ldl $LIBS"
4079cat > conftest.$ac_ext <<EOF 6459cat >conftest.$ac_ext <<_ACEOF
4080#line 4081 "configure" 6460/* confdefs.h. */
4081#include "confdefs.h" 6461_ACEOF
6462cat confdefs.h >>conftest.$ac_ext
6463cat >>conftest.$ac_ext <<_ACEOF
6464/* end confdefs.h. */
6465
4082/* Override any gcc2 internal prototype to avoid an error. */ 6466/* Override any gcc2 internal prototype to avoid an error. */
6467#ifdef __cplusplus
6468extern "C"
6469#endif
4083/* We use char because int might match the return type of a gcc2 6470/* We use char because int might match the return type of a gcc2
4084 builtin and then its argument prototype would still apply. */ 6471 builtin and then its argument prototype would still apply. */
4085char dlopen(); 6472char dlopen ();
4086 6473int
4087int main() { 6474main ()
6475{
4088dlopen() 6476dlopen ();
6477 ;
4089; return 0; } 6478 return 0;
4090EOF 6479}
4091if { (eval echo configure:4092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6480_ACEOF
6481rm -f conftest.$ac_objext conftest$ac_exeext
6482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6483 (eval $ac_link) 2>conftest.er1
6484 ac_status=$?
6485 grep -v '^ *+' conftest.er1 >conftest.err
4092 rm -rf conftest* 6486 rm -f conftest.er1
4093 eval "ac_cv_lib_$ac_lib_var=yes" 6487 cat conftest.err >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); } &&
6490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492 (eval $ac_try) 2>&5
6493 ac_status=$?
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; } &&
6496 { ac_try='test -s conftest$ac_exeext'
6497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6498 (eval $ac_try) 2>&5
6499 ac_status=$?
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); }; }; then
6502 ac_cv_lib_dl_dlopen=yes
4094else 6503else
4095 echo "configure: failed program was:" >&5 6504 echo "$as_me: failed program was:" >&5
4096 cat conftest.$ac_ext >&5 6505sed 's/^/| /' conftest.$ac_ext >&5
4097 rm -rf conftest* 6506
4098 eval "ac_cv_lib_$ac_lib_var=no" 6507ac_cv_lib_dl_dlopen=no
4099fi 6508fi
4100rm -f conftest* 6509rm -f conftest.err conftest.$ac_objext \
6510 conftest$ac_exeext conftest.$ac_ext
4101LIBS="$ac_save_LIBS" 6511LIBS=$ac_check_lib_save_LIBS
4102
4103fi 6512fi
4104if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 6513echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4105 echo "$ac_t""yes" 1>&6 6514echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6515if test $ac_cv_lib_dl_dlopen = yes; then
4106 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 6516 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
4107else 6517else
4108 echo "$ac_t""no" 1>&6 6518 echo "$as_me:$LINENO: checking for dlopen" >&5
4109echo $ac_n "checking for dlopen""... $ac_c" 1>&6 6519echo $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 6520if test "${ac_cv_func_dlopen+set}" = set; then
4112 echo $ac_n "(cached) $ac_c" 1>&6 6521 echo $ECHO_N "(cached) $ECHO_C" >&6
4113else 6522else
4114 cat > conftest.$ac_ext <<EOF 6523 cat >conftest.$ac_ext <<_ACEOF
4115#line 4116 "configure" 6524/* confdefs.h. */
4116#include "confdefs.h" 6525_ACEOF
6526cat confdefs.h >>conftest.$ac_ext
6527cat >>conftest.$ac_ext <<_ACEOF
6528/* end confdefs.h. */
6529/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
6530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6531#define dlopen innocuous_dlopen
6532
4117/* System header to define __stub macros and hopefully few prototypes, 6533/* System header to define __stub macros and hopefully few prototypes,
4118 which can conflict with char dlopen(); below. */ 6534 which can conflict with char dlopen (); below.
6535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6536 <limits.h> exists even on freestanding compilers. */
6537
6538#ifdef __STDC__
6539# include <limits.h>
6540#else
4119#include <assert.h> 6541# include <assert.h>
6542#endif
6543
6544#undef dlopen
6545
4120/* Override any gcc2 internal prototype to avoid an error. */ 6546/* Override any gcc2 internal prototype to avoid an error. */
6547#ifdef __cplusplus
6548extern "C"
6549{
6550#endif
4121/* We use char because int might match the return type of a gcc2 6551/* We use char because int might match the return type of a gcc2
4122 builtin and then its argument prototype would still apply. */ 6552 builtin and then its argument prototype would still apply. */
4123char dlopen(); 6553char dlopen ();
4124
4125int main() {
4126
4127/* The GNU C library defines this for functions which it implements 6554/* The GNU C library defines this for functions which it implements
4128 to always fail with ENOSYS. Some functions are actually named 6555 to always fail with ENOSYS. Some functions are actually named
4129 something starting with __ and the normal name is an alias. */ 6556 something starting with __ and the normal name is an alias. */
4130#if defined (__stub_dlopen) || defined (__stub___dlopen) 6557#if defined (__stub_dlopen) || defined (__stub___dlopen)
4131choke me 6558choke me
4132#else 6559#else
4133dlopen(); 6560char (*f) () = dlopen;
4134#endif 6561#endif
6562#ifdef __cplusplus
6563}
6564#endif
4135 6565
6566int
6567main ()
6568{
6569return f != dlopen;
6570 ;
4136; return 0; } 6571 return 0;
4137EOF 6572}
4138if { (eval echo configure:4139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6573_ACEOF
6574rm -f conftest.$ac_objext conftest$ac_exeext
6575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6576 (eval $ac_link) 2>conftest.er1
6577 ac_status=$?
6578 grep -v '^ *+' conftest.er1 >conftest.err
4139 rm -rf conftest* 6579 rm -f conftest.er1
6580 cat conftest.err >&5
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); } &&
6583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585 (eval $ac_try) 2>&5
6586 ac_status=$?
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); }; } &&
6589 { ac_try='test -s conftest$ac_exeext'
6590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591 (eval $ac_try) 2>&5
6592 ac_status=$?
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); }; }; then
4140 eval "ac_cv_func_dlopen=yes" 6595 ac_cv_func_dlopen=yes
4141else 6596else
4142 echo "configure: failed program was:" >&5 6597 echo "$as_me: failed program was:" >&5
4143 cat conftest.$ac_ext >&5 6598sed 's/^/| /' conftest.$ac_ext >&5
4144 rm -rf conftest* 6599
4145 eval "ac_cv_func_dlopen=no" 6600ac_cv_func_dlopen=no
4146fi 6601fi
4147rm -f conftest* 6602rm -f conftest.err conftest.$ac_objext \
6603 conftest$ac_exeext conftest.$ac_ext
4148fi 6604fi
4149 6605echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6606echo "${ECHO_T}$ac_cv_func_dlopen" >&6
4150if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then 6607if test $ac_cv_func_dlopen = yes; then
4151 echo "$ac_t""yes" 1>&6
4152 lt_cv_dlopen="dlopen" 6608 lt_cv_dlopen="dlopen"
4153else 6609else
4154 echo "$ac_t""no" 1>&6 6610 echo "$as_me:$LINENO: checking for shl_load" >&5
4155echo $ac_n "checking for shl_load""... $ac_c" 1>&6 6611echo $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 6612if test "${ac_cv_func_shl_load+set}" = set; then
4158 echo $ac_n "(cached) $ac_c" 1>&6 6613 echo $ECHO_N "(cached) $ECHO_C" >&6
4159else 6614else
4160 cat > conftest.$ac_ext <<EOF 6615 cat >conftest.$ac_ext <<_ACEOF
4161#line 4162 "configure" 6616/* confdefs.h. */
4162#include "confdefs.h" 6617_ACEOF
6618cat confdefs.h >>conftest.$ac_ext
6619cat >>conftest.$ac_ext <<_ACEOF
6620/* end confdefs.h. */
6621/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
6622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6623#define shl_load innocuous_shl_load
6624
4163/* System header to define __stub macros and hopefully few prototypes, 6625/* System header to define __stub macros and hopefully few prototypes,
4164 which can conflict with char shl_load(); below. */ 6626 which can conflict with char shl_load (); below.
6627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6628 <limits.h> exists even on freestanding compilers. */
6629
6630#ifdef __STDC__
6631# include <limits.h>
6632#else
4165#include <assert.h> 6633# include <assert.h>
6634#endif
6635
6636#undef shl_load
6637
4166/* Override any gcc2 internal prototype to avoid an error. */ 6638/* Override any gcc2 internal prototype to avoid an error. */
6639#ifdef __cplusplus
6640extern "C"
6641{
6642#endif
4167/* We use char because int might match the return type of a gcc2 6643/* We use char because int might match the return type of a gcc2
4168 builtin and then its argument prototype would still apply. */ 6644 builtin and then its argument prototype would still apply. */
4169char shl_load(); 6645char shl_load ();
4170
4171int main() {
4172
4173/* The GNU C library defines this for functions which it implements 6646/* The GNU C library defines this for functions which it implements
4174 to always fail with ENOSYS. Some functions are actually named 6647 to always fail with ENOSYS. Some functions are actually named
4175 something starting with __ and the normal name is an alias. */ 6648 something starting with __ and the normal name is an alias. */
4176#if defined (__stub_shl_load) || defined (__stub___shl_load) 6649#if defined (__stub_shl_load) || defined (__stub___shl_load)
4177choke me 6650choke me
4178#else 6651#else
4179shl_load(); 6652char (*f) () = shl_load;
4180#endif 6653#endif
6654#ifdef __cplusplus
6655}
6656#endif
4181 6657
6658int
6659main ()
6660{
6661return f != shl_load;
6662 ;
4182; return 0; } 6663 return 0;
4183EOF 6664}
4184if { (eval echo configure:4185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6665_ACEOF
6666rm -f conftest.$ac_objext conftest$ac_exeext
6667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6668 (eval $ac_link) 2>conftest.er1
6669 ac_status=$?
6670 grep -v '^ *+' conftest.er1 >conftest.err
4185 rm -rf conftest* 6671 rm -f conftest.er1
6672 cat conftest.err >&5
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); } &&
6675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6677 (eval $ac_try) 2>&5
6678 ac_status=$?
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); }; } &&
6681 { ac_try='test -s conftest$ac_exeext'
6682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6683 (eval $ac_try) 2>&5
6684 ac_status=$?
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); }; }; then
4186 eval "ac_cv_func_shl_load=yes" 6687 ac_cv_func_shl_load=yes
4187else 6688else
4188 echo "configure: failed program was:" >&5 6689 echo "$as_me: failed program was:" >&5
4189 cat conftest.$ac_ext >&5 6690sed 's/^/| /' conftest.$ac_ext >&5
4190 rm -rf conftest* 6691
4191 eval "ac_cv_func_shl_load=no" 6692ac_cv_func_shl_load=no
4192fi 6693fi
4193rm -f conftest* 6694rm -f conftest.err conftest.$ac_objext \
6695 conftest$ac_exeext conftest.$ac_ext
4194fi 6696fi
4195 6697echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6698echo "${ECHO_T}$ac_cv_func_shl_load" >&6
4196if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then 6699if test $ac_cv_func_shl_load = yes; then
4197 echo "$ac_t""yes" 1>&6
4198 lt_cv_dlopen="shl_load" 6700 lt_cv_dlopen="shl_load"
4199else 6701else
4200 echo "$ac_t""no" 1>&6 6702 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
4201echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6 6703echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
4202echo "configure:4203: checking for dlopen in -lsvld" >&5 6704if 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 6705 echo $ECHO_N "(cached) $ECHO_C" >&6
4206else 6706else
4207 ac_save_LIBS="$LIBS" 6707 ac_check_lib_save_LIBS=$LIBS
4208LIBS="-lsvld $LIBS" 6708LIBS="-lsvld $LIBS"
4209cat > conftest.$ac_ext <<EOF 6709cat >conftest.$ac_ext <<_ACEOF
4210#line 4211 "configure" 6710/* confdefs.h. */
4211#include "confdefs.h" 6711_ACEOF
6712cat confdefs.h >>conftest.$ac_ext
6713cat >>conftest.$ac_ext <<_ACEOF
6714/* end confdefs.h. */
6715
4212/* Override any gcc2 internal prototype to avoid an error. */ 6716/* Override any gcc2 internal prototype to avoid an error. */
6717#ifdef __cplusplus
6718extern "C"
6719#endif
4213/* We use char because int might match the return type of a gcc2 6720/* We use char because int might match the return type of a gcc2
4214 builtin and then its argument prototype would still apply. */ 6721 builtin and then its argument prototype would still apply. */
4215char dlopen(); 6722char dlopen ();
4216 6723int
4217int main() { 6724main ()
6725{
4218dlopen() 6726dlopen ();
6727 ;
4219; return 0; } 6728 return 0;
4220EOF 6729}
4221if { (eval echo configure:4222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6730_ACEOF
6731rm -f conftest.$ac_objext conftest$ac_exeext
6732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6733 (eval $ac_link) 2>conftest.er1
6734 ac_status=$?
6735 grep -v '^ *+' conftest.er1 >conftest.err
4222 rm -rf conftest* 6736 rm -f conftest.er1
4223 eval "ac_cv_lib_$ac_lib_var=yes" 6737 cat conftest.err >&5
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); } &&
6740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6742 (eval $ac_try) 2>&5
6743 ac_status=$?
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); }; } &&
6746 { ac_try='test -s conftest$ac_exeext'
6747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6748 (eval $ac_try) 2>&5
6749 ac_status=$?
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); }; }; then
6752 ac_cv_lib_svld_dlopen=yes
4224else 6753else
4225 echo "configure: failed program was:" >&5 6754 echo "$as_me: failed program was:" >&5
4226 cat conftest.$ac_ext >&5 6755sed 's/^/| /' conftest.$ac_ext >&5
4227 rm -rf conftest* 6756
4228 eval "ac_cv_lib_$ac_lib_var=no" 6757ac_cv_lib_svld_dlopen=no
4229fi 6758fi
4230rm -f conftest* 6759rm -f conftest.err conftest.$ac_objext \
6760 conftest$ac_exeext conftest.$ac_ext
4231LIBS="$ac_save_LIBS" 6761LIBS=$ac_check_lib_save_LIBS
4232
4233fi 6762fi
4234if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 6763echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
4235 echo "$ac_t""yes" 1>&6 6764echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6765if test $ac_cv_lib_svld_dlopen = yes; then
4236 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 6766 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
4237else 6767else
4238 echo "$ac_t""no" 1>&6 6768 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
4239echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 6769echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
4240echo "configure:4241: checking for shl_load in -ldld" >&5 6770if 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 6771 echo $ECHO_N "(cached) $ECHO_C" >&6
4244else 6772else
4245 ac_save_LIBS="$LIBS" 6773 ac_check_lib_save_LIBS=$LIBS
4246LIBS="-ldld $LIBS" 6774LIBS="-ldld $LIBS"
4247cat > conftest.$ac_ext <<EOF 6775cat >conftest.$ac_ext <<_ACEOF
4248#line 4249 "configure" 6776/* confdefs.h. */
4249#include "confdefs.h" 6777_ACEOF
6778cat confdefs.h >>conftest.$ac_ext
6779cat >>conftest.$ac_ext <<_ACEOF
6780/* end confdefs.h. */
6781
4250/* Override any gcc2 internal prototype to avoid an error. */ 6782/* Override any gcc2 internal prototype to avoid an error. */
6783#ifdef __cplusplus
6784extern "C"
6785#endif
4251/* We use char because int might match the return type of a gcc2 6786/* We use char because int might match the return type of a gcc2
4252 builtin and then its argument prototype would still apply. */ 6787 builtin and then its argument prototype would still apply. */
4253char shl_load(); 6788char shl_load ();
4254 6789int
4255int main() { 6790main ()
6791{
4256shl_load() 6792shl_load ();
6793 ;
4257; return 0; } 6794 return 0;
4258EOF 6795}
4259if { (eval echo configure:4260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6796_ACEOF
6797rm -f conftest.$ac_objext conftest$ac_exeext
6798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6799 (eval $ac_link) 2>conftest.er1
6800 ac_status=$?
6801 grep -v '^ *+' conftest.er1 >conftest.err
4260 rm -rf conftest* 6802 rm -f conftest.er1
4261 eval "ac_cv_lib_$ac_lib_var=yes" 6803 cat conftest.err >&5
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); } &&
6806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6808 (eval $ac_try) 2>&5
6809 ac_status=$?
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); }; } &&
6812 { ac_try='test -s conftest$ac_exeext'
6813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6814 (eval $ac_try) 2>&5
6815 ac_status=$?
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); }; }; then
6818 ac_cv_lib_dld_shl_load=yes
4262else 6819else
4263 echo "configure: failed program was:" >&5 6820 echo "$as_me: failed program was:" >&5
4264 cat conftest.$ac_ext >&5 6821sed 's/^/| /' conftest.$ac_ext >&5
4265 rm -rf conftest* 6822
4266 eval "ac_cv_lib_$ac_lib_var=no" 6823ac_cv_lib_dld_shl_load=no
4267fi 6824fi
4268rm -f conftest* 6825rm -f conftest.err conftest.$ac_objext \
6826 conftest$ac_exeext conftest.$ac_ext
4269LIBS="$ac_save_LIBS" 6827LIBS=$ac_check_lib_save_LIBS
4270
4271fi 6828fi
4272if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 6829echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
4273 echo "$ac_t""yes" 1>&6 6830echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6831if test $ac_cv_lib_dld_shl_load = yes; then
4274 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 6832 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
4275else
4276 echo "$ac_t""no" 1>&6
4277fi 6833fi
4278 6834
4279
4280fi
4281 6835
4282
4283fi 6836fi
4284 6837
4285
4286fi
4287 6838
4288 6839fi
6840
6841
6842fi
6843
6844
4289fi 6845fi
4290 6846
4291 ;; 6847 ;;
4292 esac 6848 esac
4293 6849
4306 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 6862 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
4307 6863
4308 save_LIBS="$LIBS" 6864 save_LIBS="$LIBS"
4309 LIBS="$lt_cv_dlopen_libs $LIBS" 6865 LIBS="$lt_cv_dlopen_libs $LIBS"
4310 6866
6867 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 6868echo $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 6869if test "${lt_cv_dlopen_self+set}" = set; then
4314 echo $ac_n "(cached) $ac_c" 1>&6 6870 echo $ECHO_N "(cached) $ECHO_C" >&6
4315else 6871else
4316 if test "$cross_compiling" = yes; then : 6872 if test "$cross_compiling" = yes; then :
4317 lt_cv_dlopen_self=cross 6873 lt_cv_dlopen_self=cross
4318else 6874else
4319 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 6875 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4320 lt_status=$lt_dlunknown 6876 lt_status=$lt_dlunknown
4321 cat > conftest.$ac_ext <<EOF 6877 cat > conftest.$ac_ext <<EOF
4322#line 4323 "configure" 6878#line 6878 "configure"
4323#include "confdefs.h" 6879#include "confdefs.h"
4324 6880
4325#if HAVE_DLFCN_H 6881#if HAVE_DLFCN_H
4326#include <dlfcn.h> 6882#include <dlfcn.h>
4327#endif 6883#endif
4378 } 6934 }
4379 6935
4380 exit (status); 6936 exit (status);
4381} 6937}
4382EOF 6938EOF
4383 if { (eval echo configure:4384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then 6939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6940 (eval $ac_link) 2>&5
6941 ac_status=$?
6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
4384 (./conftest; exit; ) 2>/dev/null 6944 (./conftest; exit; ) 2>/dev/null
4385 lt_status=$? 6945 lt_status=$?
4386 case x$lt_status in 6946 case x$lt_status in
4387 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 6947 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
4388 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 6948 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
4393 lt_cv_dlopen_self=no 6953 lt_cv_dlopen_self=no
4394 fi 6954 fi
4395fi 6955fi
4396rm -fr conftest* 6956rm -fr conftest*
4397 6957
4398
4399fi
4400 6958
6959fi
6960echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
4401echo "$ac_t""$lt_cv_dlopen_self" 1>&6 6961echo "${ECHO_T}$lt_cv_dlopen_self" >&6
4402 6962
4403 if test "x$lt_cv_dlopen_self" = xyes; then 6963 if test "x$lt_cv_dlopen_self" = xyes; then
4404 LDFLAGS="$LDFLAGS $link_static_flag" 6964 LDFLAGS="$LDFLAGS $link_static_flag"
6965 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 6966echo $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 6967if test "${lt_cv_dlopen_self_static+set}" = set; then
4408 echo $ac_n "(cached) $ac_c" 1>&6 6968 echo $ECHO_N "(cached) $ECHO_C" >&6
4409else 6969else
4410 if test "$cross_compiling" = yes; then : 6970 if test "$cross_compiling" = yes; then :
4411 lt_cv_dlopen_self_static=cross 6971 lt_cv_dlopen_self_static=cross
4412else 6972else
4413 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 6973 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4414 lt_status=$lt_dlunknown 6974 lt_status=$lt_dlunknown
4415 cat > conftest.$ac_ext <<EOF 6975 cat > conftest.$ac_ext <<EOF
4416#line 4417 "configure" 6976#line 6976 "configure"
4417#include "confdefs.h" 6977#include "confdefs.h"
4418 6978
4419#if HAVE_DLFCN_H 6979#if HAVE_DLFCN_H
4420#include <dlfcn.h> 6980#include <dlfcn.h>
4421#endif 6981#endif
4472 } 7032 }
4473 7033
4474 exit (status); 7034 exit (status);
4475} 7035}
4476EOF 7036EOF
4477 if { (eval echo configure:4478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then 7037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7038 (eval $ac_link) 2>&5
7039 ac_status=$?
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
4478 (./conftest; exit; ) 2>/dev/null 7042 (./conftest; exit; ) 2>/dev/null
4479 lt_status=$? 7043 lt_status=$?
4480 case x$lt_status in 7044 case x$lt_status in
4481 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 7045 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
4482 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 7046 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
4487 lt_cv_dlopen_self_static=no 7051 lt_cv_dlopen_self_static=no
4488 fi 7052 fi
4489fi 7053fi
4490rm -fr conftest* 7054rm -fr conftest*
4491 7055
4492
4493fi
4494 7056
7057fi
7058echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
4495echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6 7059echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
4496 fi 7060 fi
4497 7061
4498 CPPFLAGS="$save_CPPFLAGS" 7062 CPPFLAGS="$save_CPPFLAGS"
4499 LDFLAGS="$save_LDFLAGS" 7063 LDFLAGS="$save_LDFLAGS"
4500 LIBS="$save_LIBS" 7064 LIBS="$save_LIBS"
4522 ;; 7086 ;;
4523 '$CC '*) 7087 '$CC '*)
4524 # Test whether the compiler implicitly links with -lc since on some 7088 # Test whether the compiler implicitly links with -lc since on some
4525 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7089 # systems, -lgcc has to come before -lc. If gcc already passes -lc
4526 # to ld, don't add -lc before -lgcc. 7090 # to ld, don't add -lc before -lgcc.
7091 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 7092echo $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 7093 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
4530 echo $ac_n "(cached) $ac_c" 1>&6 7094 echo $ECHO_N "(cached) $ECHO_C" >&6
4531else 7095else
4532 $rm conftest* 7096 $rm conftest*
4533 echo 'static int dummy;' > conftest.$ac_ext 7097 echo 'static int dummy;' > conftest.$ac_ext
4534 7098
4535 if { (eval echo configure:4536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7100 (eval $ac_compile) 2>&5
7101 ac_status=$?
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); }; then
4536 soname=conftest 7104 soname=conftest
4537 lib=conftest 7105 lib=conftest
4538 libobjs=conftest.$ac_objext 7106 libobjs=conftest.$ac_objext
4539 deplibs= 7107 deplibs=
4540 wl=$lt_cv_prog_cc_wl 7108 wl=$lt_cv_prog_cc_wl
4543 verstring= 7111 verstring=
4544 output_objdir=. 7112 output_objdir=.
4545 libname=conftest 7113 libname=conftest
4546 save_allow_undefined_flag=$allow_undefined_flag 7114 save_allow_undefined_flag=$allow_undefined_flag
4547 allow_undefined_flag= 7115 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; } 7116 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7117 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7118 ac_status=$?
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); }
4549 then 7121 then
4550 lt_cv_archive_cmds_need_lc=no 7122 lt_cv_archive_cmds_need_lc=no
4551 else 7123 else
4552 lt_cv_archive_cmds_need_lc=yes 7124 lt_cv_archive_cmds_need_lc=yes
4553 fi 7125 fi
4555 else 7127 else
4556 cat conftest.err 1>&5 7128 cat conftest.err 1>&5
4557 fi 7129 fi
4558fi 7130fi
4559 7131
7132 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
4560 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6 7133echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
4561 ;; 7134 ;;
4562 esac 7135 esac
4563fi 7136fi
4564need_lc=${lt_cv_archive_cmds_need_lc-yes} 7137need_lc=${lt_cv_archive_cmds_need_lc-yes}
4565## 7138##
5130 7703
5131MALLOC_TYPE=S 7704MALLOC_TYPE=S
5132support_addstrings=no 7705support_addstrings=no
5133support_frills=no 7706support_frills=no
5134support_linespace=no 7707support_linespace=no
5135support_graphics=no
5136support_inheritpixmap=no 7708support_inheritpixmap=no
5137support_keepscrolling=no 7709support_keepscrolling=no
5138support_selectionscrolling=no 7710support_selectionscrolling=no
5139support_menubar=no 7711support_menubar=no
5140support_mousewheel=no 7712support_mousewheel=no
5141support_mouseslipwheel=no 7713support_mouseslipwheel=no
5142support_oldselection=no 7714support_oldselection=no
5143support_utmp=no 7715support_utmp=no
5144support_wtmp=no 7716support_wtmp=no
5145support_lastlog=no 7717support_lastlog=no
5146support_cursor_blink=no 7718support_cursor_blink=no
7719support_text_blink=no
5147support_pointer_blank=no 7720support_pointer_blank=no
5148support_scroll_rxvt=no 7721support_scroll_rxvt=no
5149support_scroll_next=no 7722support_scroll_next=no
5150support_scroll_xterm=no 7723support_scroll_xterm=no
7724support_scroll_plain=no
5151support_xim=no 7725support_xim=no
5152support_xpm=no 7726support_xpm=no
5153support_xft=no 7727support_xft=no
5154support_unicode3=no 7728support_unicode3=no
5155codesets= 7729codesets=
5156 7730
5157 7731
5158if test "x$enable_shared" = xyes; then 7732if test "x$enable_shared" = xyes; then
7733
5159 cat >> confdefs.h <<\EOF 7734cat >>confdefs.h <<\_ACEOF
5160#define LIBRXVT 1 7735#define LIBRXVT 1
5161EOF 7736_ACEOF
5162 7737
5163 INSTALL_LIBRXVT=yes 7738 INSTALL_LIBRXVT=yes
5164fi 7739fi
5165 7740
5166 7741
5169 enableval="$enable_everything" 7744 enableval="$enable_everything"
5170 if test x$enableval = xyes; then 7745 if test x$enableval = xyes; then
5171 support_24bit=yes 7746 support_24bit=yes
5172 support_frills=yes 7747 support_frills=yes
5173 support_linespace=yes 7748 support_linespace=yes
5174 support_graphics=yes
5175 support_inheritpixmap=yes 7749 support_inheritpixmap=yes
5176 support_keepscrolling=yes 7750 support_keepscrolling=yes
5177 support_selectionscrolling=yes 7751 support_selectionscrolling=yes
5178 support_lastlog=yes 7752 support_lastlog=yes
5179 support_menubar=yes 7753 support_menubar=yes
5180 support_mousewheel=yes 7754 support_mousewheel=yes
5181 support_mouseslipwheel=yes 7755 support_mouseslipwheel=yes
5182 support_oldselection=yes 7756 support_oldselection=yes
5183 support_cursor_blink=yes 7757 support_cursor_blink=yes
7758 support_text_blink=yes
5184 support_pointer_blank=yes 7759 support_pointer_blank=yes
5185 support_scroll_rxvt=yes 7760 support_scroll_rxvt=yes
5186 support_scroll_next=yes 7761 support_scroll_next=yes
5187 support_scroll_xterm=yes 7762 support_scroll_xterm=yes
7763 support_scroll_plain=yes
5188 support_utmp=yes 7764 support_utmp=yes
5189 support_wtmp=yes 7765 support_wtmp=yes
5190 support_xim=yes 7766 support_xim=yes
5191 support_xpm=yes 7767 support_xpm=yes
5192 support_xft=yes 7768 support_xft=yes
5193 support_unicode3=yes 7769 support_unicode3=yes
5194 codesets=all 7770 codesets=all
5195 fi 7771 fi
5196fi 7772fi;
5197
5198 7773
5199# Check whether --enable-unicode3 or --disable-unicode3 was given. 7774# Check whether --enable-unicode3 or --disable-unicode3 was given.
5200if test "${enable_unicode3+set}" = set; then 7775if test "${enable_unicode3+set}" = set; then
5201 enableval="$enable_unicode3" 7776 enableval="$enable_unicode3"
5202 if test x$enableval = xyes; then 7777 if test x$enableval = xyes; then
5203 support_unicode3=yes 7778 support_unicode3=yes
5204 fi 7779 fi
5205fi 7780fi;
5206
5207 7781
5208# Check whether --enable-xft or --disable-xft was given. 7782# Check whether --enable-xft or --disable-xft was given.
5209if test "${enable_xft+set}" = set; then 7783if test "${enable_xft+set}" = set; then
5210 enableval="$enable_xft" 7784 enableval="$enable_xft"
5211 if test x$enableval = xyes; then 7785 if test x$enableval = xyes; then
5212 support_xft=yes 7786 support_xft=yes
5213 fi 7787 fi
5214fi 7788fi;
5215 7789
5216 7790
5217# Check whether --with-codesets or --without-codesets was given. 7791# Check whether --with-codesets or --without-codesets was given.
5218if test "${with_codesets+set}" = set; then 7792if test "${with_codesets+set}" = set; then
5219 withval="$with_codesets" 7793 withval="$with_codesets"
5220 if test x$enableval = xyes; then 7794 if test x$enableval = xyes; then
5221 codesets="$withval" 7795 codesets="$withval"
5222 fi 7796 fi
5223fi 7797fi;
5224 7798
5225 7799
5226# Check whether --with-encoding or --without-encoding was given. 7800# Check whether --with-encoding or --without-encoding was given.
5227if test "${with_encoding+set}" = set; then 7801if test "${with_encoding+set}" = set; then
5228 withval="$with_encoding" 7802 withval="$with_encoding"
5229 if test x$enableval = xyes; then 7803 if test x$enableval = xyes; then
5230 withval=`echo $withval | tr 'a-z' 'A-Z'` 7804 withval=`echo $withval | tr 'a-z' 'A-Z'`
7805
5231 cat >> confdefs.h <<EOF 7806cat >>confdefs.h <<_ACEOF
5232#define MULTICHAR_ENCODING $withval 7807#define MULTICHAR_ENCODING $withval
5233EOF 7808_ACEOF
5234 7809
5235 fi 7810 fi
5236fi 7811fi;
5237
5238 7812
5239# Check whether --enable-utmp or --disable-utmp was given. 7813# Check whether --enable-utmp or --disable-utmp was given.
5240if test "${enable_utmp+set}" = set; then 7814if test "${enable_utmp+set}" = set; then
5241 enableval="$enable_utmp" 7815 enableval="$enable_utmp"
5242 if test x$enableval = xyes -o x$enableval = xno; then 7816 if test x$enableval = xyes -o x$enableval = xno; then
5243 support_utmp=$enableval 7817 support_utmp=$enableval
5244 fi 7818 fi
5245fi 7819fi;
5246
5247 7820
5248# Check whether --enable-wtmp or --disable-wtmp was given. 7821# Check whether --enable-wtmp or --disable-wtmp was given.
5249if test "${enable_wtmp+set}" = set; then 7822if test "${enable_wtmp+set}" = set; then
5250 enableval="$enable_wtmp" 7823 enableval="$enable_wtmp"
5251 if test x$enableval = xyes -o x$enableval = xno; then 7824 if test x$enableval = xyes -o x$enableval = xno; then
5252 support_wtmp=$enableval 7825 support_wtmp=$enableval
5253 fi 7826 fi
5254fi 7827fi;
5255
5256 7828
5257# Check whether --enable-lastlog or --disable-lastlog was given. 7829# Check whether --enable-lastlog or --disable-lastlog was given.
5258if test "${enable_lastlog+set}" = set; then 7830if test "${enable_lastlog+set}" = set; then
5259 enableval="$enable_lastlog" 7831 enableval="$enable_lastlog"
5260 if test x$enableval = xyes -o x$enableval = xno; then 7832 if test x$enableval = xyes -o x$enableval = xno; then
5261 support_lastlog=$enableval 7833 support_lastlog=$enableval
5262 fi 7834 fi
5263fi 7835fi;
5264
5265 7836
5266# Check whether --enable-xpm-background or --disable-xpm-background was given. 7837# Check whether --enable-xpm-background or --disable-xpm-background was given.
5267if test "${enable_xpm_background+set}" = set; then 7838if test "${enable_xpm_background+set}" = set; then
5268 enableval="$enable_xpm_background" 7839 enableval="$enable_xpm_background"
5269 if test x$enableval = xyes -o x$enableval = xno; then 7840 if test x$enableval = xyes -o x$enableval = xno; then
5270 support_xpm=$enableval 7841 support_xpm=$enableval
5271 fi 7842 fi
5272fi 7843fi;
5273
5274 7844
5275# Check whether --enable-transparency or --disable-transparency was given. 7845# Check whether --enable-transparency or --disable-transparency was given.
5276if test "${enable_transparency+set}" = set; then 7846if test "${enable_transparency+set}" = set; then
5277 enableval="$enable_transparency" 7847 enableval="$enable_transparency"
5278 if test x$enableval = xyes -o x$enableval = xno; then 7848 if test x$enableval = xyes -o x$enableval = xno; then
5279 support_inheritpixmap=$enableval 7849 support_inheritpixmap=$enableval
5280 fi 7850 fi
5281fi 7851fi;
5282
5283 7852
5284# Check whether --enable-menubar or --disable-menubar was given. 7853# Check whether --enable-menubar or --disable-menubar was given.
5285if test "${enable_menubar+set}" = set; then 7854if test "${enable_menubar+set}" = set; then
5286 enableval="$enable_menubar" 7855 enableval="$enable_menubar"
5287 if test x$enableval = xyes -o x$enableval = xno; then 7856 if test x$enableval = xyes -o x$enableval = xno; then
5288 support_menubar=$enableval 7857 support_menubar=$enableval
5289 fi 7858 fi
5290fi 7859fi;
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 7860
5302# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given. 7861# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
5303if test "${enable_rxvt_scroll+set}" = set; then 7862if test "${enable_rxvt_scroll+set}" = set; then
5304 enableval="$enable_rxvt_scroll" 7863 enableval="$enable_rxvt_scroll"
5305 if test x$enableval = xyes -o x$enableval = xno; then 7864 if test x$enableval = xyes -o x$enableval = xno; then
5306 support_scroll_rxvt=$enableval 7865 support_scroll_rxvt=$enableval
5307 fi 7866 fi
5308fi 7867fi;
5309
5310 7868
5311# Check whether --enable-next-scroll or --disable-next-scroll was given. 7869# Check whether --enable-next-scroll or --disable-next-scroll was given.
5312if test "${enable_next_scroll+set}" = set; then 7870if test "${enable_next_scroll+set}" = set; then
5313 enableval="$enable_next_scroll" 7871 enableval="$enable_next_scroll"
5314 if test x$enableval = xyes -o x$enableval = xno; then 7872 if test x$enableval = xyes -o x$enableval = xno; then
5315 support_scroll_next=$enableval 7873 support_scroll_next=$enableval
5316 fi 7874 fi
5317fi 7875fi;
5318
5319 7876
5320# Check whether --enable-xterm-scroll or --disable-xterm-scroll was given. 7877# Check whether --enable-xterm-scroll or --disable-xterm-scroll was given.
5321if test "${enable_xterm_scroll+set}" = set; then 7878if test "${enable_xterm_scroll+set}" = set; then
5322 enableval="$enable_xterm_scroll" 7879 enableval="$enable_xterm_scroll"
5323 if test x$enableval = xyes -o x$enableval = xno; then 7880 if test x$enableval = xyes -o x$enableval = xno; then
5324 support_scroll_xterm=$enableval 7881 support_scroll_xterm=$enableval
5325 fi 7882 fi
5326fi 7883fi;
5327 7884
7885# Check whether --enable-plain-scroll or --disable-plain-scroll was given.
7886if test "${enable_plain_scroll+set}" = set; then
7887 enableval="$enable_plain_scroll"
7888 if test x$enableval = xyes -o x$enableval = xno; then
7889 support_scroll_plain=$enableval
7890 fi
7891fi;
5328 7892
5329# Check whether --enable-half-shadow or --disable-half-shadow was given. 7893# Check whether --enable-half-shadow or --disable-half-shadow was given.
5330if test "${enable_half_shadow+set}" = set; then 7894if test "${enable_half_shadow+set}" = set; then
5331 enableval="$enable_half_shadow" 7895 enableval="$enable_half_shadow"
5332 if test x$enableval = xyes; then 7896 if test x$enableval = xyes; then
7897
5333 cat >> confdefs.h <<\EOF 7898cat >>confdefs.h <<\_ACEOF
5334#define HALFSHADOW 1 7899#define HALFSHADOW 1
5335EOF 7900_ACEOF
5336 7901
5337 fi 7902 fi
5338fi 7903fi;
5339
5340 7904
5341# Check whether --enable-xim or --disable-xim was given. 7905# Check whether --enable-xim or --disable-xim was given.
5342if test "${enable_xim+set}" = set; then 7906if test "${enable_xim+set}" = set; then
5343 enableval="$enable_xim" 7907 enableval="$enable_xim"
5344 if test x$enableval = xyes -o x$enableval = xno; then 7908 if test x$enableval = xyes -o x$enableval = xno; then
5345 support_xim=$enableval 7909 support_xim=$enableval
5346 fi 7910 fi
5347fi 7911fi;
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 7912
5362# Check whether --enable-ttygid or --disable-ttygid was given. 7913# Check whether --enable-ttygid or --disable-ttygid was given.
5363if test "${enable_ttygid+set}" = set; then 7914if test "${enable_ttygid+set}" = set; then
5364 enableval="$enable_ttygid" 7915 enableval="$enable_ttygid"
5365 if test x$enableval = xyes; then 7916 if test x$enableval = xyes; then
7917
5366 cat >> confdefs.h <<\EOF 7918cat >>confdefs.h <<\_ACEOF
5367#define TTY_GID_SUPPORT 1 7919#define TTY_GID_SUPPORT 1
5368EOF 7920_ACEOF
5369 7921
5370 fi 7922 fi
5371fi 7923fi;
5372
5373 7924
5374# Check whether --enable-backspace-key or --disable-backspace-key was given. 7925# Check whether --enable-backspace-key or --disable-backspace-key was given.
5375if test "${enable_backspace_key+set}" = set; then 7926if test "${enable_backspace_key+set}" = set; then
5376 enableval="$enable_backspace_key" 7927 enableval="$enable_backspace_key"
5377 if test x$enableval = xno; then 7928 if test x$enableval = xno; then
7929
5378 cat >> confdefs.h <<\EOF 7930cat >>confdefs.h <<\_ACEOF
5379#define NO_BACKSPACE_KEY 1 7931#define NO_BACKSPACE_KEY 1
5380EOF 7932_ACEOF
5381 7933
5382 fi 7934 fi
5383fi 7935fi;
5384
5385 7936
5386# Check whether --enable-delete-key or --disable-delete-key was given. 7937# Check whether --enable-delete-key or --disable-delete-key was given.
5387if test "${enable_delete_key+set}" = set; then 7938if test "${enable_delete_key+set}" = set; then
5388 enableval="$enable_delete_key" 7939 enableval="$enable_delete_key"
5389 if test x$enableval = xno; then 7940 if test x$enableval = xno; then
7941
5390 cat >> confdefs.h <<\EOF 7942cat >>confdefs.h <<\_ACEOF
5391#define NO_DELETE_KEY 1 7943#define NO_DELETE_KEY 1
5392EOF 7944_ACEOF
5393 7945
5394 fi 7946 fi
5395fi 7947fi;
5396
5397 7948
5398# Check whether --enable-resources or --disable-resources was given. 7949# Check whether --enable-resources or --disable-resources was given.
5399if test "${enable_resources+set}" = set; then 7950if test "${enable_resources+set}" = set; then
5400 enableval="$enable_resources" 7951 enableval="$enable_resources"
5401 if test x$enableval = xno; then 7952 if test x$enableval = xno; then
7953
5402 cat >> confdefs.h <<\EOF 7954cat >>confdefs.h <<\_ACEOF
5403#define NO_RESOURCES 1 7955#define NO_RESOURCES 1
5404EOF 7956_ACEOF
5405 7957
5406 fi 7958 fi
5407fi 7959fi;
5408
5409 7960
5410# Check whether --enable-xgetdefault or --disable-xgetdefault was given. 7961# Check whether --enable-xgetdefault or --disable-xgetdefault was given.
5411if test "${enable_xgetdefault+set}" = set; then 7962if test "${enable_xgetdefault+set}" = set; then
5412 enableval="$enable_xgetdefault" 7963 enableval="$enable_xgetdefault"
5413 if test x$enableval = xyes; then 7964 if test x$enableval = xyes; then
7965
5414 cat >> confdefs.h <<\EOF 7966cat >>confdefs.h <<\_ACEOF
5415#define USE_XGETDEFAULT 1 7967#define USE_XGETDEFAULT 1
5416EOF 7968_ACEOF
5417 7969
5418 fi 7970 fi
5419fi 7971fi;
5420
5421 7972
5422# Check whether --enable-strings or --disable-strings was given. 7973# Check whether --enable-strings or --disable-strings was given.
5423if test "${enable_strings+set}" = set; then 7974if test "${enable_strings+set}" = set; then
5424 enableval="$enable_strings" 7975 enableval="$enable_strings"
5425 if test x$enableval = xyes -o x$enableval = xno; then 7976 if test x$enableval = xyes -o x$enableval = xno; then
5426 support_addstrings=$enableval 7977 support_addstrings=$enableval
5427 fi 7978 fi
5428fi 7979fi;
5429
5430 7980
5431# Check whether --enable-swapscreen or --disable-swapscreen was given. 7981# Check whether --enable-swapscreen or --disable-swapscreen was given.
5432if test "${enable_swapscreen+set}" = set; then 7982if test "${enable_swapscreen+set}" = set; then
5433 enableval="$enable_swapscreen" 7983 enableval="$enable_swapscreen"
5434 if test x$enableval = xno; then 7984 if test x$enableval = xno; then
7985
5435 cat >> confdefs.h <<\EOF 7986cat >>confdefs.h <<\_ACEOF
5436#define NO_SECONDARY_SCREEN 1 7987#define NO_SECONDARY_SCREEN 1
5437EOF 7988_ACEOF
5438 7989
5439 fi 7990 fi
5440fi 7991fi;
5441
5442 7992
5443# Check whether --enable-frills or --disable-frills was given. 7993# Check whether --enable-frills or --disable-frills was given.
5444if test "${enable_frills+set}" = set; then 7994if test "${enable_frills+set}" = set; then
5445 enableval="$enable_frills" 7995 enableval="$enable_frills"
5446 if test x$enableval = xyes -o x$enableval = xno; then 7996 if test x$enableval = xyes -o x$enableval = xno; then
5447 support_frills=$enableval 7997 support_frills=$enableval
5448 fi 7998 fi
5449fi 7999fi;
5450
5451 8000
5452# Check whether --enable-linespace or --disable-linespace was given. 8001# Check whether --enable-linespace or --disable-linespace was given.
5453if test "${enable_linespace+set}" = set; then 8002if test "${enable_linespace+set}" = set; then
5454 enableval="$enable_linespace" 8003 enableval="$enable_linespace"
5455 if test x$enableval = xyes -o x$enableval = xno; then 8004 if test x$enableval = xyes -o x$enableval = xno; then
5456 support_linespace=$enableval 8005 support_linespace=$enableval
5457 fi 8006 fi
5458fi 8007fi;
5459
5460 8008
5461# Check whether --enable-24bit or --disable-24bit was given. 8009# Check whether --enable-24bit or --disable-24bit was given.
5462if test "${enable_24bit+set}" = set; then 8010if test "${enable_24bit+set}" = set; then
5463 enableval="$enable_24bit" 8011 enableval="$enable_24bit"
5464 if test x$enableval = xyes -o x$enableval = xno; then 8012 if test x$enableval = xyes -o x$enableval = xno; then
5465 support_24bit=$enableval 8013 support_24bit=$enableval
5466 fi 8014 fi
5467fi 8015fi;
5468
5469 8016
5470# Check whether --enable-keepscrolling or --disable-keepscrolling was given. 8017# Check whether --enable-keepscrolling or --disable-keepscrolling was given.
5471if test "${enable_keepscrolling+set}" = set; then 8018if test "${enable_keepscrolling+set}" = set; then
5472 enableval="$enable_keepscrolling" 8019 enableval="$enable_keepscrolling"
5473 if test x$enableval = xyes -o x$enableval = xno; then 8020 if test x$enableval = xyes -o x$enableval = xno; then
5474 support_keepscrolling=$enableval 8021 support_keepscrolling=$enableval
5475 fi 8022 fi
5476fi 8023fi;
5477
5478 8024
5479# Check whether --enable-selectionscrolling or --disable-selectionscrolling was given. 8025# Check whether --enable-selectionscrolling or --disable-selectionscrolling was given.
5480if test "${enable_selectionscrolling+set}" = set; then 8026if test "${enable_selectionscrolling+set}" = set; then
5481 enableval="$enable_selectionscrolling" 8027 enableval="$enable_selectionscrolling"
5482 if test x$enableval = xyes -o x$enableval = xno; then 8028 if test x$enableval = xyes -o x$enableval = xno; then
5483 support_selectionscrolling=$enableval 8029 support_selectionscrolling=$enableval
5484 fi 8030 fi
5485fi 8031fi;
5486
5487 8032
5488# Check whether --enable-mousewheel or --disable-mousewheel was given. 8033# Check whether --enable-mousewheel or --disable-mousewheel was given.
5489if test "${enable_mousewheel+set}" = set; then 8034if test "${enable_mousewheel+set}" = set; then
5490 enableval="$enable_mousewheel" 8035 enableval="$enable_mousewheel"
5491 if test x$enableval = xyes -o x$enableval = xno; then 8036 if test x$enableval = xyes -o x$enableval = xno; then
5492 support_mousewheel=$enableval 8037 support_mousewheel=$enableval
5493 fi 8038 fi
5494fi 8039fi;
5495
5496 8040
5497# Check whether --enable-slipwheeling or --disable-slipwheeling was given. 8041# Check whether --enable-slipwheeling or --disable-slipwheeling was given.
5498if test "${enable_slipwheeling+set}" = set; then 8042if test "${enable_slipwheeling+set}" = set; then
5499 enableval="$enable_slipwheeling" 8043 enableval="$enable_slipwheeling"
5500 if test x$enableval = xyes -o x$enableval = xno; then 8044 if test x$enableval = xyes -o x$enableval = xno; then
5501 support_mouseslipwheel=$enableval 8045 support_mouseslipwheel=$enableval
5502 fi 8046 fi
5503fi 8047fi;
5504
5505 8048
5506# Check whether --enable-old-selection or --disable-old-selection was given. 8049# Check whether --enable-old-selection or --disable-old-selection was given.
5507if test "${enable_old_selection+set}" = set; then 8050if test "${enable_old_selection+set}" = set; then
5508 enableval="$enable_old_selection" 8051 enableval="$enable_old_selection"
5509 if test x$enableval = xyes -o x$enableval = xno; then 8052 if test x$enableval = xyes -o x$enableval = xno; then
5510 support_oldselection=$enableval 8053 support_oldselection=$enableval
5511 fi 8054 fi
5512fi 8055fi;
5513
5514 8056
5515# Check whether --enable-new-selection or --disable-new-selection was given. 8057# Check whether --enable-new-selection or --disable-new-selection was given.
5516if test "${enable_new_selection+set}" = set; then 8058if test "${enable_new_selection+set}" = set; then
5517 enableval="$enable_new_selection" 8059 enableval="$enable_new_selection"
5518 if test x$enableval = xno; then 8060 if test x$enableval = xno; then
8061
5519 cat >> confdefs.h <<\EOF 8062cat >>confdefs.h <<\_ACEOF
5520#define NO_NEW_SELECTION 1 8063#define NO_NEW_SELECTION 1
5521EOF 8064_ACEOF
5522 8065
5523 fi 8066 fi
5524fi 8067fi;
5525
5526 8068
5527# Check whether --enable-dmalloc or --disable-dmalloc was given. 8069# Check whether --enable-dmalloc or --disable-dmalloc was given.
5528if test "${enable_dmalloc+set}" = set; then 8070if test "${enable_dmalloc+set}" = set; then
5529 enableval="$enable_dmalloc" 8071 enableval="$enable_dmalloc"
5530 if test x$enableval = xyes; then 8072 if test x$enableval = xyes; then
5531 MALLOC_TYPE=G 8073 MALLOC_TYPE=G
5532 DEBUG=-DDEBUG_MALLOC 8074 DEBUG=-DDEBUG_MALLOC
5533 DLIB="-L/usr/local/lib -ldmalloc" 8075 DLIB="-L/usr/local/lib -ldmalloc"
5534 DINCLUDE=-I/usr/local/include 8076 DINCLUDE=-I/usr/local/include
5535 fi 8077 fi
5536fi 8078fi;
5537
5538 8079
5539# Check whether --enable-dlmalloc or --disable-dlmalloc was given. 8080# Check whether --enable-dlmalloc or --disable-dlmalloc was given.
5540if test "${enable_dlmalloc+set}" = set; then 8081if test "${enable_dlmalloc+set}" = set; then
5541 enableval="$enable_dlmalloc" 8082 enableval="$enable_dlmalloc"
5542 if test x$enableval = xyes; then 8083 if test x$enableval = xyes; then
5543 MALLOC_TYPE=D 8084 MALLOC_TYPE=D
5544 DEBUG= 8085 DEBUG=
5545 DLIB="-L/usr/local/lib -ldlmalloc" 8086 DLIB="-L/usr/local/lib -ldlmalloc"
5546 DINCLUDE= 8087 DINCLUDE=
5547 fi 8088 fi
5548fi 8089fi;
5549
5550 8090
5551# Check whether --enable-smart-resize or --disable-smart-resize was given. 8091# Check whether --enable-smart-resize or --disable-smart-resize was given.
5552if test "${enable_smart_resize+set}" = set; then 8092if test "${enable_smart_resize+set}" = set; then
5553 enableval="$enable_smart_resize" 8093 enableval="$enable_smart_resize"
5554 if test x$enableval = xyes; then 8094 if test x$enableval = xyes; then
8095
5555 cat >> confdefs.h <<\EOF 8096cat >>confdefs.h <<\_ACEOF
5556#define SMART_RESIZE 1 8097#define SMART_RESIZE 1
5557EOF 8098_ACEOF
5558 8099
5559 fi 8100 fi
5560fi 8101fi;
5561
5562 8102
5563# Check whether --enable-256-color or --disable-256-color was given. 8103# Check whether --enable-256-color or --disable-256-color was given.
5564if test "${enable_256_color+set}" = set; then 8104if test "${enable_256_color+set}" = set; then
5565 enableval="$enable_256_color" 8105 enableval="$enable_256_color"
5566 if test x$enableval = xyes; then 8106 if test x$enableval = xyes; then
8107
5567 cat >> confdefs.h <<\EOF 8108cat >>confdefs.h <<\_ACEOF
5568#define TTY_256COLOR 1 8109#define TTY_256COLOR 1
5569EOF 8110_ACEOF
5570 8111
5571 fi 8112 fi
5572fi 8113fi;
5573
5574 8114
5575# Check whether --enable-cursor-blink or --disable-cursor-blink was given. 8115# Check whether --enable-cursor-blink or --disable-cursor-blink was given.
5576if test "${enable_cursor_blink+set}" = set; then 8116if test "${enable_cursor_blink+set}" = set; then
5577 enableval="$enable_cursor_blink" 8117 enableval="$enable_cursor_blink"
5578 if test x$enableval = xyes -o x$enableval = xno; then 8118 if test x$enableval = xyes -o x$enableval = xno; then
5579 support_cursor_blink=$enableval 8119 support_cursor_blink=$enableval
5580 fi 8120 fi
5581fi 8121fi;
5582 8122
8123# Check whether --enable-text-blink or --disable-text-blink was given.
8124if test "${enable_text_blink+set}" = set; then
8125 enableval="$enable_text_blink"
8126 if test x$enableval = xyes -o x$enableval = xno; then
8127 support_text_blink=$enableval
8128 fi
8129fi;
5583 8130
5584# Check whether --enable-pointer-blank or --disable-pointer-blank was given. 8131# Check whether --enable-pointer-blank or --disable-pointer-blank was given.
5585if test "${enable_pointer_blank+set}" = set; then 8132if test "${enable_pointer_blank+set}" = set; then
5586 enableval="$enable_pointer_blank" 8133 enableval="$enable_pointer_blank"
5587 if test x$enableval = xyes -o x$enableval = xno; then 8134 if test x$enableval = xyes -o x$enableval = xno; then
5588 support_pointer_blank=$enableval 8135 support_pointer_blank=$enableval
5589 fi 8136 fi
5590fi 8137fi;
5591 8138
5592 8139
5593# Check whether --with-term or --without-term was given. 8140# Check whether --with-term or --without-term was given.
5594if test "${with_term+set}" = set; then 8141if test "${with_term+set}" = set; then
5595 withval="$with_term" 8142 withval="$with_term"
5596 if test x$withval != x; then 8143 if test x$withval != x; then
8144
5597 cat >> confdefs.h <<EOF 8145cat >>confdefs.h <<_ACEOF
5598#define TERMENV "$withval" 8146#define TERMENV "$withval"
5599EOF 8147_ACEOF
5600 term="$withval" 8148 term="$withval"
5601 fi 8149 fi
5602fi 8150fi;
5603 8151
5604 8152
5605# Check whether --with-terminfo or --without-terminfo was given. 8153# Check whether --with-terminfo or --without-terminfo was given.
5606if test "${with_terminfo+set}" = set; then 8154if test "${with_terminfo+set}" = set; then
5607 withval="$with_terminfo" 8155 withval="$with_terminfo"
5608 if test x$withval != x; then 8156 if test x$withval != x; then
8157
5609 cat >> confdefs.h <<EOF 8158cat >>confdefs.h <<_ACEOF
5610#define RXVT_TERMINFO "$withval" 8159#define RXVT_TERMINFO "$withval"
5611EOF 8160_ACEOF
5612 terminfo="$withval" 8161 terminfo="$withval"
5613 fi 8162 fi
5614fi 8163fi;
5615 8164
5616 8165
5617 8166
5618cat >> confdefs.h <<\EOF 8167cat >>confdefs.h <<\_ACEOF
5619#define PROTOTYPES 1 8168#define PROTOTYPES 1
5620EOF 8169_ACEOF
5621 8170
5622 8171
5623if test -z "$CFLAGS"; then 8172if test -z "$CFLAGS"; then
5624 if test -z "$CCOPTS"; then 8173 if test -z "$CCOPTS"; then
5625 CCOPTS='-O' 8174 CCOPTS='-O'
5627 CFLAGS="$CCOPTS" 8176 CFLAGS="$CCOPTS"
5628fi 8177fi
5629 8178
5630# Extract the first word of "mv", so it can be a program name with args. 8179# Extract the first word of "mv", so it can be a program name with args.
5631set dummy mv; ac_word=$2 8180set dummy mv; ac_word=$2
8181echo "$as_me:$LINENO: checking for $ac_word" >&5
5632echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8182echo $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 8183if test "${ac_cv_path_MV+set}" = set; then
5635 echo $ac_n "(cached) $ac_c" 1>&6 8184 echo $ECHO_N "(cached) $ECHO_C" >&6
5636else 8185else
5637 case "$MV" in 8186 case $MV in
5638 /*) 8187 [\\/]* | ?:[\\/]*)
5639 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8188 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5640 ;; 8189 ;;
5641 ?:/*)
5642 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
5643 ;;
5644 *) 8190 *)
5645 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646 ac_dummy="$PATH" 8192for as_dir in $PATH
5647 for ac_dir in $ac_dummy; do 8193do
8194 IFS=$as_save_IFS
5648 test -z "$ac_dir" && ac_dir=. 8195 test -z "$as_dir" && as_dir=.
5649 if test -f $ac_dir/$ac_word; then 8196 for ac_exec_ext in '' $ac_executable_extensions; do
8197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5650 ac_cv_path_MV="$ac_dir/$ac_word" 8198 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5651 break 8200 break 2
5652 fi 8201 fi
5653 done 8202done
5654 IFS="$ac_save_ifs" 8203done
8204
5655 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 8205 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5656 ;; 8206 ;;
5657esac 8207esac
5658fi 8208fi
5659MV="$ac_cv_path_MV" 8209MV=$ac_cv_path_MV
8210
5660if test -n "$MV"; then 8211if test -n "$MV"; then
5661 echo "$ac_t""$MV" 1>&6 8212 echo "$as_me:$LINENO: result: $MV" >&5
8213echo "${ECHO_T}$MV" >&6
5662else 8214else
5663 echo "$ac_t""no" 1>&6 8215 echo "$as_me:$LINENO: result: no" >&5
8216echo "${ECHO_T}no" >&6
5664fi 8217fi
5665 8218
5666# Extract the first word of "rm", so it can be a program name with args. 8219# Extract the first word of "rm", so it can be a program name with args.
5667set dummy rm; ac_word=$2 8220set dummy rm; ac_word=$2
8221echo "$as_me:$LINENO: checking for $ac_word" >&5
5668echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8222echo $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 8223if test "${ac_cv_path_RM+set}" = set; then
5671 echo $ac_n "(cached) $ac_c" 1>&6 8224 echo $ECHO_N "(cached) $ECHO_C" >&6
5672else 8225else
5673 case "$RM" in 8226 case $RM in
5674 /*) 8227 [\\/]* | ?:[\\/]*)
5675 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8228 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5676 ;; 8229 ;;
5677 ?:/*)
5678 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
5679 ;;
5680 *) 8230 *)
5681 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682 ac_dummy="$PATH" 8232for as_dir in $PATH
5683 for ac_dir in $ac_dummy; do 8233do
8234 IFS=$as_save_IFS
5684 test -z "$ac_dir" && ac_dir=. 8235 test -z "$as_dir" && as_dir=.
5685 if test -f $ac_dir/$ac_word; then 8236 for ac_exec_ext in '' $ac_executable_extensions; do
8237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5686 ac_cv_path_RM="$ac_dir/$ac_word" 8238 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5687 break 8240 break 2
5688 fi 8241 fi
5689 done 8242done
5690 IFS="$ac_save_ifs" 8243done
8244
5691 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" 8245 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5692 ;; 8246 ;;
5693esac 8247esac
5694fi 8248fi
5695RM="$ac_cv_path_RM" 8249RM=$ac_cv_path_RM
8250
5696if test -n "$RM"; then 8251if test -n "$RM"; then
5697 echo "$ac_t""$RM" 1>&6 8252 echo "$as_me:$LINENO: result: $RM" >&5
8253echo "${ECHO_T}$RM" >&6
5698else 8254else
5699 echo "$ac_t""no" 1>&6 8255 echo "$as_me:$LINENO: result: no" >&5
8256echo "${ECHO_T}no" >&6
5700fi 8257fi
5701 8258
5702# Extract the first word of "cp", so it can be a program name with args. 8259# Extract the first word of "cp", so it can be a program name with args.
5703set dummy cp; ac_word=$2 8260set dummy cp; ac_word=$2
8261echo "$as_me:$LINENO: checking for $ac_word" >&5
5704echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8262echo $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 8263if test "${ac_cv_path_CP+set}" = set; then
5707 echo $ac_n "(cached) $ac_c" 1>&6 8264 echo $ECHO_N "(cached) $ECHO_C" >&6
5708else 8265else
5709 case "$CP" in 8266 case $CP in
5710 /*) 8267 [\\/]* | ?:[\\/]*)
5711 ac_cv_path_CP="$CP" # Let the user override the test with a path. 8268 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5712 ;; 8269 ;;
5713 ?:/*)
5714 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
5715 ;;
5716 *) 8270 *)
5717 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718 ac_dummy="$PATH" 8272for as_dir in $PATH
5719 for ac_dir in $ac_dummy; do 8273do
8274 IFS=$as_save_IFS
5720 test -z "$ac_dir" && ac_dir=. 8275 test -z "$as_dir" && as_dir=.
5721 if test -f $ac_dir/$ac_word; then 8276 for ac_exec_ext in '' $ac_executable_extensions; do
8277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5722 ac_cv_path_CP="$ac_dir/$ac_word" 8278 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
8279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5723 break 8280 break 2
5724 fi 8281 fi
5725 done 8282done
5726 IFS="$ac_save_ifs" 8283done
8284
5727 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" 8285 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5728 ;; 8286 ;;
5729esac 8287esac
5730fi 8288fi
5731CP="$ac_cv_path_CP" 8289CP=$ac_cv_path_CP
8290
5732if test -n "$CP"; then 8291if test -n "$CP"; then
5733 echo "$ac_t""$CP" 1>&6 8292 echo "$as_me:$LINENO: result: $CP" >&5
8293echo "${ECHO_T}$CP" >&6
5734else 8294else
5735 echo "$ac_t""no" 1>&6 8295 echo "$as_me:$LINENO: result: no" >&5
8296echo "${ECHO_T}no" >&6
5736fi 8297fi
5737 8298
5738# Extract the first word of "ln", so it can be a program name with args. 8299# Extract the first word of "ln", so it can be a program name with args.
5739set dummy ln; ac_word=$2 8300set dummy ln; ac_word=$2
8301echo "$as_me:$LINENO: checking for $ac_word" >&5
5740echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8302echo $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 8303if test "${ac_cv_path_LN+set}" = set; then
5743 echo $ac_n "(cached) $ac_c" 1>&6 8304 echo $ECHO_N "(cached) $ECHO_C" >&6
5744else 8305else
5745 case "$LN" in 8306 case $LN in
5746 /*) 8307 [\\/]* | ?:[\\/]*)
5747 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8308 ac_cv_path_LN="$LN" # Let the user override the test with a path.
5748 ;; 8309 ;;
5749 ?:/*)
5750 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
5751 ;;
5752 *) 8310 *)
5753 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754 ac_dummy="$PATH" 8312for as_dir in $PATH
5755 for ac_dir in $ac_dummy; do 8313do
8314 IFS=$as_save_IFS
5756 test -z "$ac_dir" && ac_dir=. 8315 test -z "$as_dir" && as_dir=.
5757 if test -f $ac_dir/$ac_word; then 8316 for ac_exec_ext in '' $ac_executable_extensions; do
8317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5758 ac_cv_path_LN="$ac_dir/$ac_word" 8318 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5759 break 8320 break 2
5760 fi 8321 fi
5761 done 8322done
5762 IFS="$ac_save_ifs" 8323done
8324
5763 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" 8325 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
5764 ;; 8326 ;;
5765esac 8327esac
5766fi 8328fi
5767LN="$ac_cv_path_LN" 8329LN=$ac_cv_path_LN
8330
5768if test -n "$LN"; then 8331if test -n "$LN"; then
5769 echo "$ac_t""$LN" 1>&6 8332 echo "$as_me:$LINENO: result: $LN" >&5
8333echo "${ECHO_T}$LN" >&6
5770else 8334else
5771 echo "$ac_t""no" 1>&6 8335 echo "$as_me:$LINENO: result: no" >&5
8336echo "${ECHO_T}no" >&6
5772fi 8337fi
5773 8338
5774# Extract the first word of "sed", so it can be a program name with args. 8339# Extract the first word of "sed", so it can be a program name with args.
5775set dummy sed; ac_word=$2 8340set dummy sed; ac_word=$2
8341echo "$as_me:$LINENO: checking for $ac_word" >&5
5776echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8342echo $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 8343if test "${ac_cv_path_SED+set}" = set; then
5779 echo $ac_n "(cached) $ac_c" 1>&6 8344 echo $ECHO_N "(cached) $ECHO_C" >&6
5780else 8345else
5781 case "$SED" in 8346 case $SED in
5782 /*) 8347 [\\/]* | ?:[\\/]*)
5783 ac_cv_path_SED="$SED" # Let the user override the test with a path. 8348 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5784 ;; 8349 ;;
5785 ?:/*)
5786 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
5787 ;;
5788 *) 8350 *)
5789 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5790 ac_dummy="$PATH" 8352for as_dir in $PATH
5791 for ac_dir in $ac_dummy; do 8353do
8354 IFS=$as_save_IFS
5792 test -z "$ac_dir" && ac_dir=. 8355 test -z "$as_dir" && as_dir=.
5793 if test -f $ac_dir/$ac_word; then 8356 for ac_exec_ext in '' $ac_executable_extensions; do
8357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5794 ac_cv_path_SED="$ac_dir/$ac_word" 8358 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
8359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5795 break 8360 break 2
5796 fi 8361 fi
5797 done 8362done
5798 IFS="$ac_save_ifs" 8363done
8364
5799 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" 8365 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5800 ;; 8366 ;;
5801esac 8367esac
5802fi 8368fi
5803SED="$ac_cv_path_SED" 8369SED=$ac_cv_path_SED
8370
5804if test -n "$SED"; then 8371if test -n "$SED"; then
5805 echo "$ac_t""$SED" 1>&6 8372 echo "$as_me:$LINENO: result: $SED" >&5
8373echo "${ECHO_T}$SED" >&6
5806else 8374else
5807 echo "$ac_t""no" 1>&6 8375 echo "$as_me:$LINENO: result: no" >&5
8376echo "${ECHO_T}no" >&6
5808fi 8377fi
5809 8378
5810# Extract the first word of "echo", so it can be a program name with args. 8379# Extract the first word of "echo", so it can be a program name with args.
5811set dummy echo; ac_word=$2 8380set dummy echo; ac_word=$2
8381echo "$as_me:$LINENO: checking for $ac_word" >&5
5812echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8382echo $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 8383if test "${ac_cv_path_ECHO+set}" = set; then
5815 echo $ac_n "(cached) $ac_c" 1>&6 8384 echo $ECHO_N "(cached) $ECHO_C" >&6
5816else 8385else
5817 case "$ECHO" in 8386 case $ECHO in
5818 /*) 8387 [\\/]* | ?:[\\/]*)
5819 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 8388 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5820 ;; 8389 ;;
5821 ?:/*)
5822 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a dos path.
5823 ;;
5824 *) 8390 *)
5825 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826 ac_dummy="$PATH" 8392for as_dir in $PATH
5827 for ac_dir in $ac_dummy; do 8393do
8394 IFS=$as_save_IFS
5828 test -z "$ac_dir" && ac_dir=. 8395 test -z "$as_dir" && as_dir=.
5829 if test -f $ac_dir/$ac_word; then 8396 for ac_exec_ext in '' $ac_executable_extensions; do
8397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5830 ac_cv_path_ECHO="$ac_dir/$ac_word" 8398 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
8399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5831 break 8400 break 2
5832 fi 8401 fi
5833 done 8402done
5834 IFS="$ac_save_ifs" 8403done
8404
5835 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo" 8405 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5836 ;; 8406 ;;
5837esac 8407esac
5838fi 8408fi
5839ECHO="$ac_cv_path_ECHO" 8409ECHO=$ac_cv_path_ECHO
8410
5840if test -n "$ECHO"; then 8411if test -n "$ECHO"; then
5841 echo "$ac_t""$ECHO" 1>&6 8412 echo "$as_me:$LINENO: result: $ECHO" >&5
8413echo "${ECHO_T}$ECHO" >&6
5842else 8414else
5843 echo "$ac_t""no" 1>&6 8415 echo "$as_me:$LINENO: result: no" >&5
8416echo "${ECHO_T}no" >&6
5844fi 8417fi
5845 8418
5846# Extract the first word of "cmp", so it can be a program name with args. 8419# Extract the first word of "cmp", so it can be a program name with args.
5847set dummy cmp; ac_word=$2 8420set dummy cmp; ac_word=$2
8421echo "$as_me:$LINENO: checking for $ac_word" >&5
5848echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8422echo $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 8423if test "${ac_cv_path_CMP+set}" = set; then
5851 echo $ac_n "(cached) $ac_c" 1>&6 8424 echo $ECHO_N "(cached) $ECHO_C" >&6
5852else 8425else
5853 case "$CMP" in 8426 case $CMP in
5854 /*) 8427 [\\/]* | ?:[\\/]*)
5855 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 8428 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5856 ;; 8429 ;;
5857 ?:/*)
5858 ac_cv_path_CMP="$CMP" # Let the user override the test with a dos path.
5859 ;;
5860 *) 8430 *)
5861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862 ac_dummy="$PATH" 8432for as_dir in $PATH
5863 for ac_dir in $ac_dummy; do 8433do
8434 IFS=$as_save_IFS
5864 test -z "$ac_dir" && ac_dir=. 8435 test -z "$as_dir" && as_dir=.
5865 if test -f $ac_dir/$ac_word; then 8436 for ac_exec_ext in '' $ac_executable_extensions; do
8437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5866 ac_cv_path_CMP="$ac_dir/$ac_word" 8438 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
8439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5867 break 8440 break 2
5868 fi 8441 fi
5869 done 8442done
5870 IFS="$ac_save_ifs" 8443done
8444
5871 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" 8445 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5872 ;; 8446 ;;
5873esac 8447esac
5874fi 8448fi
5875CMP="$ac_cv_path_CMP" 8449CMP=$ac_cv_path_CMP
8450
5876if test -n "$CMP"; then 8451if test -n "$CMP"; then
5877 echo "$ac_t""$CMP" 1>&6 8452 echo "$as_me:$LINENO: result: $CMP" >&5
8453echo "${ECHO_T}$CMP" >&6
5878else 8454else
5879 echo "$ac_t""no" 1>&6 8455 echo "$as_me:$LINENO: result: no" >&5
8456echo "${ECHO_T}no" >&6
5880fi 8457fi
5881 8458
5882# Extract the first word of "tbl", so it can be a program name with args. 8459# Extract the first word of "tbl", so it can be a program name with args.
5883set dummy tbl; ac_word=$2 8460set dummy tbl; ac_word=$2
8461echo "$as_me:$LINENO: checking for $ac_word" >&5
5884echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8462echo $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 8463if test "${ac_cv_path_TBL+set}" = set; then
5887 echo $ac_n "(cached) $ac_c" 1>&6 8464 echo $ECHO_N "(cached) $ECHO_C" >&6
5888else 8465else
5889 case "$TBL" in 8466 case $TBL in
5890 /*) 8467 [\\/]* | ?:[\\/]*)
5891 ac_cv_path_TBL="$TBL" # Let the user override the test with a path. 8468 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5892 ;; 8469 ;;
5893 ?:/*)
5894 ac_cv_path_TBL="$TBL" # Let the user override the test with a dos path.
5895 ;;
5896 *) 8470 *)
5897 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 ac_dummy="$PATH" 8472for as_dir in $PATH
5899 for ac_dir in $ac_dummy; do 8473do
8474 IFS=$as_save_IFS
5900 test -z "$ac_dir" && ac_dir=. 8475 test -z "$as_dir" && as_dir=.
5901 if test -f $ac_dir/$ac_word; then 8476 for ac_exec_ext in '' $ac_executable_extensions; do
8477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5902 ac_cv_path_TBL="$ac_dir/$ac_word" 8478 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
8479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5903 break 8480 break 2
5904 fi 8481 fi
5905 done 8482done
5906 IFS="$ac_save_ifs" 8483done
8484
5907 ;; 8485 ;;
5908esac 8486esac
5909fi 8487fi
5910TBL="$ac_cv_path_TBL" 8488TBL=$ac_cv_path_TBL
8489
5911if test -n "$TBL"; then 8490if test -n "$TBL"; then
5912 echo "$ac_t""$TBL" 1>&6 8491 echo "$as_me:$LINENO: result: $TBL" >&5
8492echo "${ECHO_T}$TBL" >&6
5913else 8493else
5914 echo "$ac_t""no" 1>&6 8494 echo "$as_me:$LINENO: result: no" >&5
8495echo "${ECHO_T}no" >&6
5915fi 8496fi
5916 8497
5917 8498
5918 8499
5919 8500
5920# If we find X, set shell vars x_includes and x_libraries to the 8501echo "$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 8502echo $ECHO_N "checking for X... $ECHO_C" >&6
5925echo "configure:5926: checking for X" >&5 8503
5926 8504
5927# Check whether --with-x or --without-x was given. 8505# Check whether --with-x or --without-x was given.
5928if test "${with_x+set}" = set; then 8506if test "${with_x+set}" = set; then
5929 withval="$with_x" 8507 withval="$with_x"
5930 : 8508
5931fi 8509fi;
5932
5933# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 8510# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5934if test "x$with_x" = xno; then 8511if test "x$with_x" = xno; then
5935 # The user explicitly disabled X. 8512 # The user explicitly disabled X.
5936 have_x=disabled 8513 have_x=disabled
5937else 8514else
5938 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 8515 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5939 # Both variables are already set. 8516 # Both variables are already set.
5940 have_x=yes 8517 have_x=yes
5941 else 8518 else
5942if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then 8519 if test "${ac_cv_have_x+set}" = set; then
5943 echo $ac_n "(cached) $ac_c" 1>&6 8520 echo $ECHO_N "(cached) $ECHO_C" >&6
5944else 8521else
5945 # One or both of the vars are not set, and there is no cached value. 8522 # One or both of the vars are not set, and there is no cached value.
5946ac_x_includes=NO ac_x_libraries=NO 8523ac_x_includes=no ac_x_libraries=no
5947rm -fr conftestdir 8524rm -fr conftest.dir
5948if mkdir conftestdir; then 8525if mkdir conftest.dir; then
5949 cd conftestdir 8526 cd conftest.dir
5950 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 8527 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5951 cat > Imakefile <<'EOF' 8528 cat >Imakefile <<'_ACEOF'
5952acfindx: 8529acfindx:
5953 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 8530 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5954EOF 8531_ACEOF
5955 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 8532 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5956 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 8533 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5957 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 8534 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5958 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 8535 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5959 for ac_extension in a so sl; do 8536 for ac_extension in a so sl; do
5960 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 8537 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5961 test -f $ac_im_libdir/libX11.$ac_extension; then 8538 test -f $ac_im_libdir/libX11.$ac_extension; then
5962 ac_im_usrlibdir=$ac_im_libdir; break 8539 ac_im_usrlibdir=$ac_im_libdir; break
5963 fi 8540 fi
5964 done 8541 done
5965 # Screen out bogus values from the imake configuration. They are 8542 # Screen out bogus values from the imake configuration. They are
5966 # bogus both because they are the default anyway, and because 8543 # bogus both because they are the default anyway, and because
5967 # using them would break gcc on systems where it needs fixed includes. 8544 # using them would break gcc on systems where it needs fixed includes.
5968 case "$ac_im_incroot" in 8545 case $ac_im_incroot in
5969 /usr/include) ;; 8546 /usr/include) ;;
5970 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; 8547 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5971 esac 8548 esac
5972 case "$ac_im_usrlibdir" in 8549 case $ac_im_usrlibdir in
5973 /usr/lib | /lib) ;; 8550 /usr/lib | /lib) ;;
5974 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; 8551 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5975 esac 8552 esac
5976 fi 8553 fi
5977 cd .. 8554 cd ..
5978 rm -fr conftestdir 8555 rm -fr conftest.dir
5979fi 8556fi
5980 8557
8558# Standard set of common directories for X headers.
8559# Check X11 before X11Rn because it is often a symlink to the current release.
8560ac_x_header_dirs='
8561/usr/X11/include
8562/usr/X11R6/include
8563/usr/X11R5/include
8564/usr/X11R4/include
8565
8566/usr/include/X11
8567/usr/include/X11R6
8568/usr/include/X11R5
8569/usr/include/X11R4
8570
8571/usr/local/X11/include
8572/usr/local/X11R6/include
8573/usr/local/X11R5/include
8574/usr/local/X11R4/include
8575
8576/usr/local/include/X11
8577/usr/local/include/X11R6
8578/usr/local/include/X11R5
8579/usr/local/include/X11R4
8580
8581/usr/X386/include
8582/usr/x386/include
8583/usr/XFree86/include/X11
8584
8585/usr/include
8586/usr/local/include
8587/usr/unsupported/include
8588/usr/athena/include
8589/usr/local/x11r5/include
8590/usr/lpp/Xamples/include
8591
8592/usr/openwin/include
8593/usr/openwin/share/include'
8594
5981if test "$ac_x_includes" = NO; then 8595if test "$ac_x_includes" = no; then
5982 # Guess where to find include files, by looking for this one X11 .h file. 8596 # 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. 8597 # First, try using that file with no special directory specified.
8598 cat >conftest.$ac_ext <<_ACEOF
8599/* confdefs.h. */
8600_ACEOF
8601cat confdefs.h >>conftest.$ac_ext
5986cat > conftest.$ac_ext <<EOF 8602cat >>conftest.$ac_ext <<_ACEOF
5987#line 5988 "configure" 8603/* end confdefs.h. */
5988#include "confdefs.h" 8604#include <X11/Intrinsic.h>
5989#include <$x_direct_test_include> 8605_ACEOF
5990EOF 8606if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5991ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8607 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5992{ (eval echo configure:5993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8608 ac_status=$?
5993ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8609 grep -v '^ *+' conftest.er1 >conftest.err
8610 rm -f conftest.er1
8611 cat conftest.err >&5
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); } >/dev/null; then
8614 if test -s conftest.err; then
8615 ac_cpp_err=$ac_c_preproc_warn_flag
8616 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8617 else
8618 ac_cpp_err=
8619 fi
8620else
8621 ac_cpp_err=yes
8622fi
5994if test -z "$ac_err"; then 8623if test -z "$ac_cpp_err"; then
5995 rm -rf conftest*
5996 # We can compile using X headers with no special include directory. 8624 # We can compile using X headers with no special include directory.
5997ac_x_includes= 8625ac_x_includes=
5998else 8626else
5999 echo "$ac_err" >&5
6000 echo "configure: failed program was:" >&5 8627 echo "$as_me: failed program was:" >&5
6001 cat conftest.$ac_ext >&5 8628sed 's/^/| /' conftest.$ac_ext >&5
6002 rm -rf conftest* 8629
6003 # Look for the header file in a standard set of common directories. 8630 for ac_dir in $ac_x_header_dirs; do
6004# Check X11 before X11Rn because it is often a symlink to the current release. 8631 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 8632 ac_x_includes=$ac_dir
6043 break 8633 break
6044 fi 8634 fi
6045 done 8635done
6046fi 8636fi
6047rm -f conftest* 8637rm -f conftest.err conftest.$ac_ext
6048fi # $ac_x_includes = NO 8638fi # $ac_x_includes = no
6049 8639
6050if test "$ac_x_libraries" = NO; then 8640if test "$ac_x_libraries" = no; then
6051 # Check for the libraries. 8641 # 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. 8642 # See if we find them without any special options.
6057 # Don't add to $LIBS permanently. 8643 # Don't add to $LIBS permanently.
6058 ac_save_LIBS="$LIBS" 8644 ac_save_LIBS=$LIBS
6059 LIBS="-l$x_direct_test_library $LIBS" 8645 LIBS="-lXt $LIBS"
8646 cat >conftest.$ac_ext <<_ACEOF
8647/* confdefs.h. */
8648_ACEOF
8649cat confdefs.h >>conftest.$ac_ext
6060cat > conftest.$ac_ext <<EOF 8650cat >>conftest.$ac_ext <<_ACEOF
6061#line 6062 "configure" 8651/* end confdefs.h. */
6062#include "confdefs.h" 8652#include <X11/Intrinsic.h>
6063 8653int
6064int main() { 8654main ()
6065${x_direct_test_function}() 8655{
8656XtMalloc (0)
8657 ;
6066; return 0; } 8658 return 0;
6067EOF 8659}
6068if { (eval echo configure:6069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8660_ACEOF
8661rm -f conftest.$ac_objext conftest$ac_exeext
8662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8663 (eval $ac_link) 2>conftest.er1
8664 ac_status=$?
8665 grep -v '^ *+' conftest.er1 >conftest.err
6069 rm -rf conftest* 8666 rm -f conftest.er1
8667 cat conftest.err >&5
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); } &&
8670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8672 (eval $ac_try) 2>&5
8673 ac_status=$?
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); }; } &&
8676 { ac_try='test -s conftest$ac_exeext'
8677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8678 (eval $ac_try) 2>&5
8679 ac_status=$?
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); }; }; then
6070 LIBS="$ac_save_LIBS" 8682 LIBS=$ac_save_LIBS
6071# We can link X programs with no special library path. 8683# We can link X programs with no special library path.
6072ac_x_libraries= 8684ac_x_libraries=
6073else 8685else
6074 echo "configure: failed program was:" >&5 8686 echo "$as_me: failed program was:" >&5
6075 cat conftest.$ac_ext >&5 8687sed 's/^/| /' conftest.$ac_ext >&5
6076 rm -rf conftest* 8688
6077 LIBS="$ac_save_LIBS" 8689LIBS=$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/` \ 8690for 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 8691do
8692 # Don't even attempt the hair of trying to link an X program!
6117 for ac_extension in a so sl; do 8693 for ac_extension in a so sl; do
6118 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then 8694 if test -r $ac_dir/libXt.$ac_extension; then
6119 ac_x_libraries=$ac_dir 8695 ac_x_libraries=$ac_dir
6120 break 2 8696 break 2
6121 fi 8697 fi
6122 done 8698 done
6123done 8699done
6124fi 8700fi
6125rm -f conftest* 8701rm -f conftest.err conftest.$ac_objext \
8702 conftest$ac_exeext conftest.$ac_ext
6126fi # $ac_x_libraries = NO 8703fi # $ac_x_libraries = no
6127 8704
6128if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then 8705if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6129 # Didn't find X anywhere. Cache the known absence of X. 8706 # Didn't find X anywhere. Cache the known absence of X.
6130 ac_cv_have_x="have_x=no" 8707 ac_cv_have_x="have_x=no"
6131else 8708else
6132 # Record where we found X for the cache. 8709 # Record where we found X for the cache.
6133 ac_cv_have_x="have_x=yes \ 8710 ac_cv_have_x="have_x=yes \
6134 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 8711 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6135fi 8712fi
6136fi 8713fi
8714
6137 fi 8715 fi
6138 eval "$ac_cv_have_x" 8716 eval "$ac_cv_have_x"
6139fi # $with_x != no 8717fi # $with_x != no
6140 8718
6141if test "$have_x" != yes; then 8719if test "$have_x" != yes; then
6142 echo "$ac_t""$have_x" 1>&6 8720 echo "$as_me:$LINENO: result: $have_x" >&5
8721echo "${ECHO_T}$have_x" >&6
6143 no_x=yes 8722 no_x=yes
6144else 8723else
6145 # If each of the values was on the command line, it overrides each guess. 8724 # 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 8725 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6147 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 8726 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6148 # Update the cache value to reflect the command line values. 8727 # Update the cache value to reflect the command line values.
6149 ac_cv_have_x="have_x=yes \ 8728 ac_cv_have_x="have_x=yes \
6150 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 8729 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8730 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6151 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 8731echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6152fi 8732fi
6153 8733
6154if test "$no_x" = yes; then 8734if test "$no_x" = yes; then
6155 # Not all programs may use this symbol, but it does not hurt to define it. 8735 # Not all programs may use this symbol, but it does not hurt to define it.
8736
6156 cat >> confdefs.h <<\EOF 8737cat >>confdefs.h <<\_ACEOF
6157#define X_DISPLAY_MISSING 1 8738#define X_DISPLAY_MISSING 1
6158EOF 8739_ACEOF
6159 8740
6160 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 8741 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6161else 8742else
6162 if test -n "$x_includes"; then 8743 if test -n "$x_includes"; then
6163 X_CFLAGS="$X_CFLAGS -I$x_includes" 8744 X_CFLAGS="$X_CFLAGS -I$x_includes"
6166 # It would also be nice to do this for all -L options, not just this one. 8747 # It would also be nice to do this for all -L options, not just this one.
6167 if test -n "$x_libraries"; then 8748 if test -n "$x_libraries"; then
6168 X_LIBS="$X_LIBS -L$x_libraries" 8749 X_LIBS="$X_LIBS -L$x_libraries"
6169 # For Solaris; some versions of Sun CC require a space after -R and 8750 # For Solaris; some versions of Sun CC require a space after -R and
6170 # others require no space. Words are not sufficient . . . . 8751 # others require no space. Words are not sufficient . . . .
6171 case "`(uname -sr) 2>/dev/null`" in 8752 case `(uname -sr) 2>/dev/null` in
6172 "SunOS 5"*) 8753 "SunOS 5"*)
8754 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 8755echo $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" 8756 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6176 cat > conftest.$ac_ext <<EOF 8757 cat >conftest.$ac_ext <<_ACEOF
6177#line 6178 "configure" 8758/* confdefs.h. */
6178#include "confdefs.h" 8759_ACEOF
8760cat confdefs.h >>conftest.$ac_ext
8761cat >>conftest.$ac_ext <<_ACEOF
8762/* end confdefs.h. */
6179 8763
6180int main() { 8764int
8765main ()
8766{
6181 8767
8768 ;
6182; return 0; } 8769 return 0;
6183EOF 8770}
6184if { (eval echo configure:6185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8771_ACEOF
8772rm -f conftest.$ac_objext conftest$ac_exeext
8773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8774 (eval $ac_link) 2>conftest.er1
8775 ac_status=$?
8776 grep -v '^ *+' conftest.er1 >conftest.err
6185 rm -rf conftest* 8777 rm -f conftest.er1
8778 cat conftest.err >&5
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); } &&
8781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8783 (eval $ac_try) 2>&5
8784 ac_status=$?
8785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786 (exit $ac_status); }; } &&
8787 { ac_try='test -s conftest$ac_exeext'
8788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8789 (eval $ac_try) 2>&5
8790 ac_status=$?
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); }; }; then
6186 ac_R_nospace=yes 8793 ac_R_nospace=yes
6187else 8794else
6188 echo "configure: failed program was:" >&5 8795 echo "$as_me: failed program was:" >&5
6189 cat conftest.$ac_ext >&5 8796sed 's/^/| /' conftest.$ac_ext >&5
6190 rm -rf conftest* 8797
6191 ac_R_nospace=no 8798ac_R_nospace=no
6192fi 8799fi
6193rm -f conftest* 8800rm -f conftest.err conftest.$ac_objext \
8801 conftest$ac_exeext conftest.$ac_ext
6194 if test $ac_R_nospace = yes; then 8802 if test $ac_R_nospace = yes; then
6195 echo "$ac_t""no" 1>&6 8803 echo "$as_me:$LINENO: result: no" >&5
8804echo "${ECHO_T}no" >&6
6196 X_LIBS="$X_LIBS -R$x_libraries" 8805 X_LIBS="$X_LIBS -R$x_libraries"
6197 else 8806 else
6198 LIBS="$ac_xsave_LIBS -R $x_libraries" 8807 LIBS="$ac_xsave_LIBS -R $x_libraries"
6199 cat > conftest.$ac_ext <<EOF 8808 cat >conftest.$ac_ext <<_ACEOF
6200#line 6201 "configure" 8809/* confdefs.h. */
6201#include "confdefs.h" 8810_ACEOF
8811cat confdefs.h >>conftest.$ac_ext
8812cat >>conftest.$ac_ext <<_ACEOF
8813/* end confdefs.h. */
6202 8814
6203int main() { 8815int
8816main ()
8817{
6204 8818
8819 ;
6205; return 0; } 8820 return 0;
6206EOF 8821}
6207if { (eval echo configure:6208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8822_ACEOF
8823rm -f conftest.$ac_objext conftest$ac_exeext
8824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8825 (eval $ac_link) 2>conftest.er1
8826 ac_status=$?
8827 grep -v '^ *+' conftest.er1 >conftest.err
6208 rm -rf conftest* 8828 rm -f conftest.er1
8829 cat conftest.err >&5
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); } &&
8832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834 (eval $ac_try) 2>&5
8835 ac_status=$?
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); }; } &&
8838 { ac_try='test -s conftest$ac_exeext'
8839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8840 (eval $ac_try) 2>&5
8841 ac_status=$?
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); }; }; then
6209 ac_R_space=yes 8844 ac_R_space=yes
6210else 8845else
6211 echo "configure: failed program was:" >&5 8846 echo "$as_me: failed program was:" >&5
6212 cat conftest.$ac_ext >&5 8847sed 's/^/| /' conftest.$ac_ext >&5
6213 rm -rf conftest* 8848
6214 ac_R_space=no 8849ac_R_space=no
6215fi 8850fi
6216rm -f conftest* 8851rm -f conftest.err conftest.$ac_objext \
8852 conftest$ac_exeext conftest.$ac_ext
6217 if test $ac_R_space = yes; then 8853 if test $ac_R_space = yes; then
6218 echo "$ac_t""yes" 1>&6 8854 echo "$as_me:$LINENO: result: yes" >&5
8855echo "${ECHO_T}yes" >&6
6219 X_LIBS="$X_LIBS -R $x_libraries" 8856 X_LIBS="$X_LIBS -R $x_libraries"
6220 else 8857 else
8858 echo "$as_me:$LINENO: result: neither works" >&5
6221 echo "$ac_t""neither works" 1>&6 8859echo "${ECHO_T}neither works" >&6
6222 fi 8860 fi
6223 fi 8861 fi
6224 LIBS="$ac_xsave_LIBS" 8862 LIBS=$ac_xsave_LIBS
6225 esac 8863 esac
6226 fi 8864 fi
6227 8865
6228 # Check for system-dependent libraries X programs must link with. 8866 # Check for system-dependent libraries X programs must link with.
6229 # Do this before checking for the system-independent R6 libraries 8867 # Do this before checking for the system-independent R6 libraries
6230 # (-lICE), since we may need -lsocket or whatever for X linking. 8868 # (-lICE), since we may need -lsocket or whatever for X linking.
6231 8869
6232 if test "$ISC" = yes; then 8870 if test "$ISC" = yes; then
6233 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 8871 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6234 else 8872 else
6235 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X 8873 # Martyn Johnson says this is needed for Ultrix, if the X
6236 # libraries were built with DECnet support. And karl@cs.umb.edu says 8874 # libraries were built with DECnet support. And Karl Berry says
6237 # the Alpha needs dnet_stub (dnet does not exist). 8875 # the Alpha needs dnet_stub (dnet does not exist).
8876 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8877 cat >conftest.$ac_ext <<_ACEOF
8878/* confdefs.h. */
8879_ACEOF
8880cat confdefs.h >>conftest.$ac_ext
8881cat >>conftest.$ac_ext <<_ACEOF
8882/* end confdefs.h. */
8883
8884/* Override any gcc2 internal prototype to avoid an error. */
8885#ifdef __cplusplus
8886extern "C"
8887#endif
8888/* We use char because int might match the return type of a gcc2
8889 builtin and then its argument prototype would still apply. */
8890char XOpenDisplay ();
8891int
8892main ()
8893{
8894XOpenDisplay ();
8895 ;
8896 return 0;
8897}
8898_ACEOF
8899rm -f conftest.$ac_objext conftest$ac_exeext
8900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8901 (eval $ac_link) 2>conftest.er1
8902 ac_status=$?
8903 grep -v '^ *+' conftest.er1 >conftest.err
8904 rm -f conftest.er1
8905 cat conftest.err >&5
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); } &&
8908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8910 (eval $ac_try) 2>&5
8911 ac_status=$?
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); }; } &&
8914 { ac_try='test -s conftest$ac_exeext'
8915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8916 (eval $ac_try) 2>&5
8917 ac_status=$?
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); }; }; then
8920 :
8921else
8922 echo "$as_me: failed program was:" >&5
8923sed 's/^/| /' conftest.$ac_ext >&5
8924
8925echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6238 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 8926echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6239echo "configure:6240: checking for dnet_ntoa in -ldnet" >&5 8927if 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 8928 echo $ECHO_N "(cached) $ECHO_C" >&6
6243else 8929else
6244 ac_save_LIBS="$LIBS" 8930 ac_check_lib_save_LIBS=$LIBS
6245LIBS="-ldnet $LIBS" 8931LIBS="-ldnet $LIBS"
6246cat > conftest.$ac_ext <<EOF 8932cat >conftest.$ac_ext <<_ACEOF
6247#line 6248 "configure" 8933/* confdefs.h. */
6248#include "confdefs.h" 8934_ACEOF
8935cat confdefs.h >>conftest.$ac_ext
8936cat >>conftest.$ac_ext <<_ACEOF
8937/* end confdefs.h. */
8938
6249/* Override any gcc2 internal prototype to avoid an error. */ 8939/* Override any gcc2 internal prototype to avoid an error. */
8940#ifdef __cplusplus
8941extern "C"
8942#endif
6250/* We use char because int might match the return type of a gcc2 8943/* We use char because int might match the return type of a gcc2
6251 builtin and then its argument prototype would still apply. */ 8944 builtin and then its argument prototype would still apply. */
6252char dnet_ntoa(); 8945char dnet_ntoa ();
6253 8946int
6254int main() { 8947main ()
8948{
6255dnet_ntoa() 8949dnet_ntoa ();
8950 ;
6256; return 0; } 8951 return 0;
6257EOF 8952}
6258if { (eval echo configure:6259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8953_ACEOF
8954rm -f conftest.$ac_objext conftest$ac_exeext
8955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8956 (eval $ac_link) 2>conftest.er1
8957 ac_status=$?
8958 grep -v '^ *+' conftest.er1 >conftest.err
6259 rm -rf conftest* 8959 rm -f conftest.er1
6260 eval "ac_cv_lib_$ac_lib_var=yes" 8960 cat conftest.err >&5
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); } &&
8963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8965 (eval $ac_try) 2>&5
8966 ac_status=$?
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); }; } &&
8969 { ac_try='test -s conftest$ac_exeext'
8970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8971 (eval $ac_try) 2>&5
8972 ac_status=$?
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); }; }; then
8975 ac_cv_lib_dnet_dnet_ntoa=yes
6261else 8976else
6262 echo "configure: failed program was:" >&5 8977 echo "$as_me: failed program was:" >&5
6263 cat conftest.$ac_ext >&5 8978sed 's/^/| /' conftest.$ac_ext >&5
6264 rm -rf conftest* 8979
6265 eval "ac_cv_lib_$ac_lib_var=no" 8980ac_cv_lib_dnet_dnet_ntoa=no
6266fi 8981fi
6267rm -f conftest* 8982rm -f conftest.err conftest.$ac_objext \
8983 conftest$ac_exeext conftest.$ac_ext
6268LIBS="$ac_save_LIBS" 8984LIBS=$ac_check_lib_save_LIBS
6269
6270fi 8985fi
6271if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 8986echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6272 echo "$ac_t""yes" 1>&6 8987echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8988if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6273 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 8989 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6274else
6275 echo "$ac_t""no" 1>&6
6276fi 8990fi
6277 8991
6278 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 8992 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8993 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 8994echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
6280echo "configure:6281: checking for dnet_ntoa in -ldnet_stub" >&5 8995if 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 8996 echo $ECHO_N "(cached) $ECHO_C" >&6
6284else 8997else
6285 ac_save_LIBS="$LIBS" 8998 ac_check_lib_save_LIBS=$LIBS
6286LIBS="-ldnet_stub $LIBS" 8999LIBS="-ldnet_stub $LIBS"
6287cat > conftest.$ac_ext <<EOF 9000cat >conftest.$ac_ext <<_ACEOF
6288#line 6289 "configure" 9001/* confdefs.h. */
6289#include "confdefs.h" 9002_ACEOF
9003cat confdefs.h >>conftest.$ac_ext
9004cat >>conftest.$ac_ext <<_ACEOF
9005/* end confdefs.h. */
9006
6290/* Override any gcc2 internal prototype to avoid an error. */ 9007/* Override any gcc2 internal prototype to avoid an error. */
9008#ifdef __cplusplus
9009extern "C"
9010#endif
6291/* We use char because int might match the return type of a gcc2 9011/* We use char because int might match the return type of a gcc2
6292 builtin and then its argument prototype would still apply. */ 9012 builtin and then its argument prototype would still apply. */
6293char dnet_ntoa(); 9013char dnet_ntoa ();
6294 9014int
6295int main() { 9015main ()
9016{
6296dnet_ntoa() 9017dnet_ntoa ();
9018 ;
6297; return 0; } 9019 return 0;
6298EOF 9020}
6299if { (eval echo configure:6300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9021_ACEOF
9022rm -f conftest.$ac_objext conftest$ac_exeext
9023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9024 (eval $ac_link) 2>conftest.er1
9025 ac_status=$?
9026 grep -v '^ *+' conftest.er1 >conftest.err
6300 rm -rf conftest* 9027 rm -f conftest.er1
6301 eval "ac_cv_lib_$ac_lib_var=yes" 9028 cat conftest.err >&5
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); } &&
9031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9037 { ac_try='test -s conftest$ac_exeext'
9038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9039 (eval $ac_try) 2>&5
9040 ac_status=$?
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); }; }; then
9043 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6302else 9044else
6303 echo "configure: failed program was:" >&5 9045 echo "$as_me: failed program was:" >&5
6304 cat conftest.$ac_ext >&5 9046sed 's/^/| /' conftest.$ac_ext >&5
6305 rm -rf conftest* 9047
6306 eval "ac_cv_lib_$ac_lib_var=no" 9048ac_cv_lib_dnet_stub_dnet_ntoa=no
6307fi 9049fi
6308rm -f conftest* 9050rm -f conftest.err conftest.$ac_objext \
9051 conftest$ac_exeext conftest.$ac_ext
6309LIBS="$ac_save_LIBS" 9052LIBS=$ac_check_lib_save_LIBS
6310
6311fi 9053fi
6312if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9054echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6313 echo "$ac_t""yes" 1>&6 9055echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9056if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6314 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 9057 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6315else
6316 echo "$ac_t""no" 1>&6
6317fi 9058fi
6318 9059
6319 fi 9060 fi
9061fi
9062rm -f conftest.err conftest.$ac_objext \
9063 conftest$ac_exeext conftest.$ac_ext
9064 LIBS="$ac_xsave_LIBS"
6320 9065
6321 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 9066 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6322 # to get the SysV transport functions. 9067 # to get the SysV transport functions.
6323 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 9068 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6324 # needs -lnsl. 9069 # needs -lnsl.
6325 # The nsl library prevents programs from opening the X display 9070 # The nsl library prevents programs from opening the X display
6326 # on Irix 5.2, according to dickey@clark.net. 9071 # on Irix 5.2, according to T.E. Dickey.
9072 # The functions gethostbyname, getservbyname, and inet_addr are
9073 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9074 echo "$as_me:$LINENO: checking for gethostbyname" >&5
6327 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 9075echo $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 9076if test "${ac_cv_func_gethostbyname+set}" = set; then
6330 echo $ac_n "(cached) $ac_c" 1>&6 9077 echo $ECHO_N "(cached) $ECHO_C" >&6
6331else 9078else
6332 cat > conftest.$ac_ext <<EOF 9079 cat >conftest.$ac_ext <<_ACEOF
6333#line 6334 "configure" 9080/* confdefs.h. */
6334#include "confdefs.h" 9081_ACEOF
9082cat confdefs.h >>conftest.$ac_ext
9083cat >>conftest.$ac_ext <<_ACEOF
9084/* end confdefs.h. */
9085/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
9086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9087#define gethostbyname innocuous_gethostbyname
9088
6335/* System header to define __stub macros and hopefully few prototypes, 9089/* System header to define __stub macros and hopefully few prototypes,
6336 which can conflict with char gethostbyname(); below. */ 9090 which can conflict with char gethostbyname (); below.
9091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9092 <limits.h> exists even on freestanding compilers. */
9093
9094#ifdef __STDC__
9095# include <limits.h>
9096#else
6337#include <assert.h> 9097# include <assert.h>
9098#endif
9099
9100#undef gethostbyname
9101
6338/* Override any gcc2 internal prototype to avoid an error. */ 9102/* Override any gcc2 internal prototype to avoid an error. */
9103#ifdef __cplusplus
9104extern "C"
9105{
9106#endif
6339/* We use char because int might match the return type of a gcc2 9107/* We use char because int might match the return type of a gcc2
6340 builtin and then its argument prototype would still apply. */ 9108 builtin and then its argument prototype would still apply. */
6341char gethostbyname(); 9109char gethostbyname ();
6342
6343int main() {
6344
6345/* The GNU C library defines this for functions which it implements 9110/* The GNU C library defines this for functions which it implements
6346 to always fail with ENOSYS. Some functions are actually named 9111 to always fail with ENOSYS. Some functions are actually named
6347 something starting with __ and the normal name is an alias. */ 9112 something starting with __ and the normal name is an alias. */
6348#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 9113#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6349choke me 9114choke me
6350#else 9115#else
6351gethostbyname(); 9116char (*f) () = gethostbyname;
6352#endif 9117#endif
9118#ifdef __cplusplus
9119}
9120#endif
6353 9121
9122int
9123main ()
9124{
9125return f != gethostbyname;
9126 ;
6354; return 0; } 9127 return 0;
6355EOF 9128}
6356if { (eval echo configure:6357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9129_ACEOF
9130rm -f conftest.$ac_objext conftest$ac_exeext
9131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9132 (eval $ac_link) 2>conftest.er1
9133 ac_status=$?
9134 grep -v '^ *+' conftest.er1 >conftest.err
6357 rm -rf conftest* 9135 rm -f conftest.er1
9136 cat conftest.err >&5
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); } &&
9139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9141 (eval $ac_try) 2>&5
9142 ac_status=$?
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); }; } &&
9145 { ac_try='test -s conftest$ac_exeext'
9146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9147 (eval $ac_try) 2>&5
9148 ac_status=$?
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); }; }; then
6358 eval "ac_cv_func_gethostbyname=yes" 9151 ac_cv_func_gethostbyname=yes
6359else 9152else
6360 echo "configure: failed program was:" >&5 9153 echo "$as_me: failed program was:" >&5
6361 cat conftest.$ac_ext >&5 9154sed 's/^/| /' conftest.$ac_ext >&5
6362 rm -rf conftest* 9155
6363 eval "ac_cv_func_gethostbyname=no" 9156ac_cv_func_gethostbyname=no
6364fi 9157fi
6365rm -f conftest* 9158rm -f conftest.err conftest.$ac_objext \
9159 conftest$ac_exeext conftest.$ac_ext
6366fi 9160fi
6367 9161echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6368if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then 9162echo "${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 9163
6375 if test $ac_cv_func_gethostbyname = no; then 9164 if test $ac_cv_func_gethostbyname = no; then
9165 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6376 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 9166echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6377echo "configure:6378: checking for gethostbyname in -lnsl" >&5 9167if 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 9168 echo $ECHO_N "(cached) $ECHO_C" >&6
6381else 9169else
6382 ac_save_LIBS="$LIBS" 9170 ac_check_lib_save_LIBS=$LIBS
6383LIBS="-lnsl $LIBS" 9171LIBS="-lnsl $LIBS"
6384cat > conftest.$ac_ext <<EOF 9172cat >conftest.$ac_ext <<_ACEOF
6385#line 6386 "configure" 9173/* confdefs.h. */
6386#include "confdefs.h" 9174_ACEOF
9175cat confdefs.h >>conftest.$ac_ext
9176cat >>conftest.$ac_ext <<_ACEOF
9177/* end confdefs.h. */
9178
6387/* Override any gcc2 internal prototype to avoid an error. */ 9179/* Override any gcc2 internal prototype to avoid an error. */
9180#ifdef __cplusplus
9181extern "C"
9182#endif
6388/* We use char because int might match the return type of a gcc2 9183/* We use char because int might match the return type of a gcc2
6389 builtin and then its argument prototype would still apply. */ 9184 builtin and then its argument prototype would still apply. */
6390char gethostbyname(); 9185char gethostbyname ();
6391 9186int
6392int main() { 9187main ()
9188{
6393gethostbyname() 9189gethostbyname ();
9190 ;
6394; return 0; } 9191 return 0;
6395EOF 9192}
6396if { (eval echo configure:6397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9193_ACEOF
9194rm -f conftest.$ac_objext conftest$ac_exeext
9195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9196 (eval $ac_link) 2>conftest.er1
9197 ac_status=$?
9198 grep -v '^ *+' conftest.er1 >conftest.err
6397 rm -rf conftest* 9199 rm -f conftest.er1
6398 eval "ac_cv_lib_$ac_lib_var=yes" 9200 cat conftest.err >&5
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); } &&
9203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9205 (eval $ac_try) 2>&5
9206 ac_status=$?
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); }; } &&
9209 { ac_try='test -s conftest$ac_exeext'
9210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9211 (eval $ac_try) 2>&5
9212 ac_status=$?
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); }; }; then
9215 ac_cv_lib_nsl_gethostbyname=yes
6399else 9216else
6400 echo "configure: failed program was:" >&5 9217 echo "$as_me: failed program was:" >&5
6401 cat conftest.$ac_ext >&5 9218sed 's/^/| /' conftest.$ac_ext >&5
6402 rm -rf conftest* 9219
6403 eval "ac_cv_lib_$ac_lib_var=no" 9220ac_cv_lib_nsl_gethostbyname=no
6404fi 9221fi
6405rm -f conftest* 9222rm -f conftest.err conftest.$ac_objext \
9223 conftest$ac_exeext conftest.$ac_ext
6406LIBS="$ac_save_LIBS" 9224LIBS=$ac_check_lib_save_LIBS
6407
6408fi 9225fi
6409if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9226echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6410 echo "$ac_t""yes" 1>&6 9227echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9228if test $ac_cv_lib_nsl_gethostbyname = yes; then
6411 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 9229 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6412else
6413 echo "$ac_t""no" 1>&6
6414fi 9230fi
6415 9231
9232 if test $ac_cv_lib_nsl_gethostbyname = no; then
9233 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9234echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9235if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9236 echo $ECHO_N "(cached) $ECHO_C" >&6
9237else
9238 ac_check_lib_save_LIBS=$LIBS
9239LIBS="-lbsd $LIBS"
9240cat >conftest.$ac_ext <<_ACEOF
9241/* confdefs.h. */
9242_ACEOF
9243cat confdefs.h >>conftest.$ac_ext
9244cat >>conftest.$ac_ext <<_ACEOF
9245/* end confdefs.h. */
9246
9247/* Override any gcc2 internal prototype to avoid an error. */
9248#ifdef __cplusplus
9249extern "C"
9250#endif
9251/* We use char because int might match the return type of a gcc2
9252 builtin and then its argument prototype would still apply. */
9253char gethostbyname ();
9254int
9255main ()
9256{
9257gethostbyname ();
9258 ;
9259 return 0;
9260}
9261_ACEOF
9262rm -f conftest.$ac_objext conftest$ac_exeext
9263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9264 (eval $ac_link) 2>conftest.er1
9265 ac_status=$?
9266 grep -v '^ *+' conftest.er1 >conftest.err
9267 rm -f conftest.er1
9268 cat conftest.err >&5
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); } &&
9271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9273 (eval $ac_try) 2>&5
9274 ac_status=$?
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); }; } &&
9277 { ac_try='test -s conftest$ac_exeext'
9278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9279 (eval $ac_try) 2>&5
9280 ac_status=$?
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); }; }; then
9283 ac_cv_lib_bsd_gethostbyname=yes
9284else
9285 echo "$as_me: failed program was:" >&5
9286sed 's/^/| /' conftest.$ac_ext >&5
9287
9288ac_cv_lib_bsd_gethostbyname=no
9289fi
9290rm -f conftest.err conftest.$ac_objext \
9291 conftest$ac_exeext conftest.$ac_ext
9292LIBS=$ac_check_lib_save_LIBS
9293fi
9294echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9295echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9296if test $ac_cv_lib_bsd_gethostbyname = yes; then
9297 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9298fi
9299
9300 fi
6416 fi 9301 fi
6417 9302
6418 # lieder@skyler.mavd.honeywell.com says without -lsocket, 9303 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6419 # socket/setsockopt and other routines are undefined under SCO ODT 9304 # 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 9305 # 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 9306 # on later versions), says Simon Leinen: it contains gethostby*
6422 # gethostby* variants that don't use the nameserver (or something). 9307 # variants that don't use the name server (or something). -lsocket
6423 # -lsocket must be given before -lnsl if both are needed. 9308 # must be given before -lnsl if both are needed. We assume that
6424 # We assume that if connect needs -lnsl, so does gethostbyname. 9309 # if connect needs -lnsl, so does gethostbyname.
9310 echo "$as_me:$LINENO: checking for connect" >&5
6425 echo $ac_n "checking for connect""... $ac_c" 1>&6 9311echo $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 9312if test "${ac_cv_func_connect+set}" = set; then
6428 echo $ac_n "(cached) $ac_c" 1>&6 9313 echo $ECHO_N "(cached) $ECHO_C" >&6
6429else 9314else
6430 cat > conftest.$ac_ext <<EOF 9315 cat >conftest.$ac_ext <<_ACEOF
6431#line 6432 "configure" 9316/* confdefs.h. */
6432#include "confdefs.h" 9317_ACEOF
9318cat confdefs.h >>conftest.$ac_ext
9319cat >>conftest.$ac_ext <<_ACEOF
9320/* end confdefs.h. */
9321/* Define connect to an innocuous variant, in case <limits.h> declares connect.
9322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9323#define connect innocuous_connect
9324
6433/* System header to define __stub macros and hopefully few prototypes, 9325/* System header to define __stub macros and hopefully few prototypes,
6434 which can conflict with char connect(); below. */ 9326 which can conflict with char connect (); below.
9327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9328 <limits.h> exists even on freestanding compilers. */
9329
9330#ifdef __STDC__
9331# include <limits.h>
9332#else
6435#include <assert.h> 9333# include <assert.h>
9334#endif
9335
9336#undef connect
9337
6436/* Override any gcc2 internal prototype to avoid an error. */ 9338/* Override any gcc2 internal prototype to avoid an error. */
9339#ifdef __cplusplus
9340extern "C"
9341{
9342#endif
6437/* We use char because int might match the return type of a gcc2 9343/* We use char because int might match the return type of a gcc2
6438 builtin and then its argument prototype would still apply. */ 9344 builtin and then its argument prototype would still apply. */
6439char connect(); 9345char connect ();
6440
6441int main() {
6442
6443/* The GNU C library defines this for functions which it implements 9346/* The GNU C library defines this for functions which it implements
6444 to always fail with ENOSYS. Some functions are actually named 9347 to always fail with ENOSYS. Some functions are actually named
6445 something starting with __ and the normal name is an alias. */ 9348 something starting with __ and the normal name is an alias. */
6446#if defined (__stub_connect) || defined (__stub___connect) 9349#if defined (__stub_connect) || defined (__stub___connect)
6447choke me 9350choke me
6448#else 9351#else
6449connect(); 9352char (*f) () = connect;
6450#endif 9353#endif
9354#ifdef __cplusplus
9355}
9356#endif
6451 9357
9358int
9359main ()
9360{
9361return f != connect;
9362 ;
6452; return 0; } 9363 return 0;
6453EOF 9364}
6454if { (eval echo configure:6455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9365_ACEOF
9366rm -f conftest.$ac_objext conftest$ac_exeext
9367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9368 (eval $ac_link) 2>conftest.er1
9369 ac_status=$?
9370 grep -v '^ *+' conftest.er1 >conftest.err
6455 rm -rf conftest* 9371 rm -f conftest.er1
9372 cat conftest.err >&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); } &&
9375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9377 (eval $ac_try) 2>&5
9378 ac_status=$?
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); }; } &&
9381 { ac_try='test -s conftest$ac_exeext'
9382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9383 (eval $ac_try) 2>&5
9384 ac_status=$?
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); }; }; then
6456 eval "ac_cv_func_connect=yes" 9387 ac_cv_func_connect=yes
6457else 9388else
6458 echo "configure: failed program was:" >&5 9389 echo "$as_me: failed program was:" >&5
6459 cat conftest.$ac_ext >&5 9390sed 's/^/| /' conftest.$ac_ext >&5
6460 rm -rf conftest* 9391
6461 eval "ac_cv_func_connect=no" 9392ac_cv_func_connect=no
6462fi 9393fi
6463rm -f conftest* 9394rm -f conftest.err conftest.$ac_objext \
9395 conftest$ac_exeext conftest.$ac_ext
6464fi 9396fi
6465 9397echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6466if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then 9398echo "${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 9399
6473 if test $ac_cv_func_connect = no; then 9400 if test $ac_cv_func_connect = no; then
9401 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6474 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 9402echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6475echo "configure:6476: checking for connect in -lsocket" >&5 9403if 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 9404 echo $ECHO_N "(cached) $ECHO_C" >&6
6479else 9405else
6480 ac_save_LIBS="$LIBS" 9406 ac_check_lib_save_LIBS=$LIBS
6481LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 9407LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6482cat > conftest.$ac_ext <<EOF 9408cat >conftest.$ac_ext <<_ACEOF
6483#line 6484 "configure" 9409/* confdefs.h. */
6484#include "confdefs.h" 9410_ACEOF
9411cat confdefs.h >>conftest.$ac_ext
9412cat >>conftest.$ac_ext <<_ACEOF
9413/* end confdefs.h. */
9414
6485/* Override any gcc2 internal prototype to avoid an error. */ 9415/* Override any gcc2 internal prototype to avoid an error. */
9416#ifdef __cplusplus
9417extern "C"
9418#endif
6486/* We use char because int might match the return type of a gcc2 9419/* We use char because int might match the return type of a gcc2
6487 builtin and then its argument prototype would still apply. */ 9420 builtin and then its argument prototype would still apply. */
6488char connect(); 9421char connect ();
6489 9422int
6490int main() { 9423main ()
9424{
6491connect() 9425connect ();
9426 ;
6492; return 0; } 9427 return 0;
6493EOF 9428}
6494if { (eval echo configure:6495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9429_ACEOF
9430rm -f conftest.$ac_objext conftest$ac_exeext
9431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9432 (eval $ac_link) 2>conftest.er1
9433 ac_status=$?
9434 grep -v '^ *+' conftest.er1 >conftest.err
6495 rm -rf conftest* 9435 rm -f conftest.er1
6496 eval "ac_cv_lib_$ac_lib_var=yes" 9436 cat conftest.err >&5
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); } &&
9439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9441 (eval $ac_try) 2>&5
9442 ac_status=$?
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); }; } &&
9445 { ac_try='test -s conftest$ac_exeext'
9446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9447 (eval $ac_try) 2>&5
9448 ac_status=$?
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); }; }; then
9451 ac_cv_lib_socket_connect=yes
6497else 9452else
6498 echo "configure: failed program was:" >&5 9453 echo "$as_me: failed program was:" >&5
6499 cat conftest.$ac_ext >&5 9454sed 's/^/| /' conftest.$ac_ext >&5
6500 rm -rf conftest* 9455
6501 eval "ac_cv_lib_$ac_lib_var=no" 9456ac_cv_lib_socket_connect=no
6502fi 9457fi
6503rm -f conftest* 9458rm -f conftest.err conftest.$ac_objext \
9459 conftest$ac_exeext conftest.$ac_ext
6504LIBS="$ac_save_LIBS" 9460LIBS=$ac_check_lib_save_LIBS
6505
6506fi 9461fi
6507if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9462echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6508 echo "$ac_t""yes" 1>&6 9463echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9464if test $ac_cv_lib_socket_connect = yes; then
6509 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 9465 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6510else
6511 echo "$ac_t""no" 1>&6
6512fi 9466fi
6513 9467
6514 fi 9468 fi
6515 9469
6516 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 9470 # Guillermo Gomez says -lposix is necessary on A/UX.
9471 echo "$as_me:$LINENO: checking for remove" >&5
6517 echo $ac_n "checking for remove""... $ac_c" 1>&6 9472echo $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 9473if test "${ac_cv_func_remove+set}" = set; then
6520 echo $ac_n "(cached) $ac_c" 1>&6 9474 echo $ECHO_N "(cached) $ECHO_C" >&6
6521else 9475else
6522 cat > conftest.$ac_ext <<EOF 9476 cat >conftest.$ac_ext <<_ACEOF
6523#line 6524 "configure" 9477/* confdefs.h. */
6524#include "confdefs.h" 9478_ACEOF
9479cat confdefs.h >>conftest.$ac_ext
9480cat >>conftest.$ac_ext <<_ACEOF
9481/* end confdefs.h. */
9482/* Define remove to an innocuous variant, in case <limits.h> declares remove.
9483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9484#define remove innocuous_remove
9485
6525/* System header to define __stub macros and hopefully few prototypes, 9486/* System header to define __stub macros and hopefully few prototypes,
6526 which can conflict with char remove(); below. */ 9487 which can conflict with char remove (); below.
9488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9489 <limits.h> exists even on freestanding compilers. */
9490
9491#ifdef __STDC__
9492# include <limits.h>
9493#else
6527#include <assert.h> 9494# include <assert.h>
9495#endif
9496
9497#undef remove
9498
6528/* Override any gcc2 internal prototype to avoid an error. */ 9499/* Override any gcc2 internal prototype to avoid an error. */
9500#ifdef __cplusplus
9501extern "C"
9502{
9503#endif
6529/* We use char because int might match the return type of a gcc2 9504/* We use char because int might match the return type of a gcc2
6530 builtin and then its argument prototype would still apply. */ 9505 builtin and then its argument prototype would still apply. */
6531char remove(); 9506char remove ();
6532
6533int main() {
6534
6535/* The GNU C library defines this for functions which it implements 9507/* The GNU C library defines this for functions which it implements
6536 to always fail with ENOSYS. Some functions are actually named 9508 to always fail with ENOSYS. Some functions are actually named
6537 something starting with __ and the normal name is an alias. */ 9509 something starting with __ and the normal name is an alias. */
6538#if defined (__stub_remove) || defined (__stub___remove) 9510#if defined (__stub_remove) || defined (__stub___remove)
6539choke me 9511choke me
6540#else 9512#else
6541remove(); 9513char (*f) () = remove;
6542#endif 9514#endif
9515#ifdef __cplusplus
9516}
9517#endif
6543 9518
9519int
9520main ()
9521{
9522return f != remove;
9523 ;
6544; return 0; } 9524 return 0;
6545EOF 9525}
6546if { (eval echo configure:6547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9526_ACEOF
9527rm -f conftest.$ac_objext conftest$ac_exeext
9528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9529 (eval $ac_link) 2>conftest.er1
9530 ac_status=$?
9531 grep -v '^ *+' conftest.er1 >conftest.err
6547 rm -rf conftest* 9532 rm -f conftest.er1
9533 cat conftest.err >&5
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); } &&
9536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9538 (eval $ac_try) 2>&5
9539 ac_status=$?
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); }; } &&
9542 { ac_try='test -s conftest$ac_exeext'
9543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9544 (eval $ac_try) 2>&5
9545 ac_status=$?
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); }; }; then
6548 eval "ac_cv_func_remove=yes" 9548 ac_cv_func_remove=yes
6549else 9549else
6550 echo "configure: failed program was:" >&5 9550 echo "$as_me: failed program was:" >&5
6551 cat conftest.$ac_ext >&5 9551sed 's/^/| /' conftest.$ac_ext >&5
6552 rm -rf conftest* 9552
6553 eval "ac_cv_func_remove=no" 9553ac_cv_func_remove=no
6554fi 9554fi
6555rm -f conftest* 9555rm -f conftest.err conftest.$ac_objext \
9556 conftest$ac_exeext conftest.$ac_ext
6556fi 9557fi
6557 9558echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6558if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then 9559echo "${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 9560
6565 if test $ac_cv_func_remove = no; then 9561 if test $ac_cv_func_remove = no; then
9562 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6566 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 9563echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6567echo "configure:6568: checking for remove in -lposix" >&5 9564if 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 9565 echo $ECHO_N "(cached) $ECHO_C" >&6
6571else 9566else
6572 ac_save_LIBS="$LIBS" 9567 ac_check_lib_save_LIBS=$LIBS
6573LIBS="-lposix $LIBS" 9568LIBS="-lposix $LIBS"
6574cat > conftest.$ac_ext <<EOF 9569cat >conftest.$ac_ext <<_ACEOF
6575#line 6576 "configure" 9570/* confdefs.h. */
6576#include "confdefs.h" 9571_ACEOF
9572cat confdefs.h >>conftest.$ac_ext
9573cat >>conftest.$ac_ext <<_ACEOF
9574/* end confdefs.h. */
9575
6577/* Override any gcc2 internal prototype to avoid an error. */ 9576/* Override any gcc2 internal prototype to avoid an error. */
9577#ifdef __cplusplus
9578extern "C"
9579#endif
6578/* We use char because int might match the return type of a gcc2 9580/* We use char because int might match the return type of a gcc2
6579 builtin and then its argument prototype would still apply. */ 9581 builtin and then its argument prototype would still apply. */
6580char remove(); 9582char remove ();
6581 9583int
6582int main() { 9584main ()
9585{
6583remove() 9586remove ();
9587 ;
6584; return 0; } 9588 return 0;
6585EOF 9589}
6586if { (eval echo configure:6587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9590_ACEOF
9591rm -f conftest.$ac_objext conftest$ac_exeext
9592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9593 (eval $ac_link) 2>conftest.er1
9594 ac_status=$?
9595 grep -v '^ *+' conftest.er1 >conftest.err
6587 rm -rf conftest* 9596 rm -f conftest.er1
6588 eval "ac_cv_lib_$ac_lib_var=yes" 9597 cat conftest.err >&5
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); } &&
9600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9602 (eval $ac_try) 2>&5
9603 ac_status=$?
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); }; } &&
9606 { ac_try='test -s conftest$ac_exeext'
9607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9608 (eval $ac_try) 2>&5
9609 ac_status=$?
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); }; }; then
9612 ac_cv_lib_posix_remove=yes
6589else 9613else
6590 echo "configure: failed program was:" >&5 9614 echo "$as_me: failed program was:" >&5
6591 cat conftest.$ac_ext >&5 9615sed 's/^/| /' conftest.$ac_ext >&5
6592 rm -rf conftest* 9616
6593 eval "ac_cv_lib_$ac_lib_var=no" 9617ac_cv_lib_posix_remove=no
6594fi 9618fi
6595rm -f conftest* 9619rm -f conftest.err conftest.$ac_objext \
9620 conftest$ac_exeext conftest.$ac_ext
6596LIBS="$ac_save_LIBS" 9621LIBS=$ac_check_lib_save_LIBS
6597
6598fi 9622fi
6599if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9623echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6600 echo "$ac_t""yes" 1>&6 9624echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9625if test $ac_cv_lib_posix_remove = yes; then
6601 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 9626 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6602else
6603 echo "$ac_t""no" 1>&6
6604fi 9627fi
6605 9628
6606 fi 9629 fi
6607 9630
6608 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 9631 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9632 echo "$as_me:$LINENO: checking for shmat" >&5
6609 echo $ac_n "checking for shmat""... $ac_c" 1>&6 9633echo $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 9634if test "${ac_cv_func_shmat+set}" = set; then
6612 echo $ac_n "(cached) $ac_c" 1>&6 9635 echo $ECHO_N "(cached) $ECHO_C" >&6
6613else 9636else
6614 cat > conftest.$ac_ext <<EOF 9637 cat >conftest.$ac_ext <<_ACEOF
6615#line 6616 "configure" 9638/* confdefs.h. */
6616#include "confdefs.h" 9639_ACEOF
9640cat confdefs.h >>conftest.$ac_ext
9641cat >>conftest.$ac_ext <<_ACEOF
9642/* end confdefs.h. */
9643/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
9644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9645#define shmat innocuous_shmat
9646
6617/* System header to define __stub macros and hopefully few prototypes, 9647/* System header to define __stub macros and hopefully few prototypes,
6618 which can conflict with char shmat(); below. */ 9648 which can conflict with char shmat (); below.
9649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9650 <limits.h> exists even on freestanding compilers. */
9651
9652#ifdef __STDC__
9653# include <limits.h>
9654#else
6619#include <assert.h> 9655# include <assert.h>
9656#endif
9657
9658#undef shmat
9659
6620/* Override any gcc2 internal prototype to avoid an error. */ 9660/* Override any gcc2 internal prototype to avoid an error. */
9661#ifdef __cplusplus
9662extern "C"
9663{
9664#endif
6621/* We use char because int might match the return type of a gcc2 9665/* We use char because int might match the return type of a gcc2
6622 builtin and then its argument prototype would still apply. */ 9666 builtin and then its argument prototype would still apply. */
6623char shmat(); 9667char shmat ();
6624
6625int main() {
6626
6627/* The GNU C library defines this for functions which it implements 9668/* The GNU C library defines this for functions which it implements
6628 to always fail with ENOSYS. Some functions are actually named 9669 to always fail with ENOSYS. Some functions are actually named
6629 something starting with __ and the normal name is an alias. */ 9670 something starting with __ and the normal name is an alias. */
6630#if defined (__stub_shmat) || defined (__stub___shmat) 9671#if defined (__stub_shmat) || defined (__stub___shmat)
6631choke me 9672choke me
6632#else 9673#else
6633shmat(); 9674char (*f) () = shmat;
6634#endif 9675#endif
9676#ifdef __cplusplus
9677}
9678#endif
6635 9679
9680int
9681main ()
9682{
9683return f != shmat;
9684 ;
6636; return 0; } 9685 return 0;
6637EOF 9686}
6638if { (eval echo configure:6639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9687_ACEOF
9688rm -f conftest.$ac_objext conftest$ac_exeext
9689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9690 (eval $ac_link) 2>conftest.er1
9691 ac_status=$?
9692 grep -v '^ *+' conftest.er1 >conftest.err
6639 rm -rf conftest* 9693 rm -f conftest.er1
9694 cat conftest.err >&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); } &&
9697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9699 (eval $ac_try) 2>&5
9700 ac_status=$?
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); }; } &&
9703 { ac_try='test -s conftest$ac_exeext'
9704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9705 (eval $ac_try) 2>&5
9706 ac_status=$?
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); }; }; then
6640 eval "ac_cv_func_shmat=yes" 9709 ac_cv_func_shmat=yes
6641else 9710else
6642 echo "configure: failed program was:" >&5 9711 echo "$as_me: failed program was:" >&5
6643 cat conftest.$ac_ext >&5 9712sed 's/^/| /' conftest.$ac_ext >&5
6644 rm -rf conftest* 9713
6645 eval "ac_cv_func_shmat=no" 9714ac_cv_func_shmat=no
6646fi 9715fi
6647rm -f conftest* 9716rm -f conftest.err conftest.$ac_objext \
9717 conftest$ac_exeext conftest.$ac_ext
6648fi 9718fi
6649 9719echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6650if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then 9720echo "${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 9721
6657 if test $ac_cv_func_shmat = no; then 9722 if test $ac_cv_func_shmat = no; then
9723 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6658 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 9724echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6659echo "configure:6660: checking for shmat in -lipc" >&5 9725if 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 9726 echo $ECHO_N "(cached) $ECHO_C" >&6
6663else 9727else
6664 ac_save_LIBS="$LIBS" 9728 ac_check_lib_save_LIBS=$LIBS
6665LIBS="-lipc $LIBS" 9729LIBS="-lipc $LIBS"
6666cat > conftest.$ac_ext <<EOF 9730cat >conftest.$ac_ext <<_ACEOF
6667#line 6668 "configure" 9731/* confdefs.h. */
6668#include "confdefs.h" 9732_ACEOF
9733cat confdefs.h >>conftest.$ac_ext
9734cat >>conftest.$ac_ext <<_ACEOF
9735/* end confdefs.h. */
9736
6669/* Override any gcc2 internal prototype to avoid an error. */ 9737/* Override any gcc2 internal prototype to avoid an error. */
9738#ifdef __cplusplus
9739extern "C"
9740#endif
6670/* We use char because int might match the return type of a gcc2 9741/* We use char because int might match the return type of a gcc2
6671 builtin and then its argument prototype would still apply. */ 9742 builtin and then its argument prototype would still apply. */
6672char shmat(); 9743char shmat ();
6673 9744int
6674int main() { 9745main ()
9746{
6675shmat() 9747shmat ();
9748 ;
6676; return 0; } 9749 return 0;
6677EOF 9750}
6678if { (eval echo configure:6679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9751_ACEOF
9752rm -f conftest.$ac_objext conftest$ac_exeext
9753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9754 (eval $ac_link) 2>conftest.er1
9755 ac_status=$?
9756 grep -v '^ *+' conftest.er1 >conftest.err
6679 rm -rf conftest* 9757 rm -f conftest.er1
6680 eval "ac_cv_lib_$ac_lib_var=yes" 9758 cat conftest.err >&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); } &&
9761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9763 (eval $ac_try) 2>&5
9764 ac_status=$?
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); }; } &&
9767 { ac_try='test -s conftest$ac_exeext'
9768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9769 (eval $ac_try) 2>&5
9770 ac_status=$?
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); }; }; then
9773 ac_cv_lib_ipc_shmat=yes
6681else 9774else
6682 echo "configure: failed program was:" >&5 9775 echo "$as_me: failed program was:" >&5
6683 cat conftest.$ac_ext >&5 9776sed 's/^/| /' conftest.$ac_ext >&5
6684 rm -rf conftest* 9777
6685 eval "ac_cv_lib_$ac_lib_var=no" 9778ac_cv_lib_ipc_shmat=no
6686fi 9779fi
6687rm -f conftest* 9780rm -f conftest.err conftest.$ac_objext \
9781 conftest$ac_exeext conftest.$ac_ext
6688LIBS="$ac_save_LIBS" 9782LIBS=$ac_check_lib_save_LIBS
6689
6690fi 9783fi
6691if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9784echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6692 echo "$ac_t""yes" 1>&6 9785echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9786if test $ac_cv_lib_ipc_shmat = yes; then
6693 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 9787 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6694else
6695 echo "$ac_t""no" 1>&6
6696fi 9788fi
6697 9789
6698 fi 9790 fi
6699 fi 9791 fi
6700 9792
6701 # Check for libraries that X11R6 Xt/Xaw programs need. 9793 # Check for libraries that X11R6 Xt/Xaw programs need.
6702 ac_save_LDFLAGS="$LDFLAGS" 9794 ac_save_LDFLAGS=$LDFLAGS
6703 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 9795 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6704 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 9796 # 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 9797 # 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. 9798 # 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 9799 # These have to be linked with before -lX11, unlike the other
6708 # libraries we check for below, so use a different variable. 9800 # libraries we check for below, so use a different variable.
6709 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 9801 # John Interrante, Karl Berry
9802 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6710 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 9803echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6711echo "configure:6712: checking for IceConnectionNumber in -lICE" >&5 9804if 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 9805 echo $ECHO_N "(cached) $ECHO_C" >&6
6715else 9806else
6716 ac_save_LIBS="$LIBS" 9807 ac_check_lib_save_LIBS=$LIBS
6717LIBS="-lICE $X_EXTRA_LIBS $LIBS" 9808LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6718cat > conftest.$ac_ext <<EOF 9809cat >conftest.$ac_ext <<_ACEOF
6719#line 6720 "configure" 9810/* confdefs.h. */
6720#include "confdefs.h" 9811_ACEOF
9812cat confdefs.h >>conftest.$ac_ext
9813cat >>conftest.$ac_ext <<_ACEOF
9814/* end confdefs.h. */
9815
6721/* Override any gcc2 internal prototype to avoid an error. */ 9816/* Override any gcc2 internal prototype to avoid an error. */
9817#ifdef __cplusplus
9818extern "C"
9819#endif
6722/* We use char because int might match the return type of a gcc2 9820/* We use char because int might match the return type of a gcc2
6723 builtin and then its argument prototype would still apply. */ 9821 builtin and then its argument prototype would still apply. */
6724char IceConnectionNumber(); 9822char IceConnectionNumber ();
6725 9823int
6726int main() { 9824main ()
9825{
6727IceConnectionNumber() 9826IceConnectionNumber ();
9827 ;
6728; return 0; } 9828 return 0;
6729EOF 9829}
6730if { (eval echo configure:6731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9830_ACEOF
9831rm -f conftest.$ac_objext conftest$ac_exeext
9832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9833 (eval $ac_link) 2>conftest.er1
9834 ac_status=$?
9835 grep -v '^ *+' conftest.er1 >conftest.err
6731 rm -rf conftest* 9836 rm -f conftest.er1
6732 eval "ac_cv_lib_$ac_lib_var=yes" 9837 cat conftest.err >&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } &&
9840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9842 (eval $ac_try) 2>&5
9843 ac_status=$?
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); }; } &&
9846 { ac_try='test -s conftest$ac_exeext'
9847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848 (eval $ac_try) 2>&5
9849 ac_status=$?
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); }; }; then
9852 ac_cv_lib_ICE_IceConnectionNumber=yes
6733else 9853else
6734 echo "configure: failed program was:" >&5 9854 echo "$as_me: failed program was:" >&5
6735 cat conftest.$ac_ext >&5 9855sed 's/^/| /' conftest.$ac_ext >&5
6736 rm -rf conftest* 9856
6737 eval "ac_cv_lib_$ac_lib_var=no" 9857ac_cv_lib_ICE_IceConnectionNumber=no
6738fi 9858fi
6739rm -f conftest* 9859rm -f conftest.err conftest.$ac_objext \
9860 conftest$ac_exeext conftest.$ac_ext
6740LIBS="$ac_save_LIBS" 9861LIBS=$ac_check_lib_save_LIBS
6741
6742fi 9862fi
6743if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9863echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6744 echo "$ac_t""yes" 1>&6 9864echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9865if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6745 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 9866 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6746else
6747 echo "$ac_t""no" 1>&6
6748fi 9867fi
6749 9868
6750 LDFLAGS="$ac_save_LDFLAGS" 9869 LDFLAGS=$ac_save_LDFLAGS
6751 9870
6752fi 9871fi
6753 9872
6754 9873
6755 9874
6756if test x$support_xpm = xyes; then 9875if test x$support_xpm = xyes; then
6757 9876
6758 9877
6759 9878
6760# Initialize some more variables set by options. 9879# Initialize some more variables set by options.
6761# The variables have the same names as the options, with 9880# The variables have the same names as the options, with
6762# dashes changed to underlines. 9881# dashes changed to underlines.
6763 9882
6764# If we find XPM, set shell vars xpm_includes and xpm_libraries to the 9883# If we find XPM, set shell vars xpm_includes and xpm_libraries to the
6765# paths, otherwise set no_xpm=yes. 9884# paths, otherwise set no_xpm=yes.
6766# Uses ac_ vars as temps to allow command line to override cache and checks. 9885# Uses ac_ vars as temps to allow command line to override cache and checks.
9886echo "$as_me:$LINENO: checking for libXpm" >&5
6767echo $ac_n "checking for libXpm""... $ac_c" 1>&6 9887echo $ECHO_N "checking for libXpm... $ECHO_C" >&6
6768echo "configure:6769: checking for libXpm" >&5 9888
6769 9889
6770# Check whether --with-xpm_includes or --without-xpm_includes was given. 9890# Check whether --with-xpm_includes or --without-xpm_includes was given.
6771if test "${with_xpm_includes+set}" = set; then 9891if test "${with_xpm_includes+set}" = set; then
6772 withval="$with_xpm_includes" 9892 withval="$with_xpm_includes"
6773 xpm_includes="$withval" 9893 xpm_includes="$withval"
6774else 9894else
6775 xpm_includes=NO 9895 xpm_includes=NO
6776fi 9896fi;
6777 9897
6778# Check whether --with-xpm_library or --without-xpm_library was given. 9898# Check whether --with-xpm_library or --without-xpm_library was given.
6779if test "${with_xpm_library+set}" = set; then 9899if test "${with_xpm_library+set}" = set; then
6780 withval="$with_xpm_library" 9900 withval="$with_xpm_library"
6781 xpm_libraries="$withval" 9901 xpm_libraries="$withval"
6782else 9902else
6783 xpm_libraries=NO 9903 xpm_libraries=NO
6784fi 9904fi;
6785
6786 9905
6787# --without-xpm overrides everything else, but does not touch the cache. 9906# --without-xpm overrides everything else, but does not touch the cache.
9907
6788# Check whether --with-xpm or --without-xpm was given. 9908# Check whether --with-xpm or --without-xpm was given.
6789if test "${with_xpm+set}" = set; then 9909if test "${with_xpm+set}" = set; then
6790 withval="$with_xpm" 9910 withval="$with_xpm"
6791 : 9911
6792fi 9912fi;
6793
6794if test "$with_xpm" = no; then 9913if test "$with_xpm" = no; then
6795 have_xpm=disabled 9914 have_xpm=disabled
6796else 9915else
6797 if eval "test \"`echo '$''{'ac_cv_have_xpm'+set}'`\" = set"; then 9916 if test "${ac_cv_have_xpm+set}" = set; then
6798 echo $ac_n "(cached) $ac_c" 1>&6 9917 echo $ECHO_N "(cached) $ECHO_C" >&6
6799else 9918else
6800 9919
6801 vt_xpm_include_X11=no 9920 vt_xpm_include_X11=no
6802 if test -n "$xpm_includes"; then 9921 if test -n "$xpm_includes"; then
6803 vt_xpm_includes=$xpm_includes 9922 vt_xpm_includes=$xpm_includes
6804 else 9923 else
6805 vt_xpm_includes=NO 9924 vt_xpm_includes=NO
6815 9934
6816ac_save_CPPFLAGS="$CPPFLAGS" 9935ac_save_CPPFLAGS="$CPPFLAGS"
6817CPPFLAGS="$CPPFLAGS $X_CFLAGS" 9936CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6818 9937
6819 # First, try using that file with no special directory specified. 9938 # First, try using that file with no special directory specified.
6820cat > conftest.$ac_ext <<EOF 9939cat >conftest.$ac_ext <<_ACEOF
6821#line 6822 "configure" 9940/* confdefs.h. */
6822#include "confdefs.h" 9941_ACEOF
9942cat confdefs.h >>conftest.$ac_ext
9943cat >>conftest.$ac_ext <<_ACEOF
9944/* end confdefs.h. */
6823#include <X11/xpm.h> 9945#include <X11/xpm.h>
6824EOF 9946_ACEOF
6825ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9947if { (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; } 9948 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6827ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9949 ac_status=$?
9950 grep -v '^ *+' conftest.er1 >conftest.err
9951 rm -f conftest.er1
9952 cat conftest.err >&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); } >/dev/null; then
9955 if test -s conftest.err; then
9956 ac_cpp_err=$ac_c_preproc_warn_flag
9957 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9958 else
9959 ac_cpp_err=
9960 fi
9961else
9962 ac_cpp_err=yes
9963fi
6828if test -z "$ac_err"; then 9964if test -z "$ac_cpp_err"; then
6829 rm -rf conftest*
6830 # We can compile using X headers with no special include directory. 9965 # We can compile using X headers with no special include directory.
6831vt_xpm_includes= 9966vt_xpm_includes=
6832vt_xpm_include_X11=yes 9967vt_xpm_include_X11=yes
6833else 9968else
6834 echo "$ac_err" >&5
6835 echo "configure: failed program was:" >&5 9969 echo "$as_me: failed program was:" >&5
6836 cat conftest.$ac_ext >&5 9970sed 's/^/| /' conftest.$ac_ext >&5
6837 rm -rf conftest* 9971
6838 CPPFLAGS="$ac_save_CPPFLAGS" 9972 CPPFLAGS="$ac_save_CPPFLAGS"
6839# Look for the header file in a standard set of common directories. 9973# Look for the header file in a standard set of common directories.
6840 for ac_dir in \ 9974 for ac_dir in \
6841 /usr/X11/include \ 9975 /usr/X11/include \
6842 /usr/X11R6/include \ 9976 /usr/X11R6/include \
6883 break 10017 break
6884 fi 10018 fi
6885 fi 10019 fi
6886 done 10020 done
6887fi 10021fi
6888rm -f conftest* 10022rm -f conftest.err conftest.$ac_ext
6889fi 10023fi
6890 10024
6891if test "$vt_xpm_libraries" = NO; then 10025if test "$vt_xpm_libraries" = NO; then
6892 # Check for the libraries. 10026 # Check for the libraries.
6893 10027
6894 # See if we find them without any special options. 10028 # See if we find them without any special options.
6895 # Don't add to $LIBS permanently. 10029 # Don't add to $LIBS permanently.
6896 ac_save_LIBS="$LIBS" 10030 ac_save_LIBS="$LIBS"
6897 LIBS="$LIBS $X_LIBS -lXpm -lX11" 10031 LIBS="$LIBS $X_LIBS -lXpm -lX11"
6898cat > conftest.$ac_ext <<EOF 10032cat >conftest.$ac_ext <<_ACEOF
6899#line 6900 "configure" 10033/* confdefs.h. */
6900#include "confdefs.h" 10034_ACEOF
10035cat confdefs.h >>conftest.$ac_ext
10036cat >>conftest.$ac_ext <<_ACEOF
10037/* end confdefs.h. */
6901 10038
6902int main() { 10039int
10040main ()
10041{
6903XpmReadFileToPixmap() 10042XpmReadFileToPixmap()
10043 ;
6904; return 0; } 10044 return 0;
6905EOF 10045}
6906if { (eval echo configure:6907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10046_ACEOF
10047rm -f conftest.$ac_objext conftest$ac_exeext
10048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10049 (eval $ac_link) 2>conftest.er1
10050 ac_status=$?
10051 grep -v '^ *+' conftest.er1 >conftest.err
6907 rm -rf conftest* 10052 rm -f conftest.er1
10053 cat conftest.err >&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); } &&
10056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10058 (eval $ac_try) 2>&5
10059 ac_status=$?
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); }; } &&
10062 { ac_try='test -s conftest$ac_exeext'
10063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10064 (eval $ac_try) 2>&5
10065 ac_status=$?
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); }; }; then
6908 LIBS="$ac_save_LIBS" 10068 LIBS="$ac_save_LIBS"
6909# We can link libXpm with no special library path. 10069# We can link libXpm with no special library path.
6910vt_xpm_libraries= 10070vt_xpm_libraries=
6911else 10071else
6912 echo "configure: failed program was:" >&5 10072 echo "$as_me: failed program was:" >&5
6913 cat conftest.$ac_ext >&5 10073sed 's/^/| /' conftest.$ac_ext >&5
6914 rm -rf conftest* 10074
6915 LIBS="$ac_save_LIBS" 10075LIBS="$ac_save_LIBS"
6916# First see if replacing the include by lib works. 10076# First see if replacing the include by lib works.
6917for ac_dir in \ 10077for ac_dir in \
6918 `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \ 10078 `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
6919 /usr/X11/lib \ 10079 /usr/X11/lib \
6920 /usr/X11R6/lib \ 10080 /usr/X11R6/lib \
6957 break 2 10117 break 2
6958 fi 10118 fi
6959 done 10119 done
6960done 10120done
6961fi 10121fi
6962rm -f conftest* 10122rm -f conftest.err conftest.$ac_objext \
10123 conftest$ac_exeext conftest.$ac_ext
6963fi 10124fi
6964 10125
6965 10126
6966 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then 10127 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then
6967 ac_cv_have_xpm="have_xpm=no" 10128 ac_cv_have_xpm="have_xpm=no"
6973fi 10134fi
6974 eval "$ac_cv_have_xpm" 10135 eval "$ac_cv_have_xpm"
6975fi 10136fi
6976 10137
6977if test "$have_xpm" != yes; then 10138if test "$have_xpm" != yes; then
6978 echo "$ac_t""$have_xpm" 1>&6 10139 echo "$as_me:$LINENO: result: $have_xpm" >&5
10140echo "${ECHO_T}$have_xpm" >&6
6979 no_xpm=yes 10141 no_xpm=yes
6980else 10142else
6981 if test "$xpm_includes" != NO; then 10143 if test "$xpm_includes" != NO; then
6982 if test "$xpm_includes" = "$vt_xpm_includes"; then 10144 if test "$xpm_includes" = "$vt_xpm_includes"; then
6983 if test -r "$xpm_includes/X11/xpm.h"; then 10145 if test -r "$xpm_includes/X11/xpm.h"; then
6984 vt_xpm_include_X11=yes 10146 vt_xpm_include_X11=yes
6985 fi 10147 fi
6986 else 10148 else
6987 vt_xpm_include_X11=no 10149 vt_xpm_include_X11=no
6988 if test -z "$xpm_includes"; then 10150 if test -z "$xpm_includes"; then
6989 cat > conftest.$ac_ext <<EOF 10151 cat >conftest.$ac_ext <<_ACEOF
6990#line 6991 "configure" 10152/* confdefs.h. */
6991#include "confdefs.h" 10153_ACEOF
10154cat confdefs.h >>conftest.$ac_ext
10155cat >>conftest.$ac_ext <<_ACEOF
10156/* end confdefs.h. */
6992#include <X11/xpm.h> 10157#include <X11/xpm.h>
6993EOF 10158_ACEOF
6994ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10159if { (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; } 10160 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6996ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10161 ac_status=$?
10162 grep -v '^ *+' conftest.er1 >conftest.err
10163 rm -f conftest.er1
10164 cat conftest.err >&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); } >/dev/null; then
10167 if test -s conftest.err; then
10168 ac_cpp_err=$ac_c_preproc_warn_flag
10169 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10170 else
10171 ac_cpp_err=
10172 fi
10173else
10174 ac_cpp_err=yes
10175fi
6997if test -z "$ac_err"; then 10176if test -z "$ac_cpp_err"; then
6998 rm -rf conftest*
6999 vt_xpm_include_X11=yes 10177 vt_xpm_include_X11=yes
7000else 10178else
7001 echo "$ac_err" >&5
7002 echo "configure: failed program was:" >&5 10179 echo "$as_me: failed program was:" >&5
7003 cat conftest.$ac_ext >&5 10180sed 's/^/| /' conftest.$ac_ext >&5
10181
10182
7004fi 10183fi
7005rm -f conftest* 10184rm -f conftest.err conftest.$ac_ext
7006 else 10185 else
7007 if test -r "$xpm_includes/X11/xpm.h"; then 10186 if test -r "$xpm_includes/X11/xpm.h"; then
7008 vt_xpm_include_X11=yes 10187 vt_xpm_include_X11=yes
7009 fi 10188 fi
7010 fi 10189 fi
7017 # Update the cache value to reflect the command line values. 10196 # Update the cache value to reflect the command line values.
7018 ac_cv_have_xpm="have_xpm=yes \ 10197 ac_cv_have_xpm="have_xpm=yes \
7019 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \ 10198 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
7020 vt_xpm_include_X11=$vt_xpm_include_X11" 10199 vt_xpm_include_X11=$vt_xpm_include_X11"
7021 eval "$ac_cv_have_xpm" 10200 eval "$ac_cv_have_xpm"
10201 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 10202echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6
7023 if test -n "$vt_xpm_includes"; then 10203 if test -n "$vt_xpm_includes"; then
7024 XPM_CPPFLAGS="-DHAVE_LIBXPM" 10204 XPM_CPPFLAGS="-DHAVE_LIBXPM"
7025 fi 10205 fi
7026 if test -n "$vt_xpm_includes"; then 10206 if test -n "$vt_xpm_includes"; then
7027 XPM_CFLAGS="-I$vt_xpm_includes" 10207 XPM_CFLAGS="-I$vt_xpm_includes"
7029 XPM_LIBS="-lXpm" 10209 XPM_LIBS="-lXpm"
7030 if test -n "$vt_xpm_libraries"; then 10210 if test -n "$vt_xpm_libraries"; then
7031 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS" 10211 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
7032 fi 10212 fi
7033 if test "x$vt_xpm_include_X11" = xyes; then 10213 if test "x$vt_xpm_include_X11" = xyes; then
10214
7034 cat >> confdefs.h <<\EOF 10215cat >>confdefs.h <<\_ACEOF
7035#define XPM_INC_X11 1 10216#define XPM_INC_X11 1
7036EOF 10217_ACEOF
7037 10218
7038 fi 10219 fi
7039fi 10220fi
7040 10221
7041 10222
7045 if test x$no_xpm = xyes; then 10226 if test x$no_xpm = xyes; then
7046 support_xpm=needsmanualspecification 10227 support_xpm=needsmanualspecification
7047 fi 10228 fi
7048fi 10229fi
7049 10230
10231echo "$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 10232echo $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 10233if test "${ac_cv_header_sys_wait_h+set}" = set; then
7053 echo $ac_n "(cached) $ac_c" 1>&6 10234 echo $ECHO_N "(cached) $ECHO_C" >&6
7054else 10235else
7055 cat > conftest.$ac_ext <<EOF 10236 cat >conftest.$ac_ext <<_ACEOF
7056#line 7057 "configure" 10237/* confdefs.h. */
7057#include "confdefs.h" 10238_ACEOF
10239cat confdefs.h >>conftest.$ac_ext
10240cat >>conftest.$ac_ext <<_ACEOF
10241/* end confdefs.h. */
7058#include <sys/types.h> 10242#include <sys/types.h>
7059#include <sys/wait.h> 10243#include <sys/wait.h>
7060#ifndef WEXITSTATUS 10244#ifndef WEXITSTATUS
7061#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 10245# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7062#endif 10246#endif
7063#ifndef WIFEXITED 10247#ifndef WIFEXITED
7064#define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 10248# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7065#endif 10249#endif
7066int main() { 10250
10251int
10252main ()
10253{
7067int s; 10254 int s;
7068wait (&s); 10255 wait (&s);
7069s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 10256 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10257 ;
7070; return 0; } 10258 return 0;
7071EOF 10259}
7072if { (eval echo configure:7073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10260_ACEOF
10261rm -f conftest.$ac_objext
10262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10263 (eval $ac_compile) 2>conftest.er1
10264 ac_status=$?
10265 grep -v '^ *+' conftest.er1 >conftest.err
7073 rm -rf conftest* 10266 rm -f conftest.er1
10267 cat conftest.err >&5
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); } &&
10270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10272 (eval $ac_try) 2>&5
10273 ac_status=$?
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); }; } &&
10276 { ac_try='test -s conftest.$ac_objext'
10277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10278 (eval $ac_try) 2>&5
10279 ac_status=$?
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; }; then
7074 ac_cv_header_sys_wait_h=yes 10282 ac_cv_header_sys_wait_h=yes
7075else 10283else
7076 echo "configure: failed program was:" >&5 10284 echo "$as_me: failed program was:" >&5
7077 cat conftest.$ac_ext >&5 10285sed 's/^/| /' conftest.$ac_ext >&5
7078 rm -rf conftest* 10286
7079 ac_cv_header_sys_wait_h=no 10287ac_cv_header_sys_wait_h=no
7080fi 10288fi
7081rm -f conftest* 10289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7082fi 10290fi
7083 10291echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7084echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 10292echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7085if test $ac_cv_header_sys_wait_h = yes; then 10293if test $ac_cv_header_sys_wait_h = yes; then
10294
7086 cat >> confdefs.h <<\EOF 10295cat >>confdefs.h <<\_ACEOF
7087#define HAVE_SYS_WAIT_H 1 10296#define HAVE_SYS_WAIT_H 1
7088EOF 10297_ACEOF
7089 10298
7090fi 10299fi
7091 10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
7092for ac_hdr in \ 10320for ac_header in \
7093 assert.h \ 10321 assert.h \
7094 fcntl.h \ 10322 fcntl.h \
7095 grp.h \ 10323 grp.h \
7096 libc.h \ 10324 libc.h \
7097 lastlog.h \ 10325 lastlog.h \
7109 utmp.h \ 10337 utmp.h \
7110 utmpx.h \ 10338 utmpx.h \
7111 stdint.h \ 10339 stdint.h \
7112 10340
7113do 10341do
7114ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 10342as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10343if eval "test \"\${$as_ac_Header+set}\" = set"; then
10344 echo "$as_me:$LINENO: checking for $ac_header" >&5
7115echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10345echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7116echo "configure:7117: checking for $ac_hdr" >&5 10346if 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 10347 echo $ECHO_N "(cached) $ECHO_C" >&6
10348fi
10349echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10350echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7119else 10351else
10352 # Is the header compilable?
10353echo "$as_me:$LINENO: checking $ac_header usability" >&5
10354echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7120 cat > conftest.$ac_ext <<EOF 10355cat >conftest.$ac_ext <<_ACEOF
7121#line 7122 "configure" 10356/* confdefs.h. */
7122#include "confdefs.h" 10357_ACEOF
10358cat confdefs.h >>conftest.$ac_ext
10359cat >>conftest.$ac_ext <<_ACEOF
10360/* end confdefs.h. */
10361$ac_includes_default
7123#include <$ac_hdr> 10362#include <$ac_header>
7124EOF 10363_ACEOF
7125ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10364rm -f conftest.$ac_objext
7126{ (eval echo configure:7127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7127ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10366 (eval $ac_compile) 2>conftest.er1
10367 ac_status=$?
10368 grep -v '^ *+' conftest.er1 >conftest.err
10369 rm -f conftest.er1
10370 cat conftest.err >&5
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); } &&
10373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10375 (eval $ac_try) 2>&5
10376 ac_status=$?
10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378 (exit $ac_status); }; } &&
10379 { ac_try='test -s conftest.$ac_objext'
10380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10381 (eval $ac_try) 2>&5
10382 ac_status=$?
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); }; }; then
10385 ac_header_compiler=yes
10386else
10387 echo "$as_me: failed program was:" >&5
10388sed 's/^/| /' conftest.$ac_ext >&5
10389
10390ac_header_compiler=no
10391fi
10392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10393echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10394echo "${ECHO_T}$ac_header_compiler" >&6
10395
10396# Is the header present?
10397echo "$as_me:$LINENO: checking $ac_header presence" >&5
10398echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10399cat >conftest.$ac_ext <<_ACEOF
10400/* confdefs.h. */
10401_ACEOF
10402cat confdefs.h >>conftest.$ac_ext
10403cat >>conftest.$ac_ext <<_ACEOF
10404/* end confdefs.h. */
10405#include <$ac_header>
10406_ACEOF
10407if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10408 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10409 ac_status=$?
10410 grep -v '^ *+' conftest.er1 >conftest.err
10411 rm -f conftest.er1
10412 cat conftest.err >&5
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); } >/dev/null; then
10415 if test -s conftest.err; then
10416 ac_cpp_err=$ac_c_preproc_warn_flag
10417 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10418 else
10419 ac_cpp_err=
10420 fi
10421else
10422 ac_cpp_err=yes
10423fi
7128if test -z "$ac_err"; then 10424if test -z "$ac_cpp_err"; then
7129 rm -rf conftest* 10425 ac_header_preproc=yes
7130 eval "ac_cv_header_$ac_safe=yes"
7131else 10426else
7132 echo "$ac_err" >&5
7133 echo "configure: failed program was:" >&5 10427 echo "$as_me: failed program was:" >&5
7134 cat conftest.$ac_ext >&5 10428sed 's/^/| /' conftest.$ac_ext >&5
7135 rm -rf conftest* 10429
7136 eval "ac_cv_header_$ac_safe=no" 10430 ac_header_preproc=no
7137fi 10431fi
7138rm -f conftest* 10432rm -f conftest.err conftest.$ac_ext
10433echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10434echo "${ECHO_T}$ac_header_preproc" >&6
10435
10436# So? What about this header?
10437case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10438 yes:no: )
10439 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10440echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10442echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10443 ac_header_preproc=yes
10444 ;;
10445 no:yes:* )
10446 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10447echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10448 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10449echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10450 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10451echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10452 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10453echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10455echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10456 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10457echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10458 (
10459 cat <<\_ASBOX
10460## ------------------------------------------ ##
10461## Report this to the AC_PACKAGE_NAME lists. ##
10462## ------------------------------------------ ##
10463_ASBOX
10464 ) |
10465 sed "s/^/$as_me: WARNING: /" >&2
10466 ;;
10467esac
10468echo "$as_me:$LINENO: checking for $ac_header" >&5
10469echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10470if eval "test \"\${$as_ac_Header+set}\" = set"; then
10471 echo $ECHO_N "(cached) $ECHO_C" >&6
10472else
10473 eval "$as_ac_Header=\$ac_header_preproc"
7139fi 10474fi
7140if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10475echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7141 echo "$ac_t""yes" 1>&6 10476echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7142 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 10477
10478fi
10479if test `eval echo '${'$as_ac_Header'}'` = yes; then
7143 cat >> confdefs.h <<EOF 10480 cat >>confdefs.h <<_ACEOF
7144#define $ac_tr_hdr 1 10481#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7145EOF 10482_ACEOF
7146 10483
7147else
7148 echo "$ac_t""no" 1>&6
7149fi 10484fi
10485
7150done 10486done
7151 10487
7152 10488
10489echo "$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 10490echo $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 10491if test "${ac_cv_header_time+set}" = set; then
7156 echo $ac_n "(cached) $ac_c" 1>&6 10492 echo $ECHO_N "(cached) $ECHO_C" >&6
7157else 10493else
7158 cat > conftest.$ac_ext <<EOF 10494 cat >conftest.$ac_ext <<_ACEOF
7159#line 7160 "configure" 10495/* confdefs.h. */
7160#include "confdefs.h" 10496_ACEOF
10497cat confdefs.h >>conftest.$ac_ext
10498cat >>conftest.$ac_ext <<_ACEOF
10499/* end confdefs.h. */
7161#include <sys/types.h> 10500#include <sys/types.h>
7162#include <sys/time.h> 10501#include <sys/time.h>
7163#include <time.h> 10502#include <time.h>
7164int main() { 10503
7165struct tm *tp; 10504int
10505main ()
10506{
10507if ((struct tm *) 0)
10508return 0;
10509 ;
7166; return 0; } 10510 return 0;
7167EOF 10511}
7168if { (eval echo configure:7169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10512_ACEOF
10513rm -f conftest.$ac_objext
10514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10515 (eval $ac_compile) 2>conftest.er1
10516 ac_status=$?
10517 grep -v '^ *+' conftest.er1 >conftest.err
7169 rm -rf conftest* 10518 rm -f conftest.er1
10519 cat conftest.err >&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); } &&
10522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10524 (eval $ac_try) 2>&5
10525 ac_status=$?
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); }; } &&
10528 { ac_try='test -s conftest.$ac_objext'
10529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10530 (eval $ac_try) 2>&5
10531 ac_status=$?
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); }; }; then
7170 ac_cv_header_time=yes 10534 ac_cv_header_time=yes
7171else 10535else
7172 echo "configure: failed program was:" >&5 10536 echo "$as_me: failed program was:" >&5
7173 cat conftest.$ac_ext >&5 10537sed 's/^/| /' conftest.$ac_ext >&5
7174 rm -rf conftest* 10538
7175 ac_cv_header_time=no 10539ac_cv_header_time=no
7176fi 10540fi
7177rm -f conftest* 10541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7178fi 10542fi
7179 10543echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7180echo "$ac_t""$ac_cv_header_time" 1>&6 10544echo "${ECHO_T}$ac_cv_header_time" >&6
7181if test $ac_cv_header_time = yes; then 10545if test $ac_cv_header_time = yes; then
10546
7182 cat >> confdefs.h <<\EOF 10547cat >>confdefs.h <<\_ACEOF
7183#define TIME_WITH_SYS_TIME 1 10548#define TIME_WITH_SYS_TIME 1
7184EOF 10549_ACEOF
7185 10550
7186fi 10551fi
7187 10552
7188 10553
10554echo "$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 10555echo $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 10556if test "${rxvt_cv_header_sysioctl+set}" = set; then
7192 echo $ac_n "(cached) $ac_c" 1>&6 10557 echo $ECHO_N "(cached) $ECHO_C" >&6
7193else 10558else
7194 cat > conftest.$ac_ext <<EOF 10559 cat >conftest.$ac_ext <<_ACEOF
7195#line 7196 "configure" 10560/* confdefs.h. */
7196#include "confdefs.h" 10561_ACEOF
10562cat confdefs.h >>conftest.$ac_ext
10563cat >>conftest.$ac_ext <<_ACEOF
10564/* end confdefs.h. */
7197#include <stdio.h> 10565#include <stdio.h>
7198#include <sys/ioctl.h> 10566#include <sys/ioctl.h>
7199#ifdef HAVE_TERMIOS_H 10567#ifdef HAVE_TERMIOS_H
7200#include <termios.h> 10568#include <termios.h>
7201#endif 10569#endif
7202int main() { 10570int
10571main ()
10572{
7203int a = ECHO; 10573int a = ECHO;
10574 ;
7204; return 0; } 10575 return 0;
7205EOF 10576}
7206if { (eval echo configure:7207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10577_ACEOF
10578rm -f conftest.$ac_objext
10579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10580 (eval $ac_compile) 2>conftest.er1
10581 ac_status=$?
10582 grep -v '^ *+' conftest.er1 >conftest.err
7207 rm -rf conftest* 10583 rm -f conftest.er1
10584 cat conftest.err >&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); } &&
10587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10589 (eval $ac_try) 2>&5
10590 ac_status=$?
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); }; } &&
10593 { ac_try='test -s conftest.$ac_objext'
10594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10595 (eval $ac_try) 2>&5
10596 ac_status=$?
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); }; }; then
7208 rxvt_cv_header_sysioctl=yes 10599 rxvt_cv_header_sysioctl=yes
7209else 10600else
7210 echo "configure: failed program was:" >&5 10601 echo "$as_me: failed program was:" >&5
7211 cat conftest.$ac_ext >&5 10602sed 's/^/| /' conftest.$ac_ext >&5
7212 rm -rf conftest* 10603
7213 rxvt_cv_header_sysioctl=no 10604rxvt_cv_header_sysioctl=no
7214fi 10605fi
7215rm -f conftest* 10606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7216fi 10607fi
7217 10608echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7218echo "$ac_t""$rxvt_cv_header_sysioctl" 1>&6 10609echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6
7219 10610
7220if test -n "$GCC"; then 10611if test -n "$GCC"; then
7221 LDARG="-Wl," 10612 LDARG="-Wl,"
7222else 10613else
7223 LDARG="" 10614 LDARG=""
7226 10617
7227ac_save_CFLAGS=$CFLAGS 10618ac_save_CFLAGS=$CFLAGS
7228ac_save_LIBS=$LIBS 10619ac_save_LIBS=$LIBS
7229CFLAGS="$CFLAGS $X_CFLAGS" 10620CFLAGS="$CFLAGS $X_CFLAGS"
7230LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"` 10621LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
10622echo "$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 10623echo $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 10624if test "${rxvt_cv_rpath+set}" = set; then
7234 echo $ac_n "(cached) $ac_c" 1>&6 10625 echo $ECHO_N "(cached) $ECHO_C" >&6
7235else 10626else
7236 if test "$cross_compiling" = yes; then 10627 if test "$cross_compiling" = yes; then
10628 { 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 10629echo "$as_me: WARNING: You may need to check the LIBS line" >&2;}
7238else 10630else
7239 cat > conftest.$ac_ext <<EOF 10631 cat >conftest.$ac_ext <<_ACEOF
7240#line 7241 "configure" 10632/* confdefs.h. */
7241#include "confdefs.h" 10633_ACEOF
10634cat confdefs.h >>conftest.$ac_ext
10635cat >>conftest.$ac_ext <<_ACEOF
10636/* end confdefs.h. */
7242 10637
7243main() 10638main()
7244{ 10639{
7245 exit(0); 10640 exit(0);
7246 (void) XOpenDisplay("foobar"); 10641 (void) XOpenDisplay("foobar");
7247} 10642}
7248EOF 10643_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 10644rm -f conftest$ac_exeext
7250then 10645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10646 (eval $ac_link) 2>&5
10647 ac_status=$?
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10651 (eval $ac_try) 2>&5
10652 ac_status=$?
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); }; }; then
7251 rxvt_cv_rpath=yes 10655 rxvt_cv_rpath=yes
7252else 10656else
10657 echo "$as_me: program exited with status $ac_status" >&5
7253 echo "configure: failed program was:" >&5 10658echo "$as_me: failed program was:" >&5
7254 cat conftest.$ac_ext >&5 10659sed 's/^/| /' conftest.$ac_ext >&5
7255 rm -fr conftest* 10660
10661( exit $ac_status )
7256 rxvt_cv_rpath=no 10662rxvt_cv_rpath=no
7257fi 10663fi
7258rm -fr conftest* 10664rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7259fi 10665fi
7260
7261fi 10666fi
7262 10667echo "$as_me:$LINENO: result: $rxvt_cv_rpath" >&5
7263echo "$ac_t""$rxvt_cv_rpath" 1>&6 10668echo "${ECHO_T}$rxvt_cv_rpath" >&6
7264if test x$rxvt_cv_rpath != xyes; then 10669if test x$rxvt_cv_rpath != xyes; then
7265 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g' 10670 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"` 10671 LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
10672 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 10673echo $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 10674if test "${rxvt_cv_R+set}" = set; then
7270 echo $ac_n "(cached) $ac_c" 1>&6 10675 echo $ECHO_N "(cached) $ECHO_C" >&6
7271else 10676else
7272 if test "$cross_compiling" = yes; then 10677 if test "$cross_compiling" = yes; then
7273 rxvt_cv_R=no 10678 rxvt_cv_R=no
7274else 10679else
7275 cat > conftest.$ac_ext <<EOF 10680 cat >conftest.$ac_ext <<_ACEOF
7276#line 7277 "configure" 10681/* confdefs.h. */
7277#include "confdefs.h" 10682_ACEOF
10683cat confdefs.h >>conftest.$ac_ext
10684cat >>conftest.$ac_ext <<_ACEOF
10685/* end confdefs.h. */
7278 10686
7279main() 10687main()
7280{ 10688{
7281 exit(0); 10689 exit(0);
7282 (void) XOpenDisplay("foobar"); 10690 (void) XOpenDisplay("foobar");
7283} 10691}
7284EOF 10692_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 10693rm -f conftest$ac_exeext
7286then 10694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10695 (eval $ac_link) 2>&5
10696 ac_status=$?
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10700 (eval $ac_try) 2>&5
10701 ac_status=$?
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); }; }; then
7287 rxvt_cv_R=yes 10704 rxvt_cv_R=yes
7288else 10705else
10706 echo "$as_me: program exited with status $ac_status" >&5
7289 echo "configure: failed program was:" >&5 10707echo "$as_me: failed program was:" >&5
7290 cat conftest.$ac_ext >&5 10708sed 's/^/| /' conftest.$ac_ext >&5
7291 rm -fr conftest* 10709
10710( exit $ac_status )
7292 rxvt_cv_R=no 10711rxvt_cv_R=no
7293fi 10712fi
7294rm -fr conftest* 10713rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7295fi 10714fi
7296
7297fi 10715fi
7298 10716echo "$as_me:$LINENO: result: $rxvt_cv_R" >&5
7299echo "$ac_t""$rxvt_cv_R" 1>&6 10717echo "${ECHO_T}$rxvt_cv_R" >&6
7300 if test x$rxvt_cv_R != xyes; then 10718 if test x$rxvt_cv_R != xyes; then
7301 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 10719 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7302 fi 10720 fi
7303fi 10721fi
7304 10722
10723echo "$as_me:$LINENO: checking for XPointer" >&5
7305echo $ac_n "checking for XPointer""... $ac_c" 1>&6 10724echo $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 10725if test "${rxvt_cv_xpointer+set}" = set; then
7308 echo $ac_n "(cached) $ac_c" 1>&6 10726 echo $ECHO_N "(cached) $ECHO_C" >&6
7309else 10727else
7310 cat > conftest.$ac_ext <<EOF 10728 cat >conftest.$ac_ext <<_ACEOF
7311#line 7312 "configure" 10729/* confdefs.h. */
7312#include "confdefs.h" 10730_ACEOF
10731cat confdefs.h >>conftest.$ac_ext
10732cat >>conftest.$ac_ext <<_ACEOF
10733/* end confdefs.h. */
7313#include <X11/Xlib.h> 10734#include <X11/Xlib.h>
7314int main() { 10735int
10736main ()
10737{
7315XPointer dummy; 10738XPointer dummy;
10739 ;
7316; return 0; } 10740 return 0;
7317EOF 10741}
7318if { (eval echo configure:7319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10742_ACEOF
10743rm -f conftest.$ac_objext
10744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10745 (eval $ac_compile) 2>conftest.er1
10746 ac_status=$?
10747 grep -v '^ *+' conftest.er1 >conftest.err
7319 rm -rf conftest* 10748 rm -f conftest.er1
10749 cat conftest.err >&5
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); } &&
10752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10754 (eval $ac_try) 2>&5
10755 ac_status=$?
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); }; } &&
10758 { ac_try='test -s conftest.$ac_objext'
10759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10760 (eval $ac_try) 2>&5
10761 ac_status=$?
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); }; }; then
7320 rxvt_cv_xpointer=yes 10764 rxvt_cv_xpointer=yes
7321else 10765else
7322 echo "configure: failed program was:" >&5 10766 echo "$as_me: failed program was:" >&5
7323 cat conftest.$ac_ext >&5 10767sed 's/^/| /' conftest.$ac_ext >&5
7324 rm -rf conftest* 10768
7325 rxvt_cv_xpointer=no 10769rxvt_cv_xpointer=no
7326fi 10770fi
7327rm -f conftest* 10771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7328fi 10772fi
7329 10773echo "$as_me:$LINENO: result: $rxvt_cv_xpointer" >&5
7330echo "$ac_t""$rxvt_cv_xpointer" 1>&6 10774echo "${ECHO_T}$rxvt_cv_xpointer" >&6
7331if test x$rxvt_cv_xpointer = xyes; then 10775if test x$rxvt_cv_xpointer = xyes; then
10776
7332 cat >> confdefs.h <<\EOF 10777cat >>confdefs.h <<\_ACEOF
7333#define HAVE_XPOINTER 1 10778#define HAVE_XPOINTER 1
7334EOF 10779_ACEOF
7335 10780
7336fi 10781fi
7337LIBS=$ac_save_LIBS 10782LIBS=$ac_save_LIBS
7338CFLAGS=$ac_save_CFLAGS 10783CFLAGS=$ac_save_CFLAGS
7339 10784
7340 10785
7341echo $ac_n "checking for working const""... $ac_c" 1>&6 10786echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7342echo "configure:7343: checking for working const" >&5 10787echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7343if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 10788if test "${ac_cv_c_const+set}" = set; then
7344 echo $ac_n "(cached) $ac_c" 1>&6 10789 echo $ECHO_N "(cached) $ECHO_C" >&6
7345else 10790else
7346 cat > conftest.$ac_ext <<EOF 10791 cat >conftest.$ac_ext <<_ACEOF
7347#line 7348 "configure" 10792/* confdefs.h. */
7348#include "confdefs.h" 10793_ACEOF
10794cat confdefs.h >>conftest.$ac_ext
10795cat >>conftest.$ac_ext <<_ACEOF
10796/* end confdefs.h. */
7349 10797
7350int main() { 10798int
7351 10799main ()
10800{
10801/* FIXME: Include the comments suggested by Paul. */
10802#ifndef __cplusplus
7352/* Ultrix mips cc rejects this. */ 10803 /* Ultrix mips cc rejects this. */
7353typedef int charset[2]; const charset x; 10804 typedef int charset[2];
10805 const charset x;
7354/* SunOS 4.1.1 cc rejects this. */ 10806 /* SunOS 4.1.1 cc rejects this. */
7355char const *const *ccp; 10807 char const *const *ccp;
7356char **p; 10808 char **p;
7357/* NEC SVR4.0.2 mips cc rejects this. */ 10809 /* NEC SVR4.0.2 mips cc rejects this. */
7358struct point {int x, y;}; 10810 struct point {int x, y;};
7359static struct point const zero = {0,0}; 10811 static struct point const zero = {0,0};
7360/* AIX XL C 1.02.0.0 rejects this. 10812 /* 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 10813 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 */ 10814 an arm of an if-expression whose if-part is not a constant
10815 expression */
7363const char *g = "string"; 10816 const char *g = "string";
7364ccp = &g + (g ? g-g : 0); 10817 ccp = &g + (g ? g-g : 0);
7365/* HPUX 7.0 cc rejects these. */ 10818 /* HPUX 7.0 cc rejects these. */
7366++ccp; 10819 ++ccp;
7367p = (char**) ccp; 10820 p = (char**) ccp;
7368ccp = (char const *const *) p; 10821 ccp = (char const *const *) p;
7369{ /* SCO 3.2v4 cc rejects this. */ 10822 { /* SCO 3.2v4 cc rejects this. */
7370 char *t; 10823 char *t;
7371 char const *s = 0 ? (char *) 0 : (char const *) 0; 10824 char const *s = 0 ? (char *) 0 : (char const *) 0;
7372 10825
7373 *t++ = 0; 10826 *t++ = 0;
10827 }
10828 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10829 int x[] = {25, 17};
10830 const int *foo = &x[0];
10831 ++foo;
10832 }
10833 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10834 typedef const int *iptr;
10835 iptr p = 0;
10836 ++p;
10837 }
10838 { /* AIX XL C 1.02.0.0 rejects this saying
10839 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10840 struct s { int j; const int *ap[3]; };
10841 struct s *b; b->j = 5;
10842 }
10843 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10844 const int foo = 10;
10845 }
10846#endif
10847
10848 ;
10849 return 0;
7374} 10850}
7375{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 10851_ACEOF
7376 int x[] = {25, 17}; 10852rm -f conftest.$ac_objext
7377 const int *foo = &x[0]; 10853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7378 ++foo; 10854 (eval $ac_compile) 2>conftest.er1
7379} 10855 ac_status=$?
7380{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 10856 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* 10857 rm -f conftest.er1
10858 cat conftest.err >&5
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); } &&
10861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10863 (eval $ac_try) 2>&5
10864 ac_status=$?
10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); }; } &&
10867 { ac_try='test -s conftest.$ac_objext'
10868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10869 (eval $ac_try) 2>&5
10870 ac_status=$?
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); }; }; then
7398 ac_cv_c_const=yes 10873 ac_cv_c_const=yes
7399else 10874else
7400 echo "configure: failed program was:" >&5 10875 echo "$as_me: failed program was:" >&5
7401 cat conftest.$ac_ext >&5 10876sed 's/^/| /' conftest.$ac_ext >&5
7402 rm -rf conftest* 10877
7403 ac_cv_c_const=no 10878ac_cv_c_const=no
7404fi 10879fi
7405rm -f conftest* 10880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7406fi 10881fi
7407 10882echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7408echo "$ac_t""$ac_cv_c_const" 1>&6 10883echo "${ECHO_T}$ac_cv_c_const" >&6
7409if test $ac_cv_c_const = no; then 10884if test $ac_cv_c_const = no; then
10885
7410 cat >> confdefs.h <<\EOF 10886cat >>confdefs.h <<\_ACEOF
7411#define const 10887#define const
7412EOF 10888_ACEOF
7413 10889
7414fi 10890fi
7415 10891
10892echo "$as_me:$LINENO: checking for inline" >&5
7416echo $ac_n "checking for inline""... $ac_c" 1>&6 10893echo $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 10894if test "${ac_cv_c_inline+set}" = set; then
7419 echo $ac_n "(cached) $ac_c" 1>&6 10895 echo $ECHO_N "(cached) $ECHO_C" >&6
7420else 10896else
7421 ac_cv_c_inline=no 10897 ac_cv_c_inline=no
7422for ac_kw in inline __inline__ __inline; do 10898for ac_kw in inline __inline__ __inline; do
7423 cat > conftest.$ac_ext <<EOF 10899 cat >conftest.$ac_ext <<_ACEOF
7424#line 7425 "configure" 10900/* confdefs.h. */
7425#include "confdefs.h" 10901_ACEOF
10902cat confdefs.h >>conftest.$ac_ext
10903cat >>conftest.$ac_ext <<_ACEOF
10904/* end confdefs.h. */
10905#ifndef __cplusplus
10906typedef int foo_t;
10907static $ac_kw foo_t static_foo () {return 0; }
10908$ac_kw foo_t foo () {return 0; }
10909#endif
7426 10910
7427int main() { 10911_ACEOF
7428} $ac_kw foo() { 10912rm -f conftest.$ac_objext
7429; return 0; } 10913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7430EOF 10914 (eval $ac_compile) 2>conftest.er1
7431if { (eval echo configure:7432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10915 ac_status=$?
10916 grep -v '^ *+' conftest.er1 >conftest.err
7432 rm -rf conftest* 10917 rm -f conftest.er1
10918 cat conftest.err >&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); } &&
10921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10923 (eval $ac_try) 2>&5
10924 ac_status=$?
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); }; } &&
10927 { ac_try='test -s conftest.$ac_objext'
10928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10929 (eval $ac_try) 2>&5
10930 ac_status=$?
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); }; }; then
7433 ac_cv_c_inline=$ac_kw; break 10933 ac_cv_c_inline=$ac_kw; break
7434else 10934else
7435 echo "configure: failed program was:" >&5 10935 echo "$as_me: failed program was:" >&5
10936sed 's/^/| /' conftest.$ac_ext >&5
10937
10938fi
10939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10940done
10941
10942fi
10943echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10944echo "${ECHO_T}$ac_cv_c_inline" >&6
10945
10946
10947case $ac_cv_c_inline in
10948 inline | yes) ;;
10949 *)
10950 case $ac_cv_c_inline in
10951 no) ac_val=;;
10952 *) ac_val=$ac_cv_c_inline;;
10953 esac
10954 cat >>confdefs.h <<_ACEOF
10955#ifndef __cplusplus
10956#define inline $ac_val
10957#endif
10958_ACEOF
10959 ;;
10960esac
10961
10962
10963
10964echo "$as_me:$LINENO: checking for mode_t" >&5
10965echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10966if test "${ac_cv_type_mode_t+set}" = set; then
10967 echo $ECHO_N "(cached) $ECHO_C" >&6
10968else
10969 cat >conftest.$ac_ext <<_ACEOF
10970/* confdefs.h. */
10971_ACEOF
10972cat confdefs.h >>conftest.$ac_ext
10973cat >>conftest.$ac_ext <<_ACEOF
10974/* end confdefs.h. */
10975$ac_includes_default
10976int
10977main ()
10978{
10979if ((mode_t *) 0)
10980 return 0;
10981if (sizeof (mode_t))
10982 return 0;
10983 ;
10984 return 0;
10985}
10986_ACEOF
10987rm -f conftest.$ac_objext
10988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10989 (eval $ac_compile) 2>conftest.er1
10990 ac_status=$?
10991 grep -v '^ *+' conftest.er1 >conftest.err
10992 rm -f conftest.er1
7436 cat conftest.$ac_ext >&5 10993 cat conftest.err >&5
10994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 (exit $ac_status); } &&
10996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10998 (eval $ac_try) 2>&5
10999 ac_status=$?
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); }; } &&
11002 { ac_try='test -s conftest.$ac_objext'
11003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11004 (eval $ac_try) 2>&5
11005 ac_status=$?
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); }; }; then
11008 ac_cv_type_mode_t=yes
11009else
11010 echo "$as_me: failed program was:" >&5
11011sed 's/^/| /' conftest.$ac_ext >&5
11012
11013ac_cv_type_mode_t=no
11014fi
11015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11016fi
11017echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11018echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11019if test $ac_cv_type_mode_t = yes; then
11020 :
11021else
11022
11023cat >>confdefs.h <<_ACEOF
11024#define mode_t int
11025_ACEOF
11026
11027fi
11028
11029echo "$as_me:$LINENO: checking for pid_t" >&5
11030echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11031if test "${ac_cv_type_pid_t+set}" = set; then
11032 echo $ECHO_N "(cached) $ECHO_C" >&6
11033else
11034 cat >conftest.$ac_ext <<_ACEOF
11035/* confdefs.h. */
11036_ACEOF
11037cat confdefs.h >>conftest.$ac_ext
11038cat >>conftest.$ac_ext <<_ACEOF
11039/* end confdefs.h. */
11040$ac_includes_default
11041int
11042main ()
11043{
11044if ((pid_t *) 0)
11045 return 0;
11046if (sizeof (pid_t))
11047 return 0;
11048 ;
11049 return 0;
11050}
11051_ACEOF
11052rm -f conftest.$ac_objext
11053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11054 (eval $ac_compile) 2>conftest.er1
11055 ac_status=$?
11056 grep -v '^ *+' conftest.er1 >conftest.err
11057 rm -f conftest.er1
11058 cat conftest.err >&5
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); } &&
11061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11063 (eval $ac_try) 2>&5
11064 ac_status=$?
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); }; } &&
11067 { ac_try='test -s conftest.$ac_objext'
11068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11069 (eval $ac_try) 2>&5
11070 ac_status=$?
11071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); }; }; then
11073 ac_cv_type_pid_t=yes
11074else
11075 echo "$as_me: failed program was:" >&5
11076sed 's/^/| /' conftest.$ac_ext >&5
11077
11078ac_cv_type_pid_t=no
11079fi
11080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11081fi
11082echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11083echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11084if test $ac_cv_type_pid_t = yes; then
11085 :
11086else
11087
11088cat >>confdefs.h <<_ACEOF
11089#define pid_t int
11090_ACEOF
11091
11092fi
11093
11094echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11095echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11096if test "${ac_cv_type_uid_t+set}" = set; then
11097 echo $ECHO_N "(cached) $ECHO_C" >&6
11098else
11099 cat >conftest.$ac_ext <<_ACEOF
11100/* confdefs.h. */
11101_ACEOF
11102cat confdefs.h >>conftest.$ac_ext
11103cat >>conftest.$ac_ext <<_ACEOF
11104/* end confdefs.h. */
11105#include <sys/types.h>
11106
11107_ACEOF
11108if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11109 $EGREP "uid_t" >/dev/null 2>&1; then
11110 ac_cv_type_uid_t=yes
11111else
11112 ac_cv_type_uid_t=no
7437fi 11113fi
7438rm -f conftest* 11114rm -f conftest*
11115
11116fi
11117echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11118echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11119if test $ac_cv_type_uid_t = no; then
11120
11121cat >>confdefs.h <<\_ACEOF
11122#define uid_t int
11123_ACEOF
11124
11125
11126cat >>confdefs.h <<\_ACEOF
11127#define gid_t int
11128_ACEOF
11129
11130fi
11131
11132
11133
11134echo "$as_me:$LINENO: checking for char" >&5
11135echo $ECHO_N "checking for char... $ECHO_C" >&6
11136if test "${ac_cv_type_char+set}" = set; then
11137 echo $ECHO_N "(cached) $ECHO_C" >&6
11138else
11139 cat >conftest.$ac_ext <<_ACEOF
11140/* confdefs.h. */
11141_ACEOF
11142cat confdefs.h >>conftest.$ac_ext
11143cat >>conftest.$ac_ext <<_ACEOF
11144/* end confdefs.h. */
11145$ac_includes_default
11146int
11147main ()
11148{
11149if ((char *) 0)
11150 return 0;
11151if (sizeof (char))
11152 return 0;
11153 ;
11154 return 0;
11155}
11156_ACEOF
11157rm -f conftest.$ac_objext
11158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11159 (eval $ac_compile) 2>conftest.er1
11160 ac_status=$?
11161 grep -v '^ *+' conftest.er1 >conftest.err
11162 rm -f conftest.er1
11163 cat conftest.err >&5
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); } &&
11166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11168 (eval $ac_try) 2>&5
11169 ac_status=$?
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); }; } &&
11172 { ac_try='test -s conftest.$ac_objext'
11173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11174 (eval $ac_try) 2>&5
11175 ac_status=$?
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); }; }; then
11178 ac_cv_type_char=yes
11179else
11180 echo "$as_me: failed program was:" >&5
11181sed 's/^/| /' conftest.$ac_ext >&5
11182
11183ac_cv_type_char=no
11184fi
11185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11186fi
11187echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11188echo "${ECHO_T}$ac_cv_type_char" >&6
11189
11190echo "$as_me:$LINENO: checking size of char" >&5
11191echo $ECHO_N "checking size of char... $ECHO_C" >&6
11192if test "${ac_cv_sizeof_char+set}" = set; then
11193 echo $ECHO_N "(cached) $ECHO_C" >&6
11194else
11195 if test "$ac_cv_type_char" = yes; then
11196 # The cast to unsigned long works around a bug in the HP C Compiler
11197 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11198 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11199 # This bug is HP SR number 8606223364.
11200 if test "$cross_compiling" = yes; then
11201 # Depending upon the size, compute the lo and hi bounds.
11202cat >conftest.$ac_ext <<_ACEOF
11203/* confdefs.h. */
11204_ACEOF
11205cat confdefs.h >>conftest.$ac_ext
11206cat >>conftest.$ac_ext <<_ACEOF
11207/* end confdefs.h. */
11208$ac_includes_default
11209int
11210main ()
11211{
11212static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11213test_array [0] = 0
11214
11215 ;
11216 return 0;
11217}
11218_ACEOF
11219rm -f conftest.$ac_objext
11220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11221 (eval $ac_compile) 2>conftest.er1
11222 ac_status=$?
11223 grep -v '^ *+' conftest.er1 >conftest.err
11224 rm -f conftest.er1
11225 cat conftest.err >&5
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); } &&
11228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11230 (eval $ac_try) 2>&5
11231 ac_status=$?
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); }; } &&
11234 { ac_try='test -s conftest.$ac_objext'
11235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11236 (eval $ac_try) 2>&5
11237 ac_status=$?
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); }; }; then
11240 ac_lo=0 ac_mid=0
11241 while :; do
11242 cat >conftest.$ac_ext <<_ACEOF
11243/* confdefs.h. */
11244_ACEOF
11245cat confdefs.h >>conftest.$ac_ext
11246cat >>conftest.$ac_ext <<_ACEOF
11247/* end confdefs.h. */
11248$ac_includes_default
11249int
11250main ()
11251{
11252static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11253test_array [0] = 0
11254
11255 ;
11256 return 0;
11257}
11258_ACEOF
11259rm -f conftest.$ac_objext
11260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11261 (eval $ac_compile) 2>conftest.er1
11262 ac_status=$?
11263 grep -v '^ *+' conftest.er1 >conftest.err
11264 rm -f conftest.er1
11265 cat conftest.err >&5
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); } &&
11268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11270 (eval $ac_try) 2>&5
11271 ac_status=$?
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); }; } &&
11274 { ac_try='test -s conftest.$ac_objext'
11275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11276 (eval $ac_try) 2>&5
11277 ac_status=$?
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); }; }; then
11280 ac_hi=$ac_mid; break
11281else
11282 echo "$as_me: failed program was:" >&5
11283sed 's/^/| /' conftest.$ac_ext >&5
11284
11285ac_lo=`expr $ac_mid + 1`
11286 if test $ac_lo -le $ac_mid; then
11287 ac_lo= ac_hi=
11288 break
11289 fi
11290 ac_mid=`expr 2 '*' $ac_mid + 1`
11291fi
11292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11293 done
11294else
11295 echo "$as_me: failed program was:" >&5
11296sed 's/^/| /' conftest.$ac_ext >&5
11297
11298cat >conftest.$ac_ext <<_ACEOF
11299/* confdefs.h. */
11300_ACEOF
11301cat confdefs.h >>conftest.$ac_ext
11302cat >>conftest.$ac_ext <<_ACEOF
11303/* end confdefs.h. */
11304$ac_includes_default
11305int
11306main ()
11307{
11308static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
11309test_array [0] = 0
11310
11311 ;
11312 return 0;
11313}
11314_ACEOF
11315rm -f conftest.$ac_objext
11316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11317 (eval $ac_compile) 2>conftest.er1
11318 ac_status=$?
11319 grep -v '^ *+' conftest.er1 >conftest.err
11320 rm -f conftest.er1
11321 cat conftest.err >&5
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); } &&
11324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11326 (eval $ac_try) 2>&5
11327 ac_status=$?
11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); }; } &&
11330 { ac_try='test -s conftest.$ac_objext'
11331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11332 (eval $ac_try) 2>&5
11333 ac_status=$?
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); }; }; then
11336 ac_hi=-1 ac_mid=-1
11337 while :; do
11338 cat >conftest.$ac_ext <<_ACEOF
11339/* confdefs.h. */
11340_ACEOF
11341cat confdefs.h >>conftest.$ac_ext
11342cat >>conftest.$ac_ext <<_ACEOF
11343/* end confdefs.h. */
11344$ac_includes_default
11345int
11346main ()
11347{
11348static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11349test_array [0] = 0
11350
11351 ;
11352 return 0;
11353}
11354_ACEOF
11355rm -f conftest.$ac_objext
11356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11357 (eval $ac_compile) 2>conftest.er1
11358 ac_status=$?
11359 grep -v '^ *+' conftest.er1 >conftest.err
11360 rm -f conftest.er1
11361 cat conftest.err >&5
11362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363 (exit $ac_status); } &&
11364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11366 (eval $ac_try) 2>&5
11367 ac_status=$?
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); }; } &&
11370 { ac_try='test -s conftest.$ac_objext'
11371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11372 (eval $ac_try) 2>&5
11373 ac_status=$?
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); }; }; then
11376 ac_lo=$ac_mid; break
11377else
11378 echo "$as_me: failed program was:" >&5
11379sed 's/^/| /' conftest.$ac_ext >&5
11380
11381ac_hi=`expr '(' $ac_mid ')' - 1`
11382 if test $ac_mid -le $ac_hi; then
11383 ac_lo= ac_hi=
11384 break
11385 fi
11386 ac_mid=`expr 2 '*' $ac_mid`
11387fi
11388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11389 done
11390else
11391 echo "$as_me: failed program was:" >&5
11392sed 's/^/| /' conftest.$ac_ext >&5
11393
11394ac_lo= ac_hi=
11395fi
11396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11397fi
11398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11399# Binary search between lo and hi bounds.
11400while test "x$ac_lo" != "x$ac_hi"; do
11401 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11402 cat >conftest.$ac_ext <<_ACEOF
11403/* confdefs.h. */
11404_ACEOF
11405cat confdefs.h >>conftest.$ac_ext
11406cat >>conftest.$ac_ext <<_ACEOF
11407/* end confdefs.h. */
11408$ac_includes_default
11409int
11410main ()
11411{
11412static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11413test_array [0] = 0
11414
11415 ;
11416 return 0;
11417}
11418_ACEOF
11419rm -f conftest.$ac_objext
11420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11421 (eval $ac_compile) 2>conftest.er1
11422 ac_status=$?
11423 grep -v '^ *+' conftest.er1 >conftest.err
11424 rm -f conftest.er1
11425 cat conftest.err >&5
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); } &&
11428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11430 (eval $ac_try) 2>&5
11431 ac_status=$?
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); }; } &&
11434 { ac_try='test -s conftest.$ac_objext'
11435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11436 (eval $ac_try) 2>&5
11437 ac_status=$?
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); }; }; then
11440 ac_hi=$ac_mid
11441else
11442 echo "$as_me: failed program was:" >&5
11443sed 's/^/| /' conftest.$ac_ext >&5
11444
11445ac_lo=`expr '(' $ac_mid ')' + 1`
11446fi
11447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7439done 11448done
7440 11449case $ac_lo in
7441fi 11450?*) ac_cv_sizeof_char=$ac_lo;;
7442 11451'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
7443echo "$ac_t""$ac_cv_c_inline" 1>&6 11452See \`config.log' for more details." >&5
7444case "$ac_cv_c_inline" in 11453echo "$as_me: error: cannot compute sizeof (char), 77
7445 inline | yes) ;; 11454See \`config.log' for more details." >&2;}
7446 no) cat >> confdefs.h <<\EOF 11455 { (exit 1); exit 1; }; } ;;
7447#define inline
7448EOF
7449 ;;
7450 *) cat >> confdefs.h <<EOF
7451#define inline $ac_cv_c_inline
7452EOF
7453 ;;
7454esac 11456esac
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 11457else
11458 if test "$cross_compiling" = yes; then
11459 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11460See \`config.log' for more details." >&5
11461echo "$as_me: error: cannot run test program while cross compiling
11462See \`config.log' for more details." >&2;}
11463 { (exit 1); exit 1; }; }
11464else
7463 cat > conftest.$ac_ext <<EOF 11465 cat >conftest.$ac_ext <<_ACEOF
7464#line 7465 "configure" 11466/* confdefs.h. */
7465#include "confdefs.h" 11467_ACEOF
11468cat confdefs.h >>conftest.$ac_ext
11469cat >>conftest.$ac_ext <<_ACEOF
11470/* end confdefs.h. */
11471$ac_includes_default
11472long longval () { return (long) (sizeof (char)); }
11473unsigned long ulongval () { return (long) (sizeof (char)); }
11474#include <stdio.h>
7466#include <stdlib.h> 11475#include <stdlib.h>
7467#include <stdarg.h> 11476int
7468#include <string.h> 11477main ()
7469#include <float.h> 11478{
7470EOF 11479
7471ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11480 FILE *f = fopen ("conftest.val", "w");
7472{ (eval echo configure:7473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11481 if (! f)
7473ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11482 exit (1);
7474if test -z "$ac_err"; then 11483 if (((long) (sizeof (char))) < 0)
7475 rm -rf conftest* 11484 {
7476 ac_cv_header_stdc=yes 11485 long i = longval ();
11486 if (i != ((long) (sizeof (char))))
11487 exit (1);
11488 fprintf (f, "%ld\n", i);
11489 }
7477else 11490 else
7478 echo "$ac_err" >&5 11491 {
11492 unsigned long i = ulongval ();
11493 if (i != ((long) (sizeof (char))))
11494 exit (1);
11495 fprintf (f, "%lu\n", i);
11496 }
11497 exit (ferror (f) || fclose (f) != 0);
11498
11499 ;
11500 return 0;
11501}
11502_ACEOF
11503rm -f conftest$ac_exeext
11504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11505 (eval $ac_link) 2>&5
11506 ac_status=$?
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11510 (eval $ac_try) 2>&5
11511 ac_status=$?
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); }; }; then
11514 ac_cv_sizeof_char=`cat conftest.val`
11515else
11516 echo "$as_me: program exited with status $ac_status" >&5
7479 echo "configure: failed program was:" >&5 11517echo "$as_me: failed program was:" >&5
7480 cat conftest.$ac_ext >&5 11518sed 's/^/| /' conftest.$ac_ext >&5
7481 rm -rf conftest* 11519
7482 ac_cv_header_stdc=no 11520( exit $ac_status )
11521{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11522See \`config.log' for more details." >&5
11523echo "$as_me: error: cannot compute sizeof (char), 77
11524See \`config.log' for more details." >&2;}
11525 { (exit 1); exit 1; }; }
7483fi 11526fi
11527rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11528fi
11529fi
7484rm -f conftest* 11530rm -f conftest.val
11531else
11532 ac_cv_sizeof_char=0
11533fi
11534fi
11535echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
11536echo "${ECHO_T}$ac_cv_sizeof_char" >&6
11537cat >>confdefs.h <<_ACEOF
11538#define SIZEOF_CHAR $ac_cv_sizeof_char
11539_ACEOF
7485 11540
11541
11542echo "$as_me:$LINENO: checking for short" >&5
11543echo $ECHO_N "checking for short... $ECHO_C" >&6
11544if test "${ac_cv_type_short+set}" = set; then
11545 echo $ECHO_N "(cached) $ECHO_C" >&6
11546else
11547 cat >conftest.$ac_ext <<_ACEOF
11548/* confdefs.h. */
11549_ACEOF
11550cat confdefs.h >>conftest.$ac_ext
11551cat >>conftest.$ac_ext <<_ACEOF
11552/* end confdefs.h. */
11553$ac_includes_default
11554int
11555main ()
11556{
11557if ((short *) 0)
11558 return 0;
11559if (sizeof (short))
11560 return 0;
11561 ;
11562 return 0;
11563}
11564_ACEOF
11565rm -f conftest.$ac_objext
11566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11567 (eval $ac_compile) 2>conftest.er1
11568 ac_status=$?
11569 grep -v '^ *+' conftest.er1 >conftest.err
11570 rm -f conftest.er1
11571 cat conftest.err >&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); } &&
11574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11576 (eval $ac_try) 2>&5
11577 ac_status=$?
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); }; } &&
11580 { ac_try='test -s conftest.$ac_objext'
11581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11582 (eval $ac_try) 2>&5
11583 ac_status=$?
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); }; }; then
11586 ac_cv_type_short=yes
11587else
11588 echo "$as_me: failed program was:" >&5
11589sed 's/^/| /' conftest.$ac_ext >&5
11590
11591ac_cv_type_short=no
11592fi
11593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11594fi
11595echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
11596echo "${ECHO_T}$ac_cv_type_short" >&6
11597
11598echo "$as_me:$LINENO: checking size of short" >&5
11599echo $ECHO_N "checking size of short... $ECHO_C" >&6
11600if test "${ac_cv_sizeof_short+set}" = set; then
11601 echo $ECHO_N "(cached) $ECHO_C" >&6
11602else
7486if test $ac_cv_header_stdc = yes; then 11603 if test "$ac_cv_type_short" = yes; then
7487 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 11604 # The cast to unsigned long works around a bug in the HP C Compiler
11605 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11606 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11607 # This bug is HP SR number 8606223364.
11608 if test "$cross_compiling" = yes; then
11609 # Depending upon the size, compute the lo and hi bounds.
7488cat > conftest.$ac_ext <<EOF 11610cat >conftest.$ac_ext <<_ACEOF
7489#line 7490 "configure" 11611/* confdefs.h. */
7490#include "confdefs.h" 11612_ACEOF
7491#include <string.h> 11613cat confdefs.h >>conftest.$ac_ext
7492EOF 11614cat >>conftest.$ac_ext <<_ACEOF
7493if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11615/* end confdefs.h. */
7494 egrep "memchr" >/dev/null 2>&1; then 11616$ac_includes_default
7495 : 11617int
7496else 11618main ()
11619{
11620static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
11621test_array [0] = 0
11622
11623 ;
11624 return 0;
11625}
11626_ACEOF
11627rm -f conftest.$ac_objext
11628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11629 (eval $ac_compile) 2>conftest.er1
11630 ac_status=$?
11631 grep -v '^ *+' conftest.er1 >conftest.err
7497 rm -rf conftest* 11632 rm -f conftest.er1
7498 ac_cv_header_stdc=no 11633 cat conftest.err >&5
7499fi 11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); } &&
11636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11638 (eval $ac_try) 2>&5
11639 ac_status=$?
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); }; } &&
11642 { ac_try='test -s conftest.$ac_objext'
11643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11644 (eval $ac_try) 2>&5
11645 ac_status=$?
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); }; }; then
11648 ac_lo=0 ac_mid=0
11649 while :; do
11650 cat >conftest.$ac_ext <<_ACEOF
11651/* confdefs.h. */
11652_ACEOF
11653cat confdefs.h >>conftest.$ac_ext
11654cat >>conftest.$ac_ext <<_ACEOF
11655/* end confdefs.h. */
11656$ac_includes_default
11657int
11658main ()
11659{
11660static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
11661test_array [0] = 0
11662
11663 ;
11664 return 0;
11665}
11666_ACEOF
11667rm -f conftest.$ac_objext
11668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11669 (eval $ac_compile) 2>conftest.er1
11670 ac_status=$?
11671 grep -v '^ *+' conftest.er1 >conftest.err
7500rm -f conftest* 11672 rm -f conftest.er1
11673 cat conftest.err >&5
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); } &&
11676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11678 (eval $ac_try) 2>&5
11679 ac_status=$?
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); }; } &&
11682 { ac_try='test -s conftest.$ac_objext'
11683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684 (eval $ac_try) 2>&5
11685 ac_status=$?
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; }; then
11688 ac_hi=$ac_mid; break
11689else
11690 echo "$as_me: failed program was:" >&5
11691sed 's/^/| /' conftest.$ac_ext >&5
7501 11692
11693ac_lo=`expr $ac_mid + 1`
11694 if test $ac_lo -le $ac_mid; then
11695 ac_lo= ac_hi=
11696 break
11697 fi
11698 ac_mid=`expr 2 '*' $ac_mid + 1`
7502fi 11699fi
11700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11701 done
11702else
11703 echo "$as_me: failed program was:" >&5
11704sed 's/^/| /' conftest.$ac_ext >&5
7503 11705
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 11706cat >conftest.$ac_ext <<_ACEOF
7507#line 7508 "configure" 11707/* confdefs.h. */
7508#include "confdefs.h" 11708_ACEOF
11709cat confdefs.h >>conftest.$ac_ext
11710cat >>conftest.$ac_ext <<_ACEOF
11711/* end confdefs.h. */
11712$ac_includes_default
11713int
11714main ()
11715{
11716static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
11717test_array [0] = 0
11718
11719 ;
11720 return 0;
11721}
11722_ACEOF
11723rm -f conftest.$ac_objext
11724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11725 (eval $ac_compile) 2>conftest.er1
11726 ac_status=$?
11727 grep -v '^ *+' conftest.er1 >conftest.err
11728 rm -f conftest.er1
11729 cat conftest.err >&5
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); } &&
11732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734 (eval $ac_try) 2>&5
11735 ac_status=$?
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; } &&
11738 { ac_try='test -s conftest.$ac_objext'
11739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11740 (eval $ac_try) 2>&5
11741 ac_status=$?
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); }; }; then
11744 ac_hi=-1 ac_mid=-1
11745 while :; do
11746 cat >conftest.$ac_ext <<_ACEOF
11747/* confdefs.h. */
11748_ACEOF
11749cat confdefs.h >>conftest.$ac_ext
11750cat >>conftest.$ac_ext <<_ACEOF
11751/* end confdefs.h. */
11752$ac_includes_default
11753int
11754main ()
11755{
11756static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
11757test_array [0] = 0
11758
11759 ;
11760 return 0;
11761}
11762_ACEOF
11763rm -f conftest.$ac_objext
11764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11765 (eval $ac_compile) 2>conftest.er1
11766 ac_status=$?
11767 grep -v '^ *+' conftest.er1 >conftest.err
11768 rm -f conftest.er1
11769 cat conftest.err >&5
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); } &&
11772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774 (eval $ac_try) 2>&5
11775 ac_status=$?
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); }; } &&
11778 { ac_try='test -s conftest.$ac_objext'
11779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11780 (eval $ac_try) 2>&5
11781 ac_status=$?
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); }; }; then
11784 ac_lo=$ac_mid; break
11785else
11786 echo "$as_me: failed program was:" >&5
11787sed 's/^/| /' conftest.$ac_ext >&5
11788
11789ac_hi=`expr '(' $ac_mid ')' - 1`
11790 if test $ac_mid -le $ac_hi; then
11791 ac_lo= ac_hi=
11792 break
11793 fi
11794 ac_mid=`expr 2 '*' $ac_mid`
11795fi
11796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11797 done
11798else
11799 echo "$as_me: failed program was:" >&5
11800sed 's/^/| /' conftest.$ac_ext >&5
11801
11802ac_lo= ac_hi=
11803fi
11804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11805fi
11806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11807# Binary search between lo and hi bounds.
11808while test "x$ac_lo" != "x$ac_hi"; do
11809 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11810 cat >conftest.$ac_ext <<_ACEOF
11811/* confdefs.h. */
11812_ACEOF
11813cat confdefs.h >>conftest.$ac_ext
11814cat >>conftest.$ac_ext <<_ACEOF
11815/* end confdefs.h. */
11816$ac_includes_default
11817int
11818main ()
11819{
11820static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
11821test_array [0] = 0
11822
11823 ;
11824 return 0;
11825}
11826_ACEOF
11827rm -f conftest.$ac_objext
11828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11829 (eval $ac_compile) 2>conftest.er1
11830 ac_status=$?
11831 grep -v '^ *+' conftest.er1 >conftest.err
11832 rm -f conftest.er1
11833 cat conftest.err >&5
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); } &&
11836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11838 (eval $ac_try) 2>&5
11839 ac_status=$?
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); }; } &&
11842 { ac_try='test -s conftest.$ac_objext'
11843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11844 (eval $ac_try) 2>&5
11845 ac_status=$?
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; }; then
11848 ac_hi=$ac_mid
11849else
11850 echo "$as_me: failed program was:" >&5
11851sed 's/^/| /' conftest.$ac_ext >&5
11852
11853ac_lo=`expr '(' $ac_mid ')' + 1`
11854fi
11855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11856done
11857case $ac_lo in
11858?*) ac_cv_sizeof_short=$ac_lo;;
11859'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
11860See \`config.log' for more details." >&5
11861echo "$as_me: error: cannot compute sizeof (short), 77
11862See \`config.log' for more details." >&2;}
11863 { (exit 1); exit 1; }; } ;;
11864esac
11865else
11866 if test "$cross_compiling" = yes; then
11867 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11868See \`config.log' for more details." >&5
11869echo "$as_me: error: cannot run test program while cross compiling
11870See \`config.log' for more details." >&2;}
11871 { (exit 1); exit 1; }; }
11872else
11873 cat >conftest.$ac_ext <<_ACEOF
11874/* confdefs.h. */
11875_ACEOF
11876cat confdefs.h >>conftest.$ac_ext
11877cat >>conftest.$ac_ext <<_ACEOF
11878/* end confdefs.h. */
11879$ac_includes_default
11880long longval () { return (long) (sizeof (short)); }
11881unsigned long ulongval () { return (long) (sizeof (short)); }
11882#include <stdio.h>
7509#include <stdlib.h> 11883#include <stdlib.h>
7510EOF 11884int
7511if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11885main ()
7512 egrep "free" >/dev/null 2>&1; then 11886{
7513 : 11887
11888 FILE *f = fopen ("conftest.val", "w");
11889 if (! f)
11890 exit (1);
11891 if (((long) (sizeof (short))) < 0)
11892 {
11893 long i = longval ();
11894 if (i != ((long) (sizeof (short))))
11895 exit (1);
11896 fprintf (f, "%ld\n", i);
11897 }
7514else 11898 else
7515 rm -rf conftest* 11899 {
7516 ac_cv_header_stdc=no 11900 unsigned long i = ulongval ();
11901 if (i != ((long) (sizeof (short))))
11902 exit (1);
11903 fprintf (f, "%lu\n", i);
11904 }
11905 exit (ferror (f) || fclose (f) != 0);
11906
11907 ;
11908 return 0;
11909}
11910_ACEOF
11911rm -f conftest$ac_exeext
11912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11913 (eval $ac_link) 2>&5
11914 ac_status=$?
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918 (eval $ac_try) 2>&5
11919 ac_status=$?
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }; }; then
11922 ac_cv_sizeof_short=`cat conftest.val`
11923else
11924 echo "$as_me: program exited with status $ac_status" >&5
11925echo "$as_me: failed program was:" >&5
11926sed 's/^/| /' conftest.$ac_ext >&5
11927
11928( exit $ac_status )
11929{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
11930See \`config.log' for more details." >&5
11931echo "$as_me: error: cannot compute sizeof (short), 77
11932See \`config.log' for more details." >&2;}
11933 { (exit 1); exit 1; }; }
7517fi 11934fi
11935rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11936fi
11937fi
7518rm -f conftest* 11938rm -f conftest.val
7519 11939else
11940 ac_cv_sizeof_short=0
7520fi 11941fi
11942fi
11943echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
11944echo "${ECHO_T}$ac_cv_sizeof_short" >&6
11945cat >>confdefs.h <<_ACEOF
11946#define SIZEOF_SHORT $ac_cv_sizeof_short
11947_ACEOF
7521 11948
11949
11950echo "$as_me:$LINENO: checking for int" >&5
11951echo $ECHO_N "checking for int... $ECHO_C" >&6
11952if test "${ac_cv_type_int+set}" = set; then
11953 echo $ECHO_N "(cached) $ECHO_C" >&6
11954else
11955 cat >conftest.$ac_ext <<_ACEOF
11956/* confdefs.h. */
11957_ACEOF
11958cat confdefs.h >>conftest.$ac_ext
11959cat >>conftest.$ac_ext <<_ACEOF
11960/* end confdefs.h. */
11961$ac_includes_default
11962int
11963main ()
11964{
11965if ((int *) 0)
11966 return 0;
11967if (sizeof (int))
11968 return 0;
11969 ;
11970 return 0;
11971}
11972_ACEOF
11973rm -f conftest.$ac_objext
11974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11975 (eval $ac_compile) 2>conftest.er1
11976 ac_status=$?
11977 grep -v '^ *+' conftest.er1 >conftest.err
11978 rm -f conftest.er1
11979 cat conftest.err >&5
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); } &&
11982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11984 (eval $ac_try) 2>&5
11985 ac_status=$?
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); }; } &&
11988 { ac_try='test -s conftest.$ac_objext'
11989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11990 (eval $ac_try) 2>&5
11991 ac_status=$?
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); }; }; then
11994 ac_cv_type_int=yes
11995else
11996 echo "$as_me: failed program was:" >&5
11997sed 's/^/| /' conftest.$ac_ext >&5
11998
11999ac_cv_type_int=no
12000fi
12001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12002fi
12003echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12004echo "${ECHO_T}$ac_cv_type_int" >&6
12005
12006echo "$as_me:$LINENO: checking size of int" >&5
12007echo $ECHO_N "checking size of int... $ECHO_C" >&6
12008if test "${ac_cv_sizeof_int+set}" = set; then
12009 echo $ECHO_N "(cached) $ECHO_C" >&6
12010else
7522if test $ac_cv_header_stdc = yes; then 12011 if test "$ac_cv_type_int" = yes; then
7523 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12012 # The cast to unsigned long works around a bug in the HP C Compiler
12013 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12014 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12015 # This bug is HP SR number 8606223364.
7524if test "$cross_compiling" = yes; then 12016 if test "$cross_compiling" = yes; then
7525 : 12017 # Depending upon the size, compute the lo and hi bounds.
12018cat >conftest.$ac_ext <<_ACEOF
12019/* confdefs.h. */
12020_ACEOF
12021cat confdefs.h >>conftest.$ac_ext
12022cat >>conftest.$ac_ext <<_ACEOF
12023/* end confdefs.h. */
12024$ac_includes_default
12025int
12026main ()
12027{
12028static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12029test_array [0] = 0
12030
12031 ;
12032 return 0;
12033}
12034_ACEOF
12035rm -f conftest.$ac_objext
12036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12037 (eval $ac_compile) 2>conftest.er1
12038 ac_status=$?
12039 grep -v '^ *+' conftest.er1 >conftest.err
12040 rm -f conftest.er1
12041 cat conftest.err >&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); } &&
12044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12046 (eval $ac_try) 2>&5
12047 ac_status=$?
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); }; } &&
12050 { ac_try='test -s conftest.$ac_objext'
12051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12052 (eval $ac_try) 2>&5
12053 ac_status=$?
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); }; }; then
12056 ac_lo=0 ac_mid=0
12057 while :; do
12058 cat >conftest.$ac_ext <<_ACEOF
12059/* confdefs.h. */
12060_ACEOF
12061cat confdefs.h >>conftest.$ac_ext
12062cat >>conftest.$ac_ext <<_ACEOF
12063/* end confdefs.h. */
12064$ac_includes_default
12065int
12066main ()
12067{
12068static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12069test_array [0] = 0
12070
12071 ;
12072 return 0;
12073}
12074_ACEOF
12075rm -f conftest.$ac_objext
12076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12077 (eval $ac_compile) 2>conftest.er1
12078 ac_status=$?
12079 grep -v '^ *+' conftest.er1 >conftest.err
12080 rm -f conftest.er1
12081 cat conftest.err >&5
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); } &&
12084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12086 (eval $ac_try) 2>&5
12087 ac_status=$?
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); }; } &&
12090 { ac_try='test -s conftest.$ac_objext'
12091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12092 (eval $ac_try) 2>&5
12093 ac_status=$?
12094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095 (exit $ac_status); }; }; then
12096 ac_hi=$ac_mid; break
7526else 12097else
12098 echo "$as_me: failed program was:" >&5
12099sed 's/^/| /' conftest.$ac_ext >&5
12100
12101ac_lo=`expr $ac_mid + 1`
12102 if test $ac_lo -le $ac_mid; then
12103 ac_lo= ac_hi=
12104 break
12105 fi
12106 ac_mid=`expr 2 '*' $ac_mid + 1`
12107fi
12108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12109 done
12110else
12111 echo "$as_me: failed program was:" >&5
12112sed 's/^/| /' conftest.$ac_ext >&5
12113
12114cat >conftest.$ac_ext <<_ACEOF
12115/* confdefs.h. */
12116_ACEOF
12117cat confdefs.h >>conftest.$ac_ext
12118cat >>conftest.$ac_ext <<_ACEOF
12119/* end confdefs.h. */
12120$ac_includes_default
12121int
12122main ()
12123{
12124static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12125test_array [0] = 0
12126
12127 ;
12128 return 0;
12129}
12130_ACEOF
12131rm -f conftest.$ac_objext
12132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12133 (eval $ac_compile) 2>conftest.er1
12134 ac_status=$?
12135 grep -v '^ *+' conftest.er1 >conftest.err
12136 rm -f conftest.er1
12137 cat conftest.err >&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); } &&
12140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12142 (eval $ac_try) 2>&5
12143 ac_status=$?
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); }; } &&
12146 { ac_try='test -s conftest.$ac_objext'
12147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12148 (eval $ac_try) 2>&5
12149 ac_status=$?
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); }; }; then
12152 ac_hi=-1 ac_mid=-1
12153 while :; do
12154 cat >conftest.$ac_ext <<_ACEOF
12155/* confdefs.h. */
12156_ACEOF
12157cat confdefs.h >>conftest.$ac_ext
12158cat >>conftest.$ac_ext <<_ACEOF
12159/* end confdefs.h. */
12160$ac_includes_default
12161int
12162main ()
12163{
12164static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12165test_array [0] = 0
12166
12167 ;
12168 return 0;
12169}
12170_ACEOF
12171rm -f conftest.$ac_objext
12172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12173 (eval $ac_compile) 2>conftest.er1
12174 ac_status=$?
12175 grep -v '^ *+' conftest.er1 >conftest.err
12176 rm -f conftest.er1
12177 cat conftest.err >&5
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); } &&
12180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12182 (eval $ac_try) 2>&5
12183 ac_status=$?
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); }; } &&
12186 { ac_try='test -s conftest.$ac_objext'
12187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12188 (eval $ac_try) 2>&5
12189 ac_status=$?
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); }; }; then
12192 ac_lo=$ac_mid; break
12193else
12194 echo "$as_me: failed program was:" >&5
12195sed 's/^/| /' conftest.$ac_ext >&5
12196
12197ac_hi=`expr '(' $ac_mid ')' - 1`
12198 if test $ac_mid -le $ac_hi; then
12199 ac_lo= ac_hi=
12200 break
12201 fi
12202 ac_mid=`expr 2 '*' $ac_mid`
12203fi
12204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12205 done
12206else
12207 echo "$as_me: failed program was:" >&5
12208sed 's/^/| /' conftest.$ac_ext >&5
12209
12210ac_lo= ac_hi=
12211fi
12212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12213fi
12214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12215# Binary search between lo and hi bounds.
12216while test "x$ac_lo" != "x$ac_hi"; do
12217 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7527 cat > conftest.$ac_ext <<EOF 12218 cat >conftest.$ac_ext <<_ACEOF
7528#line 7529 "configure" 12219/* confdefs.h. */
7529#include "confdefs.h" 12220_ACEOF
7530#include <ctype.h> 12221cat confdefs.h >>conftest.$ac_ext
7531#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12222cat >>conftest.$ac_ext <<_ACEOF
7532#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12223/* end confdefs.h. */
7533#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12224$ac_includes_default
7534int main () { int i; for (i = 0; i < 256; i++) 12225int
7535if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 12226main ()
7536exit (0); } 12227{
12228static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12229test_array [0] = 0
7537 12230
7538EOF 12231 ;
7539if { (eval echo configure:7540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 12232 return 0;
7540then 12233}
7541 : 12234_ACEOF
12235rm -f conftest.$ac_objext
12236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12237 (eval $ac_compile) 2>conftest.er1
12238 ac_status=$?
12239 grep -v '^ *+' conftest.er1 >conftest.err
12240 rm -f conftest.er1
12241 cat conftest.err >&5
12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); } &&
12244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12246 (eval $ac_try) 2>&5
12247 ac_status=$?
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); }; } &&
12250 { ac_try='test -s conftest.$ac_objext'
12251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12252 (eval $ac_try) 2>&5
12253 ac_status=$?
12254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 (exit $ac_status); }; }; then
12256 ac_hi=$ac_mid
7542else 12257else
7543 echo "configure: failed program was:" >&5 12258 echo "$as_me: failed program was:" >&5
7544 cat conftest.$ac_ext >&5 12259sed 's/^/| /' conftest.$ac_ext >&5
7545 rm -fr conftest*
7546 ac_cv_header_stdc=no
7547fi
7548rm -fr conftest*
7549fi
7550 12260
12261ac_lo=`expr '(' $ac_mid ')' + 1`
7551fi 12262fi
7552fi 12263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7553 12264done
7554echo "$ac_t""$ac_cv_header_stdc" 1>&6 12265case $ac_lo in
7555if test $ac_cv_header_stdc = yes; then 12266?*) ac_cv_sizeof_int=$ac_lo;;
7556 cat >> confdefs.h <<\EOF 12267'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7557#define STDC_HEADERS 1 12268See \`config.log' for more details." >&5
7558EOF 12269echo "$as_me: error: cannot compute sizeof (int), 77
7559 12270See \`config.log' for more details." >&2;}
7560fi 12271 { (exit 1); exit 1; }; } ;;
7561 12272esac
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 12273else
12274 if test "$cross_compiling" = yes; then
12275 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12276See \`config.log' for more details." >&5
12277echo "$as_me: error: cannot run test program while cross compiling
12278See \`config.log' for more details." >&2;}
12279 { (exit 1); exit 1; }; }
12280else
7567 cat > conftest.$ac_ext <<EOF 12281 cat >conftest.$ac_ext <<_ACEOF
7568#line 7569 "configure" 12282/* confdefs.h. */
7569#include "confdefs.h" 12283_ACEOF
12284cat confdefs.h >>conftest.$ac_ext
12285cat >>conftest.$ac_ext <<_ACEOF
12286/* end confdefs.h. */
12287$ac_includes_default
12288long longval () { return (long) (sizeof (int)); }
12289unsigned long ulongval () { return (long) (sizeof (int)); }
7570#include <sys/types.h> 12290#include <stdio.h>
7571#if STDC_HEADERS
7572#include <stdlib.h> 12291#include <stdlib.h>
7573#include <stddef.h> 12292int
7574#endif 12293main ()
7575EOF 12294{
7576if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12295
7577 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 12296 FILE *f = fopen ("conftest.val", "w");
7578 rm -rf conftest* 12297 if (! f)
7579 ac_cv_type_mode_t=yes 12298 exit (1);
12299 if (((long) (sizeof (int))) < 0)
12300 {
12301 long i = longval ();
12302 if (i != ((long) (sizeof (int))))
12303 exit (1);
12304 fprintf (f, "%ld\n", i);
12305 }
7580else 12306 else
7581 rm -rf conftest* 12307 {
7582 ac_cv_type_mode_t=no 12308 unsigned long i = ulongval ();
12309 if (i != ((long) (sizeof (int))))
12310 exit (1);
12311 fprintf (f, "%lu\n", i);
12312 }
12313 exit (ferror (f) || fclose (f) != 0);
12314
12315 ;
12316 return 0;
12317}
12318_ACEOF
12319rm -f conftest$ac_exeext
12320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12321 (eval $ac_link) 2>&5
12322 ac_status=$?
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12326 (eval $ac_try) 2>&5
12327 ac_status=$?
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); }; }; then
12330 ac_cv_sizeof_int=`cat conftest.val`
12331else
12332 echo "$as_me: program exited with status $ac_status" >&5
12333echo "$as_me: failed program was:" >&5
12334sed 's/^/| /' conftest.$ac_ext >&5
12335
12336( exit $ac_status )
12337{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12338See \`config.log' for more details." >&5
12339echo "$as_me: error: cannot compute sizeof (int), 77
12340See \`config.log' for more details." >&2;}
12341 { (exit 1); exit 1; }; }
7583fi 12342fi
12343rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12344fi
12345fi
7584rm -f conftest* 12346rm -f conftest.val
7585 12347else
12348 ac_cv_sizeof_int=0
7586fi 12349fi
7587echo "$ac_t""$ac_cv_type_mode_t" 1>&6 12350fi
7588if test $ac_cv_type_mode_t = no; then 12351echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12352echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7589 cat >> confdefs.h <<\EOF 12353cat >>confdefs.h <<_ACEOF
7590#define mode_t int 12354#define SIZEOF_INT $ac_cv_sizeof_int
7591EOF 12355_ACEOF
7592 12356
7593fi
7594 12357
7595echo $ac_n "checking for pid_t""... $ac_c" 1>&6 12358echo "$as_me:$LINENO: checking for long" >&5
7596echo "configure:7597: checking for pid_t" >&5 12359echo $ECHO_N "checking for long... $ECHO_C" >&6
7597if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then 12360if test "${ac_cv_type_long+set}" = set; then
7598 echo $ac_n "(cached) $ac_c" 1>&6 12361 echo $ECHO_N "(cached) $ECHO_C" >&6
7599else 12362else
7600 cat > conftest.$ac_ext <<EOF 12363 cat >conftest.$ac_ext <<_ACEOF
7601#line 7602 "configure" 12364/* confdefs.h. */
7602#include "confdefs.h" 12365_ACEOF
12366cat confdefs.h >>conftest.$ac_ext
12367cat >>conftest.$ac_ext <<_ACEOF
12368/* end confdefs.h. */
12369$ac_includes_default
12370int
12371main ()
12372{
12373if ((long *) 0)
12374 return 0;
12375if (sizeof (long))
12376 return 0;
12377 ;
12378 return 0;
12379}
12380_ACEOF
12381rm -f conftest.$ac_objext
12382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12383 (eval $ac_compile) 2>conftest.er1
12384 ac_status=$?
12385 grep -v '^ *+' conftest.er1 >conftest.err
12386 rm -f conftest.er1
12387 cat conftest.err >&5
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); } &&
12390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12392 (eval $ac_try) 2>&5
12393 ac_status=$?
12394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395 (exit $ac_status); }; } &&
12396 { ac_try='test -s conftest.$ac_objext'
12397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12398 (eval $ac_try) 2>&5
12399 ac_status=$?
12400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); }; }; then
12402 ac_cv_type_long=yes
12403else
12404 echo "$as_me: failed program was:" >&5
12405sed 's/^/| /' conftest.$ac_ext >&5
12406
12407ac_cv_type_long=no
12408fi
12409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12410fi
12411echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12412echo "${ECHO_T}$ac_cv_type_long" >&6
12413
12414echo "$as_me:$LINENO: checking size of long" >&5
12415echo $ECHO_N "checking size of long... $ECHO_C" >&6
12416if test "${ac_cv_sizeof_long+set}" = set; then
12417 echo $ECHO_N "(cached) $ECHO_C" >&6
12418else
12419 if test "$ac_cv_type_long" = yes; then
12420 # The cast to unsigned long works around a bug in the HP C Compiler
12421 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12422 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12423 # This bug is HP SR number 8606223364.
12424 if test "$cross_compiling" = yes; then
12425 # Depending upon the size, compute the lo and hi bounds.
12426cat >conftest.$ac_ext <<_ACEOF
12427/* confdefs.h. */
12428_ACEOF
12429cat confdefs.h >>conftest.$ac_ext
12430cat >>conftest.$ac_ext <<_ACEOF
12431/* end confdefs.h. */
12432$ac_includes_default
12433int
12434main ()
12435{
12436static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12437test_array [0] = 0
12438
12439 ;
12440 return 0;
12441}
12442_ACEOF
12443rm -f conftest.$ac_objext
12444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12445 (eval $ac_compile) 2>conftest.er1
12446 ac_status=$?
12447 grep -v '^ *+' conftest.er1 >conftest.err
12448 rm -f conftest.er1
12449 cat conftest.err >&5
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); } &&
12452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12454 (eval $ac_try) 2>&5
12455 ac_status=$?
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); }; } &&
12458 { ac_try='test -s conftest.$ac_objext'
12459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12460 (eval $ac_try) 2>&5
12461 ac_status=$?
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); }; }; then
12464 ac_lo=0 ac_mid=0
12465 while :; do
12466 cat >conftest.$ac_ext <<_ACEOF
12467/* confdefs.h. */
12468_ACEOF
12469cat confdefs.h >>conftest.$ac_ext
12470cat >>conftest.$ac_ext <<_ACEOF
12471/* end confdefs.h. */
12472$ac_includes_default
12473int
12474main ()
12475{
12476static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12477test_array [0] = 0
12478
12479 ;
12480 return 0;
12481}
12482_ACEOF
12483rm -f conftest.$ac_objext
12484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12485 (eval $ac_compile) 2>conftest.er1
12486 ac_status=$?
12487 grep -v '^ *+' conftest.er1 >conftest.err
12488 rm -f conftest.er1
12489 cat conftest.err >&5
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); } &&
12492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12494 (eval $ac_try) 2>&5
12495 ac_status=$?
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); }; } &&
12498 { ac_try='test -s conftest.$ac_objext'
12499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12500 (eval $ac_try) 2>&5
12501 ac_status=$?
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); }; }; then
12504 ac_hi=$ac_mid; break
12505else
12506 echo "$as_me: failed program was:" >&5
12507sed 's/^/| /' conftest.$ac_ext >&5
12508
12509ac_lo=`expr $ac_mid + 1`
12510 if test $ac_lo -le $ac_mid; then
12511 ac_lo= ac_hi=
12512 break
12513 fi
12514 ac_mid=`expr 2 '*' $ac_mid + 1`
12515fi
12516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12517 done
12518else
12519 echo "$as_me: failed program was:" >&5
12520sed 's/^/| /' conftest.$ac_ext >&5
12521
12522cat >conftest.$ac_ext <<_ACEOF
12523/* confdefs.h. */
12524_ACEOF
12525cat confdefs.h >>conftest.$ac_ext
12526cat >>conftest.$ac_ext <<_ACEOF
12527/* end confdefs.h. */
12528$ac_includes_default
12529int
12530main ()
12531{
12532static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12533test_array [0] = 0
12534
12535 ;
12536 return 0;
12537}
12538_ACEOF
12539rm -f conftest.$ac_objext
12540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12541 (eval $ac_compile) 2>conftest.er1
12542 ac_status=$?
12543 grep -v '^ *+' conftest.er1 >conftest.err
12544 rm -f conftest.er1
12545 cat conftest.err >&5
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); } &&
12548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12550 (eval $ac_try) 2>&5
12551 ac_status=$?
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); }; } &&
12554 { ac_try='test -s conftest.$ac_objext'
12555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12556 (eval $ac_try) 2>&5
12557 ac_status=$?
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); }; }; then
12560 ac_hi=-1 ac_mid=-1
12561 while :; do
12562 cat >conftest.$ac_ext <<_ACEOF
12563/* confdefs.h. */
12564_ACEOF
12565cat confdefs.h >>conftest.$ac_ext
12566cat >>conftest.$ac_ext <<_ACEOF
12567/* end confdefs.h. */
12568$ac_includes_default
12569int
12570main ()
12571{
12572static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12573test_array [0] = 0
12574
12575 ;
12576 return 0;
12577}
12578_ACEOF
12579rm -f conftest.$ac_objext
12580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12581 (eval $ac_compile) 2>conftest.er1
12582 ac_status=$?
12583 grep -v '^ *+' conftest.er1 >conftest.err
12584 rm -f conftest.er1
12585 cat conftest.err >&5
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); } &&
12588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12590 (eval $ac_try) 2>&5
12591 ac_status=$?
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); }; } &&
12594 { ac_try='test -s conftest.$ac_objext'
12595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12596 (eval $ac_try) 2>&5
12597 ac_status=$?
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); }; }; then
12600 ac_lo=$ac_mid; break
12601else
12602 echo "$as_me: failed program was:" >&5
12603sed 's/^/| /' conftest.$ac_ext >&5
12604
12605ac_hi=`expr '(' $ac_mid ')' - 1`
12606 if test $ac_mid -le $ac_hi; then
12607 ac_lo= ac_hi=
12608 break
12609 fi
12610 ac_mid=`expr 2 '*' $ac_mid`
12611fi
12612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12613 done
12614else
12615 echo "$as_me: failed program was:" >&5
12616sed 's/^/| /' conftest.$ac_ext >&5
12617
12618ac_lo= ac_hi=
12619fi
12620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12621fi
12622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12623# Binary search between lo and hi bounds.
12624while test "x$ac_lo" != "x$ac_hi"; do
12625 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12626 cat >conftest.$ac_ext <<_ACEOF
12627/* confdefs.h. */
12628_ACEOF
12629cat confdefs.h >>conftest.$ac_ext
12630cat >>conftest.$ac_ext <<_ACEOF
12631/* end confdefs.h. */
12632$ac_includes_default
12633int
12634main ()
12635{
12636static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12637test_array [0] = 0
12638
12639 ;
12640 return 0;
12641}
12642_ACEOF
12643rm -f conftest.$ac_objext
12644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12645 (eval $ac_compile) 2>conftest.er1
12646 ac_status=$?
12647 grep -v '^ *+' conftest.er1 >conftest.err
12648 rm -f conftest.er1
12649 cat conftest.err >&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); } &&
12652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12654 (eval $ac_try) 2>&5
12655 ac_status=$?
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); }; } &&
12658 { ac_try='test -s conftest.$ac_objext'
12659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12660 (eval $ac_try) 2>&5
12661 ac_status=$?
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); }; }; then
12664 ac_hi=$ac_mid
12665else
12666 echo "$as_me: failed program was:" >&5
12667sed 's/^/| /' conftest.$ac_ext >&5
12668
12669ac_lo=`expr '(' $ac_mid ')' + 1`
12670fi
12671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12672done
12673case $ac_lo in
12674?*) ac_cv_sizeof_long=$ac_lo;;
12675'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12676See \`config.log' for more details." >&5
12677echo "$as_me: error: cannot compute sizeof (long), 77
12678See \`config.log' for more details." >&2;}
12679 { (exit 1); exit 1; }; } ;;
12680esac
12681else
12682 if test "$cross_compiling" = yes; then
12683 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12684See \`config.log' for more details." >&5
12685echo "$as_me: error: cannot run test program while cross compiling
12686See \`config.log' for more details." >&2;}
12687 { (exit 1); exit 1; }; }
12688else
12689 cat >conftest.$ac_ext <<_ACEOF
12690/* confdefs.h. */
12691_ACEOF
12692cat confdefs.h >>conftest.$ac_ext
12693cat >>conftest.$ac_ext <<_ACEOF
12694/* end confdefs.h. */
12695$ac_includes_default
12696long longval () { return (long) (sizeof (long)); }
12697unsigned long ulongval () { return (long) (sizeof (long)); }
7603#include <sys/types.h> 12698#include <stdio.h>
7604#if STDC_HEADERS
7605#include <stdlib.h> 12699#include <stdlib.h>
7606#include <stddef.h> 12700int
7607#endif 12701main ()
7608EOF 12702{
7609if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12703
7610 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 12704 FILE *f = fopen ("conftest.val", "w");
7611 rm -rf conftest* 12705 if (! f)
7612 ac_cv_type_pid_t=yes 12706 exit (1);
12707 if (((long) (sizeof (long))) < 0)
12708 {
12709 long i = longval ();
12710 if (i != ((long) (sizeof (long))))
12711 exit (1);
12712 fprintf (f, "%ld\n", i);
12713 }
7613else 12714 else
7614 rm -rf conftest* 12715 {
7615 ac_cv_type_pid_t=no 12716 unsigned long i = ulongval ();
12717 if (i != ((long) (sizeof (long))))
12718 exit (1);
12719 fprintf (f, "%lu\n", i);
12720 }
12721 exit (ferror (f) || fclose (f) != 0);
12722
12723 ;
12724 return 0;
12725}
12726_ACEOF
12727rm -f conftest$ac_exeext
12728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12729 (eval $ac_link) 2>&5
12730 ac_status=$?
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12734 (eval $ac_try) 2>&5
12735 ac_status=$?
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); }; }; then
12738 ac_cv_sizeof_long=`cat conftest.val`
12739else
12740 echo "$as_me: program exited with status $ac_status" >&5
12741echo "$as_me: failed program was:" >&5
12742sed 's/^/| /' conftest.$ac_ext >&5
12743
12744( exit $ac_status )
12745{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12746See \`config.log' for more details." >&5
12747echo "$as_me: error: cannot compute sizeof (long), 77
12748See \`config.log' for more details." >&2;}
12749 { (exit 1); exit 1; }; }
7616fi 12750fi
12751rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12752fi
12753fi
7617rm -f conftest* 12754rm -f conftest.val
7618 12755else
12756 ac_cv_sizeof_long=0
7619fi 12757fi
7620echo "$ac_t""$ac_cv_type_pid_t" 1>&6 12758fi
7621if test $ac_cv_type_pid_t = no; then 12759echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12760echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7622 cat >> confdefs.h <<\EOF 12761cat >>confdefs.h <<_ACEOF
7623#define pid_t int 12762#define SIZEOF_LONG $ac_cv_sizeof_long
7624EOF 12763_ACEOF
7625 12764
7626fi
7627 12765
7628echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 12766echo "$as_me:$LINENO: checking for long long" >&5
7629echo "configure:7630: checking for uid_t in sys/types.h" >&5 12767echo $ECHO_N "checking for long long... $ECHO_C" >&6
7630if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then 12768if test "${ac_cv_type_long_long+set}" = set; then
7631 echo $ac_n "(cached) $ac_c" 1>&6 12769 echo $ECHO_N "(cached) $ECHO_C" >&6
7632else 12770else
7633 cat > conftest.$ac_ext <<EOF 12771 cat >conftest.$ac_ext <<_ACEOF
7634#line 7635 "configure" 12772/* confdefs.h. */
7635#include "confdefs.h" 12773_ACEOF
7636#include <sys/types.h> 12774cat confdefs.h >>conftest.$ac_ext
7637EOF 12775cat >>conftest.$ac_ext <<_ACEOF
7638if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12776/* end confdefs.h. */
7639 egrep "uid_t" >/dev/null 2>&1; then 12777$ac_includes_default
12778int
12779main ()
12780{
12781if ((long long *) 0)
12782 return 0;
12783if (sizeof (long long))
12784 return 0;
12785 ;
12786 return 0;
12787}
12788_ACEOF
12789rm -f conftest.$ac_objext
12790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12791 (eval $ac_compile) 2>conftest.er1
12792 ac_status=$?
12793 grep -v '^ *+' conftest.er1 >conftest.err
7640 rm -rf conftest* 12794 rm -f conftest.er1
12795 cat conftest.err >&5
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); } &&
12798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12800 (eval $ac_try) 2>&5
12801 ac_status=$?
12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803 (exit $ac_status); }; } &&
12804 { ac_try='test -s conftest.$ac_objext'
12805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12806 (eval $ac_try) 2>&5
12807 ac_status=$?
12808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809 (exit $ac_status); }; }; then
7641 ac_cv_type_uid_t=yes 12810 ac_cv_type_long_long=yes
7642else 12811else
7643 rm -rf conftest* 12812 echo "$as_me: failed program was:" >&5
7644 ac_cv_type_uid_t=no 12813sed 's/^/| /' conftest.$ac_ext >&5
7645fi
7646rm -f conftest*
7647 12814
12815ac_cv_type_long_long=no
7648fi 12816fi
7649 12817rm -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 12818fi
12819echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12820echo "${ECHO_T}$ac_cv_type_long_long" >&6
7661 12821
7662 12822echo "$as_me:$LINENO: checking size of long long" >&5
7663 12823echo $ECHO_N "checking size of long long... $ECHO_C" >&6
7664echo $ac_n "checking size of char""... $ac_c" 1>&6 12824if 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 12825 echo $ECHO_N "(cached) $ECHO_C" >&6
7668else 12826else
12827 if test "$ac_cv_type_long_long" = yes; then
12828 # The cast to unsigned long works around a bug in the HP C Compiler
12829 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12830 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12831 # This bug is HP SR number 8606223364.
7669 if test "$cross_compiling" = yes; then 12832 if test "$cross_compiling" = yes; then
7670 ac_cv_sizeof_char=1 12833 # Depending upon the size, compute the lo and hi bounds.
12834cat >conftest.$ac_ext <<_ACEOF
12835/* confdefs.h. */
12836_ACEOF
12837cat confdefs.h >>conftest.$ac_ext
12838cat >>conftest.$ac_ext <<_ACEOF
12839/* end confdefs.h. */
12840$ac_includes_default
12841int
12842main ()
12843{
12844static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12845test_array [0] = 0
12846
12847 ;
12848 return 0;
12849}
12850_ACEOF
12851rm -f conftest.$ac_objext
12852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12853 (eval $ac_compile) 2>conftest.er1
12854 ac_status=$?
12855 grep -v '^ *+' conftest.er1 >conftest.err
12856 rm -f conftest.er1
12857 cat conftest.err >&5
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); } &&
12860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12862 (eval $ac_try) 2>&5
12863 ac_status=$?
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); }; } &&
12866 { ac_try='test -s conftest.$ac_objext'
12867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12868 (eval $ac_try) 2>&5
12869 ac_status=$?
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); }; }; then
12872 ac_lo=0 ac_mid=0
12873 while :; do
12874 cat >conftest.$ac_ext <<_ACEOF
12875/* confdefs.h. */
12876_ACEOF
12877cat confdefs.h >>conftest.$ac_ext
12878cat >>conftest.$ac_ext <<_ACEOF
12879/* end confdefs.h. */
12880$ac_includes_default
12881int
12882main ()
12883{
12884static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12885test_array [0] = 0
12886
12887 ;
12888 return 0;
12889}
12890_ACEOF
12891rm -f conftest.$ac_objext
12892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12893 (eval $ac_compile) 2>conftest.er1
12894 ac_status=$?
12895 grep -v '^ *+' conftest.er1 >conftest.err
12896 rm -f conftest.er1
12897 cat conftest.err >&5
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); } &&
12900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12902 (eval $ac_try) 2>&5
12903 ac_status=$?
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); }; } &&
12906 { ac_try='test -s conftest.$ac_objext'
12907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12908 (eval $ac_try) 2>&5
12909 ac_status=$?
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); }; }; then
12912 ac_hi=$ac_mid; break
7671else 12913else
12914 echo "$as_me: failed program was:" >&5
12915sed 's/^/| /' conftest.$ac_ext >&5
12916
12917ac_lo=`expr $ac_mid + 1`
12918 if test $ac_lo -le $ac_mid; then
12919 ac_lo= ac_hi=
12920 break
12921 fi
12922 ac_mid=`expr 2 '*' $ac_mid + 1`
12923fi
12924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12925 done
12926else
12927 echo "$as_me: failed program was:" >&5
12928sed 's/^/| /' conftest.$ac_ext >&5
12929
12930cat >conftest.$ac_ext <<_ACEOF
12931/* confdefs.h. */
12932_ACEOF
12933cat confdefs.h >>conftest.$ac_ext
12934cat >>conftest.$ac_ext <<_ACEOF
12935/* end confdefs.h. */
12936$ac_includes_default
12937int
12938main ()
12939{
12940static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12941test_array [0] = 0
12942
12943 ;
12944 return 0;
12945}
12946_ACEOF
12947rm -f conftest.$ac_objext
12948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12949 (eval $ac_compile) 2>conftest.er1
12950 ac_status=$?
12951 grep -v '^ *+' conftest.er1 >conftest.err
12952 rm -f conftest.er1
12953 cat conftest.err >&5
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); } &&
12956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12958 (eval $ac_try) 2>&5
12959 ac_status=$?
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); }; } &&
12962 { ac_try='test -s conftest.$ac_objext'
12963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12964 (eval $ac_try) 2>&5
12965 ac_status=$?
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); }; }; then
12968 ac_hi=-1 ac_mid=-1
12969 while :; do
12970 cat >conftest.$ac_ext <<_ACEOF
12971/* confdefs.h. */
12972_ACEOF
12973cat confdefs.h >>conftest.$ac_ext
12974cat >>conftest.$ac_ext <<_ACEOF
12975/* end confdefs.h. */
12976$ac_includes_default
12977int
12978main ()
12979{
12980static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12981test_array [0] = 0
12982
12983 ;
12984 return 0;
12985}
12986_ACEOF
12987rm -f conftest.$ac_objext
12988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12989 (eval $ac_compile) 2>conftest.er1
12990 ac_status=$?
12991 grep -v '^ *+' conftest.er1 >conftest.err
12992 rm -f conftest.er1
12993 cat conftest.err >&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); } &&
12996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12998 (eval $ac_try) 2>&5
12999 ac_status=$?
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); }; } &&
13002 { ac_try='test -s conftest.$ac_objext'
13003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13004 (eval $ac_try) 2>&5
13005 ac_status=$?
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); }; }; then
13008 ac_lo=$ac_mid; break
13009else
13010 echo "$as_me: failed program was:" >&5
13011sed 's/^/| /' conftest.$ac_ext >&5
13012
13013ac_hi=`expr '(' $ac_mid ')' - 1`
13014 if test $ac_mid -le $ac_hi; then
13015 ac_lo= ac_hi=
13016 break
13017 fi
13018 ac_mid=`expr 2 '*' $ac_mid`
13019fi
13020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13021 done
13022else
13023 echo "$as_me: failed program was:" >&5
13024sed 's/^/| /' conftest.$ac_ext >&5
13025
13026ac_lo= ac_hi=
13027fi
13028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13029fi
13030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13031# Binary search between lo and hi bounds.
13032while test "x$ac_lo" != "x$ac_hi"; do
13033 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7672 cat > conftest.$ac_ext <<EOF 13034 cat >conftest.$ac_ext <<_ACEOF
7673#line 7674 "configure" 13035/* confdefs.h. */
7674#include "confdefs.h" 13036_ACEOF
13037cat confdefs.h >>conftest.$ac_ext
13038cat >>conftest.$ac_ext <<_ACEOF
13039/* end confdefs.h. */
13040$ac_includes_default
13041int
13042main ()
13043{
13044static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
13045test_array [0] = 0
13046
13047 ;
13048 return 0;
13049}
13050_ACEOF
13051rm -f conftest.$ac_objext
13052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13053 (eval $ac_compile) 2>conftest.er1
13054 ac_status=$?
13055 grep -v '^ *+' conftest.er1 >conftest.err
13056 rm -f conftest.er1
13057 cat conftest.err >&5
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); } &&
13060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13062 (eval $ac_try) 2>&5
13063 ac_status=$?
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); }; } &&
13066 { ac_try='test -s conftest.$ac_objext'
13067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13068 (eval $ac_try) 2>&5
13069 ac_status=$?
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); }; }; then
13072 ac_hi=$ac_mid
13073else
13074 echo "$as_me: failed program was:" >&5
13075sed 's/^/| /' conftest.$ac_ext >&5
13076
13077ac_lo=`expr '(' $ac_mid ')' + 1`
13078fi
13079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13080done
13081case $ac_lo in
13082?*) ac_cv_sizeof_long_long=$ac_lo;;
13083'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13084See \`config.log' for more details." >&5
13085echo "$as_me: error: cannot compute sizeof (long long), 77
13086See \`config.log' for more details." >&2;}
13087 { (exit 1); exit 1; }; } ;;
13088esac
13089else
13090 if test "$cross_compiling" = yes; then
13091 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13092See \`config.log' for more details." >&5
13093echo "$as_me: error: cannot run test program while cross compiling
13094See \`config.log' for more details." >&2;}
13095 { (exit 1); exit 1; }; }
13096else
13097 cat >conftest.$ac_ext <<_ACEOF
13098/* confdefs.h. */
13099_ACEOF
13100cat confdefs.h >>conftest.$ac_ext
13101cat >>conftest.$ac_ext <<_ACEOF
13102/* end confdefs.h. */
13103$ac_includes_default
13104long longval () { return (long) (sizeof (long long)); }
13105unsigned long ulongval () { return (long) (sizeof (long long)); }
7675#include <stdio.h> 13106#include <stdio.h>
7676#include <sys/types.h> 13107#include <stdlib.h>
13108int
7677main() 13109main ()
7678{ 13110{
13111
7679 FILE *f=fopen("conftestval", "w"); 13112 FILE *f = fopen ("conftest.val", "w");
7680 if (!f) exit(1); 13113 if (! f)
7681 fprintf(f, "%d\n", sizeof(char));
7682 exit(0); 13114 exit (1);
13115 if (((long) (sizeof (long long))) < 0)
13116 {
13117 long i = longval ();
13118 if (i != ((long) (sizeof (long long))))
13119 exit (1);
13120 fprintf (f, "%ld\n", i);
13121 }
13122 else
13123 {
13124 unsigned long i = ulongval ();
13125 if (i != ((long) (sizeof (long long))))
13126 exit (1);
13127 fprintf (f, "%lu\n", i);
13128 }
13129 exit (ferror (f) || fclose (f) != 0);
13130
13131 ;
13132 return 0;
7683} 13133}
7684EOF 13134_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 13135rm -f conftest$ac_exeext
7686then 13136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13137 (eval $ac_link) 2>&5
13138 ac_status=$?
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13142 (eval $ac_try) 2>&5
13143 ac_status=$?
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); }; }; then
7687 ac_cv_sizeof_char=`cat conftestval` 13146 ac_cv_sizeof_long_long=`cat conftest.val`
7688else 13147else
13148 echo "$as_me: program exited with status $ac_status" >&5
7689 echo "configure: failed program was:" >&5 13149echo "$as_me: failed program was:" >&5
7690 cat conftest.$ac_ext >&5 13150sed 's/^/| /' conftest.$ac_ext >&5
7691 rm -fr conftest* 13151
7692 ac_cv_sizeof_char=0 13152( exit $ac_status )
13153{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13154See \`config.log' for more details." >&5
13155echo "$as_me: error: cannot compute sizeof (long long), 77
13156See \`config.log' for more details." >&2;}
13157 { (exit 1); exit 1; }; }
7693fi 13158fi
13159rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13160fi
13161fi
7694rm -fr conftest* 13162rm -f conftest.val
13163else
13164 ac_cv_sizeof_long_long=0
7695fi 13165fi
7696
7697fi 13166fi
7698echo "$ac_t""$ac_cv_sizeof_char" 1>&6 13167echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13168echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
7699cat >> confdefs.h <<EOF 13169cat >>confdefs.h <<_ACEOF
7700#define SIZEOF_CHAR $ac_cv_sizeof_char 13170#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7701EOF 13171_ACEOF
7702 13172
7703 13173
7704echo $ac_n "checking size of short""... $ac_c" 1>&6 13174echo "$as_me:$LINENO: checking for int *" >&5
7705echo "configure:7706: checking size of short" >&5 13175echo $ECHO_N "checking for int *... $ECHO_C" >&6
7706if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then 13176if test "${ac_cv_type_int_p+set}" = set; then
7707 echo $ac_n "(cached) $ac_c" 1>&6 13177 echo $ECHO_N "(cached) $ECHO_C" >&6
7708else 13178else
13179 cat >conftest.$ac_ext <<_ACEOF
13180/* confdefs.h. */
13181_ACEOF
13182cat confdefs.h >>conftest.$ac_ext
13183cat >>conftest.$ac_ext <<_ACEOF
13184/* end confdefs.h. */
13185$ac_includes_default
13186int
13187main ()
13188{
13189if ((int * *) 0)
13190 return 0;
13191if (sizeof (int *))
13192 return 0;
13193 ;
13194 return 0;
13195}
13196_ACEOF
13197rm -f conftest.$ac_objext
13198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13199 (eval $ac_compile) 2>conftest.er1
13200 ac_status=$?
13201 grep -v '^ *+' conftest.er1 >conftest.err
13202 rm -f conftest.er1
13203 cat conftest.err >&5
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); } &&
13206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13208 (eval $ac_try) 2>&5
13209 ac_status=$?
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); }; } &&
13212 { ac_try='test -s conftest.$ac_objext'
13213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13214 (eval $ac_try) 2>&5
13215 ac_status=$?
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); }; }; then
13218 ac_cv_type_int_p=yes
13219else
13220 echo "$as_me: failed program was:" >&5
13221sed 's/^/| /' conftest.$ac_ext >&5
13222
13223ac_cv_type_int_p=no
13224fi
13225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13226fi
13227echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
13228echo "${ECHO_T}$ac_cv_type_int_p" >&6
13229
13230echo "$as_me:$LINENO: checking size of int *" >&5
13231echo $ECHO_N "checking size of int *... $ECHO_C" >&6
13232if test "${ac_cv_sizeof_int_p+set}" = set; then
13233 echo $ECHO_N "(cached) $ECHO_C" >&6
13234else
13235 if test "$ac_cv_type_int_p" = yes; then
13236 # The cast to unsigned long works around a bug in the HP C Compiler
13237 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13238 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13239 # This bug is HP SR number 8606223364.
7709 if test "$cross_compiling" = yes; then 13240 if test "$cross_compiling" = yes; then
7710 ac_cv_sizeof_short=2 13241 # Depending upon the size, compute the lo and hi bounds.
13242cat >conftest.$ac_ext <<_ACEOF
13243/* confdefs.h. */
13244_ACEOF
13245cat confdefs.h >>conftest.$ac_ext
13246cat >>conftest.$ac_ext <<_ACEOF
13247/* end confdefs.h. */
13248$ac_includes_default
13249int
13250main ()
13251{
13252static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
13253test_array [0] = 0
13254
13255 ;
13256 return 0;
13257}
13258_ACEOF
13259rm -f conftest.$ac_objext
13260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13261 (eval $ac_compile) 2>conftest.er1
13262 ac_status=$?
13263 grep -v '^ *+' conftest.er1 >conftest.err
13264 rm -f conftest.er1
13265 cat conftest.err >&5
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); } &&
13268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13270 (eval $ac_try) 2>&5
13271 ac_status=$?
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); }; } &&
13274 { ac_try='test -s conftest.$ac_objext'
13275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13276 (eval $ac_try) 2>&5
13277 ac_status=$?
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); }; }; then
13280 ac_lo=0 ac_mid=0
13281 while :; do
13282 cat >conftest.$ac_ext <<_ACEOF
13283/* confdefs.h. */
13284_ACEOF
13285cat confdefs.h >>conftest.$ac_ext
13286cat >>conftest.$ac_ext <<_ACEOF
13287/* end confdefs.h. */
13288$ac_includes_default
13289int
13290main ()
13291{
13292static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13293test_array [0] = 0
13294
13295 ;
13296 return 0;
13297}
13298_ACEOF
13299rm -f conftest.$ac_objext
13300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13301 (eval $ac_compile) 2>conftest.er1
13302 ac_status=$?
13303 grep -v '^ *+' conftest.er1 >conftest.err
13304 rm -f conftest.er1
13305 cat conftest.err >&5
13306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307 (exit $ac_status); } &&
13308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13310 (eval $ac_try) 2>&5
13311 ac_status=$?
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); }; } &&
13314 { ac_try='test -s conftest.$ac_objext'
13315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13316 (eval $ac_try) 2>&5
13317 ac_status=$?
13318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); }; }; then
13320 ac_hi=$ac_mid; break
7711else 13321else
13322 echo "$as_me: failed program was:" >&5
13323sed 's/^/| /' conftest.$ac_ext >&5
13324
13325ac_lo=`expr $ac_mid + 1`
13326 if test $ac_lo -le $ac_mid; then
13327 ac_lo= ac_hi=
13328 break
13329 fi
13330 ac_mid=`expr 2 '*' $ac_mid + 1`
13331fi
13332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13333 done
13334else
13335 echo "$as_me: failed program was:" >&5
13336sed 's/^/| /' conftest.$ac_ext >&5
13337
13338cat >conftest.$ac_ext <<_ACEOF
13339/* confdefs.h. */
13340_ACEOF
13341cat confdefs.h >>conftest.$ac_ext
13342cat >>conftest.$ac_ext <<_ACEOF
13343/* end confdefs.h. */
13344$ac_includes_default
13345int
13346main ()
13347{
13348static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
13349test_array [0] = 0
13350
13351 ;
13352 return 0;
13353}
13354_ACEOF
13355rm -f conftest.$ac_objext
13356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13357 (eval $ac_compile) 2>conftest.er1
13358 ac_status=$?
13359 grep -v '^ *+' conftest.er1 >conftest.err
13360 rm -f conftest.er1
13361 cat conftest.err >&5
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); } &&
13364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13366 (eval $ac_try) 2>&5
13367 ac_status=$?
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); }; } &&
13370 { ac_try='test -s conftest.$ac_objext'
13371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13372 (eval $ac_try) 2>&5
13373 ac_status=$?
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); }; }; then
13376 ac_hi=-1 ac_mid=-1
13377 while :; do
13378 cat >conftest.$ac_ext <<_ACEOF
13379/* confdefs.h. */
13380_ACEOF
13381cat confdefs.h >>conftest.$ac_ext
13382cat >>conftest.$ac_ext <<_ACEOF
13383/* end confdefs.h. */
13384$ac_includes_default
13385int
13386main ()
13387{
13388static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
13389test_array [0] = 0
13390
13391 ;
13392 return 0;
13393}
13394_ACEOF
13395rm -f conftest.$ac_objext
13396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13397 (eval $ac_compile) 2>conftest.er1
13398 ac_status=$?
13399 grep -v '^ *+' conftest.er1 >conftest.err
13400 rm -f conftest.er1
13401 cat conftest.err >&5
13402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403 (exit $ac_status); } &&
13404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13406 (eval $ac_try) 2>&5
13407 ac_status=$?
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); }; } &&
13410 { ac_try='test -s conftest.$ac_objext'
13411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13412 (eval $ac_try) 2>&5
13413 ac_status=$?
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); }; }; then
13416 ac_lo=$ac_mid; break
13417else
13418 echo "$as_me: failed program was:" >&5
13419sed 's/^/| /' conftest.$ac_ext >&5
13420
13421ac_hi=`expr '(' $ac_mid ')' - 1`
13422 if test $ac_mid -le $ac_hi; then
13423 ac_lo= ac_hi=
13424 break
13425 fi
13426 ac_mid=`expr 2 '*' $ac_mid`
13427fi
13428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13429 done
13430else
13431 echo "$as_me: failed program was:" >&5
13432sed 's/^/| /' conftest.$ac_ext >&5
13433
13434ac_lo= ac_hi=
13435fi
13436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13437fi
13438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13439# Binary search between lo and hi bounds.
13440while test "x$ac_lo" != "x$ac_hi"; do
13441 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7712 cat > conftest.$ac_ext <<EOF 13442 cat >conftest.$ac_ext <<_ACEOF
7713#line 7714 "configure" 13443/* confdefs.h. */
7714#include "confdefs.h" 13444_ACEOF
13445cat confdefs.h >>conftest.$ac_ext
13446cat >>conftest.$ac_ext <<_ACEOF
13447/* end confdefs.h. */
13448$ac_includes_default
13449int
13450main ()
13451{
13452static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13453test_array [0] = 0
13454
13455 ;
13456 return 0;
13457}
13458_ACEOF
13459rm -f conftest.$ac_objext
13460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13461 (eval $ac_compile) 2>conftest.er1
13462 ac_status=$?
13463 grep -v '^ *+' conftest.er1 >conftest.err
13464 rm -f conftest.er1
13465 cat conftest.err >&5
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); } &&
13468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13470 (eval $ac_try) 2>&5
13471 ac_status=$?
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); }; } &&
13474 { ac_try='test -s conftest.$ac_objext'
13475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13476 (eval $ac_try) 2>&5
13477 ac_status=$?
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); }; }; then
13480 ac_hi=$ac_mid
13481else
13482 echo "$as_me: failed program was:" >&5
13483sed 's/^/| /' conftest.$ac_ext >&5
13484
13485ac_lo=`expr '(' $ac_mid ')' + 1`
13486fi
13487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13488done
13489case $ac_lo in
13490?*) ac_cv_sizeof_int_p=$ac_lo;;
13491'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
13492See \`config.log' for more details." >&5
13493echo "$as_me: error: cannot compute sizeof (int *), 77
13494See \`config.log' for more details." >&2;}
13495 { (exit 1); exit 1; }; } ;;
13496esac
13497else
13498 if test "$cross_compiling" = yes; then
13499 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13500See \`config.log' for more details." >&5
13501echo "$as_me: error: cannot run test program while cross compiling
13502See \`config.log' for more details." >&2;}
13503 { (exit 1); exit 1; }; }
13504else
13505 cat >conftest.$ac_ext <<_ACEOF
13506/* confdefs.h. */
13507_ACEOF
13508cat confdefs.h >>conftest.$ac_ext
13509cat >>conftest.$ac_ext <<_ACEOF
13510/* end confdefs.h. */
13511$ac_includes_default
13512long longval () { return (long) (sizeof (int *)); }
13513unsigned long ulongval () { return (long) (sizeof (int *)); }
7715#include <stdio.h> 13514#include <stdio.h>
7716#include <sys/types.h> 13515#include <stdlib.h>
13516int
7717main() 13517main ()
7718{ 13518{
13519
7719 FILE *f=fopen("conftestval", "w"); 13520 FILE *f = fopen ("conftest.val", "w");
7720 if (!f) exit(1); 13521 if (! f)
7721 fprintf(f, "%d\n", sizeof(short));
7722 exit(0); 13522 exit (1);
13523 if (((long) (sizeof (int *))) < 0)
13524 {
13525 long i = longval ();
13526 if (i != ((long) (sizeof (int *))))
13527 exit (1);
13528 fprintf (f, "%ld\n", i);
13529 }
13530 else
13531 {
13532 unsigned long i = ulongval ();
13533 if (i != ((long) (sizeof (int *))))
13534 exit (1);
13535 fprintf (f, "%lu\n", i);
13536 }
13537 exit (ferror (f) || fclose (f) != 0);
13538
13539 ;
13540 return 0;
7723} 13541}
7724EOF 13542_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 13543rm -f conftest$ac_exeext
7726then 13544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13545 (eval $ac_link) 2>&5
13546 ac_status=$?
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550 (eval $ac_try) 2>&5
13551 ac_status=$?
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); }; }; then
7727 ac_cv_sizeof_short=`cat conftestval` 13554 ac_cv_sizeof_int_p=`cat conftest.val`
7728else 13555else
13556 echo "$as_me: program exited with status $ac_status" >&5
7729 echo "configure: failed program was:" >&5 13557echo "$as_me: failed program was:" >&5
7730 cat conftest.$ac_ext >&5 13558sed 's/^/| /' conftest.$ac_ext >&5
7731 rm -fr conftest* 13559
7732 ac_cv_sizeof_short=0 13560( exit $ac_status )
13561{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
13562See \`config.log' for more details." >&5
13563echo "$as_me: error: cannot compute sizeof (int *), 77
13564See \`config.log' for more details." >&2;}
13565 { (exit 1); exit 1; }; }
7733fi 13566fi
13567rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13568fi
13569fi
7734rm -fr conftest* 13570rm -f conftest.val
13571else
13572 ac_cv_sizeof_int_p=0
7735fi 13573fi
7736
7737fi 13574fi
7738echo "$ac_t""$ac_cv_sizeof_short" 1>&6 13575echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
13576echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
7739cat >> confdefs.h <<EOF 13577cat >>confdefs.h <<_ACEOF
7740#define SIZEOF_SHORT $ac_cv_sizeof_short 13578#define SIZEOF_INT_P $ac_cv_sizeof_int_p
7741EOF 13579_ACEOF
7742 13580
7743 13581
7744echo $ac_n "checking size of int""... $ac_c" 1>&6 13582
7745echo "configure:7746: checking size of int" >&5 13583
7746if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then 13584echo "$as_me:$LINENO: checking for int16_t" >&5
13585echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
13586if test "${rxvt_cv_int16_t+set}" = set; then
7747 echo $ac_n "(cached) $ac_c" 1>&6 13587 echo $ECHO_N "(cached) $ECHO_C" >&6
7748else 13588else
7749 if test "$cross_compiling" = yes; then
7750 ac_cv_sizeof_int=4
7751else
7752 cat > conftest.$ac_ext <<EOF 13589 cat >conftest.$ac_ext <<_ACEOF
7753#line 7754 "configure" 13590/* confdefs.h. */
7754#include "confdefs.h" 13591_ACEOF
13592cat confdefs.h >>conftest.$ac_ext
13593cat >>conftest.$ac_ext <<_ACEOF
13594/* end confdefs.h. */
7755#include <stdio.h> 13595#include <stdint.h>
7756#include <sys/types.h> 13596int
7757main() 13597main ()
7758{ 13598{
7759 FILE *f=fopen("conftestval", "w"); 13599int16_t dummy;
7760 if (!f) exit(1); 13600 ;
7761 fprintf(f, "%d\n", sizeof(int)); 13601 return 0;
7762 exit(0);
7763} 13602}
7764EOF 13603_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 13604rm -f conftest.$ac_objext
7766then 13605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7767 ac_cv_sizeof_int=`cat conftestval` 13606 (eval $ac_compile) 2>conftest.er1
7768else 13607 ac_status=$?
7769 echo "configure: failed program was:" >&5 13608 grep -v '^ *+' conftest.er1 >conftest.err
7770 cat conftest.$ac_ext >&5
7771 rm -fr conftest* 13609 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 13610 cat conftest.err >&5
7811 rm -fr conftest* 13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 ac_cv_sizeof_long=0 13612 (exit $ac_status); } &&
7813fi 13613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7814rm -fr conftest* 13614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7815fi 13615 (eval $ac_try) 2>&5
7816 13616 ac_status=$?
7817fi 13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818echo "$ac_t""$ac_cv_sizeof_long" 1>&6 13618 (exit $ac_status); }; } &&
7819cat >> confdefs.h <<EOF 13619 { ac_try='test -s conftest.$ac_objext'
7820#define SIZEOF_LONG $ac_cv_sizeof_long 13620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7821EOF 13621 (eval $ac_try) 2>&5
7822 13622 ac_status=$?
7823 13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824echo $ac_n "checking size of long long""... $ac_c" 1>&6 13624 (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 13625 rxvt_cv_int16_t=yes
7922else 13626else
7923 echo "configure: failed program was:" >&5 13627 echo "$as_me: failed program was:" >&5
7924 cat conftest.$ac_ext >&5 13628sed 's/^/| /' conftest.$ac_ext >&5
7925 rm -rf conftest* 13629
7926 if test $ac_cv_sizeof_char -ge 2; then 13630if test $ac_cv_sizeof_char -ge 2; then
7927 rxvt_cv_int16_t=" char" 13631 rxvt_cv_int16_t=" char"
7928else 13632else
7929 if test $ac_cv_sizeof_short -ge 2; then 13633 if test $ac_cv_sizeof_short -ge 2; then
7930 rxvt_cv_int16_t=" short" 13634 rxvt_cv_int16_t=" short"
7931 else 13635 else
7943 fi 13647 fi
7944 fi 13648 fi
7945 fi 13649 fi
7946fi 13650fi
7947fi 13651fi
7948rm -f conftest* 13652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7949fi 13653fi
7950 13654echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
7951echo "$ac_t""$rxvt_cv_int16_t" 1>&6 13655echo "${ECHO_T}$rxvt_cv_int16_t" >&6
7952if test x"$rxvt_cv_int16_t" != xyes; then 13656if test x"$rxvt_cv_int16_t" != xyes; then
7953 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;" 13657 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
7954else 13658else
7955 if test x"" = x; then 13659 if test x"" = x; then
7956 rxvt_int16_typedef="/* typedef short int16_t; */" 13660 rxvt_int16_typedef="/* typedef short int16_t; */"
7957 else 13661 else
7958 rxvt_int16_typedef="/* typedef short int16_t; */" 13662 rxvt_int16_typedef="/* typedef short int16_t; */"
7959 fi 13663 fi
7960fi 13664fi
7961 13665
13666echo "$as_me:$LINENO: checking for uint16_t" >&5
7962echo $ac_n "checking for uint16_t""... $ac_c" 1>&6 13667echo $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 13668if test "${rxvt_cv_uint16_t+set}" = set; then
7965 echo $ac_n "(cached) $ac_c" 1>&6 13669 echo $ECHO_N "(cached) $ECHO_C" >&6
7966else 13670else
7967 cat > conftest.$ac_ext <<EOF 13671 cat >conftest.$ac_ext <<_ACEOF
7968#line 7969 "configure" 13672/* confdefs.h. */
7969#include "confdefs.h" 13673_ACEOF
13674cat confdefs.h >>conftest.$ac_ext
13675cat >>conftest.$ac_ext <<_ACEOF
13676/* end confdefs.h. */
7970#include <stdint.h> 13677#include <stdint.h>
7971int main() { 13678int
13679main ()
13680{
7972uint16_t dummy; 13681uint16_t dummy;
13682 ;
7973; return 0; } 13683 return 0;
7974EOF 13684}
7975if { (eval echo configure:7976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 13685_ACEOF
13686rm -f conftest.$ac_objext
13687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13688 (eval $ac_compile) 2>conftest.er1
13689 ac_status=$?
13690 grep -v '^ *+' conftest.er1 >conftest.err
7976 rm -rf conftest* 13691 rm -f conftest.er1
13692 cat conftest.err >&5
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); } &&
13695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13697 (eval $ac_try) 2>&5
13698 ac_status=$?
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); }; } &&
13701 { ac_try='test -s conftest.$ac_objext'
13702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13703 (eval $ac_try) 2>&5
13704 ac_status=$?
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); }; }; then
7977 rxvt_cv_uint16_t=yes 13707 rxvt_cv_uint16_t=yes
7978else 13708else
7979 echo "configure: failed program was:" >&5 13709 echo "$as_me: failed program was:" >&5
7980 cat conftest.$ac_ext >&5 13710sed 's/^/| /' conftest.$ac_ext >&5
7981 rm -rf conftest* 13711
7982 if test $ac_cv_sizeof_char -ge 2; then 13712if test $ac_cv_sizeof_char -ge 2; then
7983 rxvt_cv_uint16_t="unsigned char" 13713 rxvt_cv_uint16_t="unsigned char"
7984else 13714else
7985 if test $ac_cv_sizeof_short -ge 2; then 13715 if test $ac_cv_sizeof_short -ge 2; then
7986 rxvt_cv_uint16_t="unsigned short" 13716 rxvt_cv_uint16_t="unsigned short"
7987 else 13717 else
7999 fi 13729 fi
8000 fi 13730 fi
8001 fi 13731 fi
8002fi 13732fi
8003fi 13733fi
8004rm -f conftest* 13734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8005fi 13735fi
8006 13736echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
8007echo "$ac_t""$rxvt_cv_uint16_t" 1>&6 13737echo "${ECHO_T}$rxvt_cv_uint16_t" >&6
8008if test x"$rxvt_cv_uint16_t" != xyes; then 13738if test x"$rxvt_cv_uint16_t" != xyes; then
8009 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;" 13739 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
8010else 13740else
8011 if test x"unsigned" = x; then 13741 if test x"unsigned" = x; then
8012 rxvt_uint16_typedef="/* typedef short uint16_t; */" 13742 rxvt_uint16_typedef="/* typedef short uint16_t; */"
8013 else 13743 else
8014 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */" 13744 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
8015 fi 13745 fi
8016fi 13746fi
8017 13747
13748echo "$as_me:$LINENO: checking for int32_t" >&5
8018echo $ac_n "checking for int32_t""... $ac_c" 1>&6 13749echo $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 13750if test "${rxvt_cv_int32_t+set}" = set; then
8021 echo $ac_n "(cached) $ac_c" 1>&6 13751 echo $ECHO_N "(cached) $ECHO_C" >&6
8022else 13752else
8023 cat > conftest.$ac_ext <<EOF 13753 cat >conftest.$ac_ext <<_ACEOF
8024#line 8025 "configure" 13754/* confdefs.h. */
8025#include "confdefs.h" 13755_ACEOF
13756cat confdefs.h >>conftest.$ac_ext
13757cat >>conftest.$ac_ext <<_ACEOF
13758/* end confdefs.h. */
8026#include <stdint.h> 13759#include <stdint.h>
8027int main() { 13760int
13761main ()
13762{
8028int32_t dummy; 13763int32_t dummy;
13764 ;
8029; return 0; } 13765 return 0;
8030EOF 13766}
8031if { (eval echo configure:8032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 13767_ACEOF
13768rm -f conftest.$ac_objext
13769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13770 (eval $ac_compile) 2>conftest.er1
13771 ac_status=$?
13772 grep -v '^ *+' conftest.er1 >conftest.err
8032 rm -rf conftest* 13773 rm -f conftest.er1
13774 cat conftest.err >&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); } &&
13777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13779 (eval $ac_try) 2>&5
13780 ac_status=$?
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); }; } &&
13783 { ac_try='test -s conftest.$ac_objext'
13784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13785 (eval $ac_try) 2>&5
13786 ac_status=$?
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); }; }; then
8033 rxvt_cv_int32_t=yes 13789 rxvt_cv_int32_t=yes
8034else 13790else
8035 echo "configure: failed program was:" >&5 13791 echo "$as_me: failed program was:" >&5
8036 cat conftest.$ac_ext >&5 13792sed 's/^/| /' conftest.$ac_ext >&5
8037 rm -rf conftest* 13793
8038 if test $ac_cv_sizeof_char -ge 4; then 13794if test $ac_cv_sizeof_char -ge 4; then
8039 rxvt_cv_int32_t=" char" 13795 rxvt_cv_int32_t=" char"
8040else 13796else
8041 if test $ac_cv_sizeof_short -ge 4; then 13797 if test $ac_cv_sizeof_short -ge 4; then
8042 rxvt_cv_int32_t=" short" 13798 rxvt_cv_int32_t=" short"
8043 else 13799 else
8055 fi 13811 fi
8056 fi 13812 fi
8057 fi 13813 fi
8058fi 13814fi
8059fi 13815fi
8060rm -f conftest* 13816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8061fi 13817fi
8062 13818echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
8063echo "$ac_t""$rxvt_cv_int32_t" 1>&6 13819echo "${ECHO_T}$rxvt_cv_int32_t" >&6
8064if test x"$rxvt_cv_int32_t" != xyes; then 13820if test x"$rxvt_cv_int32_t" != xyes; then
8065 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;" 13821 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
8066else 13822else
8067 if test x"" = x; then 13823 if test x"" = x; then
8068 rxvt_int32_typedef="/* typedef int int32_t; */" 13824 rxvt_int32_typedef="/* typedef int int32_t; */"
8069 else 13825 else
8070 rxvt_int32_typedef="/* typedef int int32_t; */" 13826 rxvt_int32_typedef="/* typedef int int32_t; */"
8071 fi 13827 fi
8072fi 13828fi
8073 13829
13830echo "$as_me:$LINENO: checking for uint32_t" >&5
8074echo $ac_n "checking for uint32_t""... $ac_c" 1>&6 13831echo $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 13832if test "${rxvt_cv_uint32_t+set}" = set; then
8077 echo $ac_n "(cached) $ac_c" 1>&6 13833 echo $ECHO_N "(cached) $ECHO_C" >&6
8078else 13834else
8079 cat > conftest.$ac_ext <<EOF 13835 cat >conftest.$ac_ext <<_ACEOF
8080#line 8081 "configure" 13836/* confdefs.h. */
8081#include "confdefs.h" 13837_ACEOF
13838cat confdefs.h >>conftest.$ac_ext
13839cat >>conftest.$ac_ext <<_ACEOF
13840/* end confdefs.h. */
8082#include <stdint.h> 13841#include <stdint.h>
8083int main() { 13842int
13843main ()
13844{
8084uint32_t dummy; 13845uint32_t dummy;
13846 ;
8085; return 0; } 13847 return 0;
8086EOF 13848}
8087if { (eval echo configure:8088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 13849_ACEOF
13850rm -f conftest.$ac_objext
13851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13852 (eval $ac_compile) 2>conftest.er1
13853 ac_status=$?
13854 grep -v '^ *+' conftest.er1 >conftest.err
8088 rm -rf conftest* 13855 rm -f conftest.er1
13856 cat conftest.err >&5
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); } &&
13859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13861 (eval $ac_try) 2>&5
13862 ac_status=$?
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); }; } &&
13865 { ac_try='test -s conftest.$ac_objext'
13866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13867 (eval $ac_try) 2>&5
13868 ac_status=$?
13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); }; }; then
8089 rxvt_cv_uint32_t=yes 13871 rxvt_cv_uint32_t=yes
8090else 13872else
8091 echo "configure: failed program was:" >&5 13873 echo "$as_me: failed program was:" >&5
8092 cat conftest.$ac_ext >&5 13874sed 's/^/| /' conftest.$ac_ext >&5
8093 rm -rf conftest* 13875
8094 if test $ac_cv_sizeof_char -ge 4; then 13876if test $ac_cv_sizeof_char -ge 4; then
8095 rxvt_cv_uint32_t="unsigned char" 13877 rxvt_cv_uint32_t="unsigned char"
8096else 13878else
8097 if test $ac_cv_sizeof_short -ge 4; then 13879 if test $ac_cv_sizeof_short -ge 4; then
8098 rxvt_cv_uint32_t="unsigned short" 13880 rxvt_cv_uint32_t="unsigned short"
8099 else 13881 else
8111 fi 13893 fi
8112 fi 13894 fi
8113 fi 13895 fi
8114fi 13896fi
8115fi 13897fi
8116rm -f conftest* 13898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8117fi 13899fi
8118 13900echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
8119echo "$ac_t""$rxvt_cv_uint32_t" 1>&6 13901echo "${ECHO_T}$rxvt_cv_uint32_t" >&6
8120if test x"$rxvt_cv_uint32_t" != xyes; then 13902if test x"$rxvt_cv_uint32_t" != xyes; then
8121 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;" 13903 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
8122else 13904else
8123 if test x"unsigned" = x; then 13905 if test x"unsigned" = x; then
8124 rxvt_uint32_typedef="/* typedef int uint32_t; */" 13906 rxvt_uint32_typedef="/* typedef int uint32_t; */"
8125 else 13907 else
8126 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" 13908 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
8127 fi 13909 fi
8128fi 13910fi
8129 13911
8130if test $ac_cv_sizeof_int_p -eq 8; then 13912if test $ac_cv_sizeof_int_p -eq 8; then
8131 rxvt_intp_define="#define intp_t int64_t" 13913 rxvt_intp_define="#define intp_t int64_t"
8132 rxvt_u_intp_define="#define u_intp_t u_int64_t" 13914 rxvt_u_intp_define="#define u_intp_t u_int64_t"
8133else 13915else
8145 fi 13927 fi
8146fi 13928fi
8147 13929
8148 13930
8149 13931
13932echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8150echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 13933echo $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 13934if test "${ac_cv_type_signal+set}" = set; then
8153 echo $ac_n "(cached) $ac_c" 1>&6 13935 echo $ECHO_N "(cached) $ECHO_C" >&6
8154else 13936else
8155 cat > conftest.$ac_ext <<EOF 13937 cat >conftest.$ac_ext <<_ACEOF
8156#line 8157 "configure" 13938/* confdefs.h. */
8157#include "confdefs.h" 13939_ACEOF
13940cat confdefs.h >>conftest.$ac_ext
13941cat >>conftest.$ac_ext <<_ACEOF
13942/* end confdefs.h. */
8158#include <sys/types.h> 13943#include <sys/types.h>
8159#include <signal.h> 13944#include <signal.h>
8160#ifdef signal 13945#ifdef signal
8161#undef signal 13946# undef signal
8162#endif 13947#endif
8163#ifdef __cplusplus 13948#ifdef __cplusplus
8164extern "C" void (*signal (int, void (*)(int)))(int); 13949extern "C" void (*signal (int, void (*)(int)))(int);
8165#else 13950#else
8166void (*signal ()) (); 13951void (*signal ()) ();
8167#endif 13952#endif
8168 13953
8169int main() { 13954int
13955main ()
13956{
8170int i; 13957int i;
13958 ;
8171; return 0; } 13959 return 0;
8172EOF 13960}
8173if { (eval echo configure:8174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 13961_ACEOF
13962rm -f conftest.$ac_objext
13963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13964 (eval $ac_compile) 2>conftest.er1
13965 ac_status=$?
13966 grep -v '^ *+' conftest.er1 >conftest.err
8174 rm -rf conftest* 13967 rm -f conftest.er1
13968 cat conftest.err >&5
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); } &&
13971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13973 (eval $ac_try) 2>&5
13974 ac_status=$?
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); }; } &&
13977 { ac_try='test -s conftest.$ac_objext'
13978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13979 (eval $ac_try) 2>&5
13980 ac_status=$?
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); }; }; then
8175 ac_cv_type_signal=void 13983 ac_cv_type_signal=void
8176else 13984else
8177 echo "configure: failed program was:" >&5 13985 echo "$as_me: failed program was:" >&5
8178 cat conftest.$ac_ext >&5 13986sed 's/^/| /' conftest.$ac_ext >&5
8179 rm -rf conftest* 13987
8180 ac_cv_type_signal=int 13988ac_cv_type_signal=int
8181fi 13989fi
8182rm -f conftest* 13990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8183fi 13991fi
8184 13992echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8185echo "$ac_t""$ac_cv_type_signal" 1>&6 13993echo "${ECHO_T}$ac_cv_type_signal" >&6
13994
8186cat >> confdefs.h <<EOF 13995cat >>confdefs.h <<_ACEOF
8187#define RETSIGTYPE $ac_cv_type_signal 13996#define RETSIGTYPE $ac_cv_type_signal
8188EOF 13997_ACEOF
8189 13998
8190 13999
8191 14000
8192case "$host_alias" in 14001case "$host_alias" in
8193 *ultrix) ac_cv_func_setsid='no' ;; 14002 *ultrix) ac_cv_func_setsid='no' ;;
8194 *) break;; 14003 *) break;;
8195esac 14004esac
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
8196 14023
8197for ac_func in \ 14024for ac_func in \
8198 atexit \ 14025 atexit \
8199 revoke \ 14026 revoke \
8200 unsetenv \ 14027 unsetenv \
8213 nanosleep \ 14040 nanosleep \
8214 updwtmp \ 14041 updwtmp \
8215 ttyslot \ 14042 ttyslot \
8216 14043
8217do 14044do
14045as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14046echo "$as_me:$LINENO: checking for $ac_func" >&5
8218echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 14047echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8219echo "configure:8220: checking for $ac_func" >&5 14048if 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 14049 echo $ECHO_N "(cached) $ECHO_C" >&6
8222else 14050else
8223 cat > conftest.$ac_ext <<EOF 14051 cat >conftest.$ac_ext <<_ACEOF
8224#line 8225 "configure" 14052/* confdefs.h. */
8225#include "confdefs.h" 14053_ACEOF
14054cat confdefs.h >>conftest.$ac_ext
14055cat >>conftest.$ac_ext <<_ACEOF
14056/* end confdefs.h. */
14057/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14059#define $ac_func innocuous_$ac_func
14060
8226/* System header to define __stub macros and hopefully few prototypes, 14061/* System header to define __stub macros and hopefully few prototypes,
8227 which can conflict with char $ac_func(); below. */ 14062 which can conflict with char $ac_func (); below.
14063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14064 <limits.h> exists even on freestanding compilers. */
14065
14066#ifdef __STDC__
14067# include <limits.h>
14068#else
8228#include <assert.h> 14069# include <assert.h>
14070#endif
14071
14072#undef $ac_func
14073
8229/* Override any gcc2 internal prototype to avoid an error. */ 14074/* Override any gcc2 internal prototype to avoid an error. */
14075#ifdef __cplusplus
14076extern "C"
14077{
14078#endif
8230/* We use char because int might match the return type of a gcc2 14079/* We use char because int might match the return type of a gcc2
8231 builtin and then its argument prototype would still apply. */ 14080 builtin and then its argument prototype would still apply. */
8232char $ac_func(); 14081char $ac_func ();
8233
8234int main() {
8235
8236/* The GNU C library defines this for functions which it implements 14082/* The GNU C library defines this for functions which it implements
8237 to always fail with ENOSYS. Some functions are actually named 14083 to always fail with ENOSYS. Some functions are actually named
8238 something starting with __ and the normal name is an alias. */ 14084 something starting with __ and the normal name is an alias. */
8239#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 14085#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8240choke me 14086choke me
8241#else 14087#else
8242$ac_func(); 14088char (*f) () = $ac_func;
8243#endif 14089#endif
14090#ifdef __cplusplus
14091}
14092#endif
8244 14093
14094int
14095main ()
14096{
14097return f != $ac_func;
14098 ;
8245; return 0; } 14099 return 0;
8246EOF 14100}
8247if { (eval echo configure:8248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14101_ACEOF
14102rm -f conftest.$ac_objext conftest$ac_exeext
14103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14104 (eval $ac_link) 2>conftest.er1
14105 ac_status=$?
14106 grep -v '^ *+' conftest.er1 >conftest.err
8248 rm -rf conftest* 14107 rm -f conftest.er1
8249 eval "ac_cv_func_$ac_func=yes" 14108 cat conftest.err >&5
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); } &&
14111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14113 (eval $ac_try) 2>&5
14114 ac_status=$?
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); }; } &&
14117 { ac_try='test -s conftest$ac_exeext'
14118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14119 (eval $ac_try) 2>&5
14120 ac_status=$?
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); }; }; then
14123 eval "$as_ac_var=yes"
8250else 14124else
8251 echo "configure: failed program was:" >&5 14125 echo "$as_me: failed program was:" >&5
8252 cat conftest.$ac_ext >&5 14126sed 's/^/| /' conftest.$ac_ext >&5
8253 rm -rf conftest*
8254 eval "ac_cv_func_$ac_func=no"
8255fi
8256rm -f conftest*
8257fi
8258 14127
8259if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 14128eval "$as_ac_var=no"
8260 echo "$ac_t""yes" 1>&6 14129fi
8261 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 14130rm -f conftest.err conftest.$ac_objext \
14131 conftest$ac_exeext conftest.$ac_ext
14132fi
14133echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14134echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14135if test `eval echo '${'$as_ac_var'}'` = yes; then
8262 cat >> confdefs.h <<EOF 14136 cat >>confdefs.h <<_ACEOF
8263#define $ac_tr_func 1 14137#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8264EOF 14138_ACEOF
8265 14139
8266else
8267 echo "$ac_t""no" 1>&6
8268fi 14140fi
8269done 14141done
8270 14142
8271 14143
8272 14144
8273ac_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` 14145if test "${ac_cv_header_utmp_h+set}" = set; then
14146 echo "$as_me:$LINENO: checking for utmp.h" >&5
8274echo $ac_n "checking for utmp.h""... $ac_c" 1>&6 14147echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
8275echo "configure:8276: checking for utmp.h" >&5 14148if 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 14149 echo $ECHO_N "(cached) $ECHO_C" >&6
14150fi
14151echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
14152echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
8278else 14153else
14154 # Is the header compilable?
14155echo "$as_me:$LINENO: checking utmp.h usability" >&5
14156echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6
8279 cat > conftest.$ac_ext <<EOF 14157cat >conftest.$ac_ext <<_ACEOF
8280#line 8281 "configure" 14158/* confdefs.h. */
8281#include "confdefs.h" 14159_ACEOF
14160cat confdefs.h >>conftest.$ac_ext
14161cat >>conftest.$ac_ext <<_ACEOF
14162/* end confdefs.h. */
14163$ac_includes_default
8282#include <utmp.h> 14164#include <utmp.h>
8283EOF 14165_ACEOF
8284ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14166rm -f conftest.$ac_objext
8285{ (eval echo configure:8286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8286ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14168 (eval $ac_compile) 2>conftest.er1
14169 ac_status=$?
14170 grep -v '^ *+' conftest.er1 >conftest.err
14171 rm -f conftest.er1
14172 cat conftest.err >&5
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); } &&
14175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14177 (eval $ac_try) 2>&5
14178 ac_status=$?
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); }; } &&
14181 { ac_try='test -s conftest.$ac_objext'
14182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14183 (eval $ac_try) 2>&5
14184 ac_status=$?
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); }; }; then
14187 ac_header_compiler=yes
14188else
14189 echo "$as_me: failed program was:" >&5
14190sed 's/^/| /' conftest.$ac_ext >&5
14191
14192ac_header_compiler=no
14193fi
14194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14195echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14196echo "${ECHO_T}$ac_header_compiler" >&6
14197
14198# Is the header present?
14199echo "$as_me:$LINENO: checking utmp.h presence" >&5
14200echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6
14201cat >conftest.$ac_ext <<_ACEOF
14202/* confdefs.h. */
14203_ACEOF
14204cat confdefs.h >>conftest.$ac_ext
14205cat >>conftest.$ac_ext <<_ACEOF
14206/* end confdefs.h. */
14207#include <utmp.h>
14208_ACEOF
14209if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14210 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14211 ac_status=$?
14212 grep -v '^ *+' conftest.er1 >conftest.err
14213 rm -f conftest.er1
14214 cat conftest.err >&5
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); } >/dev/null; then
14217 if test -s conftest.err; then
14218 ac_cpp_err=$ac_c_preproc_warn_flag
14219 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14220 else
14221 ac_cpp_err=
14222 fi
14223else
14224 ac_cpp_err=yes
14225fi
8287if test -z "$ac_err"; then 14226if test -z "$ac_cpp_err"; then
8288 rm -rf conftest* 14227 ac_header_preproc=yes
8289 eval "ac_cv_header_$ac_safe=yes"
8290else 14228else
8291 echo "$ac_err" >&5
8292 echo "configure: failed program was:" >&5 14229 echo "$as_me: failed program was:" >&5
8293 cat conftest.$ac_ext >&5 14230sed 's/^/| /' conftest.$ac_ext >&5
8294 rm -rf conftest* 14231
8295 eval "ac_cv_header_$ac_safe=no" 14232 ac_header_preproc=no
8296fi 14233fi
8297rm -f conftest* 14234rm -f conftest.err conftest.$ac_ext
14235echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14236echo "${ECHO_T}$ac_header_preproc" >&6
14237
14238# So? What about this header?
14239case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14240 yes:no: )
14241 { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
14242echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14243 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5
14244echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;}
14245 ac_header_preproc=yes
14246 ;;
14247 no:yes:* )
14248 { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5
14249echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;}
14250 { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5
14251echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;}
14252 { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5
14253echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;}
14254 { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5
14255echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
14256 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5
14257echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;}
14258 { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5
14259echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;}
14260 (
14261 cat <<\_ASBOX
14262## ------------------------------------------ ##
14263## Report this to the AC_PACKAGE_NAME lists. ##
14264## ------------------------------------------ ##
14265_ASBOX
14266 ) |
14267 sed "s/^/$as_me: WARNING: /" >&2
14268 ;;
14269esac
14270echo "$as_me:$LINENO: checking for utmp.h" >&5
14271echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
14272if test "${ac_cv_header_utmp_h+set}" = set; then
14273 echo $ECHO_N "(cached) $ECHO_C" >&6
14274else
14275 ac_cv_header_utmp_h=$ac_header_preproc
8298fi 14276fi
8299if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 14277echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
8300 echo "$ac_t""yes" 1>&6 14278echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
14279
14280fi
14281if test $ac_cv_header_utmp_h = yes; then
14282 echo "$as_me:$LINENO: checking for struct utmp" >&5
8301 echo $ac_n "checking for struct utmp""... $ac_c" 1>&6 14283echo $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 14284if test "${rxvt_cv_struct_utmp+set}" = set; then
8304 echo $ac_n "(cached) $ac_c" 1>&6 14285 echo $ECHO_N "(cached) $ECHO_C" >&6
8305else 14286else
8306 cat > conftest.$ac_ext <<EOF 14287 cat >conftest.$ac_ext <<_ACEOF
8307#line 8308 "configure" 14288/* confdefs.h. */
8308#include "confdefs.h" 14289_ACEOF
14290cat confdefs.h >>conftest.$ac_ext
14291cat >>conftest.$ac_ext <<_ACEOF
14292/* end confdefs.h. */
8309#include <sys/types.h> 14293#include <sys/types.h>
8310#include <stdint.h> 14294#include <stdint.h>
8311#include <utmp.h> 14295#include <utmp.h>
8312int main() { 14296int
14297main ()
14298{
8313struct utmp ut; 14299struct utmp ut;
14300 ;
8314; return 0; } 14301 return 0;
8315EOF 14302}
8316if { (eval echo configure:8317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14303_ACEOF
14304rm -f conftest.$ac_objext
14305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14306 (eval $ac_compile) 2>conftest.er1
14307 ac_status=$?
14308 grep -v '^ *+' conftest.er1 >conftest.err
8317 rm -rf conftest* 14309 rm -f conftest.er1
14310 cat conftest.err >&5
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); } &&
14313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14315 (eval $ac_try) 2>&5
14316 ac_status=$?
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); }; } &&
14319 { ac_try='test -s conftest.$ac_objext'
14320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14321 (eval $ac_try) 2>&5
14322 ac_status=$?
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); }; }; then
8318 rxvt_cv_struct_utmp=yes 14325 rxvt_cv_struct_utmp=yes
8319else 14326else
8320 echo "configure: failed program was:" >&5 14327 echo "$as_me: failed program was:" >&5
8321 cat conftest.$ac_ext >&5 14328sed 's/^/| /' conftest.$ac_ext >&5
8322 rm -rf conftest* 14329
8323 rxvt_cv_struct_utmp=no 14330rxvt_cv_struct_utmp=no
8324fi 14331fi
8325rm -f conftest* 14332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8326fi 14333fi
8327 14334echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5
8328echo "$ac_t""$rxvt_cv_struct_utmp" 1>&6 14335echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6
8329if test x$rxvt_cv_struct_utmp = xyes; then 14336if test x$rxvt_cv_struct_utmp = xyes; then
14337
8330 cat >> confdefs.h <<\EOF 14338cat >>confdefs.h <<\_ACEOF
8331#define HAVE_STRUCT_UTMP 1 14339#define HAVE_STRUCT_UTMP 1
8332EOF 14340_ACEOF
8333 14341
8334fi 14342fi
8335 14343
8336 14344
14345echo "$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 14346echo $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 14347if test "${rxvt_cv_struct_utmp_host+set}" = set; then
8340 echo $ac_n "(cached) $ac_c" 1>&6 14348 echo $ECHO_N "(cached) $ECHO_C" >&6
8341else 14349else
8342 cat > conftest.$ac_ext <<EOF 14350 cat >conftest.$ac_ext <<_ACEOF
8343#line 8344 "configure" 14351/* confdefs.h. */
8344#include "confdefs.h" 14352_ACEOF
14353cat confdefs.h >>conftest.$ac_ext
14354cat >>conftest.$ac_ext <<_ACEOF
14355/* end confdefs.h. */
8345#include <sys/types.h> 14356#include <sys/types.h>
8346#include <utmp.h> 14357#include <utmp.h>
8347int main() { 14358int
14359main ()
14360{
8348struct utmp ut; ut.ut_host; 14361struct utmp ut; ut.ut_host;
14362 ;
8349; return 0; } 14363 return 0;
8350EOF 14364}
8351if { (eval echo configure:8352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14365_ACEOF
14366rm -f conftest.$ac_objext
14367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14368 (eval $ac_compile) 2>conftest.er1
14369 ac_status=$?
14370 grep -v '^ *+' conftest.er1 >conftest.err
8352 rm -rf conftest* 14371 rm -f conftest.er1
14372 cat conftest.err >&5
14373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374 (exit $ac_status); } &&
14375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14377 (eval $ac_try) 2>&5
14378 ac_status=$?
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); }; } &&
14381 { ac_try='test -s conftest.$ac_objext'
14382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14383 (eval $ac_try) 2>&5
14384 ac_status=$?
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); }; }; then
8353 rxvt_cv_struct_utmp_host=yes 14387 rxvt_cv_struct_utmp_host=yes
8354else 14388else
8355 echo "configure: failed program was:" >&5 14389 echo "$as_me: failed program was:" >&5
8356 cat conftest.$ac_ext >&5 14390sed 's/^/| /' conftest.$ac_ext >&5
8357 rm -rf conftest* 14391
8358 rxvt_cv_struct_utmp_host=no 14392rxvt_cv_struct_utmp_host=no
8359fi 14393fi
8360rm -f conftest* 14394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8361fi 14395fi
8362 14396echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5
8363echo "$ac_t""$rxvt_cv_struct_utmp_host" 1>&6 14397echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6
8364if test x$rxvt_cv_struct_utmp_host = xyes; then 14398if test x$rxvt_cv_struct_utmp_host = xyes; then
14399
8365 cat >> confdefs.h <<\EOF 14400cat >>confdefs.h <<\_ACEOF
8366#define HAVE_UTMP_HOST 1 14401#define HAVE_UTMP_HOST 1
8367EOF 14402_ACEOF
8368 14403
8369fi 14404fi
8370 14405
14406echo "$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 14407echo $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 14408if test "${rxvt_cv_struct_utmp_pid+set}" = set; then
8374 echo $ac_n "(cached) $ac_c" 1>&6 14409 echo $ECHO_N "(cached) $ECHO_C" >&6
8375else 14410else
8376 cat > conftest.$ac_ext <<EOF 14411 cat >conftest.$ac_ext <<_ACEOF
8377#line 8378 "configure" 14412/* confdefs.h. */
8378#include "confdefs.h" 14413_ACEOF
14414cat confdefs.h >>conftest.$ac_ext
14415cat >>conftest.$ac_ext <<_ACEOF
14416/* end confdefs.h. */
8379#include <sys/types.h> 14417#include <sys/types.h>
8380#include <utmp.h> 14418#include <utmp.h>
8381int main() { 14419int
14420main ()
14421{
8382struct utmp ut; ut.ut_pid; 14422struct utmp ut; ut.ut_pid;
14423 ;
8383; return 0; } 14424 return 0;
8384EOF 14425}
8385if { (eval echo configure:8386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14426_ACEOF
14427rm -f conftest.$ac_objext
14428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14429 (eval $ac_compile) 2>conftest.er1
14430 ac_status=$?
14431 grep -v '^ *+' conftest.er1 >conftest.err
8386 rm -rf conftest* 14432 rm -f conftest.er1
14433 cat conftest.err >&5
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); } &&
14436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14438 (eval $ac_try) 2>&5
14439 ac_status=$?
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); }; } &&
14442 { ac_try='test -s conftest.$ac_objext'
14443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14444 (eval $ac_try) 2>&5
14445 ac_status=$?
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); }; }; then
8387 rxvt_cv_struct_utmp_pid=yes 14448 rxvt_cv_struct_utmp_pid=yes
8388else 14449else
8389 echo "configure: failed program was:" >&5 14450 echo "$as_me: failed program was:" >&5
8390 cat conftest.$ac_ext >&5 14451sed 's/^/| /' conftest.$ac_ext >&5
8391 rm -rf conftest* 14452
8392 rxvt_cv_struct_utmp_pid=no 14453rxvt_cv_struct_utmp_pid=no
8393fi 14454fi
8394rm -f conftest* 14455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8395fi 14456fi
8396 14457echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5
8397echo "$ac_t""$rxvt_cv_struct_utmp_pid" 1>&6 14458echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6
8398if test x$rxvt_cv_struct_utmp_pid = xyes; then 14459if test x$rxvt_cv_struct_utmp_pid = xyes; then
14460
8399 cat >> confdefs.h <<\EOF 14461cat >>confdefs.h <<\_ACEOF
8400#define HAVE_UTMP_PID 1 14462#define HAVE_UTMP_PID 1
8401EOF 14463_ACEOF
8402 14464
8403fi 14465fi
8404 14466
8405else
8406 echo "$ac_t""no" 1>&6
8407fi 14467fi
8408
8409 14468
8410ac_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` 14469
14470
14471if test "${ac_cv_header_utmpx_h+set}" = set; then
14472 echo "$as_me:$LINENO: checking for utmpx.h" >&5
8411echo $ac_n "checking for utmpx.h""... $ac_c" 1>&6 14473echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
8412echo "configure:8413: checking for utmpx.h" >&5 14474if 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 14475 echo $ECHO_N "(cached) $ECHO_C" >&6
14476fi
14477echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
14478echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
8415else 14479else
14480 # Is the header compilable?
14481echo "$as_me:$LINENO: checking utmpx.h usability" >&5
14482echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6
8416 cat > conftest.$ac_ext <<EOF 14483cat >conftest.$ac_ext <<_ACEOF
8417#line 8418 "configure" 14484/* confdefs.h. */
8418#include "confdefs.h" 14485_ACEOF
14486cat confdefs.h >>conftest.$ac_ext
14487cat >>conftest.$ac_ext <<_ACEOF
14488/* end confdefs.h. */
14489$ac_includes_default
8419#include <utmpx.h> 14490#include <utmpx.h>
8420EOF 14491_ACEOF
8421ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14492rm -f conftest.$ac_objext
8422{ (eval echo configure:8423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8423ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14494 (eval $ac_compile) 2>conftest.er1
14495 ac_status=$?
14496 grep -v '^ *+' conftest.er1 >conftest.err
14497 rm -f conftest.er1
14498 cat conftest.err >&5
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); } &&
14501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14503 (eval $ac_try) 2>&5
14504 ac_status=$?
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); }; } &&
14507 { ac_try='test -s conftest.$ac_objext'
14508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14509 (eval $ac_try) 2>&5
14510 ac_status=$?
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); }; }; then
14513 ac_header_compiler=yes
14514else
14515 echo "$as_me: failed program was:" >&5
14516sed 's/^/| /' conftest.$ac_ext >&5
14517
14518ac_header_compiler=no
14519fi
14520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14521echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14522echo "${ECHO_T}$ac_header_compiler" >&6
14523
14524# Is the header present?
14525echo "$as_me:$LINENO: checking utmpx.h presence" >&5
14526echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6
14527cat >conftest.$ac_ext <<_ACEOF
14528/* confdefs.h. */
14529_ACEOF
14530cat confdefs.h >>conftest.$ac_ext
14531cat >>conftest.$ac_ext <<_ACEOF
14532/* end confdefs.h. */
14533#include <utmpx.h>
14534_ACEOF
14535if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14536 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14537 ac_status=$?
14538 grep -v '^ *+' conftest.er1 >conftest.err
14539 rm -f conftest.er1
14540 cat conftest.err >&5
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); } >/dev/null; then
14543 if test -s conftest.err; then
14544 ac_cpp_err=$ac_c_preproc_warn_flag
14545 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14546 else
14547 ac_cpp_err=
14548 fi
14549else
14550 ac_cpp_err=yes
14551fi
8424if test -z "$ac_err"; then 14552if test -z "$ac_cpp_err"; then
8425 rm -rf conftest* 14553 ac_header_preproc=yes
8426 eval "ac_cv_header_$ac_safe=yes"
8427else 14554else
8428 echo "$ac_err" >&5
8429 echo "configure: failed program was:" >&5 14555 echo "$as_me: failed program was:" >&5
8430 cat conftest.$ac_ext >&5 14556sed 's/^/| /' conftest.$ac_ext >&5
8431 rm -rf conftest* 14557
8432 eval "ac_cv_header_$ac_safe=no" 14558 ac_header_preproc=no
8433fi 14559fi
8434rm -f conftest* 14560rm -f conftest.err conftest.$ac_ext
14561echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14562echo "${ECHO_T}$ac_header_preproc" >&6
14563
14564# So? What about this header?
14565case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14566 yes:no: )
14567 { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5
14568echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14569 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5
14570echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;}
14571 ac_header_preproc=yes
14572 ;;
14573 no:yes:* )
14574 { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5
14575echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;}
14576 { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5
14577echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;}
14578 { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5
14579echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;}
14580 { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5
14581echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;}
14582 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5
14583echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;}
14584 { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5
14585echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;}
14586 (
14587 cat <<\_ASBOX
14588## ------------------------------------------ ##
14589## Report this to the AC_PACKAGE_NAME lists. ##
14590## ------------------------------------------ ##
14591_ASBOX
14592 ) |
14593 sed "s/^/$as_me: WARNING: /" >&2
14594 ;;
14595esac
14596echo "$as_me:$LINENO: checking for utmpx.h" >&5
14597echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
14598if test "${ac_cv_header_utmpx_h+set}" = set; then
14599 echo $ECHO_N "(cached) $ECHO_C" >&6
14600else
14601 ac_cv_header_utmpx_h=$ac_header_preproc
8435fi 14602fi
8436if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 14603echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
8437 echo "$ac_t""yes" 1>&6 14604echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
14605
14606fi
14607if test $ac_cv_header_utmpx_h = yes; then
14608 echo "$as_me:$LINENO: checking for struct utmpx" >&5
8438 echo $ac_n "checking for struct utmpx""... $ac_c" 1>&6 14609echo $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 14610if test "${rxvt_cv_struct_utmpx+set}" = set; then
8441 echo $ac_n "(cached) $ac_c" 1>&6 14611 echo $ECHO_N "(cached) $ECHO_C" >&6
8442else 14612else
8443 cat > conftest.$ac_ext <<EOF 14613 cat >conftest.$ac_ext <<_ACEOF
8444#line 8445 "configure" 14614/* confdefs.h. */
8445#include "confdefs.h" 14615_ACEOF
14616cat confdefs.h >>conftest.$ac_ext
14617cat >>conftest.$ac_ext <<_ACEOF
14618/* end confdefs.h. */
8446#include <sys/types.h> 14619#include <sys/types.h>
8447#include <utmpx.h> 14620#include <utmpx.h>
8448int main() { 14621int
14622main ()
14623{
8449struct utmpx ut; 14624struct utmpx ut;
14625 ;
8450; return 0; } 14626 return 0;
8451EOF 14627}
8452if { (eval echo configure:8453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14628_ACEOF
14629rm -f conftest.$ac_objext
14630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14631 (eval $ac_compile) 2>conftest.er1
14632 ac_status=$?
14633 grep -v '^ *+' conftest.er1 >conftest.err
8453 rm -rf conftest* 14634 rm -f conftest.er1
14635 cat conftest.err >&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); } &&
14638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14640 (eval $ac_try) 2>&5
14641 ac_status=$?
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); }; } &&
14644 { ac_try='test -s conftest.$ac_objext'
14645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14646 (eval $ac_try) 2>&5
14647 ac_status=$?
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); }; }; then
8454 rxvt_cv_struct_utmpx=yes 14650 rxvt_cv_struct_utmpx=yes
8455else 14651else
8456 echo "configure: failed program was:" >&5 14652 echo "$as_me: failed program was:" >&5
8457 cat conftest.$ac_ext >&5 14653sed 's/^/| /' conftest.$ac_ext >&5
8458 rm -rf conftest* 14654
8459 rxvt_cv_struct_utmpx=no 14655rxvt_cv_struct_utmpx=no
8460fi 14656fi
8461rm -f conftest* 14657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8462fi 14658fi
8463 14659echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5
8464echo "$ac_t""$rxvt_cv_struct_utmpx" 1>&6 14660echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6
8465if test x$rxvt_cv_struct_utmpx = xyes; then 14661if test x$rxvt_cv_struct_utmpx = xyes; then
14662
8466 cat >> confdefs.h <<\EOF 14663cat >>confdefs.h <<\_ACEOF
8467#define HAVE_STRUCT_UTMPX 1 14664#define HAVE_STRUCT_UTMPX 1
8468EOF 14665_ACEOF
8469 14666
8470fi 14667fi
8471 14668
8472 14669
14670echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
8473echo $ac_n "checking for host in utmpx struct""... $ac_c" 1>&6 14671echo $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 14672if test "${rxvt_cv_struct_utmpx_host+set}" = set; then
8476 echo $ac_n "(cached) $ac_c" 1>&6 14673 echo $ECHO_N "(cached) $ECHO_C" >&6
8477else 14674else
8478 cat > conftest.$ac_ext <<EOF 14675 cat >conftest.$ac_ext <<_ACEOF
8479#line 8480 "configure" 14676/* confdefs.h. */
8480#include "confdefs.h" 14677_ACEOF
14678cat confdefs.h >>conftest.$ac_ext
14679cat >>conftest.$ac_ext <<_ACEOF
14680/* end confdefs.h. */
8481#include <sys/types.h> 14681#include <sys/types.h>
8482#include <utmpx.h> 14682#include <utmpx.h>
8483int main() { 14683int
14684main ()
14685{
8484struct utmpx utx; utx.ut_host; 14686struct utmpx utx; utx.ut_host;
14687 ;
8485; return 0; } 14688 return 0;
8486EOF 14689}
8487if { (eval echo configure:8488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14690_ACEOF
14691rm -f conftest.$ac_objext
14692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14693 (eval $ac_compile) 2>conftest.er1
14694 ac_status=$?
14695 grep -v '^ *+' conftest.er1 >conftest.err
8488 rm -rf conftest* 14696 rm -f conftest.er1
14697 cat conftest.err >&5
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); } &&
14700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14702 (eval $ac_try) 2>&5
14703 ac_status=$?
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); }; } &&
14706 { ac_try='test -s conftest.$ac_objext'
14707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708 (eval $ac_try) 2>&5
14709 ac_status=$?
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); }; }; then
8489 rxvt_cv_struct_utmpx_host=yes 14712 rxvt_cv_struct_utmpx_host=yes
8490else 14713else
8491 echo "configure: failed program was:" >&5 14714 echo "$as_me: failed program was:" >&5
8492 cat conftest.$ac_ext >&5 14715sed 's/^/| /' conftest.$ac_ext >&5
8493 rm -rf conftest* 14716
8494 rxvt_cv_struct_utmpx_host=no 14717rxvt_cv_struct_utmpx_host=no
8495fi 14718fi
8496rm -f conftest* 14719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8497fi 14720fi
8498 14721echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5
8499echo "$ac_t""$rxvt_cv_struct_utmpx_host" 1>&6 14722echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6
8500if test x$rxvt_cv_struct_utmpx_host = xyes; then 14723if test x$rxvt_cv_struct_utmpx_host = xyes; then
14724
8501 cat >> confdefs.h <<\EOF 14725cat >>confdefs.h <<\_ACEOF
8502#define HAVE_UTMPX_HOST 1 14726#define HAVE_UTMPX_HOST 1
8503EOF 14727_ACEOF
8504 14728
8505fi 14729fi
8506 14730
8507else
8508 echo "$ac_t""no" 1>&6
8509fi 14731fi
8510
8511 14732
14733
14734
14735echo "$as_me:$LINENO: checking for struct lastlog" >&5
8512echo $ac_n "checking for struct lastlog""... $ac_c" 1>&6 14736echo $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 14737if test "${rxvt_cv_struct_lastlog+set}" = set; then
8515 echo $ac_n "(cached) $ac_c" 1>&6 14738 echo $ECHO_N "(cached) $ECHO_C" >&6
8516else 14739else
8517 cat > conftest.$ac_ext <<EOF 14740 cat >conftest.$ac_ext <<_ACEOF
8518#line 8519 "configure" 14741/* confdefs.h. */
8519#include "confdefs.h" 14742_ACEOF
14743cat confdefs.h >>conftest.$ac_ext
14744cat >>conftest.$ac_ext <<_ACEOF
14745/* end confdefs.h. */
8520#include <sys/types.h> 14746#include <sys/types.h>
8521#include <utmp.h> 14747#include <utmp.h>
8522#ifdef HAVE_LASTLOG_H 14748#ifdef HAVE_LASTLOG_H
8523#include <lastlog.h> 14749#include <lastlog.h>
8524#endif 14750#endif
8525 14751
8526int main() { 14752int
14753main ()
14754{
8527struct lastlog ll; 14755struct lastlog ll;
14756 ;
8528; return 0; } 14757 return 0;
8529EOF 14758}
8530if { (eval echo configure:8531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14759_ACEOF
14760rm -f conftest.$ac_objext
14761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14762 (eval $ac_compile) 2>conftest.er1
14763 ac_status=$?
14764 grep -v '^ *+' conftest.er1 >conftest.err
8531 rm -rf conftest* 14765 rm -f conftest.er1
14766 cat conftest.err >&5
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); } &&
14769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14771 (eval $ac_try) 2>&5
14772 ac_status=$?
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); }; } &&
14775 { ac_try='test -s conftest.$ac_objext'
14776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14777 (eval $ac_try) 2>&5
14778 ac_status=$?
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); }; }; then
8532 rxvt_cv_struct_lastlog=yes 14781 rxvt_cv_struct_lastlog=yes
8533else 14782else
8534 echo "configure: failed program was:" >&5 14783 echo "$as_me: failed program was:" >&5
8535 cat conftest.$ac_ext >&5 14784sed 's/^/| /' conftest.$ac_ext >&5
8536 rm -rf conftest* 14785
8537 rxvt_cv_struct_lastlog=no 14786rxvt_cv_struct_lastlog=no
8538fi 14787fi
8539rm -f conftest* 14788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8540fi 14789fi
8541 14790echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5
8542echo "$ac_t""$rxvt_cv_struct_lastlog" 1>&6 14791echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6
8543if test x$rxvt_cv_struct_lastlog = xyes; then 14792if test x$rxvt_cv_struct_lastlog = xyes; then
14793
8544 cat >> confdefs.h <<\EOF 14794cat >>confdefs.h <<\_ACEOF
8545#define HAVE_STRUCT_LASTLOG 1 14795#define HAVE_STRUCT_LASTLOG 1
8546EOF 14796_ACEOF
8547 14797
8548fi 14798fi
8549 14799
14800echo "$as_me:$LINENO: checking for struct lastlogx" >&5
8550echo $ac_n "checking for struct lastlogx""... $ac_c" 1>&6 14801echo $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 14802if test "${rxvt_cv_struct_lastlogx+set}" = set; then
8553 echo $ac_n "(cached) $ac_c" 1>&6 14803 echo $ECHO_N "(cached) $ECHO_C" >&6
8554else 14804else
8555 cat > conftest.$ac_ext <<EOF 14805 cat >conftest.$ac_ext <<_ACEOF
8556#line 8557 "configure" 14806/* confdefs.h. */
8557#include "confdefs.h" 14807_ACEOF
14808cat confdefs.h >>conftest.$ac_ext
14809cat >>conftest.$ac_ext <<_ACEOF
14810/* end confdefs.h. */
8558#include <sys/types.h> 14811#include <sys/types.h>
8559#include <utmpx.h> 14812#include <utmpx.h>
8560#ifdef HAVE_LASTLOG_H 14813#ifdef HAVE_LASTLOG_H
8561#include <lastlog.h> 14814#include <lastlog.h>
8562#endif 14815#endif
8563 14816
8564int main() { 14817int
14818main ()
14819{
8565struct lastlogx ll; 14820struct lastlogx ll;
14821 ;
8566; return 0; } 14822 return 0;
8567EOF 14823}
8568if { (eval echo configure:8569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14824_ACEOF
14825rm -f conftest.$ac_objext
14826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14827 (eval $ac_compile) 2>conftest.er1
14828 ac_status=$?
14829 grep -v '^ *+' conftest.er1 >conftest.err
8569 rm -rf conftest* 14830 rm -f conftest.er1
14831 cat conftest.err >&5
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); } &&
14834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14836 (eval $ac_try) 2>&5
14837 ac_status=$?
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); }; } &&
14840 { ac_try='test -s conftest.$ac_objext'
14841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14842 (eval $ac_try) 2>&5
14843 ac_status=$?
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); }; }; then
8570 rxvt_cv_struct_lastlogx=yes 14846 rxvt_cv_struct_lastlogx=yes
8571else 14847else
8572 echo "configure: failed program was:" >&5 14848 echo "$as_me: failed program was:" >&5
8573 cat conftest.$ac_ext >&5 14849sed 's/^/| /' conftest.$ac_ext >&5
8574 rm -rf conftest* 14850
8575 rxvt_cv_struct_lastlogx=no 14851rxvt_cv_struct_lastlogx=no
8576fi 14852fi
8577rm -f conftest* 14853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8578fi 14854fi
8579 14855echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5
8580echo "$ac_t""$rxvt_cv_struct_lastlogx" 1>&6 14856echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6
8581if test x$rxvt_cv_struct_lastlogx = xyes; then 14857if test x$rxvt_cv_struct_lastlogx = xyes; then
14858
8582 cat >> confdefs.h <<\EOF 14859cat >>confdefs.h <<\_ACEOF
8583#define HAVE_STRUCT_LASTLOGX 1 14860#define HAVE_STRUCT_LASTLOGX 1
8584EOF 14861_ACEOF
8585 14862
8586fi 14863fi
8587 14864
8588 14865
14866echo "$as_me:$LINENO: checking where utmp is located" >&5
8589echo $ac_n "checking where utmp is located""... $ac_c" 1>&6 14867echo $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 14868if test "${rxvt_cv_path_utmp+set}" = set; then
8592 echo $ac_n "(cached) $ac_c" 1>&6 14869 echo $ECHO_N "(cached) $ECHO_C" >&6
8593else 14870else
8594 if test "$cross_compiling" = yes; then 14871 if test "$cross_compiling" = yes; then
14872 { 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 14873echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;}
8596else 14874else
8597 cat > conftest.$ac_ext <<EOF 14875 cat >conftest.$ac_ext <<_ACEOF
8598#line 8599 "configure" 14876/* confdefs.h. */
8599#include "confdefs.h" 14877_ACEOF
14878cat confdefs.h >>conftest.$ac_ext
14879cat >>conftest.$ac_ext <<_ACEOF
14880/* end confdefs.h. */
8600#include <stdio.h> 14881#include <stdio.h>
8601#include <sys/types.h> 14882#include <sys/types.h>
8602#include <utmp.h> 14883#include <utmp.h>
8603#include <errno.h> 14884#include <errno.h>
8604main() 14885main()
8621 exit(0); 14902 exit(0);
8622 } 14903 }
8623 } 14904 }
8624 exit(0); 14905 exit(0);
8625} 14906}
8626EOF 14907_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 14908rm -f conftest$ac_exeext
8628then 14909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14910 (eval $ac_link) 2>&5
14911 ac_status=$?
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14915 (eval $ac_try) 2>&5
14916 ac_status=$?
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); }; }; then
8629 rxvt_cv_path_utmp=`cat conftestval` 14919 rxvt_cv_path_utmp=`cat conftestval`
8630else 14920else
14921 echo "$as_me: program exited with status $ac_status" >&5
8631 echo "configure: failed program was:" >&5 14922echo "$as_me: failed program was:" >&5
8632 cat conftest.$ac_ext >&5 14923sed 's/^/| /' conftest.$ac_ext >&5
8633 rm -fr conftest* 14924
14925( exit $ac_status )
8634 rxvt_cv_path_utmp= 14926rxvt_cv_path_utmp=
8635fi 14927fi
8636rm -fr conftest* 14928rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8637fi 14929fi
8638
8639fi 14930fi
8640 14931echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5
8641echo "$ac_t""$rxvt_cv_path_utmp" 1>&6 14932echo "${ECHO_T}$rxvt_cv_path_utmp" >&6
8642if test x$rxvt_cv_path_utmp != x; then 14933if test x$rxvt_cv_path_utmp != x; then
14934
8643 cat >> confdefs.h <<EOF 14935cat >>confdefs.h <<_ACEOF
8644#define RXVT_UTMP_FILE "$rxvt_cv_path_utmp" 14936#define RXVT_UTMP_FILE "$rxvt_cv_path_utmp"
8645EOF 14937_ACEOF
8646 14938
8647fi 14939fi
8648 14940
8649 14941
14942echo "$as_me:$LINENO: checking where utmpx is located" >&5
8650echo $ac_n "checking where utmpx is located""... $ac_c" 1>&6 14943echo $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 14944if test "${rxvt_cv_path_utmpx+set}" = set; then
8653 echo $ac_n "(cached) $ac_c" 1>&6 14945 echo $ECHO_N "(cached) $ECHO_C" >&6
8654else 14946else
8655 if test "$cross_compiling" = yes; then 14947 if test "$cross_compiling" = yes; then
14948 { 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 14949echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;}
8657else 14950else
8658 cat > conftest.$ac_ext <<EOF 14951 cat >conftest.$ac_ext <<_ACEOF
8659#line 8660 "configure" 14952/* confdefs.h. */
8660#include "confdefs.h" 14953_ACEOF
14954cat confdefs.h >>conftest.$ac_ext
14955cat >>conftest.$ac_ext <<_ACEOF
14956/* end confdefs.h. */
8661#include <stdio.h> 14957#include <stdio.h>
8662#include <sys/types.h> 14958#include <sys/types.h>
8663#include <utmpx.h> 14959#include <utmpx.h>
8664#include <errno.h> 14960#include <errno.h>
8665#include <sys/stat.h> 14961#include <sys/stat.h>
8692 exit(0); 14988 exit(0);
8693 } 14989 }
8694 } 14990 }
8695 exit(0); 14991 exit(0);
8696} 14992}
8697EOF 14993_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 14994rm -f conftest$ac_exeext
8699then 14995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14996 (eval $ac_link) 2>&5
14997 ac_status=$?
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15001 (eval $ac_try) 2>&5
15002 ac_status=$?
15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004 (exit $ac_status); }; }; then
8700 rxvt_cv_path_utmpx=`cat conftestval` 15005 rxvt_cv_path_utmpx=`cat conftestval`
8701else 15006else
15007 echo "$as_me: program exited with status $ac_status" >&5
8702 echo "configure: failed program was:" >&5 15008echo "$as_me: failed program was:" >&5
8703 cat conftest.$ac_ext >&5 15009sed 's/^/| /' conftest.$ac_ext >&5
8704 rm -fr conftest* 15010
15011( exit $ac_status )
8705 rxvt_cv_path_utmpx= 15012rxvt_cv_path_utmpx=
8706fi 15013fi
8707rm -fr conftest* 15014rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8708fi 15015fi
8709
8710fi 15016fi
8711 15017echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5
8712echo "$ac_t""$rxvt_cv_path_utmpx" 1>&6 15018echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6
8713if test x$rxvt_cv_path_utmpx != x; then 15019if test x$rxvt_cv_path_utmpx != x; then
15020
8714 cat >> confdefs.h <<EOF 15021cat >>confdefs.h <<_ACEOF
8715#define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx" 15022#define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx"
8716EOF 15023_ACEOF
8717 15024
8718fi 15025fi
8719 15026
8720 15027
15028echo "$as_me:$LINENO: checking where wtmp is located" >&5
8721echo $ac_n "checking where wtmp is located""... $ac_c" 1>&6 15029echo $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 15030if test "${rxvt_cv_path_wtmp+set}" = set; then
8724 echo $ac_n "(cached) $ac_c" 1>&6 15031 echo $ECHO_N "(cached) $ECHO_C" >&6
8725else 15032else
8726 if test "$cross_compiling" = yes; then 15033 if test "$cross_compiling" = yes; then
15034 { 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 15035echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;}
8728else 15036else
8729 cat > conftest.$ac_ext <<EOF 15037 cat >conftest.$ac_ext <<_ACEOF
8730#line 8731 "configure" 15038/* confdefs.h. */
8731#include "confdefs.h" 15039_ACEOF
15040cat confdefs.h >>conftest.$ac_ext
15041cat >>conftest.$ac_ext <<_ACEOF
15042/* end confdefs.h. */
8732#include <stdio.h> 15043#include <stdio.h>
8733#include <sys/types.h> 15044#include <sys/types.h>
8734#ifdef HAVE_UTMP_H 15045#ifdef HAVE_UTMP_H
8735#include <utmp.h> 15046#include <utmp.h>
8736#endif 15047#endif
8737#include <errno.h> 15048#include <errno.h>
8738main() 15049main()
8739{ 15050{
8740 char **w, *wtmplist[] = { 15051 char **w, *wtmplist[] = {
8741 "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL }; 15052 "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL };
8742 FILE *a, *f=fopen("conftestval", "w"); 15053 FILE *a, *f=fopen("conftestval", "w");
8743 if (!f) exit(1); 15054 if (!f) exit(1);
8744#ifdef WTMP_FILE 15055#ifdef WTMP_FILE
8745 fprintf(f, "%s\n", WTMP_FILE); 15056 fprintf(f, "%s\n", WTMP_FILE);
8746 exit(0); 15057 exit(0);
8755 exit(0); 15066 exit(0);
8756 } 15067 }
8757 } 15068 }
8758 exit(0); 15069 exit(0);
8759} 15070}
8760EOF 15071_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 15072rm -f conftest$ac_exeext
8762then 15073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15074 (eval $ac_link) 2>&5
15075 ac_status=$?
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15079 (eval $ac_try) 2>&5
15080 ac_status=$?
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); }; }; then
8763 rxvt_cv_path_wtmp=`cat conftestval` 15083 rxvt_cv_path_wtmp=`cat conftestval`
8764else 15084else
15085 echo "$as_me: program exited with status $ac_status" >&5
8765 echo "configure: failed program was:" >&5 15086echo "$as_me: failed program was:" >&5
8766 cat conftest.$ac_ext >&5 15087sed 's/^/| /' conftest.$ac_ext >&5
8767 rm -fr conftest* 15088
15089( exit $ac_status )
8768 rxvt_cv_path_wtmp= 15090rxvt_cv_path_wtmp=
8769fi 15091fi
8770rm -fr conftest* 15092rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8771fi 15093fi
8772
8773fi 15094fi
8774 15095echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5
8775echo "$ac_t""$rxvt_cv_path_wtmp" 1>&6 15096echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6
8776if test x$rxvt_cv_path_wtmp != x; then 15097if test x$rxvt_cv_path_wtmp != x; then
15098
8777 cat >> confdefs.h <<EOF 15099cat >>confdefs.h <<_ACEOF
8778#define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp" 15100#define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp"
8779EOF 15101_ACEOF
8780 15102
8781fi 15103fi
8782 15104
15105echo "$as_me:$LINENO: checking where wtmpx is located" >&5
8783echo $ac_n "checking where wtmpx is located""... $ac_c" 1>&6 15106echo $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 15107if test "${rxvt_cv_path_wtmpx+set}" = set; then
8786 echo $ac_n "(cached) $ac_c" 1>&6 15108 echo $ECHO_N "(cached) $ECHO_C" >&6
8787else 15109else
8788 if test "$cross_compiling" = yes; then 15110 if test "$cross_compiling" = yes; then
15111 { 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 15112echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;}
8790else 15113else
8791 cat > conftest.$ac_ext <<EOF 15114 cat >conftest.$ac_ext <<_ACEOF
8792#line 8793 "configure" 15115/* confdefs.h. */
8793#include "confdefs.h" 15116_ACEOF
15117cat confdefs.h >>conftest.$ac_ext
15118cat >>conftest.$ac_ext <<_ACEOF
15119/* end confdefs.h. */
8794#include <stdio.h> 15120#include <stdio.h>
8795#ifdef HAVE_UTMPX_H 15121#ifdef HAVE_UTMPX_H
8796#include <utmpx.h> 15122#include <utmpx.h>
8797#endif 15123#endif
8798#include <errno.h> 15124#include <errno.h>
8799main() 15125main()
8800{ 15126{
8801 char **w, *wtmplist[] = { 15127 char **w, *wtmplist[] = {
8802 "/var/log/wtmpx", "/var/adm/wtmpx", NULL }; 15128 "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
8803 FILE *a, *f=fopen("conftestval", "w"); 15129 FILE *a, *f=fopen("conftestval", "w");
8804 if (!f) exit(1); 15130 if (!f) exit(1);
8805#ifdef WTMPX_FILE 15131#ifdef WTMPX_FILE
8806 fprintf(f, "%s\n", WTMPX_FILE); 15132 fprintf(f, "%s\n", WTMPX_FILE);
8807 exit(0); 15133 exit(0);
8816 exit(0); 15142 exit(0);
8817 } 15143 }
8818 } 15144 }
8819 exit(0); 15145 exit(0);
8820} 15146}
8821EOF 15147_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 15148rm -f conftest$ac_exeext
8823then 15149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15150 (eval $ac_link) 2>&5
15151 ac_status=$?
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15155 (eval $ac_try) 2>&5
15156 ac_status=$?
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); }; }; then
8824 rxvt_cv_path_wtmpx=`cat conftestval` 15159 rxvt_cv_path_wtmpx=`cat conftestval`
8825else 15160else
15161 echo "$as_me: program exited with status $ac_status" >&5
8826 echo "configure: failed program was:" >&5 15162echo "$as_me: failed program was:" >&5
8827 cat conftest.$ac_ext >&5 15163sed 's/^/| /' conftest.$ac_ext >&5
8828 rm -fr conftest* 15164
15165( exit $ac_status )
8829 rxvt_cv_path_wtmpx= 15166rxvt_cv_path_wtmpx=
8830fi 15167fi
8831rm -fr conftest* 15168rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8832fi 15169fi
8833
8834fi 15170fi
8835 15171echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5
8836echo "$ac_t""$rxvt_cv_path_wtmpx" 1>&6 15172echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6
8837if test x$rxvt_cv_path_wtmpx != x; then 15173if test x$rxvt_cv_path_wtmpx != x; then
15174
8838 cat >> confdefs.h <<EOF 15175cat >>confdefs.h <<_ACEOF
8839#define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx" 15176#define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx"
8840EOF 15177_ACEOF
8841 15178
8842fi 15179fi
8843 15180
15181echo "$as_me:$LINENO: checking where lastlog is located" >&5
8844echo $ac_n "checking where lastlog is located""... $ac_c" 1>&6 15182echo $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 15183if test "${rxvt_cv_path_lastlog+set}" = set; then
8847 echo $ac_n "(cached) $ac_c" 1>&6 15184 echo $ECHO_N "(cached) $ECHO_C" >&6
8848else 15185else
8849 if test "$cross_compiling" = yes; then 15186 if test "$cross_compiling" = yes; then
15187 { 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 15188echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;}
8851else 15189else
8852 cat > conftest.$ac_ext <<EOF 15190 cat >conftest.$ac_ext <<_ACEOF
8853#line 8854 "configure" 15191/* confdefs.h. */
8854#include "confdefs.h" 15192_ACEOF
15193cat confdefs.h >>conftest.$ac_ext
15194cat >>conftest.$ac_ext <<_ACEOF
15195/* end confdefs.h. */
8855#include <stdio.h> 15196#include <stdio.h>
8856#include <sys/types.h> 15197#include <sys/types.h>
8857#ifdef HAVE_UTMPX_H 15198#ifdef HAVE_UTMPX_H
8858#include <utmpx.h> 15199#include <utmpx.h>
8859#elif defined(HAVE_UTMP_H) 15200#elif defined(HAVE_UTMP_H)
8882 exit(0); 15223 exit(0);
8883 } 15224 }
8884 } 15225 }
8885 exit(0); 15226 exit(0);
8886} 15227}
8887EOF 15228_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 15229rm -f conftest$ac_exeext
8889then 15230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15231 (eval $ac_link) 2>&5
15232 ac_status=$?
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15236 (eval $ac_try) 2>&5
15237 ac_status=$?
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); }; }; then
8890 rxvt_cv_path_lastlog=`cat conftestval` 15240 rxvt_cv_path_lastlog=`cat conftestval`
8891else 15241else
15242 echo "$as_me: program exited with status $ac_status" >&5
8892 echo "configure: failed program was:" >&5 15243echo "$as_me: failed program was:" >&5
8893 cat conftest.$ac_ext >&5 15244sed 's/^/| /' conftest.$ac_ext >&5
8894 rm -fr conftest* 15245
15246( exit $ac_status )
8895 rxvt_cv_path_lastlog= 15247rxvt_cv_path_lastlog=
8896fi 15248fi
8897rm -fr conftest* 15249rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8898fi 15250fi
8899
8900fi 15251fi
8901 15252echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5
8902echo "$ac_t""$rxvt_cv_path_lastlog" 1>&6 15253echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6
8903if test x$rxvt_cv_path_lastlog != x; then 15254if test x$rxvt_cv_path_lastlog != x; then
15255
8904 cat >> confdefs.h <<EOF 15256cat >>confdefs.h <<_ACEOF
8905#define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog" 15257#define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog"
8906EOF 15258_ACEOF
8907 15259
8908 if test -d "$rxvt_cv_path_lastlog"; then 15260 if test -d "$rxvt_cv_path_lastlog"; then
15261
8909 cat >> confdefs.h <<\EOF 15262cat >>confdefs.h <<\_ACEOF
8910#define LASTLOG_IS_DIR 1 15263#define LASTLOG_IS_DIR 1
8911EOF 15264_ACEOF
8912 15265
8913 fi 15266 fi
8914fi 15267fi
8915 15268
15269echo "$as_me:$LINENO: checking where lastlogx is located" >&5
8916echo $ac_n "checking where lastlogx is located""... $ac_c" 1>&6 15270echo $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 15271if test "${rxvt_cv_path_lastlogx+set}" = set; then
8919 echo $ac_n "(cached) $ac_c" 1>&6 15272 echo $ECHO_N "(cached) $ECHO_C" >&6
8920else 15273else
8921 if test "$cross_compiling" = yes; then 15274 if test "$cross_compiling" = yes; then
15275 { 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 15276echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;}
8923else 15277else
8924 cat > conftest.$ac_ext <<EOF 15278 cat >conftest.$ac_ext <<_ACEOF
8925#line 8926 "configure" 15279/* confdefs.h. */
8926#include "confdefs.h" 15280_ACEOF
15281cat confdefs.h >>conftest.$ac_ext
15282cat >>conftest.$ac_ext <<_ACEOF
15283/* end confdefs.h. */
8927#include <stdio.h> 15284#include <stdio.h>
8928#ifdef HAVE_UTMPX_H 15285#ifdef HAVE_UTMPX_H
8929#include <utmpx.h> 15286#include <utmpx.h>
8930#endif 15287#endif
8931#include <errno.h> 15288#include <errno.h>
8948 exit(0); 15305 exit(0);
8949 } 15306 }
8950 } 15307 }
8951 exit(0); 15308 exit(0);
8952} 15309}
8953EOF 15310_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 15311rm -f conftest$ac_exeext
8955then 15312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15313 (eval $ac_link) 2>&5
15314 ac_status=$?
15315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15318 (eval $ac_try) 2>&5
15319 ac_status=$?
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); }; }; then
8956 rxvt_cv_path_lastlogx=`cat conftestval` 15322 rxvt_cv_path_lastlogx=`cat conftestval`
8957else 15323else
15324 echo "$as_me: program exited with status $ac_status" >&5
8958 echo "configure: failed program was:" >&5 15325echo "$as_me: failed program was:" >&5
8959 cat conftest.$ac_ext >&5 15326sed 's/^/| /' conftest.$ac_ext >&5
8960 rm -fr conftest* 15327
15328( exit $ac_status )
8961 rxvt_cv_path_lastlogx= 15329rxvt_cv_path_lastlogx=
8962fi 15330fi
8963rm -fr conftest* 15331rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8964fi 15332fi
8965
8966fi 15333fi
8967 15334echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5
8968echo "$ac_t""$rxvt_cv_path_lastlogx" 1>&6 15335echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6
8969if test x$rxvt_cv_path_lastlogx != x; then 15336if test x$rxvt_cv_path_lastlogx != x; then
15337
8970 cat >> confdefs.h <<EOF 15338cat >>confdefs.h <<_ACEOF
8971#define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx" 15339#define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx"
8972EOF 15340_ACEOF
8973 15341
8974fi 15342fi
8975 15343
8976 15344
15345echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
8977echo $ac_n "checking where ttys/ttytab is located""... $ac_c" 1>&6 15346echo $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 15347if test "${rxvt_cv_path_ttytab+set}" = set; then
8980 echo $ac_n "(cached) $ac_c" 1>&6 15348 echo $ECHO_N "(cached) $ECHO_C" >&6
8981else 15349else
8982 for ttys_file in /etc/ttys /etc/ttytab; 15350 for ttys_file in /etc/ttys /etc/ttytab;
8983do 15351do
8984 if test -f "$ttys_file" ; then 15352 if test -f "$ttys_file" ; then
8985 rxvt_cv_path_ttytab=$ttys_file 15353 rxvt_cv_path_ttytab=$ttys_file
8986 break 15354 break
8987 fi 15355 fi
8988done 15356done
8989 15357
8990fi 15358fi
8991 15359echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
8992echo "$ac_t""$rxvt_cv_path_ttytab" 1>&6 15360echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6
8993if test x$rxvt_cv_path_ttytab != x; then 15361if test x$rxvt_cv_path_ttytab != x; then
15362
8994 cat >> confdefs.h <<EOF 15363cat >>confdefs.h <<_ACEOF
8995#define TTYTAB_FILENAME "$rxvt_cv_path_ttytab" 15364#define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
8996EOF 15365_ACEOF
8997 15366
8998fi 15367fi
8999 15368
9000 15369
9001ac_save_LIBS=$LIBS 15370ac_save_LIBS=$LIBS
9003CFLAGS="$CFLAGS $X_CFLAGS" 15372CFLAGS="$CFLAGS $X_CFLAGS"
9004LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 15373LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
9005if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then 15374if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
9006 LIBS=`echo $LIBS | sed "$R_TRANSLATE"` 15375 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
9007fi 15376fi
15377echo "$as_me:$LINENO: checking for working Xlocale" >&5
9008echo $ac_n "checking for working Xlocale""... $ac_c" 1>&6 15378echo $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 15379if test "${rxvt_cv_func_xlocale+set}" = set; then
9011 echo $ac_n "(cached) $ac_c" 1>&6 15380 echo $ECHO_N "(cached) $ECHO_C" >&6
9012else 15381else
9013 if test "$cross_compiling" = yes; then 15382 if test "$cross_compiling" = yes; then
15383 { 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 15384echo "$as_me: WARNING: Define NO_XLOCALE in config.h manually" >&2;}
9015else 15385else
9016 cat > conftest.$ac_ext <<EOF 15386 cat >conftest.$ac_ext <<_ACEOF
9017#line 9018 "configure" 15387/* confdefs.h. */
9018#include "confdefs.h" 15388_ACEOF
15389cat confdefs.h >>conftest.$ac_ext
15390cat >>conftest.$ac_ext <<_ACEOF
15391/* end confdefs.h. */
9019#include <X11/Xlib.h> 15392#include <X11/Xlib.h>
9020main() { 15393main() {
9021char *p; 15394char *p;
9022if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) 15395if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
9023exit (XSupportsLocale() ? 0 : 1); 15396exit (XSupportsLocale() ? 0 : 1);
9024else 15397else
9025exit (1);} 15398exit (1);}
9026EOF 15399_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 15400rm -f conftest$ac_exeext
9028then 15401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15402 (eval $ac_link) 2>&5
15403 ac_status=$?
15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15407 (eval $ac_try) 2>&5
15408 ac_status=$?
15409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410 (exit $ac_status); }; }; then
9029 rxvt_cv_func_xlocale=yes 15411 rxvt_cv_func_xlocale=yes
9030else 15412else
15413 echo "$as_me: program exited with status $ac_status" >&5
9031 echo "configure: failed program was:" >&5 15414echo "$as_me: failed program was:" >&5
9032 cat conftest.$ac_ext >&5 15415sed 's/^/| /' conftest.$ac_ext >&5
9033 rm -fr conftest* 15416
15417( exit $ac_status )
9034 rxvt_cv_func_xlocale=no 15418rxvt_cv_func_xlocale=no
9035fi 15419fi
9036rm -fr conftest* 15420rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9037fi 15421fi
9038
9039fi 15422fi
9040 15423echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
9041echo "$ac_t""$rxvt_cv_func_xlocale" 1>&6 15424echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6
9042if test x$rxvt_cv_func_xlocale = xyes; then 15425if test x$rxvt_cv_func_xlocale = xyes; then
15426
9043 cat >> confdefs.h <<\EOF 15427cat >>confdefs.h <<\_ACEOF
9044#define HAVE_XLOCALE 1 15428#define HAVE_XLOCALE 1
9045EOF 15429_ACEOF
9046 15430
9047fi 15431fi
9048 15432
15433echo "$as_me:$LINENO: checking for working X setlocale" >&5
9049echo $ac_n "checking for working X setlocale""... $ac_c" 1>&6 15434echo $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 15435if test "${rxvt_cv_func_xsetlocale+set}" = set; then
9052 echo $ac_n "(cached) $ac_c" 1>&6 15436 echo $ECHO_N "(cached) $ECHO_C" >&6
9053else 15437else
9054 cat > conftest.$ac_ext <<EOF 15438 cat >conftest.$ac_ext <<_ACEOF
9055#line 9056 "configure" 15439/* confdefs.h. */
9056#include "confdefs.h" 15440_ACEOF
15441cat confdefs.h >>conftest.$ac_ext
15442cat >>conftest.$ac_ext <<_ACEOF
15443/* end confdefs.h. */
9057#define X_LOCALE 1 15444#define X_LOCALE 1
9058#include <X11/Xlocale.h> 15445#include <X11/Xlocale.h>
9059int main() { 15446int
15447main ()
15448{
9060setlocale(LC_CTYPE, ""); 15449setlocale(LC_CTYPE, "");
15450 ;
9061; return 0; } 15451 return 0;
9062EOF 15452}
9063if { (eval echo configure:9064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15453_ACEOF
15454rm -f conftest.$ac_objext conftest$ac_exeext
15455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15456 (eval $ac_link) 2>conftest.er1
15457 ac_status=$?
15458 grep -v '^ *+' conftest.er1 >conftest.err
9064 rm -rf conftest* 15459 rm -f conftest.er1
15460 cat conftest.err >&5
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); } &&
15463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15465 (eval $ac_try) 2>&5
15466 ac_status=$?
15467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468 (exit $ac_status); }; } &&
15469 { ac_try='test -s conftest$ac_exeext'
15470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15471 (eval $ac_try) 2>&5
15472 ac_status=$?
15473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474 (exit $ac_status); }; }; then
9065 rxvt_cv_func_xsetlocale=yes 15475 rxvt_cv_func_xsetlocale=yes
9066else 15476else
9067 echo "configure: failed program was:" >&5 15477 echo "$as_me: failed program was:" >&5
9068 cat conftest.$ac_ext >&5 15478sed 's/^/| /' conftest.$ac_ext >&5
9069 rm -rf conftest* 15479
9070 rxvt_cv_func_xsetlocale=no 15480rxvt_cv_func_xsetlocale=no
9071fi 15481fi
9072rm -f conftest* 15482rm -f conftest.err conftest.$ac_objext \
15483 conftest$ac_exeext conftest.$ac_ext
9073fi 15484fi
9074 15485echo "$as_me:$LINENO: result: $rxvt_cv_func_xsetlocale" >&5
9075echo "$ac_t""$rxvt_cv_func_xsetlocale" 1>&6 15486echo "${ECHO_T}$rxvt_cv_func_xsetlocale" >&6
9076if test x$rxvt_cv_func_xsetlocale = xyes; then 15487if test x$rxvt_cv_func_xsetlocale = xyes; then
15488
9077 cat >> confdefs.h <<\EOF 15489cat >>confdefs.h <<\_ACEOF
9078#define HAVE_XSETLOCALE 1 15490#define HAVE_XSETLOCALE 1
9079EOF 15491_ACEOF
9080 15492
9081fi 15493fi
9082LIBS=$ac_save_LIBS 15494LIBS=$ac_save_LIBS
9083CFLAGS=$ac_save_CFLAGS 15495CFLAGS=$ac_save_CFLAGS
9084 15496
15497echo "$as_me:$LINENO: checking for working plain setlocale" >&5
9085echo $ac_n "checking for working plain setlocale""... $ac_c" 1>&6 15498echo $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 15499if test "${rxvt_cv_func_setlocale+set}" = set; then
9088 echo $ac_n "(cached) $ac_c" 1>&6 15500 echo $ECHO_N "(cached) $ECHO_C" >&6
9089else 15501else
9090 cat > conftest.$ac_ext <<EOF 15502 cat >conftest.$ac_ext <<_ACEOF
9091#line 9092 "configure" 15503/* confdefs.h. */
9092#include "confdefs.h" 15504_ACEOF
15505cat confdefs.h >>conftest.$ac_ext
15506cat >>conftest.$ac_ext <<_ACEOF
15507/* end confdefs.h. */
9093#include <locale.h> 15508#include <locale.h>
9094int main() { 15509int
15510main ()
15511{
9095setlocale(LC_CTYPE, ""); 15512setlocale(LC_CTYPE, "");
15513 ;
9096; return 0; } 15514 return 0;
9097EOF 15515}
9098if { (eval echo configure:9099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15516_ACEOF
15517rm -f conftest.$ac_objext conftest$ac_exeext
15518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15519 (eval $ac_link) 2>conftest.er1
15520 ac_status=$?
15521 grep -v '^ *+' conftest.er1 >conftest.err
9099 rm -rf conftest* 15522 rm -f conftest.er1
15523 cat conftest.err >&5
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); } &&
15526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15528 (eval $ac_try) 2>&5
15529 ac_status=$?
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); }; } &&
15532 { ac_try='test -s conftest$ac_exeext'
15533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15534 (eval $ac_try) 2>&5
15535 ac_status=$?
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); }; }; then
9100 rxvt_cv_func_setlocale=yes 15538 rxvt_cv_func_setlocale=yes
9101else 15539else
9102 echo "configure: failed program was:" >&5 15540 echo "$as_me: failed program was:" >&5
9103 cat conftest.$ac_ext >&5 15541sed 's/^/| /' conftest.$ac_ext >&5
9104 rm -rf conftest* 15542
9105 rxvt_cv_func_setlocale=no 15543rxvt_cv_func_setlocale=no
9106fi 15544fi
9107rm -f conftest* 15545rm -f conftest.err conftest.$ac_objext \
15546 conftest$ac_exeext conftest.$ac_ext
9108fi 15547fi
9109 15548echo "$as_me:$LINENO: result: $rxvt_cv_func_setlocale" >&5
9110echo "$ac_t""$rxvt_cv_func_setlocale" 1>&6 15549echo "${ECHO_T}$rxvt_cv_func_setlocale" >&6
9111if test x$rxvt_cv_func_setlocale = xyes; then 15550if test x$rxvt_cv_func_setlocale = xyes; then
15551
9112 cat >> confdefs.h <<\EOF 15552cat >>confdefs.h <<\_ACEOF
9113#define HAVE_SETLOCALE 1 15553#define HAVE_SETLOCALE 1
9114EOF 15554_ACEOF
9115 15555
9116fi 15556fi
9117 15557
15558echo "$as_me:$LINENO: checking for working nl_langinfo" >&5
9118echo $ac_n "checking for working nl_langinfo""... $ac_c" 1>&6 15559echo $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 15560if test "${rxvt_cv_func_nl_langinfo+set}" = set; then
9121 echo $ac_n "(cached) $ac_c" 1>&6 15561 echo $ECHO_N "(cached) $ECHO_C" >&6
9122else 15562else
9123 cat > conftest.$ac_ext <<EOF 15563 cat >conftest.$ac_ext <<_ACEOF
9124#line 9125 "configure" 15564/* confdefs.h. */
9125#include "confdefs.h" 15565_ACEOF
15566cat confdefs.h >>conftest.$ac_ext
15567cat >>conftest.$ac_ext <<_ACEOF
15568/* end confdefs.h. */
9126#include <langinfo.h> 15569#include <langinfo.h>
9127int main() { 15570int
15571main ()
15572{
9128nl_langinfo(CODESET); 15573nl_langinfo(CODESET);
15574 ;
9129; return 0; } 15575 return 0;
9130EOF 15576}
9131if { (eval echo configure:9132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15577_ACEOF
15578rm -f conftest.$ac_objext conftest$ac_exeext
15579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15580 (eval $ac_link) 2>conftest.er1
15581 ac_status=$?
15582 grep -v '^ *+' conftest.er1 >conftest.err
9132 rm -rf conftest* 15583 rm -f conftest.er1
15584 cat conftest.err >&5
15585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586 (exit $ac_status); } &&
15587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15589 (eval $ac_try) 2>&5
15590 ac_status=$?
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); }; } &&
15593 { ac_try='test -s conftest$ac_exeext'
15594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15595 (eval $ac_try) 2>&5
15596 ac_status=$?
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); }; }; then
9133 rxvt_cv_func_nl_langinfo=yes 15599 rxvt_cv_func_nl_langinfo=yes
9134else 15600else
9135 echo "configure: failed program was:" >&5 15601 echo "$as_me: failed program was:" >&5
9136 cat conftest.$ac_ext >&5 15602sed 's/^/| /' conftest.$ac_ext >&5
9137 rm -rf conftest* 15603
9138 rxvt_cv_func_nl_langinfo=no 15604rxvt_cv_func_nl_langinfo=no
9139fi 15605fi
9140rm -f conftest* 15606rm -f conftest.err conftest.$ac_objext \
15607 conftest$ac_exeext conftest.$ac_ext
9141fi 15608fi
9142 15609echo "$as_me:$LINENO: result: $rxvt_cv_func_nl_langinfo" >&5
9143echo "$ac_t""$rxvt_cv_func_nl_langinfo" 1>&6 15610echo "${ECHO_T}$rxvt_cv_func_nl_langinfo" >&6
9144if test x$rxvt_cv_func_nl_langinfo = xyes; then 15611if test x$rxvt_cv_func_nl_langinfo = xyes; then
15612
9145 cat >> confdefs.h <<\EOF 15613cat >>confdefs.h <<\_ACEOF
9146#define HAVE_NL_LANGINFO 1 15614#define HAVE_NL_LANGINFO 1
9147EOF 15615_ACEOF
9148 15616
9149fi 15617fi
9150 15618
15619echo "$as_me:$LINENO: checking for getpt" >&5
9151echo $ac_n "checking for getpt""... $ac_c" 1>&6 15620echo $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 15621if test "${rxvt_cv_func_getpt+set}" = set; then
9154 echo $ac_n "(cached) $ac_c" 1>&6 15622 echo $ECHO_N "(cached) $ECHO_C" >&6
9155else 15623else
9156 cat > conftest.$ac_ext <<EOF 15624 cat >conftest.$ac_ext <<_ACEOF
9157#line 9158 "configure" 15625/* confdefs.h. */
9158#include "confdefs.h" 15626_ACEOF
15627cat confdefs.h >>conftest.$ac_ext
15628cat >>conftest.$ac_ext <<_ACEOF
15629/* end confdefs.h. */
9159#define _GNU_SOURCE 15630#define _GNU_SOURCE
9160#ifdef HAVE_STDLIB_H 15631#ifdef HAVE_STDLIB_H
9161# include <stdlib.h> 15632# include <stdlib.h>
9162#endif 15633#endif
9163int main() { 15634int
15635main ()
15636{
9164(void)getpt(); 15637(void)getpt();
15638 ;
9165; return 0; } 15639 return 0;
9166EOF 15640}
9167if { (eval echo configure:9168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15641_ACEOF
15642rm -f conftest.$ac_objext conftest$ac_exeext
15643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15644 (eval $ac_link) 2>conftest.er1
15645 ac_status=$?
15646 grep -v '^ *+' conftest.er1 >conftest.err
9168 rm -rf conftest* 15647 rm -f conftest.er1
15648 cat conftest.err >&5
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); } &&
15651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15653 (eval $ac_try) 2>&5
15654 ac_status=$?
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); }; } &&
15657 { ac_try='test -s conftest$ac_exeext'
15658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15659 (eval $ac_try) 2>&5
15660 ac_status=$?
15661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); }; }; then
9169 rxvt_cv_func_getpt=yes 15663 rxvt_cv_func_getpt=yes
9170else 15664else
9171 echo "configure: failed program was:" >&5 15665 echo "$as_me: failed program was:" >&5
9172 cat conftest.$ac_ext >&5 15666sed 's/^/| /' conftest.$ac_ext >&5
9173 rm -rf conftest* 15667
9174 rxvt_cv_func_getpt=no 15668rxvt_cv_func_getpt=no
9175fi 15669fi
9176rm -f conftest* 15670rm -f conftest.err conftest.$ac_objext \
15671 conftest$ac_exeext conftest.$ac_ext
9177fi 15672fi
9178 15673echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5
9179echo "$ac_t""$rxvt_cv_func_getpt" 1>&6 15674echo "${ECHO_T}$rxvt_cv_func_getpt" >&6
9180if test x$rxvt_cv_func_getpt = xyes; then 15675if test x$rxvt_cv_func_getpt = xyes; then
15676
9181 cat >> confdefs.h <<\EOF 15677cat >>confdefs.h <<\_ACEOF
9182#define HAVE_GETPT 1 15678#define HAVE_GETPT 1
9183EOF 15679_ACEOF
9184 15680
9185fi 15681fi
9186 15682
15683echo "$as_me:$LINENO: checking for pty/tty type" >&5
9187echo $ac_n "checking for pty/tty type""... $ac_c" 1>&6 15684echo $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 15685if test "${rxvt_cv_ptys+set}" = set; then
9190 echo $ac_n "(cached) $ac_c" 1>&6 15686 echo $ECHO_N "(cached) $ECHO_C" >&6
9191else 15687else
9192 if test x$ac_cv_func_openpty = xyes; then 15688 if test x$ac_cv_func_openpty = xyes; then
9193 rxvt_cv_ptys=OPENPTY 15689 rxvt_cv_ptys=OPENPTY
9194 else if test x$ac_cv_func__getpty = xyes; then 15690 else if test x$ac_cv_func__getpty = xyes; then
9195 rxvt_cv_ptys=SGI4 15691 rxvt_cv_ptys=SGI4
9218fi 15714fi
9219fi 15715fi
9220fi 15716fi
9221 15717
9222fi 15718fi
9223 15719echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
9224echo "$ac_t""$rxvt_cv_ptys" 1>&6 15720echo "${ECHO_T}$rxvt_cv_ptys" >&6
9225 15721
9226if test x$rxvt_cv_ptys = xOPENPTY; then 15722if test x$rxvt_cv_ptys = xOPENPTY; then
15723
9227 cat >> confdefs.h <<\EOF 15724cat >>confdefs.h <<\_ACEOF
9228#define PTYS_ARE_OPENPTY 1 15725#define PTYS_ARE_OPENPTY 1
9229EOF 15726_ACEOF
9230 15727
9231fi 15728fi
9232if test x$rxvt_cv_ptys = xSCO; then 15729if test x$rxvt_cv_ptys = xSCO; then
15730
9233 cat >> confdefs.h <<\EOF 15731cat >>confdefs.h <<\_ACEOF
9234#define PTYS_ARE_NUMERIC 1 15732#define PTYS_ARE_NUMERIC 1
9235EOF 15733_ACEOF
9236 15734
9237fi 15735fi
9238if test x$rxvt_cv_ptys = xSTREAMS; then 15736if test x$rxvt_cv_ptys = xSTREAMS; then
15737
9239 cat >> confdefs.h <<\EOF 15738cat >>confdefs.h <<\_ACEOF
9240#define PTYS_ARE_PTMX 1 15739#define PTYS_ARE_PTMX 1
9241EOF 15740_ACEOF
9242 15741
9243fi 15742fi
9244if test x$rxvt_cv_ptys = xPTC; then 15743if test x$rxvt_cv_ptys = xPTC; then
15744
9245 cat >> confdefs.h <<\EOF 15745cat >>confdefs.h <<\_ACEOF
9246#define PTYS_ARE_PTC 1 15746#define PTYS_ARE_PTC 1
9247EOF 15747_ACEOF
9248 15748
9249fi 15749fi
9250if test x$rxvt_cv_ptys = xSGI4; then 15750if test x$rxvt_cv_ptys = xSGI4; then
15751
9251 cat >> confdefs.h <<\EOF 15752cat >>confdefs.h <<\_ACEOF
9252#define PTYS_ARE__GETPTY 1 15753#define PTYS_ARE__GETPTY 1
9253EOF 15754_ACEOF
9254 15755
9255fi 15756fi
9256if test x$rxvt_cv_ptys = xCONVEX; then 15757if test x$rxvt_cv_ptys = xCONVEX; then
15758
9257 cat >> confdefs.h <<\EOF 15759cat >>confdefs.h <<\_ACEOF
9258#define PTYS_ARE_GETPTY 1 15760#define PTYS_ARE_GETPTY 1
9259EOF 15761_ACEOF
9260 15762
9261fi 15763fi
9262if test x$rxvt_cv_ptys = xGLIBC; then 15764if test x$rxvt_cv_ptys = xGLIBC; then
15765
9263 cat >> confdefs.h <<\EOF 15766cat >>confdefs.h <<\_ACEOF
9264#define PTYS_ARE_GETPT 1 15767#define PTYS_ARE_GETPT 1
9265EOF 15768_ACEOF
9266 15769
9267fi 15770fi
9268if test x$rxvt_cv_ptys = xHPUX; then 15771if test x$rxvt_cv_ptys = xHPUX; then
15772
9269 cat >> confdefs.h <<\EOF 15773cat >>confdefs.h <<\_ACEOF
9270#define PTYS_ARE_CLONE 1 15774#define PTYS_ARE_CLONE 1
9271EOF 15775_ACEOF
9272 15776
9273fi 15777fi
9274if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then 15778if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then
15779
9275 cat >> confdefs.h <<\EOF 15780cat >>confdefs.h <<\_ACEOF
9276#define PTYS_ARE_SEARCHED 1 15781#define PTYS_ARE_SEARCHED 1
9277EOF 15782_ACEOF
9278 15783
9279fi 15784fi
9280 15785
9281 15786
15787{ echo "$as_me:$LINENO: checking for pty ranges..." >&5
9282echo "checking for pty ranges" 1>&6 15788echo "$as_me: checking for pty ranges..." >&6;}
9283echo "configure:9284: checking for pty ranges" >&5
9284ptys=`echo /dev/pty??` 15789ptys=`echo /dev/pty??`
9285pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` 15790pch1=`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'` 15791pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
9287if test x$pch1 != x; then 15792if test x$pch1 != x; then
15793
9288 cat >> confdefs.h <<EOF 15794cat >>confdefs.h <<_ACEOF
9289#define PTYCHAR1 "$pch1" 15795#define PTYCHAR1 "$pch1"
9290EOF 15796_ACEOF
9291 15797
9292fi 15798fi
9293if test x$pch2 != x; then 15799if test x$pch2 != x; then
15800
9294 cat >> confdefs.h <<EOF 15801cat >>confdefs.h <<_ACEOF
9295#define PTYCHAR2 "$pch2" 15802#define PTYCHAR2 "$pch2"
9296EOF 15803_ACEOF
9297 15804
9298fi 15805fi
9299 15806
15807echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
9300echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6 15808echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
9301echo "configure:9302: checking for setlocale in -lxpg4" >&5 15809if 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 15810 echo $ECHO_N "(cached) $ECHO_C" >&6
9305else 15811else
9306 ac_save_LIBS="$LIBS" 15812 ac_check_lib_save_LIBS=$LIBS
9307LIBS="-lxpg4 $LIBS" 15813LIBS="-lxpg4 $LIBS"
9308cat > conftest.$ac_ext <<EOF 15814cat >conftest.$ac_ext <<_ACEOF
9309#line 9310 "configure" 15815/* confdefs.h. */
9310#include "confdefs.h" 15816_ACEOF
15817cat confdefs.h >>conftest.$ac_ext
15818cat >>conftest.$ac_ext <<_ACEOF
15819/* end confdefs.h. */
15820
9311/* Override any gcc2 internal prototype to avoid an error. */ 15821/* Override any gcc2 internal prototype to avoid an error. */
15822#ifdef __cplusplus
15823extern "C"
15824#endif
9312/* We use char because int might match the return type of a gcc2 15825/* We use char because int might match the return type of a gcc2
9313 builtin and then its argument prototype would still apply. */ 15826 builtin and then its argument prototype would still apply. */
9314char setlocale(); 15827char setlocale ();
9315 15828int
9316int main() { 15829main ()
15830{
9317setlocale() 15831setlocale ();
15832 ;
9318; return 0; } 15833 return 0;
9319EOF 15834}
9320if { (eval echo configure:9321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15835_ACEOF
15836rm -f conftest.$ac_objext conftest$ac_exeext
15837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15838 (eval $ac_link) 2>conftest.er1
15839 ac_status=$?
15840 grep -v '^ *+' conftest.er1 >conftest.err
9321 rm -rf conftest* 15841 rm -f conftest.er1
9322 eval "ac_cv_lib_$ac_lib_var=yes" 15842 cat conftest.err >&5
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); } &&
15845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15847 (eval $ac_try) 2>&5
15848 ac_status=$?
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); }; } &&
15851 { ac_try='test -s conftest$ac_exeext'
15852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15853 (eval $ac_try) 2>&5
15854 ac_status=$?
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); }; }; then
15857 ac_cv_lib_xpg4_setlocale=yes
9323else 15858else
9324 echo "configure: failed program was:" >&5 15859 echo "$as_me: failed program was:" >&5
9325 cat conftest.$ac_ext >&5 15860sed 's/^/| /' conftest.$ac_ext >&5
9326 rm -rf conftest* 15861
9327 eval "ac_cv_lib_$ac_lib_var=no" 15862ac_cv_lib_xpg4_setlocale=no
9328fi 15863fi
9329rm -f conftest* 15864rm -f conftest.err conftest.$ac_objext \
15865 conftest$ac_exeext conftest.$ac_ext
9330LIBS="$ac_save_LIBS" 15866LIBS=$ac_check_lib_save_LIBS
9331
9332fi 15867fi
9333if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 15868echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
9334 echo "$ac_t""yes" 1>&6 15869echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
15870if test $ac_cv_lib_xpg4_setlocale = yes; then
9335 LIBS="$LIBS -lxpg4" 15871 LIBS="$LIBS -lxpg4"
9336else
9337 echo "$ac_t""no" 1>&6
9338fi 15872fi
9339 15873
9340 15874
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 15875if test x$support_inheritpixmap = xyes; then
15876
9348 cat >> confdefs.h <<\EOF 15877cat >>confdefs.h <<\_ACEOF
9349#define TRANSPARENT 1 15878#define TRANSPARENT 1
9350EOF 15879_ACEOF
9351 15880
9352fi 15881fi
9353if test x$support_keepscrolling = xno; then 15882if test x$support_keepscrolling = xno; then
15883
9354 cat >> confdefs.h <<\EOF 15884cat >>confdefs.h <<\_ACEOF
9355#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1 15885#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
9356EOF 15886_ACEOF
9357 15887
9358fi 15888fi
9359if test x$support_selectionscrolling = xyes; then 15889if test x$support_selectionscrolling = xyes; then
15890
9360 cat >> confdefs.h <<\EOF 15891cat >>confdefs.h <<\_ACEOF
9361#define SELECTION_SCROLLING 1 15892#define SELECTION_SCROLLING 1
9362EOF 15893_ACEOF
9363 15894
9364fi 15895fi
9365if test x$support_menubar = xyes; then 15896if test x$support_menubar = xyes; then
15897
9366 cat >> confdefs.h <<\EOF 15898cat >>confdefs.h <<\_ACEOF
9367#define MENUBAR 1 15899#define MENUBAR 1
9368EOF 15900_ACEOF
9369 15901
9370fi 15902fi
9371if test x$support_frills = xno; then 15903if test x$support_frills = xno; then
15904
9372 cat >> confdefs.h <<\EOF 15905cat >>confdefs.h <<\_ACEOF
9373#define NO_FRILLS 1 15906#define NO_FRILLS 1
9374EOF 15907_ACEOF
9375 15908
9376fi 15909fi
9377if test x$support_linespace = xno; then 15910if test x$support_linespace = xno; then
15911
9378 cat >> confdefs.h <<\EOF 15912cat >>confdefs.h <<\_ACEOF
9379#define NO_LINESPACE 1 15913#define NO_LINESPACE 1
9380EOF 15914_ACEOF
9381 15915
9382fi 15916fi
9383if test x$support_24bit = xyes; then 15917if test x$support_24bit = xyes; then
15918
9384 cat >> confdefs.h <<\EOF 15919cat >>confdefs.h <<\_ACEOF
9385#define PREFER_24BIT 1 15920#define PREFER_24BIT 1
9386EOF 15921_ACEOF
9387 15922
9388fi 15923fi
9389if test x$support_mousewheel = xyes; then 15924if test x$support_mousewheel = xyes; then
15925
9390 cat >> confdefs.h <<\EOF 15926cat >>confdefs.h <<\_ACEOF
9391#define MOUSE_WHEEL 1 15927#define MOUSE_WHEEL 1
9392EOF 15928_ACEOF
9393 15929
9394fi 15930fi
9395if test x$support_mouseslipwheel = xyes; then 15931if test x$support_mouseslipwheel = xyes; then
15932
9396 cat >> confdefs.h <<\EOF 15933cat >>confdefs.h <<\_ACEOF
9397#define MOUSE_SLIP_WHEELING 1 15934#define MOUSE_SLIP_WHEELING 1
9398EOF 15935_ACEOF
9399 15936
9400fi 15937fi
9401if test x$support_oldselection = xno; then 15938if test x$support_oldselection = xno; then
15939
9402 cat >> confdefs.h <<\EOF 15940cat >>confdefs.h <<\_ACEOF
9403#define NO_OLD_SELECTION 1 15941#define NO_OLD_SELECTION 1
9404EOF 15942_ACEOF
9405 15943
9406fi 15944fi
9407if test x$support_utmp = xyes; then 15945if test x$support_utmp = xyes; then
15946
9408 cat >> confdefs.h <<\EOF 15947cat >>confdefs.h <<\_ACEOF
9409#define UTMP_SUPPORT 1 15948#define UTMP_SUPPORT 1
9410EOF 15949_ACEOF
9411 15950
9412fi 15951fi
9413if test x$support_wtmp = xyes; then 15952if test x$support_wtmp = xyes; then
15953
9414 cat >> confdefs.h <<\EOF 15954cat >>confdefs.h <<\_ACEOF
9415#define WTMP_SUPPORT 1 15955#define WTMP_SUPPORT 1
9416EOF 15956_ACEOF
9417 15957
9418fi 15958fi
9419if test x$support_lastlog = xyes; then 15959if test x$support_lastlog = xyes; then
15960
9420 cat >> confdefs.h <<\EOF 15961cat >>confdefs.h <<\_ACEOF
9421#define LASTLOG_SUPPORT 1 15962#define LASTLOG_SUPPORT 1
9422EOF 15963_ACEOF
9423 15964
9424fi 15965fi
9425if test x$support_xim = xyes -o x$multichar_set = xyes; then 15966if test x$support_xim = xyes -o x$multichar_set = xyes; then
9426 if test x$rxvt_cv_func_xlocale = xyes; then 15967 if test x$rxvt_cv_func_xlocale = xyes; then
15968
9427 cat >> confdefs.h <<\EOF 15969cat >>confdefs.h <<\_ACEOF
9428#define USE_XIM 1 15970#define USE_XIM 1
9429EOF 15971_ACEOF
9430 15972
9431 fi 15973 fi
9432fi 15974fi
9433if test x$support_xpm = xyes; then 15975if test x$support_xpm = xyes; then
15976
9434 cat >> confdefs.h <<\EOF 15977cat >>confdefs.h <<\_ACEOF
9435#define XPM_BACKGROUND 1 15978#define XPM_BACKGROUND 1
9436EOF 15979_ACEOF
9437 15980
9438fi 15981fi
9439if test x$support_scroll_rxvt = xyes; then 15982if test x$support_scroll_rxvt = xyes; then
15983
9440 cat >> confdefs.h <<\EOF 15984cat >>confdefs.h <<\_ACEOF
9441#define RXVT_SCROLLBAR 1 15985#define RXVT_SCROLLBAR 1
9442EOF 15986_ACEOF
9443 15987
9444 scrolltypes="rxvt" 15988 scrolltypes="rxvt"
9445fi 15989fi
9446if test x$support_scroll_next = xyes; then 15990if test x$support_scroll_next = xyes; then
15991
9447 cat >> confdefs.h <<\EOF 15992cat >>confdefs.h <<\_ACEOF
9448#define NEXT_SCROLLBAR 1 15993#define NEXT_SCROLLBAR 1
9449EOF 15994_ACEOF
9450 15995
9451 scrolltypes="$scrolltypes next" 15996 scrolltypes="$scrolltypes next"
9452fi 15997fi
9453if test x$support_scroll_xterm = xyes; then 15998if test x$support_scroll_xterm = xyes; then
15999
9454 cat >> confdefs.h <<\EOF 16000cat >>confdefs.h <<\_ACEOF
9455#define XTERM_SCROLLBAR 1 16001#define XTERM_SCROLLBAR 1
9456EOF 16002_ACEOF
9457 16003
9458 scrolltypes="$scrolltypes xterm" 16004 scrolltypes="$scrolltypes xterm"
9459fi 16005fi
16006if test x$support_scroll_plain = xyes; then
16007
16008cat >>confdefs.h <<\_ACEOF
16009#define PLAIN_SCROLLBAR 1
16010_ACEOF
16011
16012 scrolltypes="$scrolltypes plain"
16013fi
9460if test x$support_pointer_blank = xyes; then 16014if test x$support_pointer_blank = xyes; then
16015
9461 cat >> confdefs.h <<\EOF 16016cat >>confdefs.h <<\_ACEOF
9462#define POINTER_BLANK 1 16017#define POINTER_BLANK 1
9463EOF 16018_ACEOF
9464 16019
9465fi 16020fi
9466if test x$support_cursor_blink = xyes; then 16021if test x$support_cursor_blink = xyes; then
16022
9467 cat >> confdefs.h <<\EOF 16023cat >>confdefs.h <<\_ACEOF
9468#define CURSOR_BLINK 1 16024#define CURSOR_BLINK 1
9469EOF 16025_ACEOF
16026
16027fi
16028if test x$support_text_blink = xyes; then
16029
16030cat >>confdefs.h <<\_ACEOF
16031#define TEXT_BLINK 1
16032_ACEOF
9470 16033
9471fi 16034fi
9472if test x$support_unicode3 = xyes; then 16035if test x$support_unicode3 = xyes; then
16036
9473 cat >> confdefs.h <<\EOF 16037cat >>confdefs.h <<\_ACEOF
9474#define UNICODE_3 1 16038#define UNICODE_3 1
9475EOF 16039_ACEOF
9476 16040
9477fi 16041fi
9478if test x$codesets = xall; then 16042if test x$codesets = xall; then
9479 codesets=jp,jp-ext,kr,cn,cn-ext,vn 16043 codesets=jp,jp-ext,kr,cn,cn-ext,vn
9480fi 16044fi
9481for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do 16045for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
16046
9482 cat >> confdefs.h <<\EOF 16047cat >>confdefs.h <<\_ACEOF
9483#define ENCODING_EU 1 16048#define ENCODING_EU 1
9484EOF 16049_ACEOF
9485 16050
9486 case "$codeset" in 16051 case "$codeset" in
9487 VN ) cat >> confdefs.h <<\EOF 16052 VN )
16053cat >>confdefs.h <<\_ACEOF
9488#define ENCODING_VN 1 16054#define ENCODING_VN 1
9489EOF 16055_ACEOF
9490 ;; 16056 ;;
9491 JP ) cat >> confdefs.h <<\EOF 16057 JP )
16058cat >>confdefs.h <<\_ACEOF
9492#define ENCODING_JP 1 16059#define ENCODING_JP 1
9493EOF 16060_ACEOF
9494 ;; 16061 ;;
9495 JP_EXT ) cat >> confdefs.h <<\EOF 16062 JP_EXT )
16063cat >>confdefs.h <<\_ACEOF
9496#define ENCODING_JP_EXT 1 16064#define ENCODING_JP_EXT 1
9497EOF 16065_ACEOF
9498 ;; 16066 ;;
9499 KR ) cat >> confdefs.h <<\EOF 16067 KR )
16068cat >>confdefs.h <<\_ACEOF
9500#define ENCODING_KR 1 16069#define ENCODING_KR 1
9501EOF 16070_ACEOF
9502 ;; 16071 ;;
9503 CN ) cat >> confdefs.h <<\EOF 16072 CN )
16073cat >>confdefs.h <<\_ACEOF
9504#define ENCODING_CN 1 16074#define ENCODING_CN 1
9505EOF 16075_ACEOF
9506 ;; 16076 ;;
9507 CN_EXT ) cat >> confdefs.h <<\EOF 16077 CN_EXT )
16078cat >>confdefs.h <<\_ACEOF
9508#define ENCODING_CN_EXT 1 16079#define ENCODING_CN_EXT 1
9509EOF 16080_ACEOF
9510 ;; 16081 ;;
9511 esac 16082 esac
9512done 16083done
9513 16084
9514 16085
9534 16105
9535 16106
9536 16107
9537 16108
9538if test x$support_addstrings = xno; then 16109if test x$support_addstrings = xno; then
16110
9539 cat >> confdefs.h <<\EOF 16111cat >>confdefs.h <<\_ACEOF
9540#define NO_STRINGS 1 16112#define NO_STRINGS 1
9541EOF 16113_ACEOF
9542 16114
9543fi 16115fi
9544 16116
9545MCOMMON=./autoconf/Make.common 16117MCOMMON=./autoconf/Make.common
9546 16118
9547 16119
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 && 16120test "$program_prefix" != NONE &&
9559 program_transform_name="s,^,${program_prefix},; $program_transform_name" 16121 program_transform_name="s,^,$program_prefix,;$program_transform_name"
9560# Use a double $ so make ignores it. 16122# Use a double $ so make ignores it.
9561test "$program_suffix" != NONE && 16123test "$program_suffix" != NONE &&
9562 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 16124 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
9563 16125# Double any \ or $. echo might interpret backslashes.
9564# sed with no file args requires a program. 16126# By default was `s,x,x', remove it if useless.
9565test "$program_transform_name" = "" && program_transform_name="s,x,x," 16127cat <<\_ACEOF >conftest.sed
16128s/[\\$]/&&/g;s/;s,x,x,$//
16129_ACEOF
16130program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
16131rm conftest.sed
9566 16132
9567 16133
9568RXVTNAME=`echo rxvt|sed "$program_transform_name"` 16134RXVTNAME=`echo rxvt|sed "$program_transform_name"`
9569 16135
9570 16136
9573 16139
9574if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then 16140if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
9575 include_stdint_h="#include <stdint.h>" 16141 include_stdint_h="#include <stdint.h>"
9576else 16142else
9577 include_stdint_h="/* #include <stdint.h> */" 16143 include_stdint_h="/* #include <stdint.h> */"
9578fi 16144fi
9579if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then 16145if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
9580 include_stdarg_h="#include <stdarg.h>" 16146 include_stdarg_h="#include <stdarg.h>"
9581else 16147else
9582 include_stdarg_h="/* #include <stdarg.h> */" 16148 include_stdarg_h="/* #include <stdarg.h> */"
9583fi 16149fi
9584if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then 16150if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
9585 include_stdlib_h="#include <stdlib.h>" 16151 include_stdlib_h="#include <stdlib.h>"
9586else 16152else
9587 include_stdlib_h="/* #include <stdlib.h> */" 16153 include_stdlib_h="/* #include <stdlib.h> */"
9588fi 16154fi
9589if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then 16155if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
9590 include_unistd_h="#include <unistd.h>" 16156 include_unistd_h="#include <unistd.h>"
9591else 16157else
9592 include_unistd_h="/* #include <unistd.h> */" 16158 include_unistd_h="/* #include <unistd.h> */"
9593fi 16159fi
9594if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then 16160if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
9595 include_string_h="#include <string.h>" 16161 include_string_h="#include <string.h>"
9596else 16162else
9597 include_string_h="/* #include <string.h> */" 16163 include_string_h="/* #include <string.h> */"
9598fi 16164fi
9599if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then 16165if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
9600 include_fcntl_h="#include <fcntl.h>" 16166 include_fcntl_h="#include <fcntl.h>"
9601else 16167else
9602 include_fcntl_h="/* #include <fcntl.h> */" 16168 include_fcntl_h="/* #include <fcntl.h> */"
9603fi 16169fi
9604if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then 16170if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
9605 include_util_h="#include <util.h>" 16171 include_util_h="#include <util.h>"
9606else 16172else
9607 include_util_h="/* #include <util.h> */" 16173 include_util_h="/* #include <util.h> */"
9608fi 16174fi
9609if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then 16175if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
9610 include_assert_h="#include <assert.h>" 16176 include_assert_h="#include <assert.h>"
9611else 16177else
9612 include_assert_h="/* #include <assert.h> */" 16178 include_assert_h="/* #include <assert.h> */"
9613fi 16179fi
9614if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then 16180if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
9615 include_sys_ioctl_h="#include <sys/ioctl.h>" 16181 include_sys_ioctl_h="#include <sys/ioctl.h>"
9616else 16182else
9617 include_sys_ioctl_h="/* #include <sys/ioctl.h> */" 16183 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
9618fi 16184fi
9619if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then 16185if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
9620 include_sys_select_h="#include <sys/select.h>" 16186 include_sys_select_h="#include <sys/select.h>"
9621else 16187else
9622 include_sys_select_h="/* #include <sys/select.h> */" 16188 include_sys_select_h="/* #include <sys/select.h> */"
9623fi 16189fi
9624if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then 16190if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
9625 include_sys_strredir_h="#include <sys/strredir.h>" 16191 include_sys_strredir_h="#include <sys/strredir.h>"
9626else 16192else
9627 include_sys_strredir_h="/* #include <sys/strredir.h> */" 16193 include_sys_strredir_h="/* #include <sys/strredir.h> */"
9628fi 16194fi
9629if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then 16195if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
9630 include_sys_time_h="#include <sys/time.h>" 16196 include_sys_time_h="#include <sys/time.h>"
9631else 16197else
9632 include_sys_time_h="/* #include <sys/time.h> */" 16198 include_sys_time_h="/* #include <sys/time.h> */"
9633fi 16199fi
9634if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then 16200if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
9635 include_time_h="#include <time.h>" 16201 include_time_h="#include <time.h>"
9636else 16202else
9637 include_time_h="/* #include <time.h> */" 16203 include_time_h="/* #include <time.h> */"
9638fi 16204fi
9639 16205
9640if test x$support_xft = xyes; then 16206if test x$support_xft = xyes; then
9641 LIBS="$LIBS `pkg-config xft --libs`" 16207 LIBS="$LIBS `pkg-config xft --libs`"
9642 CFLAGS="$CFLAGS `pkg-config xft --cflags`" 16208 CFLAGS="$CFLAGS `pkg-config xft --cflags`"
9643 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`" 16209 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
9644 16210
16211
9645 for ac_hdr in X11/Xft/Xft.h 16212for ac_header in X11/Xft/Xft.h
9646do 16213do
9647ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 16214as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16215if eval "test \"\${$as_ac_Header+set}\" = set"; then
16216 echo "$as_me:$LINENO: checking for $ac_header" >&5
9648echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 16217echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9649echo "configure:9650: checking for $ac_hdr" >&5 16218if 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 16219 echo $ECHO_N "(cached) $ECHO_C" >&6
16220fi
16221echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16222echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9652else 16223else
16224 # Is the header compilable?
16225echo "$as_me:$LINENO: checking $ac_header usability" >&5
16226echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9653 cat > conftest.$ac_ext <<EOF 16227cat >conftest.$ac_ext <<_ACEOF
9654#line 9655 "configure" 16228/* confdefs.h. */
9655#include "confdefs.h" 16229_ACEOF
16230cat confdefs.h >>conftest.$ac_ext
16231cat >>conftest.$ac_ext <<_ACEOF
16232/* end confdefs.h. */
16233$ac_includes_default
9656#include <$ac_hdr> 16234#include <$ac_header>
9657EOF 16235_ACEOF
9658ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 16236rm -f conftest.$ac_objext
9659{ (eval echo configure:9660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 16237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9660ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 16238 (eval $ac_compile) 2>conftest.er1
16239 ac_status=$?
16240 grep -v '^ *+' conftest.er1 >conftest.err
16241 rm -f conftest.er1
16242 cat conftest.err >&5
16243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); } &&
16245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16247 (eval $ac_try) 2>&5
16248 ac_status=$?
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); }; } &&
16251 { ac_try='test -s conftest.$ac_objext'
16252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16253 (eval $ac_try) 2>&5
16254 ac_status=$?
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); }; }; then
16257 ac_header_compiler=yes
16258else
16259 echo "$as_me: failed program was:" >&5
16260sed 's/^/| /' conftest.$ac_ext >&5
16261
16262ac_header_compiler=no
16263fi
16264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16265echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16266echo "${ECHO_T}$ac_header_compiler" >&6
16267
16268# Is the header present?
16269echo "$as_me:$LINENO: checking $ac_header presence" >&5
16270echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16271cat >conftest.$ac_ext <<_ACEOF
16272/* confdefs.h. */
16273_ACEOF
16274cat confdefs.h >>conftest.$ac_ext
16275cat >>conftest.$ac_ext <<_ACEOF
16276/* end confdefs.h. */
16277#include <$ac_header>
16278_ACEOF
16279if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16280 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16281 ac_status=$?
16282 grep -v '^ *+' conftest.er1 >conftest.err
16283 rm -f conftest.er1
16284 cat conftest.err >&5
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); } >/dev/null; then
16287 if test -s conftest.err; then
16288 ac_cpp_err=$ac_c_preproc_warn_flag
16289 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16290 else
16291 ac_cpp_err=
16292 fi
16293else
16294 ac_cpp_err=yes
16295fi
9661if test -z "$ac_err"; then 16296if test -z "$ac_cpp_err"; then
9662 rm -rf conftest* 16297 ac_header_preproc=yes
9663 eval "ac_cv_header_$ac_safe=yes"
9664else 16298else
9665 echo "$ac_err" >&5
9666 echo "configure: failed program was:" >&5 16299 echo "$as_me: failed program was:" >&5
9667 cat conftest.$ac_ext >&5 16300sed 's/^/| /' conftest.$ac_ext >&5
9668 rm -rf conftest* 16301
9669 eval "ac_cv_header_$ac_safe=no" 16302 ac_header_preproc=no
9670fi 16303fi
9671rm -f conftest* 16304rm -f conftest.err conftest.$ac_ext
16305echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16306echo "${ECHO_T}$ac_header_preproc" >&6
16307
16308# So? What about this header?
16309case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16310 yes:no: )
16311 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16312echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16314echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16315 ac_header_preproc=yes
16316 ;;
16317 no:yes:* )
16318 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16319echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16320 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16321echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16322 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16323echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16324 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16325echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16327echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16328 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16329echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16330 (
16331 cat <<\_ASBOX
16332## ------------------------------------------ ##
16333## Report this to the AC_PACKAGE_NAME lists. ##
16334## ------------------------------------------ ##
16335_ASBOX
16336 ) |
16337 sed "s/^/$as_me: WARNING: /" >&2
16338 ;;
16339esac
16340echo "$as_me:$LINENO: checking for $ac_header" >&5
16341echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16342if eval "test \"\${$as_ac_Header+set}\" = set"; then
16343 echo $ECHO_N "(cached) $ECHO_C" >&6
16344else
16345 eval "$as_ac_Header=\$ac_header_preproc"
9672fi 16346fi
9673if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 16347echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9674 echo "$ac_t""yes" 1>&6 16348echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9675 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 16349
16350fi
16351if test `eval echo '${'$as_ac_Header'}'` = yes; then
9676 cat >> confdefs.h <<EOF 16352 cat >>confdefs.h <<_ACEOF
9677#define $ac_tr_hdr 1 16353#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9678EOF 16354_ACEOF
9679 16355
9680else 16356else
9681 echo "$ac_t""no" 1>&6
9682support_xft=no 16357 support_xft=no
9683fi 16358fi
16359
9684done 16360done
9685 16361
16362
16363echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
9686 echo $ac_n "checking for XftDrawString32 in -lXft""... $ac_c" 1>&6 16364echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6
9687echo "configure:9688: checking for XftDrawString32 in -lXft" >&5 16365if 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 16366 echo $ECHO_N "(cached) $ECHO_C" >&6
9691else 16367else
9692 ac_save_LIBS="$LIBS" 16368 ac_check_lib_save_LIBS=$LIBS
9693LIBS="-lXft $LIBS" 16369LIBS="-lXft $LIBS"
9694cat > conftest.$ac_ext <<EOF 16370cat >conftest.$ac_ext <<_ACEOF
9695#line 9696 "configure" 16371/* confdefs.h. */
9696#include "confdefs.h" 16372_ACEOF
16373cat confdefs.h >>conftest.$ac_ext
16374cat >>conftest.$ac_ext <<_ACEOF
16375/* end confdefs.h. */
16376
9697/* Override any gcc2 internal prototype to avoid an error. */ 16377/* Override any gcc2 internal prototype to avoid an error. */
16378#ifdef __cplusplus
16379extern "C"
16380#endif
9698/* We use char because int might match the return type of a gcc2 16381/* We use char because int might match the return type of a gcc2
9699 builtin and then its argument prototype would still apply. */ 16382 builtin and then its argument prototype would still apply. */
9700char XftDrawString32(); 16383char XftDrawString32 ();
9701 16384int
9702int main() { 16385main ()
16386{
9703XftDrawString32() 16387XftDrawString32 ();
16388 ;
9704; return 0; } 16389 return 0;
9705EOF 16390}
9706if { (eval echo configure:9707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 16391_ACEOF
16392rm -f conftest.$ac_objext conftest$ac_exeext
16393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16394 (eval $ac_link) 2>conftest.er1
16395 ac_status=$?
16396 grep -v '^ *+' conftest.er1 >conftest.err
9707 rm -rf conftest* 16397 rm -f conftest.er1
9708 eval "ac_cv_lib_$ac_lib_var=yes" 16398 cat conftest.err >&5
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); } &&
16401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16403 (eval $ac_try) 2>&5
16404 ac_status=$?
16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); }; } &&
16407 { ac_try='test -s conftest$ac_exeext'
16408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16409 (eval $ac_try) 2>&5
16410 ac_status=$?
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); }; }; then
16413 ac_cv_lib_Xft_XftDrawString32=yes
9709else 16414else
9710 echo "configure: failed program was:" >&5 16415 echo "$as_me: failed program was:" >&5
9711 cat conftest.$ac_ext >&5 16416sed 's/^/| /' conftest.$ac_ext >&5
9712 rm -rf conftest* 16417
9713 eval "ac_cv_lib_$ac_lib_var=no" 16418ac_cv_lib_Xft_XftDrawString32=no
9714fi 16419fi
9715rm -f conftest* 16420rm -f conftest.err conftest.$ac_objext \
16421 conftest$ac_exeext conftest.$ac_ext
9716LIBS="$ac_save_LIBS" 16422LIBS=$ac_check_lib_save_LIBS
9717
9718fi 16423fi
9719if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 16424echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
9720 echo "$ac_t""yes" 1>&6 16425echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6
9721 ac_tr_lib=HAVE_LIB`echo Xft | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 16426if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
9722 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9723 cat >> confdefs.h <<EOF 16427 cat >>confdefs.h <<_ACEOF
9724#define $ac_tr_lib 1 16428#define HAVE_LIBXFT 1
9725EOF 16429_ACEOF
9726 16430
9727 LIBS="-lXft $LIBS" 16431 LIBS="-lXft $LIBS"
9728 16432
9729else 16433else
9730 echo "$ac_t""no" 1>&6
9731support_xft=no 16434 support_xft=no
9732fi 16435fi
9733 16436
16437
16438 if test x$support_xft = xyes; then
16439
9734 cat >> confdefs.h <<\EOF 16440cat >>confdefs.h <<\_ACEOF
9735#define XFT 1 16441#define XFT 1
9736EOF 16442_ACEOF
9737 16443
16444 fi
9738fi 16445fi
9739 16446
9740trap '' 1 2 15 16447 ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/test/Makefile src/rxvtlib.h W11/Makefile"
9741cat > confcache <<\EOF 16448cat >confcache <<\_ACEOF
9742# This file is a shell script that caches the results of configure 16449# This file is a shell script that caches the results of configure
9743# tests run on this system so they can be shared between configure 16450# tests run on this system so they can be shared between configure
9744# scripts and configure runs. It is not useful on other systems. 16451# scripts and configure runs, see configure's option --config-cache.
9745# If it contains results you don't want to keep, you may remove or edit it. 16452# It is not useful on other systems. If it contains results you don't
16453# want to keep, you may remove or edit it.
9746# 16454#
9747# By default, configure uses ./config.cache as the cache file,
9748# creating it if it does not exist already. You can give configure
9749# the --cache-file=FILE option to use a different cache file; that is
9750# what configure does when it calls configure scripts in
9751# subdirectories, so they share the cache.
9752# Giving --cache-file=/dev/null disables caching, for debugging configure.
9753# config.status only pays attention to the cache file if you give it the 16455# config.status only pays attention to the cache file if you give it
9754# --recheck option to rerun configure. 16456# the --recheck option to rerun configure.
9755# 16457#
9756EOF 16458# `ac_cv_env_foo' variables (set or unset) will be overridden when
16459# loading this file, other *unset* `ac_cv_foo' will be assigned the
16460# following values.
16461
16462_ACEOF
16463
9757# The following way of writing the cache mishandles newlines in values, 16464# The following way of writing the cache mishandles newlines in values,
9758# but we know of no workaround that is simple, portable, and efficient. 16465# but we know of no workaround that is simple, portable, and efficient.
9759# So, don't put newlines in cache variables' values. 16466# So, don't put newlines in cache variables' values.
9760# Ultrix sh set writes to stderr and can't be redirected directly, 16467# Ultrix sh set writes to stderr and can't be redirected directly,
9761# and sets the high bit in the cache file unless we assign to the vars. 16468# and sets the high bit in the cache file unless we assign to the vars.
16469{
9762(set) 2>&1 | 16470 (set) 2>&1 |
9763 case `(ac_space=' '; set | grep ac_space) 2>&1` in 16471 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9764 *ac_space=\ *) 16472 *ac_space=\ *)
9765 # `set' does not quote correctly, so add quotes (double-quote substitution 16473 # `set' does not quote correctly, so add quotes (double-quote
9766 # turns \\\\ into \\, and sed turns \\ into \). 16474 # substitution turns \\\\ into \\, and sed turns \\ into \).
9767 sed -n \ 16475 sed -n \
9768 -e "s/'/'\\\\''/g" \ 16476 "s/'/'\\\\''/g;
9769 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 16477 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9770 ;; 16478 ;;
9771 *) 16479 *)
9772 # `set' quotes correctly as required by POSIX, so do not add quotes. 16480 # `set' quotes correctly as required by POSIX, so do not add quotes.
9773 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 16481 sed -n \
16482 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9774 ;; 16483 ;;
9775 esac >> confcache 16484 esac;
9776if cmp -s $cache_file confcache; then 16485} |
9777 : 16486 sed '
9778else 16487 t clear
16488 : clear
16489 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16490 t end
16491 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16492 : end' >>confcache
16493if diff $cache_file confcache >/dev/null 2>&1; then :; else
9779 if test -w $cache_file; then 16494 if test -w $cache_file; then
9780 echo "updating cache $cache_file" 16495 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9781 cat confcache > $cache_file 16496 cat confcache >$cache_file
9782 else 16497 else
9783 echo "not updating unwritable cache $cache_file" 16498 echo "not updating unwritable cache $cache_file"
9784 fi 16499 fi
9785fi 16500fi
9786rm -f confcache 16501rm -f confcache
9787 16502
9788trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9789
9790test "x$prefix" = xNONE && prefix=$ac_default_prefix 16503test "x$prefix" = xNONE && prefix=$ac_default_prefix
9791# Let make expand exec_prefix. 16504# Let make expand exec_prefix.
9792test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16505test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9793 16506
9794# Any assignment to VPATH causes Sun make to only execute 16507# VPATH may cause trouble with some makes, so we remove $(srcdir),
9795# the first set of double-colon rules, so remove it if not needed. 16508# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9796# If there is a colon in the path, we need to keep it. 16509# trailing colons and then remove the whole line if VPATH becomes empty
16510# (actually we leave an empty line to preserve line numbers).
9797if test "x$srcdir" = x.; then 16511if test "x$srcdir" = x.; then
9798 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 16512 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16513s/:*\$(srcdir):*/:/;
16514s/:*\${srcdir}:*/:/;
16515s/:*@srcdir@:*/:/;
16516s/^\([^=]*=[ ]*\):*/\1/;
16517s/:*$//;
16518s/^[^=]*=[ ]*$//;
16519}'
9799fi 16520fi
9800
9801trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9802 16521
9803DEFS=-DHAVE_CONFIG_H 16522DEFS=-DHAVE_CONFIG_H
9804 16523
9805# Without the "./", some shells look in PATH for config.status. 16524ac_libobjs=
16525ac_ltlibobjs=
16526for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16527 # 1. Remove the extension, and $U if already installed.
16528 ac_i=`echo "$ac_i" |
16529 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16530 # 2. Add them.
16531 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16532 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16533done
16534LIBOBJS=$ac_libobjs
16535
16536LTLIBOBJS=$ac_ltlibobjs
16537
16538
16539
9806: ${CONFIG_STATUS=./config.status} 16540: ${CONFIG_STATUS=./config.status}
9807 16541ac_clean_files_save=$ac_clean_files
16542ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16543{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9808echo creating $CONFIG_STATUS 16544echo "$as_me: creating $CONFIG_STATUS" >&6;}
9809rm -f $CONFIG_STATUS
9810cat > $CONFIG_STATUS <<EOF 16545cat >$CONFIG_STATUS <<_ACEOF
9811#! /bin/sh 16546#! $SHELL
9812# Generated automatically by configure. 16547# Generated by $as_me.
9813# Run this file to recreate the current configuration. 16548# Run this file to recreate the current configuration.
9814# This directory was configured as follows,
9815# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9816#
9817# $0 $ac_configure_args
9818#
9819# Compiler output produced by configure, useful for debugging 16549# Compiler output produced by configure, useful for debugging
9820# configure, is in ./config.log if it exists. 16550# configure, is in config.log if it exists.
9821 16551
9822ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 16552debug=false
9823for ac_option 16553ac_cs_recheck=false
16554ac_cs_silent=false
16555SHELL=\${CONFIG_SHELL-$SHELL}
16556_ACEOF
16557
16558cat >>$CONFIG_STATUS <<\_ACEOF
16559## --------------------- ##
16560## M4sh Initialization. ##
16561## --------------------- ##
16562
16563# Be Bourne compatible
16564if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16565 emulate sh
16566 NULLCMD=:
16567 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16568 # is contrary to our usage. Disable this feature.
16569 alias -g '${1+"$@"}'='"$@"'
16570elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16571 set -o posix
16572fi
16573DUALCASE=1; export DUALCASE # for MKS sh
16574
16575# Support unset when possible.
16576if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16577 as_unset=unset
16578else
16579 as_unset=false
16580fi
16581
16582
16583# Work around bugs in pre-3.0 UWIN ksh.
16584$as_unset ENV MAIL MAILPATH
16585PS1='$ '
16586PS2='> '
16587PS4='+ '
16588
16589# NLS nuisances.
16590for as_var in \
16591 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16592 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16593 LC_TELEPHONE LC_TIME
9824do 16594do
16595 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16596 eval $as_var=C; export $as_var
16597 else
16598 $as_unset $as_var
16599 fi
16600done
16601
16602# Required to use basename.
16603if expr a : '\(a\)' >/dev/null 2>&1; then
16604 as_expr=expr
16605else
16606 as_expr=false
16607fi
16608
16609if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16610 as_basename=basename
16611else
16612 as_basename=false
16613fi
16614
16615
16616# Name of the executable.
16617as_me=`$as_basename "$0" ||
16618$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16619 X"$0" : 'X\(//\)$' \| \
16620 X"$0" : 'X\(/\)$' \| \
16621 . : '\(.\)' 2>/dev/null ||
16622echo X/"$0" |
16623 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16624 /^X\/\(\/\/\)$/{ s//\1/; q; }
16625 /^X\/\(\/\).*/{ s//\1/; q; }
16626 s/.*/./; q'`
16627
16628
16629# PATH needs CR, and LINENO needs CR and PATH.
16630# Avoid depending upon Character Ranges.
16631as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16632as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16633as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16634as_cr_digits='0123456789'
16635as_cr_alnum=$as_cr_Letters$as_cr_digits
16636
16637# The user is always right.
16638if test "${PATH_SEPARATOR+set}" != set; then
16639 echo "#! /bin/sh" >conf$$.sh
16640 echo "exit 0" >>conf$$.sh
16641 chmod +x conf$$.sh
16642 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16643 PATH_SEPARATOR=';'
16644 else
16645 PATH_SEPARATOR=:
16646 fi
16647 rm -f conf$$.sh
16648fi
16649
16650
16651 as_lineno_1=$LINENO
16652 as_lineno_2=$LINENO
16653 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16654 test "x$as_lineno_1" != "x$as_lineno_2" &&
16655 test "x$as_lineno_3" = "x$as_lineno_2" || {
16656 # Find who we are. Look in the path if we contain no path at all
16657 # relative or not.
16658 case $0 in
16659 *[\\/]* ) as_myself=$0 ;;
16660 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16661for as_dir in $PATH
16662do
16663 IFS=$as_save_IFS
16664 test -z "$as_dir" && as_dir=.
16665 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16666done
16667
16668 ;;
16669 esac
16670 # We did not find ourselves, most probably we were run as `sh COMMAND'
16671 # in which case we are not to be found in the path.
16672 if test "x$as_myself" = x; then
16673 as_myself=$0
16674 fi
16675 if test ! -f "$as_myself"; then
16676 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16677echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16678 { (exit 1); exit 1; }; }
16679 fi
16680 case $CONFIG_SHELL in
16681 '')
16682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16683for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16684do
16685 IFS=$as_save_IFS
16686 test -z "$as_dir" && as_dir=.
16687 for as_base in sh bash ksh sh5; do
16688 case $as_dir in
16689 /*)
16690 if ("$as_dir/$as_base" -c '
16691 as_lineno_1=$LINENO
16692 as_lineno_2=$LINENO
16693 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16694 test "x$as_lineno_1" != "x$as_lineno_2" &&
16695 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16696 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16697 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16698 CONFIG_SHELL=$as_dir/$as_base
16699 export CONFIG_SHELL
16700 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16701 fi;;
16702 esac
16703 done
16704done
16705;;
16706 esac
16707
16708 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16709 # uniformly replaced by the line number. The first 'sed' inserts a
16710 # line-number line before each line; the second 'sed' does the real
16711 # work. The second script uses 'N' to pair each line-number line
16712 # with the numbered line, and appends trailing '-' during
16713 # substitution so that $LINENO is not a special case at line end.
16714 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16715 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16716 sed '=' <$as_myself |
16717 sed '
16718 N
16719 s,$,-,
16720 : loop
16721 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16722 t loop
16723 s,-$,,
16724 s,^['$as_cr_digits']*\n,,
16725 ' >$as_me.lineno &&
16726 chmod +x $as_me.lineno ||
16727 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16728echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16729 { (exit 1); exit 1; }; }
16730
16731 # Don't try to exec as it changes $[0], causing all sort of problems
16732 # (the dirname of $[0] is not the place where we might find the
16733 # original and so on. Autoconf is especially sensible to this).
16734 . ./$as_me.lineno
16735 # Exit status is that of the last command.
16736 exit
16737}
16738
16739
16740case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16741 *c*,-n*) ECHO_N= ECHO_C='
16742' ECHO_T=' ' ;;
16743 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16744 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16745esac
16746
16747if expr a : '\(a\)' >/dev/null 2>&1; then
16748 as_expr=expr
16749else
16750 as_expr=false
16751fi
16752
16753rm -f conf$$ conf$$.exe conf$$.file
16754echo >conf$$.file
16755if ln -s conf$$.file conf$$ 2>/dev/null; then
16756 # We could just check for DJGPP; but this test a) works b) is more generic
16757 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16758 if test -f conf$$.exe; then
16759 # Don't use ln at all; we don't have any links
16760 as_ln_s='cp -p'
16761 else
16762 as_ln_s='ln -s'
16763 fi
16764elif ln conf$$.file conf$$ 2>/dev/null; then
16765 as_ln_s=ln
16766else
16767 as_ln_s='cp -p'
16768fi
16769rm -f conf$$ conf$$.exe conf$$.file
16770
16771if mkdir -p . 2>/dev/null; then
16772 as_mkdir_p=:
16773else
16774 test -d ./-p && rmdir ./-p
16775 as_mkdir_p=false
16776fi
16777
16778as_executable_p="test -f"
16779
16780# Sed expression to map a string onto a valid CPP name.
16781as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16782
16783# Sed expression to map a string onto a valid variable name.
16784as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16785
16786
16787# IFS
16788# We need space, tab and new line, in precisely that order.
16789as_nl='
16790'
16791IFS=" $as_nl"
16792
16793# CDPATH.
16794$as_unset CDPATH
16795
16796exec 6>&1
16797
16798# Open the log real soon, to keep \$[0] and so on meaningful, and to
16799# report actual input values of CONFIG_FILES etc. instead of their
16800# values after options handling. Logging --version etc. is OK.
16801exec 5>>config.log
16802{
16803 echo
16804 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16805## Running $as_me. ##
16806_ASBOX
16807} >&5
16808cat >&5 <<_CSEOF
16809
16810This file was extended by $as_me, which was
16811generated by GNU Autoconf 2.59. Invocation command line was
16812
16813 CONFIG_FILES = $CONFIG_FILES
16814 CONFIG_HEADERS = $CONFIG_HEADERS
16815 CONFIG_LINKS = $CONFIG_LINKS
16816 CONFIG_COMMANDS = $CONFIG_COMMANDS
16817 $ $0 $@
16818
16819_CSEOF
16820echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16821echo >&5
16822_ACEOF
16823
16824# Files that config.status was made for.
16825if test -n "$ac_config_files"; then
16826 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16827fi
16828
16829if test -n "$ac_config_headers"; then
16830 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16831fi
16832
16833if test -n "$ac_config_links"; then
16834 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16835fi
16836
16837if test -n "$ac_config_commands"; then
16838 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16839fi
16840
16841cat >>$CONFIG_STATUS <<\_ACEOF
16842
16843ac_cs_usage="\
16844\`$as_me' instantiates files from templates according to the
16845current configuration.
16846
16847Usage: $0 [OPTIONS] [FILE]...
16848
16849 -h, --help print this help, then exit
16850 -V, --version print version number, then exit
16851 -q, --quiet do not print progress messages
16852 -d, --debug don't remove temporary files
16853 --recheck update $as_me by reconfiguring in the same conditions
16854 --file=FILE[:TEMPLATE]
16855 instantiate the configuration file FILE
16856 --header=FILE[:TEMPLATE]
16857 instantiate the configuration header FILE
16858
16859Configuration files:
16860$config_files
16861
16862Configuration headers:
16863$config_headers
16864
16865Report bugs to <bug-autoconf@gnu.org>."
16866_ACEOF
16867
16868cat >>$CONFIG_STATUS <<_ACEOF
16869ac_cs_version="\\
16870config.status
16871configured by $0, generated by GNU Autoconf 2.59,
16872 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16873
16874Copyright (C) 2003 Free Software Foundation, Inc.
16875This config.status script is free software; the Free Software Foundation
16876gives unlimited permission to copy, distribute and modify it."
16877srcdir=$srcdir
16878INSTALL="$INSTALL"
16879_ACEOF
16880
16881cat >>$CONFIG_STATUS <<\_ACEOF
16882# If no file are specified by the user, then we need to provide default
16883# value. By we need to know if files were specified by the user.
16884ac_need_defaults=:
16885while test $# != 0
16886do
16887 case $1 in
16888 --*=*)
16889 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16890 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16891 ac_shift=:
16892 ;;
16893 -*)
16894 ac_option=$1
16895 ac_optarg=$2
16896 ac_shift=shift
16897 ;;
16898 *) # This is not an option, so the user has probably given explicit
16899 # arguments.
16900 ac_option=$1
16901 ac_need_defaults=false;;
16902 esac
16903
9825 case "\$ac_option" in 16904 case $ac_option in
16905 # Handling of the options.
16906_ACEOF
16907cat >>$CONFIG_STATUS <<\_ACEOF
9826 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16908 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9827 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 16909 ac_cs_recheck=: ;;
9828 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 16910 --version | --vers* | -V )
9829 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 16911 echo "$ac_cs_version"; exit 0 ;;
9830 echo "$CONFIG_STATUS generated by autoconf version 2.13" 16912 --he | --h)
9831 exit 0 ;; 16913 # Conflict between --help and --header
9832 -help | --help | --hel | --he | --h) 16914 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16915Try \`$0 --help' for more information." >&5
16916echo "$as_me: error: ambiguous option: $1
16917Try \`$0 --help' for more information." >&2;}
16918 { (exit 1); exit 1; }; };;
16919 --help | --hel | -h )
9833 echo "\$ac_cs_usage"; exit 0 ;; 16920 echo "$ac_cs_usage"; exit 0 ;;
9834 *) echo "\$ac_cs_usage"; exit 1 ;; 16921 --debug | --d* | -d )
16922 debug=: ;;
16923 --file | --fil | --fi | --f )
16924 $ac_shift
16925 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16926 ac_need_defaults=false;;
16927 --header | --heade | --head | --hea )
16928 $ac_shift
16929 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16930 ac_need_defaults=false;;
16931 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16932 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16933 ac_cs_silent=: ;;
16934
16935 # This is an error.
16936 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16937Try \`$0 --help' for more information." >&5
16938echo "$as_me: error: unrecognized option: $1
16939Try \`$0 --help' for more information." >&2;}
16940 { (exit 1); exit 1; }; } ;;
16941
16942 *) ac_config_targets="$ac_config_targets $1" ;;
16943
16944 esac
16945 shift
16946done
16947
16948ac_configure_extra_args=
16949
16950if $ac_cs_silent; then
16951 exec 6>/dev/null
16952 ac_configure_extra_args="$ac_configure_extra_args --silent"
16953fi
16954
16955_ACEOF
16956cat >>$CONFIG_STATUS <<_ACEOF
16957if \$ac_cs_recheck; then
16958 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16959 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16960fi
16961
16962_ACEOF
16963
16964
16965
16966
16967
16968cat >>$CONFIG_STATUS <<\_ACEOF
16969for ac_config_target in $ac_config_targets
16970do
16971 case "$ac_config_target" in
16972 # Handling of arguments.
16973 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
16974 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16975 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16976 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16977 "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
16978 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
16979 "W11/Makefile" ) CONFIG_FILES="$CONFIG_FILES W11/Makefile" ;;
16980 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;;
16981 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16982echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16983 { (exit 1); exit 1; }; };;
9835 esac 16984 esac
9836done 16985done
9837 16986
9838ac_given_srcdir=$srcdir 16987# If the user did not use the arguments to specify the items to instantiate,
9839ac_given_INSTALL="$INSTALL" 16988# then the envvar interface is used. Set only those that are not.
16989# We use the long form for the default assignment because of an extremely
16990# bizarre bug on SunOS 4.1.3.
16991if $ac_need_defaults; then
16992 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16993 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16994fi
9840 16995
9841trap 'rm -fr `echo "autoconf/Make.common \ 16996# Have a temporary directory for convenience. Make it in the build tree
9842Makefile \ 16997# simply because there is no reason to put it here, and in addition,
9843doc/Makefile \ 16998# creating and moving files from /tmp can sometimes cause problems.
9844src/Makefile \ 16999# Create a temporary directory, and hook for its removal unless debugging.
9845src/graphics/Makefile \ 17000$debug ||
9846src/test/Makefile \ 17001{
9847src/rxvtlib.h \ 17002 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9848W11/Makefile \ 17003 trap '{ (exit 1); exit 1; }' 1 2 13 15
9849 config.h:autoconf/config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 17004}
9850EOF 17005
17006# Create a (secure) tmp directory for tmp files.
17007
17008{
17009 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17010 test -n "$tmp" && test -d "$tmp"
17011} ||
17012{
17013 tmp=./confstat$$-$RANDOM
17014 (umask 077 && mkdir $tmp)
17015} ||
17016{
17017 echo "$me: cannot create a temporary directory in ." >&2
17018 { (exit 1); exit 1; }
17019}
17020
17021_ACEOF
17022
9851cat >> $CONFIG_STATUS <<EOF 17023cat >>$CONFIG_STATUS <<_ACEOF
9852 17024
17025#
17026# CONFIG_FILES section.
17027#
17028
17029# No need to generate the scripts if there are no CONFIG_FILES.
17030# This happens for instance when ./config.status config.h
17031if test -n "\$CONFIG_FILES"; then
9853# Protect against being on the right side of a sed subst in config.status. 17032 # Protect against being on the right side of a sed subst in config.status.
9854sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 17033 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9855 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 17034 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9856$ac_vpsub 17035s,@SHELL@,$SHELL,;t t
17036s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17037s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17038s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17039s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17040s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17041s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17042s,@exec_prefix@,$exec_prefix,;t t
17043s,@prefix@,$prefix,;t t
17044s,@program_transform_name@,$program_transform_name,;t t
17045s,@bindir@,$bindir,;t t
17046s,@sbindir@,$sbindir,;t t
17047s,@libexecdir@,$libexecdir,;t t
17048s,@datadir@,$datadir,;t t
17049s,@sysconfdir@,$sysconfdir,;t t
17050s,@sharedstatedir@,$sharedstatedir,;t t
17051s,@localstatedir@,$localstatedir,;t t
17052s,@libdir@,$libdir,;t t
17053s,@includedir@,$includedir,;t t
17054s,@oldincludedir@,$oldincludedir,;t t
17055s,@infodir@,$infodir,;t t
17056s,@mandir@,$mandir,;t t
17057s,@build_alias@,$build_alias,;t t
17058s,@host_alias@,$host_alias,;t t
17059s,@target_alias@,$target_alias,;t t
17060s,@DEFS@,$DEFS,;t t
17061s,@ECHO_C@,$ECHO_C,;t t
17062s,@ECHO_N@,$ECHO_N,;t t
17063s,@ECHO_T@,$ECHO_T,;t t
17064s,@LIBS@,$LIBS,;t t
17065s,@VERSION@,$VERSION,;t t
17066s,@DATE@,$DATE,;t t
17067s,@LSMDATE@,$LSMDATE,;t t
17068s,@LIBVERSION@,$LIBVERSION,;t t
17069s,@CC@,$CC,;t t
17070s,@CFLAGS@,$CFLAGS,;t t
17071s,@LDFLAGS@,$LDFLAGS,;t t
17072s,@CPPFLAGS@,$CPPFLAGS,;t t
17073s,@ac_ct_CC@,$ac_ct_CC,;t t
17074s,@EXEEXT@,$EXEEXT,;t t
17075s,@OBJEXT@,$OBJEXT,;t t
17076s,@CXX@,$CXX,;t t
17077s,@CXXFLAGS@,$CXXFLAGS,;t t
17078s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17079s,@CPP@,$CPP,;t t
17080s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17081s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17082s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17083s,@AWK@,$AWK,;t t
17084s,@EGREP@,$EGREP,;t t
17085s,@build@,$build,;t t
17086s,@build_cpu@,$build_cpu,;t t
17087s,@build_vendor@,$build_vendor,;t t
17088s,@build_os@,$build_os,;t t
17089s,@host@,$host,;t t
17090s,@host_cpu@,$host_cpu,;t t
17091s,@host_vendor@,$host_vendor,;t t
17092s,@host_os@,$host_os,;t t
17093s,@LN_S@,$LN_S,;t t
17094s,@ECHO@,$ECHO,;t t
17095s,@RANLIB@,$RANLIB,;t t
17096s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17097s,@STRIP@,$STRIP,;t t
17098s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17099s,@LIBTOOL@,$LIBTOOL,;t t
17100s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
17101s,@MV@,$MV,;t t
17102s,@RM@,$RM,;t t
17103s,@CP@,$CP,;t t
17104s,@LN@,$LN,;t t
17105s,@SED@,$SED,;t t
17106s,@CMP@,$CMP,;t t
17107s,@TBL@,$TBL,;t t
17108s,@X_CFLAGS@,$X_CFLAGS,;t t
17109s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17110s,@X_LIBS@,$X_LIBS,;t t
17111s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17112s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
17113s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t
17114s,@XPM_LIBS@,$XPM_LIBS,;t t
17115s,@rxvt_int16_typedef@,$rxvt_int16_typedef,;t t
17116s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
17117s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
17118s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
17119s,@rxvt_intp_define@,$rxvt_intp_define,;t t
17120s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
17121s,@DEBUG@,$DEBUG,;t t
17122s,@DINCLUDE@,$DINCLUDE,;t t
17123s,@DLIB@,$DLIB,;t t
17124s,@RXVTNAME@,$RXVTNAME,;t t
17125s,@include_stdint_h@,$include_stdint_h,;t t
17126s,@include_stdarg_h@,$include_stdarg_h,;t t
17127s,@include_stdlib_h@,$include_stdlib_h,;t t
17128s,@include_unistd_h@,$include_unistd_h,;t t
17129s,@include_string_h@,$include_string_h,;t t
17130s,@include_fcntl_h@,$include_fcntl_h,;t t
17131s,@include_util_h@,$include_util_h,;t t
17132s,@include_assert_h@,$include_assert_h,;t t
17133s,@include_sys_ioctl_h@,$include_sys_ioctl_h,;t t
17134s,@include_sys_select_h@,$include_sys_select_h,;t t
17135s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t
17136s,@include_sys_time_h@,$include_sys_time_h,;t t
17137s,@include_time_h@,$include_time_h,;t t
17138s,@LIBOBJS@,$LIBOBJS,;t t
17139s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17140/@MCOMMON@/r $MCOMMON
17141s,@MCOMMON@,,;t t
17142CEOF
17143
17144_ACEOF
17145
17146 cat >>$CONFIG_STATUS <<\_ACEOF
17147 # Split the substitutions into bite-sized pieces for seds with
17148 # small command number limits, like on Digital OSF/1 and HP-UX.
17149 ac_max_sed_lines=48
17150 ac_sed_frag=1 # Number of current file.
17151 ac_beg=1 # First line for current file.
17152 ac_end=$ac_max_sed_lines # Line after last line for current file.
17153 ac_more_lines=:
17154 ac_sed_cmds=
17155 while $ac_more_lines; do
17156 if test $ac_beg -gt 1; then
17157 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17158 else
17159 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17160 fi
17161 if test ! -s $tmp/subs.frag; then
17162 ac_more_lines=false
17163 else
17164 # The purpose of the label and of the branching condition is to
17165 # speed up the sed processing (if there are no `@' at all, there
17166 # is no need to browse any of the substitutions).
17167 # These are the two extra sed commands mentioned above.
17168 (echo ':t
17169 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17170 if test -z "$ac_sed_cmds"; then
17171 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17172 else
17173 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17174 fi
17175 ac_sed_frag=`expr $ac_sed_frag + 1`
17176 ac_beg=$ac_end
17177 ac_end=`expr $ac_end + $ac_max_sed_lines`
17178 fi
17179 done
17180 if test -z "$ac_sed_cmds"; then
17181 ac_sed_cmds=cat
17182 fi
17183fi # test -n "$CONFIG_FILES"
17184
17185_ACEOF
17186cat >>$CONFIG_STATUS <<\_ACEOF
17187for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17188 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17189 case $ac_file in
17190 - | *:- | *:-:* ) # input from stdin
17191 cat >$tmp/stdin
17192 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17193 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17194 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17195 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17196 * ) ac_file_in=$ac_file.in ;;
17197 esac
17198
17199 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17200 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17201$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17202 X"$ac_file" : 'X\(//\)[^/]' \| \
17203 X"$ac_file" : 'X\(//\)$' \| \
17204 X"$ac_file" : 'X\(/\)' \| \
17205 . : '\(.\)' 2>/dev/null ||
17206echo X"$ac_file" |
17207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17208 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17209 /^X\(\/\/\)$/{ s//\1/; q; }
17210 /^X\(\/\).*/{ s//\1/; q; }
17211 s/.*/./; q'`
17212 { if $as_mkdir_p; then
17213 mkdir -p "$ac_dir"
17214 else
17215 as_dir="$ac_dir"
17216 as_dirs=
17217 while test ! -d "$as_dir"; do
17218 as_dirs="$as_dir $as_dirs"
17219 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17220$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17221 X"$as_dir" : 'X\(//\)[^/]' \| \
17222 X"$as_dir" : 'X\(//\)$' \| \
17223 X"$as_dir" : 'X\(/\)' \| \
17224 . : '\(.\)' 2>/dev/null ||
17225echo X"$as_dir" |
17226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17227 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17228 /^X\(\/\/\)$/{ s//\1/; q; }
17229 /^X\(\/\).*/{ s//\1/; q; }
17230 s/.*/./; q'`
17231 done
17232 test ! -n "$as_dirs" || mkdir $as_dirs
17233 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17234echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17235 { (exit 1); exit 1; }; }; }
17236
17237 ac_builddir=.
17238
17239if test "$ac_dir" != .; then
17240 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17241 # A "../" for each directory in $ac_dir_suffix.
17242 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17243else
17244 ac_dir_suffix= ac_top_builddir=
17245fi
17246
17247case $srcdir in
17248 .) # No --srcdir option. We are building in place.
17249 ac_srcdir=.
17250 if test -z "$ac_top_builddir"; then
17251 ac_top_srcdir=.
17252 else
17253 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17254 fi ;;
17255 [\\/]* | ?:[\\/]* ) # Absolute path.
17256 ac_srcdir=$srcdir$ac_dir_suffix;
17257 ac_top_srcdir=$srcdir ;;
17258 *) # Relative path.
17259 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17260 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17261esac
17262
17263# Do not use `cd foo && pwd` to compute absolute paths, because
17264# the directories may not exist.
17265case `pwd` in
17266.) ac_abs_builddir="$ac_dir";;
17267*)
17268 case "$ac_dir" in
17269 .) ac_abs_builddir=`pwd`;;
17270 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17271 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17272 esac;;
17273esac
17274case $ac_abs_builddir in
17275.) ac_abs_top_builddir=${ac_top_builddir}.;;
17276*)
17277 case ${ac_top_builddir}. in
17278 .) ac_abs_top_builddir=$ac_abs_builddir;;
17279 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17280 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17281 esac;;
17282esac
17283case $ac_abs_builddir in
17284.) ac_abs_srcdir=$ac_srcdir;;
17285*)
17286 case $ac_srcdir in
17287 .) ac_abs_srcdir=$ac_abs_builddir;;
17288 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17289 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17290 esac;;
17291esac
17292case $ac_abs_builddir in
17293.) ac_abs_top_srcdir=$ac_top_srcdir;;
17294*)
17295 case $ac_top_srcdir in
17296 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17297 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17298 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17299 esac;;
17300esac
17301
17302
17303 case $INSTALL in
17304 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17305 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17306 esac
17307
17308 # Let's still pretend it is `configure' which instantiates (i.e., don't
17309 # use $as_me), people would be surprised to read:
17310 # /* config.h. Generated by config.status. */
17311 if test x"$ac_file" = x-; then
17312 configure_input=
17313 else
17314 configure_input="$ac_file. "
17315 fi
17316 configure_input=$configure_input"Generated from `echo $ac_file_in |
17317 sed 's,.*/,,'` by configure."
17318
17319 # First look for the input files in the build tree, otherwise in the
17320 # src tree.
17321 ac_file_inputs=`IFS=:
17322 for f in $ac_file_in; do
17323 case $f in
17324 -) echo $tmp/stdin ;;
17325 [\\/$]*)
17326 # Absolute (can't be DOS-style, as IFS=:)
17327 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17328echo "$as_me: error: cannot find input file: $f" >&2;}
17329 { (exit 1); exit 1; }; }
17330 echo "$f";;
17331 *) # Relative
17332 if test -f "$f"; then
17333 # Build tree
17334 echo "$f"
17335 elif test -f "$srcdir/$f"; then
17336 # Source tree
17337 echo "$srcdir/$f"
17338 else
17339 # /dev/null tree
17340 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17341echo "$as_me: error: cannot find input file: $f" >&2;}
17342 { (exit 1); exit 1; }; }
17343 fi;;
17344 esac
17345 done` || { (exit 1); exit 1; }
17346
17347 if test x"$ac_file" != x-; then
17348 { echo "$as_me:$LINENO: creating $ac_file" >&5
17349echo "$as_me: creating $ac_file" >&6;}
17350 rm -f "$ac_file"
17351 fi
17352_ACEOF
17353cat >>$CONFIG_STATUS <<_ACEOF
17354 sed "$ac_vpsub
9857$extrasub 17355$extrasub
9858s%@SHELL@%$SHELL%g
9859s%@CFLAGS@%$CFLAGS%g
9860s%@CPPFLAGS@%$CPPFLAGS%g
9861s%@CXXFLAGS@%$CXXFLAGS%g
9862s%@FFLAGS@%$FFLAGS%g
9863s%@DEFS@%$DEFS%g
9864s%@LDFLAGS@%$LDFLAGS%g
9865s%@LIBS@%$LIBS%g
9866s%@exec_prefix@%$exec_prefix%g
9867s%@prefix@%$prefix%g
9868s%@program_transform_name@%$program_transform_name%g
9869s%@bindir@%$bindir%g
9870s%@sbindir@%$sbindir%g
9871s%@libexecdir@%$libexecdir%g
9872s%@datadir@%$datadir%g
9873s%@sysconfdir@%$sysconfdir%g
9874s%@sharedstatedir@%$sharedstatedir%g
9875s%@localstatedir@%$localstatedir%g
9876s%@libdir@%$libdir%g
9877s%@includedir@%$includedir%g
9878s%@oldincludedir@%$oldincludedir%g
9879s%@infodir@%$infodir%g
9880s%@mandir@%$mandir%g
9881s%@VERSION@%$VERSION%g
9882s%@DATE@%$DATE%g
9883s%@LSMDATE@%$LSMDATE%g
9884s%@LIBVERSION@%$LIBVERSION%g
9885s%@CC@%$CC%g
9886s%@CXX@%$CXX%g
9887s%@CPP@%$CPP%g
9888s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9889s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9890s%@INSTALL_DATA@%$INSTALL_DATA%g
9891s%@AWK@%$AWK%g
9892s%@host@%$host%g
9893s%@host_alias@%$host_alias%g
9894s%@host_cpu@%$host_cpu%g
9895s%@host_vendor@%$host_vendor%g
9896s%@host_os@%$host_os%g
9897s%@build@%$build%g
9898s%@build_alias@%$build_alias%g
9899s%@build_cpu@%$build_cpu%g
9900s%@build_vendor@%$build_vendor%g
9901s%@build_os@%$build_os%g
9902s%@LN_S@%$LN_S%g
9903s%@OBJEXT@%$OBJEXT%g
9904s%@EXEEXT@%$EXEEXT%g
9905s%@ECHO@%$ECHO%g
9906s%@RANLIB@%$RANLIB%g
9907s%@STRIP@%$STRIP%g
9908s%@LIBTOOL@%$LIBTOOL%g
9909s%@INSTALL_LIBRXVT@%$INSTALL_LIBRXVT%g
9910s%@MV@%$MV%g
9911s%@RM@%$RM%g
9912s%@CP@%$CP%g
9913s%@LN@%$LN%g
9914s%@SED@%$SED%g
9915s%@CMP@%$CMP%g
9916s%@TBL@%$TBL%g
9917s%@X_CFLAGS@%$X_CFLAGS%g
9918s%@X_PRE_LIBS@%$X_PRE_LIBS%g
9919s%@X_LIBS@%$X_LIBS%g
9920s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
9921s%@XPM_CPPFLAGS@%$XPM_CPPFLAGS%g
9922s%@XPM_CFLAGS@%$XPM_CFLAGS%g
9923s%@XPM_LIBS@%$XPM_LIBS%g
9924s%@rxvt_int16_typedef@%$rxvt_int16_typedef%g
9925s%@rxvt_uint16_typedef@%$rxvt_uint16_typedef%g
9926s%@rxvt_int32_typedef@%$rxvt_int32_typedef%g
9927s%@rxvt_uint32_typedef@%$rxvt_uint32_typedef%g
9928s%@rxvt_intp_define@%$rxvt_intp_define%g
9929s%@rxvt_u_intp_define@%$rxvt_u_intp_define%g
9930s%@DEBUG@%$DEBUG%g
9931s%@DINCLUDE@%$DINCLUDE%g
9932s%@DLIB@%$DLIB%g
9933/@MCOMMON@/r $MCOMMON
9934s%@MCOMMON@%%g
9935s%@RXVTNAME@%$RXVTNAME%g
9936s%@include_stdint_h@%$include_stdint_h%g
9937s%@include_stdarg_h@%$include_stdarg_h%g
9938s%@include_stdlib_h@%$include_stdlib_h%g
9939s%@include_unistd_h@%$include_unistd_h%g
9940s%@include_string_h@%$include_string_h%g
9941s%@include_fcntl_h@%$include_fcntl_h%g
9942s%@include_util_h@%$include_util_h%g
9943s%@include_assert_h@%$include_assert_h%g
9944s%@include_sys_ioctl_h@%$include_sys_ioctl_h%g
9945s%@include_sys_select_h@%$include_sys_select_h%g
9946s%@include_sys_strredir_h@%$include_sys_strredir_h%g
9947s%@include_sys_time_h@%$include_sys_time_h%g
9948s%@include_time_h@%$include_time_h%g
9949
9950CEOF 17356_ACEOF
9951EOF
9952
9953cat >> $CONFIG_STATUS <<\EOF 17357cat >>$CONFIG_STATUS <<\_ACEOF
9954 17358:t
9955# Split the substitutions into bite-sized pieces for seds with 17359/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9956# small command number limits, like on Digital OSF/1 and HP-UX. 17360s,@configure_input@,$configure_input,;t t
9957ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 17361s,@srcdir@,$ac_srcdir,;t t
9958ac_file=1 # Number of current file. 17362s,@abs_srcdir@,$ac_abs_srcdir,;t t
9959ac_beg=1 # First line for current file. 17363s,@top_srcdir@,$ac_top_srcdir,;t t
9960ac_end=$ac_max_sed_cmds # Line after last line for current file. 17364s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9961ac_more_lines=: 17365s,@builddir@,$ac_builddir,;t t
9962ac_sed_cmds="" 17366s,@abs_builddir@,$ac_abs_builddir,;t t
9963while $ac_more_lines; do 17367s,@top_builddir@,$ac_top_builddir,;t t
9964 if test $ac_beg -gt 1; then 17368s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9965 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 17369s,@INSTALL@,$ac_INSTALL,;t t
17370" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17371 rm -f $tmp/stdin
17372 if test x"$ac_file" != x-; then
17373 mv $tmp/out $ac_file
9966 else 17374 else
9967 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 17375 cat $tmp/out
17376 rm -f $tmp/out
9968 fi 17377 fi
9969 if test ! -s conftest.s$ac_file; then 17378
9970 ac_more_lines=false
9971 rm -f conftest.s$ac_file
9972 else
9973 if test -z "$ac_sed_cmds"; then
9974 ac_sed_cmds="sed -f conftest.s$ac_file"
9975 else
9976 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9977 fi
9978 ac_file=`expr $ac_file + 1`
9979 ac_beg=$ac_end
9980 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9981 fi
9982done 17379done
9983if test -z "$ac_sed_cmds"; then 17380_ACEOF
9984 ac_sed_cmds=cat
9985fi
9986EOF
9987
9988cat >> $CONFIG_STATUS <<EOF
9989
9990CONFIG_FILES=\${CONFIG_FILES-"autoconf/Make.common \
9991Makefile \
9992doc/Makefile \
9993src/Makefile \
9994src/graphics/Makefile \
9995src/test/Makefile \
9996src/rxvtlib.h \
9997W11/Makefile \
9998"}
9999EOF
10000cat >> $CONFIG_STATUS <<\EOF 17381cat >>$CONFIG_STATUS <<\_ACEOF
10001for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10002 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10003 case "$ac_file" in
10004 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10005 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10006 *) ac_file_in="${ac_file}.in" ;;
10007 esac
10008 17382
10009 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 17383#
10010 17384# CONFIG_HEADER section.
10011 # Remove last slash and all that follows it. Not all systems have dirname. 17385#
10012 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10013 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10014 # The file is in a subdirectory.
10015 test ! -d "$ac_dir" && mkdir "$ac_dir"
10016 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10017 # A "../" for each directory in $ac_dir_suffix.
10018 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10019 else
10020 ac_dir_suffix= ac_dots=
10021 fi
10022
10023 case "$ac_given_srcdir" in
10024 .) srcdir=.
10025 if test -z "$ac_dots"; then top_srcdir=.
10026 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10027 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10028 *) # Relative path.
10029 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10030 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10031 esac
10032
10033 case "$ac_given_INSTALL" in
10034 [/$]*) INSTALL="$ac_given_INSTALL" ;;
10035 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10036 esac
10037
10038 echo creating "$ac_file"
10039 rm -f "$ac_file"
10040 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10041 case "$ac_file" in
10042 *Makefile*) ac_comsub="1i\\
10043# $configure_input" ;;
10044 *) ac_comsub= ;;
10045 esac
10046
10047 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10048 sed -e "$ac_comsub
10049s%@configure_input@%$configure_input%g
10050s%@srcdir@%$srcdir%g
10051s%@top_srcdir@%$top_srcdir%g
10052s%@INSTALL@%$INSTALL%g
10053" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
10054fi; done
10055rm -f conftest.s*
10056 17386
10057# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 17387# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10058# NAME is the cpp macro being defined and VALUE is the value it is being given. 17388# NAME is the cpp macro being defined and VALUE is the value it is being given.
10059# 17389#
10060# ac_d sets the value in "#define NAME VALUE" lines. 17390# ac_d sets the value in "#define NAME VALUE" lines.
10061ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 17391ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10062ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 17392ac_dB='[ ].*$,\1#\2'
10063ac_dC='\3' 17393ac_dC=' '
10064ac_dD='%g' 17394ac_dD=',;t'
10065# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 17395# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10066ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 17396ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10067ac_uB='\([ ]\)%\1#\2define\3' 17397ac_uB='$,\1#\2define\3'
10068ac_uC=' ' 17398ac_uC=' '
10069ac_uD='\4%g' 17399ac_uD=',;t'
10070# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10071ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10072ac_eB='$%\1#\2define\3'
10073ac_eC=' '
10074ac_eD='%g'
10075 17400
10076if test "${CONFIG_HEADERS+set}" != set; then
10077EOF
10078cat >> $CONFIG_STATUS <<EOF
10079 CONFIG_HEADERS="config.h:autoconf/config.h.in"
10080EOF
10081cat >> $CONFIG_STATUS <<\EOF
10082fi
10083for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 17401for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10084 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 17402 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10085 case "$ac_file" in 17403 case $ac_file in
17404 - | *:- | *:-:* ) # input from stdin
17405 cat >$tmp/stdin
17406 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17407 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10086 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 17408 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10087 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 17409 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10088 *) ac_file_in="${ac_file}.in" ;; 17410 * ) ac_file_in=$ac_file.in ;;
10089 esac 17411 esac
10090 17412
10091 echo creating $ac_file 17413 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17414echo "$as_me: creating $ac_file" >&6;}
10092 17415
10093 rm -f conftest.frag conftest.in conftest.out 17416 # First look for the input files in the build tree, otherwise in the
10094 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 17417 # src tree.
10095 cat $ac_file_inputs > conftest.in 17418 ac_file_inputs=`IFS=:
17419 for f in $ac_file_in; do
17420 case $f in
17421 -) echo $tmp/stdin ;;
17422 [\\/$]*)
17423 # Absolute (can't be DOS-style, as IFS=:)
17424 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17425echo "$as_me: error: cannot find input file: $f" >&2;}
17426 { (exit 1); exit 1; }; }
17427 # Do quote $f, to prevent DOS paths from being IFS'd.
17428 echo "$f";;
17429 *) # Relative
17430 if test -f "$f"; then
17431 # Build tree
17432 echo "$f"
17433 elif test -f "$srcdir/$f"; then
17434 # Source tree
17435 echo "$srcdir/$f"
17436 else
17437 # /dev/null tree
17438 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17439echo "$as_me: error: cannot find input file: $f" >&2;}
17440 { (exit 1); exit 1; }; }
17441 fi;;
17442 esac
17443 done` || { (exit 1); exit 1; }
17444 # Remove the trailing spaces.
17445 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10096 17446
10097EOF 17447_ACEOF
10098 17448
10099# Transform confdefs.h into a sed script conftest.vals that substitutes 17449# Transform confdefs.h into two sed scripts, `conftest.defines' and
10100# the proper values into config.h.in to produce config.h. And first: 17450# `conftest.undefs', that substitutes the proper values into
17451# config.h.in to produce config.h. The first handles `#define'
17452# templates, and the second `#undef' templates.
10101# Protect against being on the right side of a sed subst in config.status. 17453# And first: Protect against being on the right side of a sed subst in
10102# Protect against being in an unquoted here document in config.status. 17454# config.status. Protect against being in an unquoted here document
10103rm -f conftest.vals 17455# in config.status.
10104cat > conftest.hdr <<\EOF 17456rm -f conftest.defines conftest.undefs
17457# Using a here document instead of a string reduces the quoting nightmare.
17458# Putting comments in sed scripts is not portable.
17459#
17460# `end' is used to avoid that the second main sed command (meant for
17461# 0-ary CPP macros) applies to n-ary macro definitions.
17462# See the Autoconf documentation for `clear'.
17463cat >confdef2sed.sed <<\_ACEOF
10105s/[\\&%]/\\&/g 17464s/[\\&,]/\\&/g
10106s%[\\$`]%\\&%g 17465s,[\\$`],\\&,g
10107s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 17466t clear
10108s%ac_d%ac_u%gp 17467: clear
10109s%ac_u%ac_e%gp 17468s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10110EOF 17469t end
10111sed -n -f conftest.hdr confdefs.h > conftest.vals 17470s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10112rm -f conftest.hdr 17471: end
17472_ACEOF
17473# If some macros were called several times there might be several times
17474# the same #defines, which is useless. Nevertheless, we may not want to
17475# sort them, since we want the *last* AC-DEFINE to be honored.
17476uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17477sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17478rm -f confdef2sed.sed
10113 17479
10114# This sed command replaces #undef with comments. This is necessary, for 17480# This sed command replaces #undef with comments. This is necessary, for
10115# example, in the case of _POSIX_SOURCE, which is predefined and required 17481# example, in the case of _POSIX_SOURCE, which is predefined and required
10116# on some systems where configure will not decide to define it. 17482# on some systems where configure will not decide to define it.
10117cat >> conftest.vals <<\EOF 17483cat >>conftest.undefs <<\_ACEOF
10118s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 17484s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10119EOF 17485_ACEOF
10120 17486
10121# Break up conftest.vals because some shells have a limit on 17487# Break up conftest.defines because some shells have a limit on the size
10122# the size of here documents, and old seds have small limits too. 17488# of here documents, and old seds have small limits too (100 cmds).
10123 17489echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17490echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17491echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17492echo ' :' >>$CONFIG_STATUS
10124rm -f conftest.tail 17493rm -f conftest.tail
10125while : 17494while grep . conftest.defines >/dev/null
10126do 17495do
10127 ac_lines=`grep -c . conftest.vals`
10128 # grep -c gives empty output for an empty file on some AIX systems.
10129 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10130 # Write a limited-size here document to conftest.frag. 17496 # Write a limited-size here document to $tmp/defines.sed.
10131 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 17497 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17498 # Speed up: don't consider the non `#define' lines.
17499 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17500 # Work around the forget-to-reset-the-flag bug.
17501 echo 't clr' >>$CONFIG_STATUS
17502 echo ': clr' >>$CONFIG_STATUS
10132 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 17503 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10133 echo 'CEOF 17504 echo 'CEOF
10134 sed -f conftest.frag conftest.in > conftest.out 17505 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10135 rm -f conftest.in 17506 rm -f $tmp/in
10136 mv conftest.out conftest.in 17507 mv $tmp/out $tmp/in
10137' >> $CONFIG_STATUS 17508' >>$CONFIG_STATUS
10138 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 17509 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10139 rm -f conftest.vals 17510 rm -f conftest.defines
10140 mv conftest.tail conftest.vals 17511 mv conftest.tail conftest.defines
10141done 17512done
17513rm -f conftest.defines
17514echo ' fi # grep' >>$CONFIG_STATUS
17515echo >>$CONFIG_STATUS
17516
17517# Break up conftest.undefs because some shells have a limit on the size
17518# of here documents, and old seds have small limits too (100 cmds).
17519echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10142rm -f conftest.vals 17520rm -f conftest.tail
17521while grep . conftest.undefs >/dev/null
17522do
17523 # Write a limited-size here document to $tmp/undefs.sed.
17524 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17525 # Speed up: don't consider the non `#undef'
17526 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17527 # Work around the forget-to-reset-the-flag bug.
17528 echo 't clr' >>$CONFIG_STATUS
17529 echo ': clr' >>$CONFIG_STATUS
17530 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17531 echo 'CEOF
17532 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17533 rm -f $tmp/in
17534 mv $tmp/out $tmp/in
17535' >>$CONFIG_STATUS
17536 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17537 rm -f conftest.undefs
17538 mv conftest.tail conftest.undefs
17539done
17540rm -f conftest.undefs
10143 17541
10144cat >> $CONFIG_STATUS <<\EOF 17542cat >>$CONFIG_STATUS <<\_ACEOF
10145 rm -f conftest.frag conftest.h 17543 # Let's still pretend it is `configure' which instantiates (i.e., don't
10146 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 17544 # use $as_me), people would be surprised to read:
10147 cat conftest.in >> conftest.h 17545 # /* config.h. Generated by config.status. */
10148 rm -f conftest.in 17546 if test x"$ac_file" = x-; then
10149 if cmp -s $ac_file conftest.h 2>/dev/null; then 17547 echo "/* Generated by configure. */" >$tmp/config.h
10150 echo "$ac_file is unchanged"
10151 rm -f conftest.h
10152 else 17548 else
10153 # Remove last slash and all that follows it. Not all systems have dirname. 17549 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10154 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 17550 fi
10155 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 17551 cat $tmp/in >>$tmp/config.h
10156 # The file is in a subdirectory. 17552 rm -f $tmp/in
17553 if test x"$ac_file" != x-; then
17554 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17555 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17556echo "$as_me: $ac_file is unchanged" >&6;}
17557 else
17558 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17559$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17560 X"$ac_file" : 'X\(//\)[^/]' \| \
17561 X"$ac_file" : 'X\(//\)$' \| \
17562 X"$ac_file" : 'X\(/\)' \| \
17563 . : '\(.\)' 2>/dev/null ||
17564echo X"$ac_file" |
17565 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17566 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17567 /^X\(\/\/\)$/{ s//\1/; q; }
17568 /^X\(\/\).*/{ s//\1/; q; }
17569 s/.*/./; q'`
17570 { if $as_mkdir_p; then
17571 mkdir -p "$ac_dir"
17572 else
17573 as_dir="$ac_dir"
17574 as_dirs=
17575 while test ! -d "$as_dir"; do
17576 as_dirs="$as_dir $as_dirs"
17577 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17578$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17579 X"$as_dir" : 'X\(//\)[^/]' \| \
17580 X"$as_dir" : 'X\(//\)$' \| \
17581 X"$as_dir" : 'X\(/\)' \| \
17582 . : '\(.\)' 2>/dev/null ||
17583echo X"$as_dir" |
17584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17585 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17586 /^X\(\/\/\)$/{ s//\1/; q; }
17587 /^X\(\/\).*/{ s//\1/; q; }
17588 s/.*/./; q'`
17589 done
10157 test ! -d "$ac_dir" && mkdir "$ac_dir" 17590 test ! -n "$as_dirs" || mkdir $as_dirs
17591 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17592echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17593 { (exit 1); exit 1; }; }; }
17594
17595 rm -f $ac_file
17596 mv $tmp/config.h $ac_file
10158 fi 17597 fi
10159 rm -f $ac_file 17598 else
10160 mv conftest.h $ac_file 17599 cat $tmp/config.h
17600 rm -f $tmp/config.h
10161 fi 17601 fi
10162fi; done 17602done
17603_ACEOF
10163 17604
10164EOF
10165cat >> $CONFIG_STATUS <<EOF
10166
10167EOF
10168cat >> $CONFIG_STATUS <<\EOF 17605cat >>$CONFIG_STATUS <<\_ACEOF
10169 17606
10170exit 0 17607{ (exit 0); exit 0; }
10171EOF 17608_ACEOF
10172chmod +x $CONFIG_STATUS 17609chmod +x $CONFIG_STATUS
10173rm -fr confdefs* $ac_clean_files 17610ac_clean_files=$ac_clean_files_save
10174test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 17611
17612
17613# configure is writing to config.log, and then calls config.status.
17614# config.status does its own redirection, appending to config.log.
17615# Unfortunately, on DOS this fails, as config.log is still kept open
17616# by configure, so config.status won't be able to write to it; its
17617# output is simply discarded. So we exec the FD to /dev/null,
17618# effectively closing config.log, so it can be properly (re)opened and
17619# appended to by config.status. When coming back to configure, we
17620# need to make the FD available again.
17621if test "$no_create" != yes; then
17622 ac_cs_success=:
17623 ac_config_status_args=
17624 test "$silent" = yes &&
17625 ac_config_status_args="$ac_config_status_args --quiet"
17626 exec 5>/dev/null
17627 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17628 exec 5>>config.log
17629 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17630 # would make configure fail if this is the last instruction.
17631 $ac_cs_success || { (exit 1); exit 1; }
17632fi
10175 17633
10176 17634
10177echo "Configuration: 17635echo "Configuration:
10178 17636
10179 Rxvt version: $VERSION : $DATE 17637 Rxvt version: $VERSION : $DATE

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines