1615
1998
echo "$ac_t""$cf_cv_posix_c_source" 1>&6
1616
test "$cf_cv_posix_c_source" != no && CPPFLAGS="$CPPFLAGS $cf_cv_posix_c_source"
2000
if test "$cf_cv_posix_c_source" != no ; then
2001
CFLAGS="$cf_trim_CFLAGS"
2002
CPPFLAGS="$cf_trim_CPPFLAGS"
2003
if test "$cf_cv_cc_u_d_options" = yes ; then
2004
cf_temp_posix_c_source=`echo "$cf_cv_posix_c_source" | \
2005
sed -e 's/-D/-U/g' -e 's/=[^ ]*//g'`
2006
CPPFLAGS="$CPPFLAGS $cf_temp_posix_c_source"
2008
CPPFLAGS="$CPPFLAGS $cf_cv_posix_c_source"
2015
echo $ac_n "checking for working const""... $ac_c" 1>&6
2016
echo "configure:2017: checking for working const" >&5
2017
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2018
echo $ac_n "(cached) $ac_c" 1>&6
2020
cat > conftest.$ac_ext <<EOF
2021
#line 2022 "configure"
2022
#include "confdefs.h"
2026
/* Ultrix mips cc rejects this. */
2027
typedef int charset[2]; const charset x;
2028
/* SunOS 4.1.1 cc rejects this. */
2029
char const *const *ccp;
2031
/* NEC SVR4.0.2 mips cc rejects this. */
2032
struct point {int x, y;};
2033
static struct point const zero = {0,0};
2034
/* AIX XL C 1.02.0.0 rejects this.
2035
It does not let you subtract one const X* pointer from another in an arm
2036
of an if-expression whose if-part is not a constant expression */
2037
const char *g = "string";
2038
ccp = &g + (g ? g-g : 0);
2039
/* HPUX 7.0 cc rejects these. */
2042
ccp = (char const *const *) p;
2043
{ /* SCO 3.2v4 cc rejects this. */
2045
char const *s = 0 ? (char *) 0 : (char const *) 0;
2049
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2051
const int *foo = &x[0];
2054
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2055
typedef const int *iptr;
2059
{ /* AIX XL C 1.02.0.0 rejects this saying
2060
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2061
struct s { int j; const int *ap[3]; };
2062
struct s *b; b->j = 5;
2064
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2070
if { (eval echo configure:2071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2074
echo "configure: failed program was:" >&5
2075
cat conftest.$ac_ext >&5
2082
echo "$ac_t""$ac_cv_c_const" 1>&6
2083
if test $ac_cv_c_const = no; then
2084
cat >> confdefs.h <<\EOF
2091
echo $ac_n "checking for signal global datatype""... $ac_c" 1>&6
2092
echo "configure:2093: checking for signal global datatype" >&5
2093
if eval "test \"`echo '$''{'cf_cv_sig_atomic_t'+set}'`\" = set"; then
2094
echo $ac_n "(cached) $ac_c" 1>&6
2098
"volatile sig_atomic_t" \
2102
cat > conftest.$ac_ext <<EOF
2103
#line 2104 "configure"
2104
#include "confdefs.h"
2106
#include <sys/types.h>
2112
static void handler(int sig)
2117
signal(SIGINT, handler);
2121
if { (eval echo configure:2122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2123
cf_cv_sig_atomic_t=$cf_type
2125
echo "configure: failed program was:" >&5
2126
cat conftest.$ac_ext >&5
2128
cf_cv_sig_atomic_t=no
2131
test "$cf_cv_sig_atomic_t" != no && break
2136
echo "$ac_t""$cf_cv_sig_atomic_t" 1>&6
2137
test "$cf_cv_sig_atomic_t" != no && cat >> confdefs.h <<EOF
2138
#define SIG_ATOMIC_T $cf_cv_sig_atomic_t
2144
echo $ac_n "checking if you want to see long compiling messages""... $ac_c" 1>&6
2145
echo "configure:2146: checking if you want to see long compiling messages" >&5
2147
# Check whether --enable-echo or --disable-echo was given.
2148
if test "${enable_echo+set}" = set; then
2149
enableval="$enable_echo"
2150
test "$enableval" != no && enableval=yes
2151
if test "$enableval" != "yes" ; then
2154
ECHO_LD='@echo linking $@;'
2155
RULE_CC=' @echo compiling $<'
2156
SHOW_CC=' @echo compiling $@'
2163
RULE_CC='# compiling'
2164
SHOW_CC='# compiling'
2173
RULE_CC='# compiling'
2174
SHOW_CC='# compiling'
2180
echo "$ac_t""$enableval" 1>&6
2190
if test "$GCC" = yes ; then
2191
echo $ac_n "checking version of $CC""... $ac_c" 1>&6
2192
echo "configure:2193: checking version of $CC" >&5
2193
GCC_VERSION="`${CC} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2194
test -z "$GCC_VERSION" && GCC_VERSION=unknown
2195
echo "$ac_t""$GCC_VERSION" 1>&6
2199
if ( test "$GCC" = yes || test "$GXX" = yes )
2201
echo $ac_n "checking if you want to turn on gcc warnings""... $ac_c" 1>&6
2202
echo "configure:2203: checking if you want to turn on gcc warnings" >&5
2204
# Check whether --enable-warnings or --disable-warnings was given.
2205
if test "${enable_warnings+set}" = set; then
2206
enableval="$enable_warnings"
2207
test "$enableval" != yes && enableval=no
2208
if test "$enableval" != "no" ; then
2219
echo "$ac_t""$with_warnings" 1>&6
2220
if test "$with_warnings" = "yes"
2227
if test "$GCC" = yes ; then
2230
echo $ac_n "checking if this is really Intel C compiler""... $ac_c" 1>&6
2231
echo "configure:2232: checking if this is really Intel C compiler" >&5
2232
cf_save_CFLAGS="$CFLAGS"
2233
CFLAGS="$CFLAGS -no-gcc"
2234
cat > conftest.$ac_ext <<EOF
2235
#line 2236 "configure"
2236
#include "confdefs.h"
2240
#ifdef __INTEL_COMPILER
2247
if { (eval echo configure:2248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2250
cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
2253
echo "configure: failed program was:" >&5
2254
cat conftest.$ac_ext >&5
2257
CFLAGS="$cf_save_CFLAGS"
2258
echo "$ac_t""$INTEL_COMPILER" 1>&6
2264
cat > conftest.$ac_ext <<EOF
2265
#line 2266 "${as_me-configure}"
2266
int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
2269
if test "$INTEL_COMPILER" = yes
2271
# The "-wdXXX" options suppress warnings:
2272
# remark #1419: external declaration in primary source file
2273
# remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
2274
# remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
2275
# remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
2276
# remark #193: zero used for undefined preprocessing identifier
2277
# remark #593: variable "curs_sb_left_arrow" was set but never used
2278
# remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
2279
# remark #869: parameter "tw" was never referenced
2280
# remark #981: operands are evaluated in unspecified order
2281
# warning #269: invalid format string conversion
2283
echo "checking for $CC warning options" 1>&6
2284
echo "configure:2285: checking for $CC warning options" >&5
2285
cf_save_CFLAGS="$CFLAGS"
2286
EXTRA_CFLAGS="-Wall"
2299
CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
2300
if { (eval echo configure:2301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2301
test -n "$verbose" && echo "$ac_t""... -$cf_opt" 1>&6
2302
EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
2305
CFLAGS="$cf_save_CFLAGS"
2307
elif test "$GCC" = yes
2309
echo "checking for $CC warning options" 1>&6
2310
echo "configure:2311: checking for $CC warning options" >&5
2311
cf_save_CFLAGS="$CFLAGS"
2312
EXTRA_CFLAGS="-W -Wall"
2314
test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
2316
Wbad-function-cast \
2320
Wmissing-declarations \
2321
Wmissing-prototypes \
2325
Wstrict-prototypes \
2326
Wundef $cf_warn_CONST
2328
CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
2329
if { (eval echo configure:2330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2330
test -n "$verbose" && echo "$ac_t""... -$cf_opt" 1>&6
2331
case $cf_opt in #(vi
2333
CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
2336
case $GCC_VERSION in
2338
test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
2340
echo "${as_me-configure}:2341: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
2347
EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
2350
CFLAGS="$cf_save_CFLAGS"
3876
echo $ac_n "checking for new_panel in -lpanel$cf_cv_libtype""... $ac_c" 1>&6
3877
echo "configure:3878: checking for new_panel in -lpanel$cf_cv_libtype" >&5
5227
if test "$no_x" = yes; then
5228
# Not all programs may use this symbol, but it does not hurt to define it.
5229
cat >> confdefs.h <<\EOF
5230
#define X_DISPLAY_MISSING 1
5233
X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5235
if test -n "$x_includes"; then
5236
X_CFLAGS="$X_CFLAGS -I$x_includes"
5239
# It would also be nice to do this for all -L options, not just this one.
5240
if test -n "$x_libraries"; then
5241
X_LIBS="$X_LIBS -L$x_libraries"
5242
# For Solaris; some versions of Sun CC require a space after -R and
5243
# others require no space. Words are not sufficient . . . .
5244
case "`(uname -sr) 2>/dev/null`" in
5246
echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5247
echo "configure:5248: checking whether -R must be followed by a space" >&5
5248
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5249
cat > conftest.$ac_ext <<EOF
5250
#line 5251 "configure"
5251
#include "confdefs.h"
5257
if { (eval echo configure:5258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5261
echo "configure: failed program was:" >&5
5262
cat conftest.$ac_ext >&5
5267
if test $ac_R_nospace = yes; then
5268
echo "$ac_t""no" 1>&6
5269
X_LIBS="$X_LIBS -R$x_libraries"
5271
LIBS="$ac_xsave_LIBS -R $x_libraries"
5272
cat > conftest.$ac_ext <<EOF
5273
#line 5274 "configure"
5274
#include "confdefs.h"
5280
if { (eval echo configure:5281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5284
echo "configure: failed program was:" >&5
5285
cat conftest.$ac_ext >&5
5290
if test $ac_R_space = yes; then
5291
echo "$ac_t""yes" 1>&6
5292
X_LIBS="$X_LIBS -R $x_libraries"
5294
echo "$ac_t""neither works" 1>&6
5297
LIBS="$ac_xsave_LIBS"
5301
# Check for system-dependent libraries X programs must link with.
5302
# Do this before checking for the system-independent R6 libraries
5303
# (-lICE), since we may need -lsocket or whatever for X linking.
5305
if test "$ISC" = yes; then
5306
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5308
# Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
5309
# libraries were built with DECnet support. And karl@cs.umb.edu says
5310
# the Alpha needs dnet_stub (dnet does not exist).
5311
echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5312
echo "configure:5313: checking for dnet_ntoa in -ldnet" >&5
5313
ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5314
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5315
echo $ac_n "(cached) $ac_c" 1>&6
5317
ac_save_LIBS="$LIBS"
5319
cat > conftest.$ac_ext <<EOF
5320
#line 5321 "configure"
5321
#include "confdefs.h"
5322
/* Override any gcc2 internal prototype to avoid an error. */
5323
/* We use char because int might match the return type of a gcc2
5324
builtin and then its argument prototype would still apply. */
5331
if { (eval echo configure:5332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5333
eval "ac_cv_lib_$ac_lib_var=yes"
5335
echo "configure: failed program was:" >&5
5336
cat conftest.$ac_ext >&5
5338
eval "ac_cv_lib_$ac_lib_var=no"
5341
LIBS="$ac_save_LIBS"
5344
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5345
echo "$ac_t""yes" 1>&6
5346
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5348
echo "$ac_t""no" 1>&6
5351
if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5352
echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5353
echo "configure:5354: checking for dnet_ntoa in -ldnet_stub" >&5
5354
ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5355
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5356
echo $ac_n "(cached) $ac_c" 1>&6
5358
ac_save_LIBS="$LIBS"
5359
LIBS="-ldnet_stub $LIBS"
5360
cat > conftest.$ac_ext <<EOF
5361
#line 5362 "configure"
5362
#include "confdefs.h"
5363
/* Override any gcc2 internal prototype to avoid an error. */
5364
/* We use char because int might match the return type of a gcc2
5365
builtin and then its argument prototype would still apply. */
5372
if { (eval echo configure:5373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5374
eval "ac_cv_lib_$ac_lib_var=yes"
5376
echo "configure: failed program was:" >&5
5377
cat conftest.$ac_ext >&5
5379
eval "ac_cv_lib_$ac_lib_var=no"
5382
LIBS="$ac_save_LIBS"
5385
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5386
echo "$ac_t""yes" 1>&6
5387
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5389
echo "$ac_t""no" 1>&6
5394
# msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5395
# to get the SysV transport functions.
5396
# chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5398
# The nsl library prevents programs from opening the X display
5399
# on Irix 5.2, according to dickey@clark.net.
5400
echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5401
echo "configure:5402: checking for gethostbyname" >&5
5402
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
5403
echo $ac_n "(cached) $ac_c" 1>&6
5405
cat > conftest.$ac_ext <<EOF
5406
#line 5407 "configure"
5407
#include "confdefs.h"
5408
/* System header to define __stub macros and hopefully few prototypes,
5409
which can conflict with char gethostbyname(); below. */
5411
/* Override any gcc2 internal prototype to avoid an error. */
5412
/* We use char because int might match the return type of a gcc2
5413
builtin and then its argument prototype would still apply. */
5414
char gethostbyname();
5418
/* The GNU C library defines this for functions which it implements
5419
to always fail with ENOSYS. Some functions are actually named
5420
something starting with __ and the normal name is an alias. */
5421
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5429
if { (eval echo configure:5430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5431
eval "ac_cv_func_gethostbyname=yes"
5433
echo "configure: failed program was:" >&5
5434
cat conftest.$ac_ext >&5
5436
eval "ac_cv_func_gethostbyname=no"
5441
if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5442
echo "$ac_t""yes" 1>&6
5445
echo "$ac_t""no" 1>&6
5448
if test $ac_cv_func_gethostbyname = no; then
5449
echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5450
echo "configure:5451: checking for gethostbyname in -lnsl" >&5
5451
ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5452
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5453
echo $ac_n "(cached) $ac_c" 1>&6
5455
ac_save_LIBS="$LIBS"
5457
cat > conftest.$ac_ext <<EOF
5458
#line 5459 "configure"
5459
#include "confdefs.h"
5460
/* Override any gcc2 internal prototype to avoid an error. */
5461
/* We use char because int might match the return type of a gcc2
5462
builtin and then its argument prototype would still apply. */
5463
char gethostbyname();
5469
if { (eval echo configure:5470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5471
eval "ac_cv_lib_$ac_lib_var=yes"
5473
echo "configure: failed program was:" >&5
5474
cat conftest.$ac_ext >&5
5476
eval "ac_cv_lib_$ac_lib_var=no"
5479
LIBS="$ac_save_LIBS"
5482
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5483
echo "$ac_t""yes" 1>&6
5484
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5486
echo "$ac_t""no" 1>&6
5491
# lieder@skyler.mavd.honeywell.com says without -lsocket,
5492
# socket/setsockopt and other routines are undefined under SCO ODT
5493
# 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5494
# on later versions), says simon@lia.di.epfl.ch: it contains
5495
# gethostby* variants that don't use the nameserver (or something).
5496
# -lsocket must be given before -lnsl if both are needed.
5497
# We assume that if connect needs -lnsl, so does gethostbyname.
5498
echo $ac_n "checking for connect""... $ac_c" 1>&6
5499
echo "configure:5500: checking for connect" >&5
5500
if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
5501
echo $ac_n "(cached) $ac_c" 1>&6
5503
cat > conftest.$ac_ext <<EOF
5504
#line 5505 "configure"
5505
#include "confdefs.h"
5506
/* System header to define __stub macros and hopefully few prototypes,
5507
which can conflict with char connect(); below. */
5509
/* Override any gcc2 internal prototype to avoid an error. */
5510
/* We use char because int might match the return type of a gcc2
5511
builtin and then its argument prototype would still apply. */
5516
/* The GNU C library defines this for functions which it implements
5517
to always fail with ENOSYS. Some functions are actually named
5518
something starting with __ and the normal name is an alias. */
5519
#if defined (__stub_connect) || defined (__stub___connect)
5527
if { (eval echo configure:5528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5529
eval "ac_cv_func_connect=yes"
5531
echo "configure: failed program was:" >&5
5532
cat conftest.$ac_ext >&5
5534
eval "ac_cv_func_connect=no"
5539
if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5540
echo "$ac_t""yes" 1>&6
5543
echo "$ac_t""no" 1>&6
5546
if test $ac_cv_func_connect = no; then
5547
echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5548
echo "configure:5549: checking for connect in -lsocket" >&5
5549
ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5550
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5551
echo $ac_n "(cached) $ac_c" 1>&6
5553
ac_save_LIBS="$LIBS"
5554
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5555
cat > conftest.$ac_ext <<EOF
5556
#line 5557 "configure"
5557
#include "confdefs.h"
5558
/* Override any gcc2 internal prototype to avoid an error. */
5559
/* We use char because int might match the return type of a gcc2
5560
builtin and then its argument prototype would still apply. */
5567
if { (eval echo configure:5568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5569
eval "ac_cv_lib_$ac_lib_var=yes"
5571
echo "configure: failed program was:" >&5
5572
cat conftest.$ac_ext >&5
5574
eval "ac_cv_lib_$ac_lib_var=no"
5577
LIBS="$ac_save_LIBS"
5580
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5581
echo "$ac_t""yes" 1>&6
5582
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5584
echo "$ac_t""no" 1>&6
5589
# gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5590
echo $ac_n "checking for remove""... $ac_c" 1>&6
5591
echo "configure:5592: checking for remove" >&5
5592
if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
5593
echo $ac_n "(cached) $ac_c" 1>&6
5595
cat > conftest.$ac_ext <<EOF
5596
#line 5597 "configure"
5597
#include "confdefs.h"
5598
/* System header to define __stub macros and hopefully few prototypes,
5599
which can conflict with char remove(); below. */
5601
/* Override any gcc2 internal prototype to avoid an error. */
5602
/* We use char because int might match the return type of a gcc2
5603
builtin and then its argument prototype would still apply. */
5608
/* The GNU C library defines this for functions which it implements
5609
to always fail with ENOSYS. Some functions are actually named
5610
something starting with __ and the normal name is an alias. */
5611
#if defined (__stub_remove) || defined (__stub___remove)
5619
if { (eval echo configure:5620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5621
eval "ac_cv_func_remove=yes"
5623
echo "configure: failed program was:" >&5
5624
cat conftest.$ac_ext >&5
5626
eval "ac_cv_func_remove=no"
5631
if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
5632
echo "$ac_t""yes" 1>&6
5635
echo "$ac_t""no" 1>&6
5638
if test $ac_cv_func_remove = no; then
5639
echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5640
echo "configure:5641: checking for remove in -lposix" >&5
5641
ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5642
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5643
echo $ac_n "(cached) $ac_c" 1>&6
5645
ac_save_LIBS="$LIBS"
5646
LIBS="-lposix $LIBS"
5647
cat > conftest.$ac_ext <<EOF
5648
#line 5649 "configure"
5649
#include "confdefs.h"
5650
/* Override any gcc2 internal prototype to avoid an error. */
5651
/* We use char because int might match the return type of a gcc2
5652
builtin and then its argument prototype would still apply. */
5659
if { (eval echo configure:5660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5661
eval "ac_cv_lib_$ac_lib_var=yes"
5663
echo "configure: failed program was:" >&5
5664
cat conftest.$ac_ext >&5
5666
eval "ac_cv_lib_$ac_lib_var=no"
5669
LIBS="$ac_save_LIBS"
5672
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5673
echo "$ac_t""yes" 1>&6
5674
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5676
echo "$ac_t""no" 1>&6
5681
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5682
echo $ac_n "checking for shmat""... $ac_c" 1>&6
5683
echo "configure:5684: checking for shmat" >&5
5684
if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
5685
echo $ac_n "(cached) $ac_c" 1>&6
5687
cat > conftest.$ac_ext <<EOF
5688
#line 5689 "configure"
5689
#include "confdefs.h"
5690
/* System header to define __stub macros and hopefully few prototypes,
5691
which can conflict with char shmat(); below. */
5693
/* Override any gcc2 internal prototype to avoid an error. */
5694
/* We use char because int might match the return type of a gcc2
5695
builtin and then its argument prototype would still apply. */
5700
/* The GNU C library defines this for functions which it implements
5701
to always fail with ENOSYS. Some functions are actually named
5702
something starting with __ and the normal name is an alias. */
5703
#if defined (__stub_shmat) || defined (__stub___shmat)
5711
if { (eval echo configure:5712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5713
eval "ac_cv_func_shmat=yes"
5715
echo "configure: failed program was:" >&5
5716
cat conftest.$ac_ext >&5
5718
eval "ac_cv_func_shmat=no"
5723
if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5724
echo "$ac_t""yes" 1>&6
5727
echo "$ac_t""no" 1>&6
5730
if test $ac_cv_func_shmat = no; then
5731
echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5732
echo "configure:5733: checking for shmat in -lipc" >&5
5733
ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5734
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5735
echo $ac_n "(cached) $ac_c" 1>&6
5737
ac_save_LIBS="$LIBS"
5739
cat > conftest.$ac_ext <<EOF
5740
#line 5741 "configure"
5741
#include "confdefs.h"
5742
/* Override any gcc2 internal prototype to avoid an error. */
5743
/* We use char because int might match the return type of a gcc2
5744
builtin and then its argument prototype would still apply. */
5751
if { (eval echo configure:5752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5753
eval "ac_cv_lib_$ac_lib_var=yes"
5755
echo "configure: failed program was:" >&5
5756
cat conftest.$ac_ext >&5
5758
eval "ac_cv_lib_$ac_lib_var=no"
5761
LIBS="$ac_save_LIBS"
5764
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5765
echo "$ac_t""yes" 1>&6
5766
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5768
echo "$ac_t""no" 1>&6
5774
# Check for libraries that X11R6 Xt/Xaw programs need.
5775
ac_save_LDFLAGS="$LDFLAGS"
5776
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5777
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5778
# check for ICE first), but we must link in the order -lSM -lICE or
5779
# we get undefined symbols. So assume we have SM if we have ICE.
5780
# These have to be linked with before -lX11, unlike the other
5781
# libraries we check for below, so use a different variable.
5782
# --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5783
echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
5784
echo "configure:5785: checking for IceConnectionNumber in -lICE" >&5
5785
ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5786
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5787
echo $ac_n "(cached) $ac_c" 1>&6
5789
ac_save_LIBS="$LIBS"
5790
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5791
cat > conftest.$ac_ext <<EOF
5792
#line 5793 "configure"
5793
#include "confdefs.h"
5794
/* Override any gcc2 internal prototype to avoid an error. */
5795
/* We use char because int might match the return type of a gcc2
5796
builtin and then its argument prototype would still apply. */
5797
char IceConnectionNumber();
5800
IceConnectionNumber()
5803
if { (eval echo configure:5804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5805
eval "ac_cv_lib_$ac_lib_var=yes"
5807
echo "configure: failed program was:" >&5
5808
cat conftest.$ac_ext >&5
5810
eval "ac_cv_lib_$ac_lib_var=no"
5813
LIBS="$ac_save_LIBS"
5816
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5817
echo "$ac_t""yes" 1>&6
5818
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5820
echo "$ac_t""no" 1>&6
5823
LDFLAGS="$ac_save_LDFLAGS"
5831
# SYSTEM_NAME=`echo "$cf_cv_system_name"|tr ' ' -`
5835
LDFLAGS="$X_LIBS $LDFLAGS"
5837
test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
5839
echo "${as_me-configure}:5840: testing checking additions to CFLAGS ..." 1>&5
5842
cf_check_cflags="$CFLAGS"
5843
cf_check_cppflags="$CPPFLAGS"
5848
cf_new_extra_cppflags=
5850
for cf_add_cflags in $X_CFLAGS
5852
case $cf_fix_cppflags in
5854
case $cf_add_cflags in #(vi
5855
-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
5856
case $cf_add_cflags in
5858
cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
5860
test "${cf_add_cflags}" != "${cf_tst_cflags}" \
5861
&& test -z "${cf_tst_cflags}" \
5862
&& cf_fix_cppflags=yes
5864
if test $cf_fix_cppflags = yes ; then
5865
cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
5867
elif test "${cf_tst_cflags}" = "\"'" ; then
5868
cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
5874
*$cf_add_cflags) #(vi
5877
cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
5882
cf_new_cflags="$cf_new_cflags $cf_add_cflags"
5887
cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
5889
cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
5891
test "${cf_add_cflags}" != "${cf_tst_cflags}" \
5892
&& test -z "${cf_tst_cflags}" \
5893
&& cf_fix_cppflags=no
5898
if test -n "$cf_new_cflags" ; then
5899
test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
5901
echo "${as_me-configure}:5902: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
5904
CFLAGS="$CFLAGS $cf_new_cflags"
5907
if test -n "$cf_new_cppflags" ; then
5908
test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
5910
echo "${as_me-configure}:5911: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
5913
CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
5916
if test -n "$cf_new_extra_cppflags" ; then
5917
test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
5919
echo "${as_me-configure}:5920: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
5922
EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
5928
if test "$cf_check_cflags" != "$CFLAGS" ; then
5929
cat > conftest.$ac_ext <<EOF
5930
#line 5931 "configure"
5931
#include "confdefs.h"
5934
printf("Hello world");
5937
if { (eval echo configure:5938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5940
echo "configure: failed program was:" >&5
5941
cat conftest.$ac_ext >&5
5943
test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
5945
echo "${as_me-configure}:5946: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
5948
if test "$cf_check_cppflags" != "$CPPFLAGS" ; then
5949
test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
5951
echo "${as_me-configure}:5952: testing but keeping change to \$CPPFLAGS ..." 1>&5
5955
CFLAGS="$cf_check_flags"
5961
echo $ac_n "checking for XOpenDisplay""... $ac_c" 1>&6
5962
echo "configure:5963: checking for XOpenDisplay" >&5
5963
if eval "test \"`echo '$''{'ac_cv_func_XOpenDisplay'+set}'`\" = set"; then
5964
echo $ac_n "(cached) $ac_c" 1>&6
5966
cat > conftest.$ac_ext <<EOF
5967
#line 5968 "configure"
5968
#include "confdefs.h"
5969
/* System header to define __stub macros and hopefully few prototypes,
5970
which can conflict with char XOpenDisplay(); below. */
5972
/* Override any gcc2 internal prototype to avoid an error. */
5973
/* We use char because int might match the return type of a gcc2
5974
builtin and then its argument prototype would still apply. */
5975
char XOpenDisplay();
5979
/* The GNU C library defines this for functions which it implements
5980
to always fail with ENOSYS. Some functions are actually named
5981
something starting with __ and the normal name is an alias. */
5982
#if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay)
5990
if { (eval echo configure:5991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5992
eval "ac_cv_func_XOpenDisplay=yes"
5994
echo "configure: failed program was:" >&5
5995
cat conftest.$ac_ext >&5
5997
eval "ac_cv_func_XOpenDisplay=no"
6002
if eval "test \"`echo '$ac_cv_func_'XOpenDisplay`\" = yes"; then
6003
echo "$ac_t""yes" 1>&6
6006
echo "$ac_t""no" 1>&6
6008
echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
6009
echo "configure:6010: checking for XOpenDisplay in -lX11" >&5
6010
ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
6011
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6012
echo $ac_n "(cached) $ac_c" 1>&6
6014
ac_save_LIBS="$LIBS"
6015
LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
6016
cat > conftest.$ac_ext <<EOF
6017
#line 6018 "configure"
6018
#include "confdefs.h"
6019
/* Override any gcc2 internal prototype to avoid an error. */
6020
/* We use char because int might match the return type of a gcc2
6021
builtin and then its argument prototype would still apply. */
6022
char XOpenDisplay();
6028
if { (eval echo configure:6029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6030
eval "ac_cv_lib_$ac_lib_var=yes"
6032
echo "configure: failed program was:" >&5
6033
cat conftest.$ac_ext >&5
6035
eval "ac_cv_lib_$ac_lib_var=no"
6038
LIBS="$ac_save_LIBS"
6041
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6042
echo "$ac_t""yes" 1>&6
6045
echo "$ac_t""no" 1>&6
6051
echo $ac_n "checking for XtAppInitialize""... $ac_c" 1>&6
6052
echo "configure:6053: checking for XtAppInitialize" >&5
6053
if eval "test \"`echo '$''{'ac_cv_func_XtAppInitialize'+set}'`\" = set"; then
6054
echo $ac_n "(cached) $ac_c" 1>&6
6056
cat > conftest.$ac_ext <<EOF
6057
#line 6058 "configure"
6058
#include "confdefs.h"
6059
/* System header to define __stub macros and hopefully few prototypes,
6060
which can conflict with char XtAppInitialize(); below. */
6062
/* Override any gcc2 internal prototype to avoid an error. */
6063
/* We use char because int might match the return type of a gcc2
6064
builtin and then its argument prototype would still apply. */
6065
char XtAppInitialize();
6069
/* The GNU C library defines this for functions which it implements
6070
to always fail with ENOSYS. Some functions are actually named
6071
something starting with __ and the normal name is an alias. */
6072
#if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize)
6080
if { (eval echo configure:6081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6082
eval "ac_cv_func_XtAppInitialize=yes"
6084
echo "configure: failed program was:" >&5
6085
cat conftest.$ac_ext >&5
6087
eval "ac_cv_func_XtAppInitialize=no"
6092
if eval "test \"`echo '$ac_cv_func_'XtAppInitialize`\" = yes"; then
6093
echo "$ac_t""yes" 1>&6
6096
echo "$ac_t""no" 1>&6
6098
echo $ac_n "checking for XtAppInitialize in -lXt""... $ac_c" 1>&6
6099
echo "configure:6100: checking for XtAppInitialize in -lXt" >&5
6100
ac_lib_var=`echo Xt'_'XtAppInitialize | sed 'y%./+-%__p_%'`
6101
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6102
echo $ac_n "(cached) $ac_c" 1>&6
6104
ac_save_LIBS="$LIBS"
6105
LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
6106
cat > conftest.$ac_ext <<EOF
6107
#line 6108 "configure"
6108
#include "confdefs.h"
6109
/* Override any gcc2 internal prototype to avoid an error. */
6110
/* We use char because int might match the return type of a gcc2
6111
builtin and then its argument prototype would still apply. */
6112
char XtAppInitialize();
6118
if { (eval echo configure:6119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6120
eval "ac_cv_lib_$ac_lib_var=yes"
6122
echo "configure: failed program was:" >&5
6123
cat conftest.$ac_ext >&5
6125
eval "ac_cv_lib_$ac_lib_var=no"
6128
LIBS="$ac_save_LIBS"
6131
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6132
echo "$ac_t""yes" 1>&6
6133
cat >> confdefs.h <<\EOF
6134
#define HAVE_LIBXT 1
6138
LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
6140
echo "$ac_t""no" 1>&6
6146
if test $cf_have_X_LIBS = no ; then
6147
echo "configure: warning: Unable to successfully link X Toolkit library (-lXt) with
6148
test program. You will have to check and add the proper libraries by hand
6153
cf_x_athena=${cf_x_athena-Xaw}
6155
echo $ac_n "checking if you want to link with Xaw 3d library""... $ac_c" 1>&6
6156
echo "configure:6157: checking if you want to link with Xaw 3d library" >&5
6159
# Check whether --with-Xaw3d or --without-Xaw3d was given.
6160
if test "${with_Xaw3d+set}" = set; then
6161
withval="$with_Xaw3d"
6165
if test "$withval" = yes ; then
6167
echo "$ac_t""yes" 1>&6
6169
echo "$ac_t""no" 1>&6
6172
echo $ac_n "checking if you want to link with neXT Athena library""... $ac_c" 1>&6
6173
echo "configure:6174: checking if you want to link with neXT Athena library" >&5
6176
# Check whether --with-neXtaw or --without-neXtaw was given.
6177
if test "${with_neXtaw+set}" = set; then
6178
withval="$with_neXtaw"
6182
if test "$withval" = yes ; then
6184
echo "$ac_t""yes" 1>&6
6186
echo "$ac_t""no" 1>&6
6189
echo $ac_n "checking if you want to link with Athena-Plus library""... $ac_c" 1>&6
6190
echo "configure:6191: checking if you want to link with Athena-Plus library" >&5
6193
# Check whether --with-XawPlus or --without-XawPlus was given.
6194
if test "${with_XawPlus+set}" = set; then
6195
withval="$with_XawPlus"
6199
if test "$withval" = yes ; then
6201
echo "$ac_t""yes" 1>&6
6203
echo "$ac_t""no" 1>&6
6206
echo $ac_n "checking for XextCreateExtension in -lXext""... $ac_c" 1>&6
6207
echo "configure:6208: checking for XextCreateExtension in -lXext" >&5
6208
ac_lib_var=`echo Xext'_'XextCreateExtension | sed 'y%./+-%__p_%'`
6209
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6210
echo $ac_n "(cached) $ac_c" 1>&6
6212
ac_save_LIBS="$LIBS"
6214
cat > conftest.$ac_ext <<EOF
6215
#line 6216 "configure"
6216
#include "confdefs.h"
6217
/* Override any gcc2 internal prototype to avoid an error. */
6218
/* We use char because int might match the return type of a gcc2
6219
builtin and then its argument prototype would still apply. */
6220
char XextCreateExtension();
6223
XextCreateExtension()
6226
if { (eval echo configure:6227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6228
eval "ac_cv_lib_$ac_lib_var=yes"
6230
echo "configure: failed program was:" >&5
6231
cat conftest.$ac_ext >&5
6233
eval "ac_cv_lib_$ac_lib_var=no"
6236
LIBS="$ac_save_LIBS"
6239
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6240
echo "$ac_t""yes" 1>&6
6243
echo "$ac_t""no" 1>&6
6250
cf_x_athena_root=$cf_x_athena
6251
cf_x_athena_include=""
6253
for cf_path in default \
6254
/usr/contrib/X11R6 \
6255
/usr/contrib/X11R5 \
6259
if test -z "$cf_x_athena_include" ; then
6261
cf_test=X11/$cf_x_athena_root/SimpleMenu.h
6262
if test $cf_path != default ; then
6263
CPPFLAGS="-I$cf_path/include $cf_save"
6264
echo $ac_n "checking for $cf_test in $cf_path""... $ac_c" 1>&6
6265
echo "configure:6266: checking for $cf_test in $cf_path" >&5
6267
echo $ac_n "checking for $cf_test""... $ac_c" 1>&6
6268
echo "configure:6269: checking for $cf_test" >&5
6270
cat > conftest.$ac_ext <<EOF
6271
#line 6272 "configure"
6272
#include "confdefs.h"
6274
#include <X11/Intrinsic.h>
6280
if { (eval echo configure:6281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6284
echo "configure: failed program was:" >&5
6285
cat conftest.$ac_ext >&5
6290
echo "$ac_t""$cf_result" 1>&6
6291
if test "$cf_result" = yes ; then
6292
cf_x_athena_include=$cf_path
6300
if test -z "$cf_x_athena_include" ; then
6301
echo "configure: warning: Unable to successfully find Athena header files with test program" 1>&2
6302
elif test "$cf_x_athena_include" != default ; then
6303
CPPFLAGS="$CPPFLAGS -I$cf_x_athena_include"
6307
cf_x_athena_root=$cf_x_athena
6310
for cf_path in default \
6311
/usr/contrib/X11R6 \
6312
/usr/contrib/X11R5 \
6317
"-l$cf_x_athena_root -lXmu" \
6318
"-l$cf_x_athena_root -lXpm -lXmu" \
6319
"-l${cf_x_athena_root}_s -lXmu_s"
6321
if test -z "$cf_x_athena_lib" ; then
6323
cf_test=XawSimpleMenuAddGlobalActions
6324
if test $cf_path != default ; then
6325
LIBS="-L$cf_path/lib $cf_lib $LIBS"
6326
echo $ac_n "checking for $cf_lib in $cf_path""... $ac_c" 1>&6
6327
echo "configure:6328: checking for $cf_lib in $cf_path" >&5
6329
LIBS="$cf_lib $LIBS"
6330
echo $ac_n "checking for $cf_test in $cf_lib""... $ac_c" 1>&6
6331
echo "configure:6332: checking for $cf_test in $cf_lib" >&5
6333
cat > conftest.$ac_ext <<EOF
6334
#line 6335 "configure"
6335
#include "confdefs.h"
6341
if { (eval echo configure:6342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6345
echo "configure: failed program was:" >&5
6346
cat conftest.$ac_ext >&5
6351
echo "$ac_t""$cf_result" 1>&6
6352
if test "$cf_result" = yes ; then
6353
cf_x_athena_lib="$cf_lib"
6361
if test -z "$cf_x_athena_lib" ; then
6362
{ echo "configure: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" 1>&2; exit 1; }
6366
cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
6368
cat >> confdefs.h <<EOF
6369
#define $cf_x_athena_LIBS 1
6377
for ac_prog in xcurses-config
6379
# Extract the first word of "$ac_prog", so it can be a program name with args.
6380
set dummy $ac_prog; ac_word=$2
6381
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6382
echo "configure:6383: checking for $ac_word" >&5
6383
if eval "test \"`echo '$''{'ac_cv_path_XCURSES_CONFIG'+set}'`\" = set"; then
6384
echo $ac_n "(cached) $ac_c" 1>&6
6386
case "$XCURSES_CONFIG" in
6388
ac_cv_path_XCURSES_CONFIG="$XCURSES_CONFIG" # Let the user override the test with a path.
6391
ac_cv_path_XCURSES_CONFIG="$XCURSES_CONFIG" # Let the user override the test with a dos path.
6394
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6396
for ac_dir in $ac_dummy; do
6397
test -z "$ac_dir" && ac_dir=.
6398
if test -f $ac_dir/$ac_word; then
6399
ac_cv_path_XCURSES_CONFIG="$ac_dir/$ac_word"
6407
XCURSES_CONFIG="$ac_cv_path_XCURSES_CONFIG"
6408
if test -n "$XCURSES_CONFIG"; then
6409
echo "$ac_t""$XCURSES_CONFIG" 1>&6
6411
echo "$ac_t""no" 1>&6
6414
test -n "$XCURSES_CONFIG" && break
6416
test -n "$XCURSES_CONFIG" || XCURSES_CONFIG="none"
6419
if test "$XCURSES_CONFIG" != none ; then
6421
CPPFLAGS="`$XCURSES_CONFIG --cflags` $CPPFLAGS"
6422
LIBS="`$XCURSES_CONFIG --libs` $LIBS"
6424
cf_cv_lib_XCurses=yes
6428
LDFLAGS="$LDFLAGS $X_LIBS"
6430
test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
6432
echo "${as_me-configure}:6433: testing checking additions to CFLAGS ..." 1>&5
6435
cf_check_cflags="$CFLAGS"
6436
cf_check_cppflags="$CPPFLAGS"
6441
cf_new_extra_cppflags=
6443
for cf_add_cflags in $X_CFLAGS
6445
case $cf_fix_cppflags in
6447
case $cf_add_cflags in #(vi
6448
-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
6449
case $cf_add_cflags in
6451
cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
6453
test "${cf_add_cflags}" != "${cf_tst_cflags}" \
6454
&& test -z "${cf_tst_cflags}" \
6455
&& cf_fix_cppflags=yes
6457
if test $cf_fix_cppflags = yes ; then
6458
cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
6460
elif test "${cf_tst_cflags}" = "\"'" ; then
6461
cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
6467
*$cf_add_cflags) #(vi
6470
cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
6475
cf_new_cflags="$cf_new_cflags $cf_add_cflags"
6480
cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
6482
cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
6484
test "${cf_add_cflags}" != "${cf_tst_cflags}" \
6485
&& test -z "${cf_tst_cflags}" \
6486
&& cf_fix_cppflags=no
6491
if test -n "$cf_new_cflags" ; then
6492
test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
6494
echo "${as_me-configure}:6495: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
6497
CFLAGS="$CFLAGS $cf_new_cflags"
6500
if test -n "$cf_new_cppflags" ; then
6501
test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
6503
echo "${as_me-configure}:6504: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
6506
CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
6509
if test -n "$cf_new_extra_cppflags" ; then
6510
test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
6512
echo "${as_me-configure}:6513: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
6515
EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
6521
if test "$cf_check_cflags" != "$CFLAGS" ; then
6522
cat > conftest.$ac_ext <<EOF
6523
#line 6524 "configure"
6524
#include "confdefs.h"
6527
printf("Hello world");
6530
if { (eval echo configure:6531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6533
echo "configure: failed program was:" >&5
6534
cat conftest.$ac_ext >&5
6536
test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
6538
echo "${as_me-configure}:6539: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
6541
if test "$cf_check_cppflags" != "$CPPFLAGS" ; then
6542
test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
6544
echo "${as_me-configure}:6545: testing but keeping change to \$CPPFLAGS ..." 1>&5
6548
CFLAGS="$cf_check_flags"
6553
echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
6554
echo "configure:6555: checking for XOpenDisplay in -lX11" >&5
6555
ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
6556
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6557
echo $ac_n "(cached) $ac_c" 1>&6
6559
ac_save_LIBS="$LIBS"
6560
LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
6561
cat > conftest.$ac_ext <<EOF
6562
#line 6563 "configure"
6563
#include "confdefs.h"
6564
/* Override any gcc2 internal prototype to avoid an error. */
6565
/* We use char because int might match the return type of a gcc2
6566
builtin and then its argument prototype would still apply. */
6567
char XOpenDisplay();
6573
if { (eval echo configure:6574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6575
eval "ac_cv_lib_$ac_lib_var=yes"
6577
echo "configure: failed program was:" >&5
6578
cat conftest.$ac_ext >&5
6580
eval "ac_cv_lib_$ac_lib_var=no"
6583
LIBS="$ac_save_LIBS"
6586
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6587
echo "$ac_t""yes" 1>&6
6590
echo "$ac_t""no" 1>&6
6593
echo $ac_n "checking for XCurses library""... $ac_c" 1>&6
6594
echo "configure:6595: checking for XCurses library" >&5
6595
if eval "test \"`echo '$''{'cf_cv_lib_XCurses'+set}'`\" = set"; then
6596
echo $ac_n "(cached) $ac_c" 1>&6
6599
LIBS="-lXCurses $LIBS"
6600
cat > conftest.$ac_ext <<EOF
6601
#line 6602 "configure"
6602
#include "confdefs.h"
6604
#include <xcurses.h>
6605
char *XCursesProgramName = "test";
6611
if { (eval echo configure:6612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6613
cf_cv_lib_XCurses=yes
6615
echo "configure: failed program was:" >&5
6616
cat conftest.$ac_ext >&5
6618
cf_cv_lib_XCurses=no
6624
echo "$ac_t""$cf_cv_lib_XCurses" 1>&6
6628
if test $cf_cv_lib_XCurses = yes ; then
6629
cat >> confdefs.h <<\EOF
6633
cat >> confdefs.h <<\EOF
6637
cat >> confdefs.h <<\EOF
6638
#define HAVE_XCURSES 1
6642
{ echo "configure: error: Cannot link with XCurses" 1>&2; exit 1; }
6650
case $cf_cv_screen in #(vi
6654
# look for curses-related libraries
6655
echo $ac_n "checking for new_panel in -lpanel$cf_cv_libtype""... $ac_c" 1>&6
6656
echo "configure:6657: checking for new_panel in -lpanel$cf_cv_libtype" >&5
3878
6657
ac_lib_var=`echo panel$cf_cv_libtype'_'new_panel | sed 'y%./+-%__p_%'`
3879
6658
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3880
6659
echo $ac_n "(cached) $ac_c" 1>&6