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

Comparing rxvt-unicode/configure (file contents):
Revision 1.13 by pcg, Mon Mar 1 01:06:45 2004 UTC vs.
Revision 1.104 by ayin, Sat Jun 23 13:41:19 2007 UTC

239 239
240# CDPATH. 240# CDPATH.
241$as_unset CDPATH 241$as_unset CDPATH
242 242
243 243
244# Find the correct PATH separator. Usually this is `:', but
245# DJGPP uses `;' like DOS.
246if test "X${PATH_SEPARATOR+set}" != Xset; then
247 UNAME=${UNAME-`uname 2>/dev/null`}
248 case X$UNAME in
249 *-DOS) lt_cv_sys_path_separator=';' ;;
250 *) lt_cv_sys_path_separator=':' ;;
251 esac
252fi
253
254
255# Check that we are running under the correct shell.
256SHELL=${CONFIG_SHELL-/bin/sh}
257
258case "X$ECHO" in
259X*--fallback-echo)
260 # Remove one level of quotation (which was required for Make).
261 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
262 ;;
263esac
264
265echo=${ECHO-echo}
266if test "X$1" = X--no-reexec; then
267 # Discard the --no-reexec flag, and continue.
268 shift
269elif test "X$1" = X--fallback-echo; then
270 # Avoid inline document here, it may be left over
271 :
272elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
273 # Yippee, $echo works!
274 :
275else
276 # Restart under the correct shell.
277 exec $SHELL "$0" --no-reexec ${1+"$@"}
278fi
279
280if test "X$1" = X--fallback-echo; then
281 # used as fallback echo
282 shift
283 cat <<EOF
284
285EOF
286 exit 0
287fi
288
289# The HP-UX ksh and POSIX shell print the target directory to stdout
290# if CDPATH is set.
291if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
292
293if test -z "$ECHO"; then
294if test "X${echo_test_string+set}" != Xset; then
295# find a string as large as possible, as long as the shell can cope with it
296 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
297 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
298 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
299 echo_test_string="`eval $cmd`" &&
300 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301 then
302 break
303 fi
304 done
305fi
306
307if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
308 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
309 test "X$echo_testing_string" = "X$echo_test_string"; then
310 :
311else
312 # The Solaris, AIX, and Digital Unix default echo programs unquote
313 # backslashes. This makes it impossible to quote backslashes using
314 # echo "$something" | sed 's/\\/\\\\/g'
315 #
316 # So, first we look for a working echo in the user's PATH.
317
318 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
319 for dir in $PATH /usr/ucb; do
320 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323 test "X$echo_testing_string" = "X$echo_test_string"; then
324 echo="$dir/echo"
325 break
326 fi
327 done
328 IFS="$save_ifs"
329
330 if test "X$echo" = Xecho; then
331 # We didn't find a better echo, so look for alternatives.
332 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334 test "X$echo_testing_string" = "X$echo_test_string"; then
335 # This shell has a builtin print -r that does the trick.
336 echo='print -r'
337 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338 test "X$CONFIG_SHELL" != X/bin/ksh; then
339 # If we have ksh, try running ltconfig again with it.
340 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341 export ORIGINAL_CONFIG_SHELL
342 CONFIG_SHELL=/bin/ksh
343 export CONFIG_SHELL
344 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345 else
346 # Try using printf.
347 echo='printf %s\n'
348 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350 test "X$echo_testing_string" = "X$echo_test_string"; then
351 # Cool, printf works
352 :
353 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358 export CONFIG_SHELL
359 SHELL="$CONFIG_SHELL"
360 export SHELL
361 echo="$CONFIG_SHELL $0 --fallback-echo"
362 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363 test "X$echo_testing_string" = 'X\t' &&
364 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365 test "X$echo_testing_string" = "X$echo_test_string"; then
366 echo="$CONFIG_SHELL $0 --fallback-echo"
367 else
368 # maybe with a smaller string...
369 prev=:
370
371 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373 then
374 break
375 fi
376 prev="$cmd"
377 done
378
379 if test "$prev" != 'sed 50q "$0"'; then
380 echo_test_string=`eval $prev`
381 export echo_test_string
382 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383 else
384 # Oops. We lost completely, so just stick with echo.
385 echo=echo
386 fi
387 fi
388 fi
389 fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
400
401
402# Name of the host. 244# Name of the host.
403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404# so uname gets run too. 246# so uname gets run too.
405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406 248
465#endif 307#endif
466#if HAVE_UNISTD_H 308#if HAVE_UNISTD_H
467# include <unistd.h> 309# include <unistd.h>
468#endif" 310#endif"
469 311
470ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK LINKER CXXCPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP LIBTOOL INSTALL_LIBRXVT 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' 312ac_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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 EGREP LINKER CXXLIB INSTALL_LIBRXVT RXVTNAME TIC CXXCPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS afterimage_config 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 PKG_CONFIG XFT_CONFIG PERL PERLLIB PERLFLAGS PERLPRIVLIBEXP IF_PERL PERL_O LIBAFTERIMAGE_CFLAGS AFTERIMAGE_LIBS 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'
471ac_subst_files='MCOMMON' 313ac_subst_files=''
472 314
473# Initialize some variables set by options. 315# Initialize some variables set by options.
474ac_init_help= 316ac_init_help=
475ac_init_version=false 317ac_init_version=false
476# The variables have the same names as the options, with 318# The variables have the same names as the options, with
1021 cat <<\_ACEOF 863 cat <<\_ACEOF
1022 864
1023Optional Features: 865Optional Features:
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 866 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 867 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --enable-shared=PKGS build shared libraries default=no
1027 --enable-static=PKGS build static libraries default=yes
1028 --enable-fast-install=PKGS optimize for fast installation default=yes
1029 --disable-libtool-lock avoid locking (might break parallel builds)
1030 --enable-everything enable standard non-multichoice features 868 --enable-everything enable standard non-multichoice features
1031 NOTE: this option is order dependent 869 NOTE: this option is order dependent
1032 NOTE: automatically enabled with --enable-shared 870 NOTE: automatically enabled with --enable-shared
1033 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters 871 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
872 --enable-combining enable composition of base and combining characters
1034 --enable-xft enable xft support on systems that have it 873 --enable-xft enable xft support on systems that have it
1035 --enable-utmp enable utmp (utmpx) support 874 --enable-font-styles enable bold and italic support
1036 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1037 --enable-lastlog enable lastlog support (requires --enable-utmp)
1038 --enable-xpm-background enable XPM background pixmaps 875 --enable-xpm-background enable background pixmaps
876 --enable-afterimage enable integration with libAfterImage for background images
877 --enable-afterstep enable integration with AfterStep window manager
1039 --enable-transparency enable transparent backgrounds 878 --enable-transparency enable transparent backgrounds
1040 --enable-menubar enable menubar 879 --enable-tinting enable tinting of transparent bg
880 --enable-fading enable colors fading when off focus
1041 --enable-rxvt-scroll enable rxvt style scrollbar 881 --enable-rxvt-scroll enable rxvt style scrollbar
1042 --enable-next-scroll enable NeXT style scrollbar 882 --enable-next-scroll enable NeXT style scrollbar
1043 --enable-xterm-scroll enable Xterm style scrollbar 883 --enable-xterm-scroll enable Xterm style scrollbar
884 --enable-perl enable embedded perl interpreter
1044 --enable-plain-scroll enable plain style scrollbar 885 --enable-plain-scroll enable plain style scrollbar
1045 --enable-half-shadow use half width/height shadow on rxvt scrollbar
1046 --enable-xim XIM (X Input Method) protocol support 886 --enable-xim XIM (X Input Method) protocol support
1047 --enable-ttygid enable tty setting to group named "tty"
1048 --disable-backspace-key disable handling of the backspace key 887 --disable-backspace-key disable handling of the backspace key
1049 --disable-delete-key disable handling of the delete key 888 --disable-delete-key disable handling of the delete key
1050 --disable-resources disable all resource checking 889 --disable-resources disable all resource checking
1051 --enable-xgetdefault enable resources via X instead of our small version 890 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1052 --enable-strings enable some replacement system functions 891 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
1053 --disable-swapscreen disable swap screen support 892 --disable-swapscreen disable swap screen support
893 --enable-iso14755 enable support for extended ISO 14755 modes
1054 --enable-frills enable support for rarely used features 894 --enable-frills enable support for rarely used features
1055 --enable-linespace enable support for linespace
1056 --enable-24bit enable support for using 24bit visuals if available
1057 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 895 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1058 --enable-selectionscrolling enable scrolling during selections 896 --enable-selectionscrolling enable scrolling during selections
1059 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 897 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1060 --enable-slipwheeling enable slip wheel scrolling (requires previous) 898 --enable-slipwheeling enable slip wheel scrolling (requires previous)
1061 --enable-old-selection enable v2.20 (& prior) mouse selection style support
1062 --disable-new-selection disable new mouse (xterm) selection style support
1063 --enable-dmalloc enable Gray Watson's malloc - for debugging use
1064 --enable-dlmalloc enable Doug Lea's malloc - for production use
1065 NOTE: enable only one malloc package
1066 --enable-smart-resize enable smart growth/shrink behaviour 899 --enable-smart-resize enable smart growth/shrink behaviour
1067 --enable-256-color enable 256-color support
1068 --enable-cursor-blink enable blinking cursor
1069 --enable-text-blink enable blinking text 900 --enable-text-blink enable blinking text
1070 --enable-pointer-blank enable pointer blank when typing or inactive pointer 901 --enable-pointer-blank enable pointer blank when typing or inactive pointer
902 --enable-utmp enable utmp (utmpx) support
903 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
904 --enable-lastlog enable lastlog support (requires --enable-utmp)
1071 905
1072Optional Packages: 906Optional Packages:
1073 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 907 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1074 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 908 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1075 --with-gnu-ld assume the C compiler uses GNU ld default=no 909 --with-afterimage-config=DIR use libAfterImage config script in DIR
1076 --with-pic try to use only PIC/non-PIC objects default=use both
1077 --with-codesets=NAME,... compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,all) 910 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
911 --with-res-name=NAME use this as default resource name (default: urxvt)
912 --with-res-class=CLASS use this as the resource class (default: URxvt)
913 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1078 --with-term=NAME set the terminal to NAME (default \"rxvt\") 914 --with-term=NAME set the terminal to NAME (default: rxvt)
1079 --with-terminfo=PATH set the path to the terminfo tree to PATH 915 --with-terminfo=PATH set the path to the terminfo tree to PATH
1080 --with-x use the X Window System 916 --with-x use the X Window System
1081 --with-xpm-includes=DIR use XPM includes in DIR 917 --with-xpm-includes=DIR use XPM includes in DIR
1082 --with-xpm-library=DIR use XPM library in DIR 918 --with-xpm-library=DIR use XPM library in DIR
1083 --with-xpm use XPM 919 --with-xpm use XPM
1183 echo 1019 echo
1184 $ac_configure --help 1020 $ac_configure --help
1185 else 1021 else
1186 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1022 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1187 fi 1023 fi
1188 cd "$ac_popdir" 1024 cd $ac_popdir
1189 done 1025 done
1190fi 1026fi
1191 1027
1192test -n "$ac_init_help" && exit 0 1028test -n "$ac_init_help" && exit 0
1193if $ac_init_version; then 1029if $ac_init_version; then
1530 1366
1531 1367
1532 1368
1533 1369
1534 1370
1371
1372
1373 ac_config_headers="$ac_config_headers config.h:config.h.in"
1374
1375
1535ac_aux_dir= 1376ac_aux_dir=
1536for ac_dir in autoconf $srcdir/autoconf; do 1377for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1537 if test -f $ac_dir/install-sh; then 1378 if test -f $ac_dir/install-sh; then
1538 ac_aux_dir=$ac_dir 1379 ac_aux_dir=$ac_dir
1539 ac_install_sh="$ac_aux_dir/install-sh -c" 1380 ac_install_sh="$ac_aux_dir/install-sh -c"
1540 break 1381 break
1541 elif test -f $ac_dir/install.sh; then 1382 elif test -f $ac_dir/install.sh; then
1547 ac_install_sh="$ac_aux_dir/shtool install -c" 1388 ac_install_sh="$ac_aux_dir/shtool install -c"
1548 break 1389 break
1549 fi 1390 fi
1550done 1391done
1551if test -z "$ac_aux_dir"; then 1392if test -z "$ac_aux_dir"; then
1552 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 1393 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1553echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} 1394echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1554 { (exit 1); exit 1; }; } 1395 { (exit 1); exit 1; }; }
1555fi 1396fi
1556ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1397ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1557ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1398ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1558ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1399ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1559 1400
1560 ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in" 1401# Make sure we can run config.sub.
1402$ac_config_sub sun4 >/dev/null 2>&1 ||
1403 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1404echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1405 { (exit 1); exit 1; }; }
1406
1407echo "$as_me:$LINENO: checking build system type" >&5
1408echo $ECHO_N "checking build system type... $ECHO_C" >&6
1409if test "${ac_cv_build+set}" = set; then
1410 echo $ECHO_N "(cached) $ECHO_C" >&6
1411else
1412 ac_cv_build_alias=$build_alias
1413test -z "$ac_cv_build_alias" &&
1414 ac_cv_build_alias=`$ac_config_guess`
1415test -z "$ac_cv_build_alias" &&
1416 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1417echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1418 { (exit 1); exit 1; }; }
1419ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1420 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1421echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1422 { (exit 1); exit 1; }; }
1423
1424fi
1425echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1426echo "${ECHO_T}$ac_cv_build" >&6
1427build=$ac_cv_build
1428build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1429build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1430build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1431
1432
1433echo "$as_me:$LINENO: checking host system type" >&5
1434echo $ECHO_N "checking host system type... $ECHO_C" >&6
1435if test "${ac_cv_host+set}" = set; then
1436 echo $ECHO_N "(cached) $ECHO_C" >&6
1437else
1438 ac_cv_host_alias=$host_alias
1439test -z "$ac_cv_host_alias" &&
1440 ac_cv_host_alias=$ac_cv_build_alias
1441ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1442 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1443echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1444 { (exit 1); exit 1; }; }
1445
1446fi
1447echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1448echo "${ECHO_T}$ac_cv_host" >&6
1449host=$ac_cv_host
1450host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1451host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1452host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1453
1561 1454
1562 1455
1563VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1456VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1564DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1457DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1565LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1566LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1567echo "" 1458echo ""
1568echo "configuring for rxvt $VERSION" 1459echo "configuring for rxvt $VERSION"
1569echo "" 1460echo ""
1461
1462orig_CXXFLAGS="$CXXFLAGS"
1570 1463
1571 1464
1572ac_ext=c 1465ac_ext=c
1573ac_cpp='$CPP $CPPFLAGS' 1466ac_cpp='$CPP $CPPFLAGS'
1574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2135 grep -v '^ *+' conftest.er1 >conftest.err 2028 grep -v '^ *+' conftest.er1 >conftest.err
2136 rm -f conftest.er1 2029 rm -f conftest.er1
2137 cat conftest.err >&5 2030 cat conftest.err >&5
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); } && 2032 (exit $ac_status); } &&
2140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2033 { ac_try='test -z "$ac_c_werror_flag"
2034 || test ! -s conftest.err'
2141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2142 (eval $ac_try) 2>&5 2036 (eval $ac_try) 2>&5
2143 ac_status=$? 2037 ac_status=$?
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); }; } && 2039 (exit $ac_status); }; } &&
2193 grep -v '^ *+' conftest.er1 >conftest.err 2087 grep -v '^ *+' conftest.er1 >conftest.err
2194 rm -f conftest.er1 2088 rm -f conftest.er1
2195 cat conftest.err >&5 2089 cat conftest.err >&5
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); } && 2091 (exit $ac_status); } &&
2198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2092 { ac_try='test -z "$ac_c_werror_flag"
2093 || test ! -s conftest.err'
2199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2200 (eval $ac_try) 2>&5 2095 (eval $ac_try) 2>&5
2201 ac_status=$? 2096 ac_status=$?
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; } && 2098 (exit $ac_status); }; } &&
2309 grep -v '^ *+' conftest.er1 >conftest.err 2204 grep -v '^ *+' conftest.er1 >conftest.err
2310 rm -f conftest.er1 2205 rm -f conftest.er1
2311 cat conftest.err >&5 2206 cat conftest.err >&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); } && 2208 (exit $ac_status); } &&
2314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2209 { ac_try='test -z "$ac_c_werror_flag"
2210 || test ! -s conftest.err'
2315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316 (eval $ac_try) 2>&5 2212 (eval $ac_try) 2>&5
2317 ac_status=$? 2213 ac_status=$?
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; } && 2215 (exit $ac_status); }; } &&
2363 grep -v '^ *+' conftest.er1 >conftest.err 2259 grep -v '^ *+' conftest.er1 >conftest.err
2364 rm -f conftest.er1 2260 rm -f conftest.er1
2365 cat conftest.err >&5 2261 cat conftest.err >&5
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); } && 2263 (exit $ac_status); } &&
2368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2264 { ac_try='test -z "$ac_c_werror_flag"
2265 || test ! -s conftest.err'
2369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2370 (eval $ac_try) 2>&5 2267 (eval $ac_try) 2>&5
2371 ac_status=$? 2268 ac_status=$?
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); }; } && 2270 (exit $ac_status); }; } &&
2408 grep -v '^ *+' conftest.er1 >conftest.err 2305 grep -v '^ *+' conftest.er1 >conftest.err
2409 rm -f conftest.er1 2306 rm -f conftest.er1
2410 cat conftest.err >&5 2307 cat conftest.err >&5
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); } && 2309 (exit $ac_status); } &&
2413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2310 { ac_try='test -z "$ac_c_werror_flag"
2311 || test ! -s conftest.err'
2414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415 (eval $ac_try) 2>&5 2313 (eval $ac_try) 2>&5
2416 ac_status=$? 2314 ac_status=$?
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }; } && 2316 (exit $ac_status); }; } &&
2452 grep -v '^ *+' conftest.er1 >conftest.err 2350 grep -v '^ *+' conftest.er1 >conftest.err
2453 rm -f conftest.er1 2351 rm -f conftest.er1
2454 cat conftest.err >&5 2352 cat conftest.err >&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); } && 2354 (exit $ac_status); } &&
2457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2355 { ac_try='test -z "$ac_c_werror_flag"
2356 || test ! -s conftest.err'
2458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459 (eval $ac_try) 2>&5 2358 (eval $ac_try) 2>&5
2460 ac_status=$? 2359 ac_status=$?
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); }; } && 2361 (exit $ac_status); }; } &&
2636 grep -v '^ *+' conftest.er1 >conftest.err 2535 grep -v '^ *+' conftest.er1 >conftest.err
2637 rm -f conftest.er1 2536 rm -f conftest.er1
2638 cat conftest.err >&5 2537 cat conftest.err >&5
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); } && 2539 (exit $ac_status); } &&
2641 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 2540 { ac_try='test -z "$ac_cxx_werror_flag"
2541 || test ! -s conftest.err'
2642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643 (eval $ac_try) 2>&5 2543 (eval $ac_try) 2>&5
2644 ac_status=$? 2544 ac_status=$?
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }; } && 2546 (exit $ac_status); }; } &&
2694 grep -v '^ *+' conftest.er1 >conftest.err 2594 grep -v '^ *+' conftest.er1 >conftest.err
2695 rm -f conftest.er1 2595 rm -f conftest.er1
2696 cat conftest.err >&5 2596 cat conftest.err >&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); } && 2598 (exit $ac_status); } &&
2699 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 2599 { ac_try='test -z "$ac_cxx_werror_flag"
2600 || test ! -s conftest.err'
2700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701 (eval $ac_try) 2>&5 2602 (eval $ac_try) 2>&5
2702 ac_status=$? 2603 ac_status=$?
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }; } && 2605 (exit $ac_status); }; } &&
2765 grep -v '^ *+' conftest.er1 >conftest.err 2666 grep -v '^ *+' conftest.er1 >conftest.err
2766 rm -f conftest.er1 2667 rm -f conftest.er1
2767 cat conftest.err >&5 2668 cat conftest.err >&5
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); } && 2670 (exit $ac_status); } &&
2770 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 2671 { ac_try='test -z "$ac_cxx_werror_flag"
2672 || test ! -s conftest.err'
2771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2772 (eval $ac_try) 2>&5 2674 (eval $ac_try) 2>&5
2773 ac_status=$? 2675 ac_status=$?
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); }; } && 2677 (exit $ac_status); }; } &&
2809 grep -v '^ *+' conftest.er1 >conftest.err 2711 grep -v '^ *+' conftest.er1 >conftest.err
2810 rm -f conftest.er1 2712 rm -f conftest.er1
2811 cat conftest.err >&5 2713 cat conftest.err >&5
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); } && 2715 (exit $ac_status); } &&
2814 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 2716 { ac_try='test -z "$ac_cxx_werror_flag"
2717 || test ! -s conftest.err'
2815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2816 (eval $ac_try) 2>&5 2719 (eval $ac_try) 2>&5
2817 ac_status=$? 2720 ac_status=$?
2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819 (exit $ac_status); }; } && 2722 (exit $ac_status); }; } &&
3155 3058
3156test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3059test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3157 3060
3158test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3061test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3159 3062
3160for ac_prog in gawk mawk nawk awk 3063
3161do 3064
3065
3066echo "$as_me:$LINENO: checking for egrep" >&5
3067echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3068if test "${ac_cv_prog_egrep+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3070else
3071 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3072 then ac_cv_prog_egrep='grep -E'
3073 else ac_cv_prog_egrep='egrep'
3074 fi
3075fi
3076echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3077echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3078 EGREP=$ac_cv_prog_egrep
3079
3080
3081
3082echo "$as_me:$LINENO: checking for AIX" >&5
3083echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3084cat >conftest.$ac_ext <<_ACEOF
3085/* confdefs.h. */
3086_ACEOF
3087cat confdefs.h >>conftest.$ac_ext
3088cat >>conftest.$ac_ext <<_ACEOF
3089/* end confdefs.h. */
3090#ifdef _AIX
3091 yes
3092#endif
3093
3094_ACEOF
3095if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3096 $EGREP "yes" >/dev/null 2>&1; then
3097 echo "$as_me:$LINENO: result: yes" >&5
3098echo "${ECHO_T}yes" >&6
3099cat >>confdefs.h <<\_ACEOF
3100#define _ALL_SOURCE 1
3101_ACEOF
3102
3103else
3104 echo "$as_me:$LINENO: result: no" >&5
3105echo "${ECHO_T}no" >&6
3106fi
3107rm -f conftest*
3108
3109
3110echo "$as_me:$LINENO: checking for library containing strerror" >&5
3111echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3112if test "${ac_cv_search_strerror+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3114else
3115 ac_func_search_save_LIBS=$LIBS
3116ac_cv_search_strerror=no
3117cat >conftest.$ac_ext <<_ACEOF
3118/* confdefs.h. */
3119_ACEOF
3120cat confdefs.h >>conftest.$ac_ext
3121cat >>conftest.$ac_ext <<_ACEOF
3122/* end confdefs.h. */
3123
3124/* Override any gcc2 internal prototype to avoid an error. */
3125#ifdef __cplusplus
3126extern "C"
3127#endif
3128/* We use char because int might match the return type of a gcc2
3129 builtin and then its argument prototype would still apply. */
3130char strerror ();
3131int
3132main ()
3133{
3134strerror ();
3135 ;
3136 return 0;
3137}
3138_ACEOF
3139rm -f conftest.$ac_objext conftest$ac_exeext
3140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3141 (eval $ac_link) 2>conftest.er1
3142 ac_status=$?
3143 grep -v '^ *+' conftest.er1 >conftest.err
3144 rm -f conftest.er1
3145 cat conftest.err >&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); } &&
3148 { ac_try='test -z "$ac_c_werror_flag"
3149 || test ! -s conftest.err'
3150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3151 (eval $ac_try) 2>&5
3152 ac_status=$?
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; } &&
3155 { ac_try='test -s conftest$ac_exeext'
3156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3157 (eval $ac_try) 2>&5
3158 ac_status=$?
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); }; }; then
3161 ac_cv_search_strerror="none required"
3162else
3163 echo "$as_me: failed program was:" >&5
3164sed 's/^/| /' conftest.$ac_ext >&5
3165
3166fi
3167rm -f conftest.err conftest.$ac_objext \
3168 conftest$ac_exeext conftest.$ac_ext
3169if test "$ac_cv_search_strerror" = no; then
3170 for ac_lib in cposix; do
3171 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3172 cat >conftest.$ac_ext <<_ACEOF
3173/* confdefs.h. */
3174_ACEOF
3175cat confdefs.h >>conftest.$ac_ext
3176cat >>conftest.$ac_ext <<_ACEOF
3177/* end confdefs.h. */
3178
3179/* Override any gcc2 internal prototype to avoid an error. */
3180#ifdef __cplusplus
3181extern "C"
3182#endif
3183/* We use char because int might match the return type of a gcc2
3184 builtin and then its argument prototype would still apply. */
3185char strerror ();
3186int
3187main ()
3188{
3189strerror ();
3190 ;
3191 return 0;
3192}
3193_ACEOF
3194rm -f conftest.$ac_objext conftest$ac_exeext
3195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3196 (eval $ac_link) 2>conftest.er1
3197 ac_status=$?
3198 grep -v '^ *+' conftest.er1 >conftest.err
3199 rm -f conftest.er1
3200 cat conftest.err >&5
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); } &&
3203 { ac_try='test -z "$ac_c_werror_flag"
3204 || test ! -s conftest.err'
3205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3206 (eval $ac_try) 2>&5
3207 ac_status=$?
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); }; } &&
3210 { ac_try='test -s conftest$ac_exeext'
3211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3212 (eval $ac_try) 2>&5
3213 ac_status=$?
3214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215 (exit $ac_status); }; }; then
3216 ac_cv_search_strerror="-l$ac_lib"
3217break
3218else
3219 echo "$as_me: failed program was:" >&5
3220sed 's/^/| /' conftest.$ac_ext >&5
3221
3222fi
3223rm -f conftest.err conftest.$ac_objext \
3224 conftest$ac_exeext conftest.$ac_ext
3225 done
3226fi
3227LIBS=$ac_func_search_save_LIBS
3228fi
3229echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3230echo "${ECHO_T}$ac_cv_search_strerror" >&6
3231if test "$ac_cv_search_strerror" != no; then
3232 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3233
3234fi
3235
3236ac_ext=cc
3237ac_cpp='$CXXCPP $CPPFLAGS'
3238ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3241
3242
3243if test x$GCC = xyes && test x$GXX = xyes; then
3244 echo "$as_me:$LINENO: checking for working libsupc++" >&5
3245echo $ECHO_N "checking for working libsupc++... $ECHO_C" >&6
3246 save_CXX="$CXX"
3247 save_LIBS="$LIBS"
3248 CXX="$CC"
3249 LIBS="$LIBS -lsupc++"
3250 LINKER="$CC"
3251
3252cat >conftest.$ac_ext <<_ACEOF
3253/* confdefs.h. */
3254_ACEOF
3255cat confdefs.h >>conftest.$ac_ext
3256cat >>conftest.$ac_ext <<_ACEOF
3257/* end confdefs.h. */
3258struct test { }; void f() try { throw new test; } catch (...) { throw; }
3259int
3260main ()
3261{
3262
3263 ;
3264 return 0;
3265}
3266_ACEOF
3267rm -f conftest.$ac_objext conftest$ac_exeext
3268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3269 (eval $ac_link) 2>conftest.er1
3270 ac_status=$?
3271 grep -v '^ *+' conftest.er1 >conftest.err
3272 rm -f conftest.er1
3273 cat conftest.err >&5
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); } &&
3276 { ac_try='test -z "$ac_cxx_werror_flag"
3277 || test ! -s conftest.err'
3278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3279 (eval $ac_try) 2>&5
3280 ac_status=$?
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); }; } &&
3283 { ac_try='test -s conftest$ac_exeext'
3284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3285 (eval $ac_try) 2>&5
3286 ac_status=$?
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); }; }; then
3289
3290 echo "$as_me:$LINENO: result: ok" >&5
3291echo "${ECHO_T}ok" >&6
3292 CXXLIB="-lsupc++"
3293
3294else
3295 echo "$as_me: failed program was:" >&5
3296sed 's/^/| /' conftest.$ac_ext >&5
3297
3298
3299 echo "$as_me:$LINENO: result: no, making everything bigger and slower" >&5
3300echo "${ECHO_T}no, making everything bigger and slower" >&6
3301 LIBS="$save_LIBS"
3302 LINKER="$save_CXX"
3303
3304
3305fi
3306rm -f conftest.err conftest.$ac_objext \
3307 conftest$ac_exeext conftest.$ac_ext
3308 CXX="$save_CXX"
3309fi
3310LINKER=$LINKER
3311
3312
3313
3314if test -z "$orig_CXXFLAGS"; then
3315 if test x$GCC = xyes && test "x$GXX" = xyes; then
3316 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs"
3317 cat >conftest.$ac_ext <<_ACEOF
3318/* confdefs.h. */
3319_ACEOF
3320cat confdefs.h >>conftest.$ac_ext
3321cat >>conftest.$ac_ext <<_ACEOF
3322/* end confdefs.h. */
3323
3324int
3325main ()
3326{
3327
3328 ;
3329 return 0;
3330}
3331_ACEOF
3332rm -f conftest.$ac_objext
3333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3334 (eval $ac_compile) 2>conftest.er1
3335 ac_status=$?
3336 grep -v '^ *+' conftest.er1 >conftest.err
3337 rm -f conftest.er1
3338 cat conftest.err >&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); } &&
3341 { ac_try='test -z "$ac_cxx_werror_flag"
3342 || test ! -s conftest.err'
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); }; } &&
3348 { ac_try='test -s conftest.$ac_objext'
3349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350 (eval $ac_try) 2>&5
3351 ac_status=$?
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; }; then
3354 :
3355else
3356 echo "$as_me: failed program was:" >&5
3357sed 's/^/| /' conftest.$ac_ext >&5
3358
3359CXXFLAGS="-g -O3"
3360fi
3361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3362 else
3363 CXXFLAGS="-O"
3364 fi
3365 CFLAGS="$CXXFLAGS"
3366fi
3367
3368
3369cat >>confdefs.h <<\_ACEOF
3370#define _GNU_SOURCE 1
3371_ACEOF
3372
3373
3374case $host in
3375 *-*-solaris* )
3376
3377cat >>confdefs.h <<\_ACEOF
3378#define _XOPEN_SOURCE_EXTENDED 1
3379_ACEOF
3380
3381
3382cat >>confdefs.h <<\_ACEOF
3383#define _XOPEN_SOURCE 2
3384_ACEOF
3385
3386
3387cat >>confdefs.h <<\_ACEOF
3388#define __EXTENSIONS__ 1
3389_ACEOF
3390
3391 ;;
3392esac
3393
3394
3395echo "$as_me:$LINENO: checking for setlocale" >&5
3396echo $ECHO_N "checking for setlocale... $ECHO_C" >&6
3397if test "${ac_cv_func_setlocale+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3399else
3400 cat >conftest.$ac_ext <<_ACEOF
3401/* confdefs.h. */
3402_ACEOF
3403cat confdefs.h >>conftest.$ac_ext
3404cat >>conftest.$ac_ext <<_ACEOF
3405/* end confdefs.h. */
3406/* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale.
3407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3408#define setlocale innocuous_setlocale
3409
3410/* System header to define __stub macros and hopefully few prototypes,
3411 which can conflict with char setlocale (); below.
3412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3413 <limits.h> exists even on freestanding compilers. */
3414
3415#ifdef __STDC__
3416# include <limits.h>
3417#else
3418# include <assert.h>
3419#endif
3420
3421#undef setlocale
3422
3423/* Override any gcc2 internal prototype to avoid an error. */
3424#ifdef __cplusplus
3425extern "C"
3426{
3427#endif
3428/* We use char because int might match the return type of a gcc2
3429 builtin and then its argument prototype would still apply. */
3430char setlocale ();
3431/* The GNU C library defines this for functions which it implements
3432 to always fail with ENOSYS. Some functions are actually named
3433 something starting with __ and the normal name is an alias. */
3434#if defined (__stub_setlocale) || defined (__stub___setlocale)
3435choke me
3436#else
3437char (*f) () = setlocale;
3438#endif
3439#ifdef __cplusplus
3440}
3441#endif
3442
3443int
3444main ()
3445{
3446return f != setlocale;
3447 ;
3448 return 0;
3449}
3450_ACEOF
3451rm -f conftest.$ac_objext conftest$ac_exeext
3452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3453 (eval $ac_link) 2>conftest.er1
3454 ac_status=$?
3455 grep -v '^ *+' conftest.er1 >conftest.err
3456 rm -f conftest.er1
3457 cat conftest.err >&5
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); } &&
3460 { ac_try='test -z "$ac_cxx_werror_flag"
3461 || test ! -s conftest.err'
3462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463 (eval $ac_try) 2>&5
3464 ac_status=$?
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); }; } &&
3467 { ac_try='test -s conftest$ac_exeext'
3468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3469 (eval $ac_try) 2>&5
3470 ac_status=$?
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); }; }; then
3473 ac_cv_func_setlocale=yes
3474else
3475 echo "$as_me: failed program was:" >&5
3476sed 's/^/| /' conftest.$ac_ext >&5
3477
3478ac_cv_func_setlocale=no
3479fi
3480rm -f conftest.err conftest.$ac_objext \
3481 conftest$ac_exeext conftest.$ac_ext
3482fi
3483echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5
3484echo "${ECHO_T}$ac_cv_func_setlocale" >&6
3485if test $ac_cv_func_setlocale = yes; then
3486 :
3487else
3488 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
3489echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
3490if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3492else
3493 ac_check_lib_save_LIBS=$LIBS
3494LIBS="-lxpg4 $LIBS"
3495cat >conftest.$ac_ext <<_ACEOF
3496/* confdefs.h. */
3497_ACEOF
3498cat confdefs.h >>conftest.$ac_ext
3499cat >>conftest.$ac_ext <<_ACEOF
3500/* end confdefs.h. */
3501
3502/* Override any gcc2 internal prototype to avoid an error. */
3503#ifdef __cplusplus
3504extern "C"
3505#endif
3506/* We use char because int might match the return type of a gcc2
3507 builtin and then its argument prototype would still apply. */
3508char setlocale ();
3509int
3510main ()
3511{
3512setlocale ();
3513 ;
3514 return 0;
3515}
3516_ACEOF
3517rm -f conftest.$ac_objext conftest$ac_exeext
3518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3519 (eval $ac_link) 2>conftest.er1
3520 ac_status=$?
3521 grep -v '^ *+' conftest.er1 >conftest.err
3522 rm -f conftest.er1
3523 cat conftest.err >&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); } &&
3526 { ac_try='test -z "$ac_cxx_werror_flag"
3527 || test ! -s conftest.err'
3528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3529 (eval $ac_try) 2>&5
3530 ac_status=$?
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); }; } &&
3533 { ac_try='test -s conftest$ac_exeext'
3534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535 (eval $ac_try) 2>&5
3536 ac_status=$?
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); }; }; then
3539 ac_cv_lib_xpg4_setlocale=yes
3540else
3541 echo "$as_me: failed program was:" >&5
3542sed 's/^/| /' conftest.$ac_ext >&5
3543
3544ac_cv_lib_xpg4_setlocale=no
3545fi
3546rm -f conftest.err conftest.$ac_objext \
3547 conftest$ac_exeext conftest.$ac_ext
3548LIBS=$ac_check_lib_save_LIBS
3549fi
3550echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
3551echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
3552if test $ac_cv_lib_xpg4_setlocale = yes; then
3553 LIBS="$LIBS -lxpg4"
3554fi
3555
3556fi
3557
3558
3559echo "$as_me:$LINENO: checking for gethostbyname" >&5
3560echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3561if test "${ac_cv_func_gethostbyname+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3563else
3564 cat >conftest.$ac_ext <<_ACEOF
3565/* confdefs.h. */
3566_ACEOF
3567cat confdefs.h >>conftest.$ac_ext
3568cat >>conftest.$ac_ext <<_ACEOF
3569/* end confdefs.h. */
3570/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3572#define gethostbyname innocuous_gethostbyname
3573
3574/* System header to define __stub macros and hopefully few prototypes,
3575 which can conflict with char gethostbyname (); below.
3576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3577 <limits.h> exists even on freestanding compilers. */
3578
3579#ifdef __STDC__
3580# include <limits.h>
3581#else
3582# include <assert.h>
3583#endif
3584
3585#undef gethostbyname
3586
3587/* Override any gcc2 internal prototype to avoid an error. */
3588#ifdef __cplusplus
3589extern "C"
3590{
3591#endif
3592/* We use char because int might match the return type of a gcc2
3593 builtin and then its argument prototype would still apply. */
3594char gethostbyname ();
3595/* The GNU C library defines this for functions which it implements
3596 to always fail with ENOSYS. Some functions are actually named
3597 something starting with __ and the normal name is an alias. */
3598#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3599choke me
3600#else
3601char (*f) () = gethostbyname;
3602#endif
3603#ifdef __cplusplus
3604}
3605#endif
3606
3607int
3608main ()
3609{
3610return f != gethostbyname;
3611 ;
3612 return 0;
3613}
3614_ACEOF
3615rm -f conftest.$ac_objext conftest$ac_exeext
3616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3617 (eval $ac_link) 2>conftest.er1
3618 ac_status=$?
3619 grep -v '^ *+' conftest.er1 >conftest.err
3620 rm -f conftest.er1
3621 cat conftest.err >&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); } &&
3624 { ac_try='test -z "$ac_cxx_werror_flag"
3625 || test ! -s conftest.err'
3626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627 (eval $ac_try) 2>&5
3628 ac_status=$?
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); }; } &&
3631 { ac_try='test -s conftest$ac_exeext'
3632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633 (eval $ac_try) 2>&5
3634 ac_status=$?
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); }; }; then
3637 ac_cv_func_gethostbyname=yes
3638else
3639 echo "$as_me: failed program was:" >&5
3640sed 's/^/| /' conftest.$ac_ext >&5
3641
3642ac_cv_func_gethostbyname=no
3643fi
3644rm -f conftest.err conftest.$ac_objext \
3645 conftest$ac_exeext conftest.$ac_ext
3646fi
3647echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3648echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3649if test $ac_cv_func_gethostbyname = yes; then
3650 :
3651else
3652 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3653echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3654if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3656else
3657 ac_check_lib_save_LIBS=$LIBS
3658LIBS="-lnsl $LIBS"
3659cat >conftest.$ac_ext <<_ACEOF
3660/* confdefs.h. */
3661_ACEOF
3662cat confdefs.h >>conftest.$ac_ext
3663cat >>conftest.$ac_ext <<_ACEOF
3664/* end confdefs.h. */
3665
3666/* Override any gcc2 internal prototype to avoid an error. */
3667#ifdef __cplusplus
3668extern "C"
3669#endif
3670/* We use char because int might match the return type of a gcc2
3671 builtin and then its argument prototype would still apply. */
3672char gethostbyname ();
3673int
3674main ()
3675{
3676gethostbyname ();
3677 ;
3678 return 0;
3679}
3680_ACEOF
3681rm -f conftest.$ac_objext conftest$ac_exeext
3682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3683 (eval $ac_link) 2>conftest.er1
3684 ac_status=$?
3685 grep -v '^ *+' conftest.er1 >conftest.err
3686 rm -f conftest.er1
3687 cat conftest.err >&5
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); } &&
3690 { ac_try='test -z "$ac_cxx_werror_flag"
3691 || test ! -s conftest.err'
3692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693 (eval $ac_try) 2>&5
3694 ac_status=$?
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); }; } &&
3697 { ac_try='test -s conftest$ac_exeext'
3698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699 (eval $ac_try) 2>&5
3700 ac_status=$?
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }; }; then
3703 ac_cv_lib_nsl_gethostbyname=yes
3704else
3705 echo "$as_me: failed program was:" >&5
3706sed 's/^/| /' conftest.$ac_ext >&5
3707
3708ac_cv_lib_nsl_gethostbyname=no
3709fi
3710rm -f conftest.err conftest.$ac_objext \
3711 conftest$ac_exeext conftest.$ac_ext
3712LIBS=$ac_check_lib_save_LIBS
3713fi
3714echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3715echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3716if test $ac_cv_lib_nsl_gethostbyname = yes; then
3717 LIBS="$LIBS -lnsl"
3718fi
3719
3720fi
3721
3722echo "$as_me:$LINENO: checking for socket" >&5
3723echo $ECHO_N "checking for socket... $ECHO_C" >&6
3724if test "${ac_cv_func_socket+set}" = set; then
3725 echo $ECHO_N "(cached) $ECHO_C" >&6
3726else
3727 cat >conftest.$ac_ext <<_ACEOF
3728/* confdefs.h. */
3729_ACEOF
3730cat confdefs.h >>conftest.$ac_ext
3731cat >>conftest.$ac_ext <<_ACEOF
3732/* end confdefs.h. */
3733/* Define socket to an innocuous variant, in case <limits.h> declares socket.
3734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3735#define socket innocuous_socket
3736
3737/* System header to define __stub macros and hopefully few prototypes,
3738 which can conflict with char socket (); below.
3739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3740 <limits.h> exists even on freestanding compilers. */
3741
3742#ifdef __STDC__
3743# include <limits.h>
3744#else
3745# include <assert.h>
3746#endif
3747
3748#undef socket
3749
3750/* Override any gcc2 internal prototype to avoid an error. */
3751#ifdef __cplusplus
3752extern "C"
3753{
3754#endif
3755/* We use char because int might match the return type of a gcc2
3756 builtin and then its argument prototype would still apply. */
3757char socket ();
3758/* The GNU C library defines this for functions which it implements
3759 to always fail with ENOSYS. Some functions are actually named
3760 something starting with __ and the normal name is an alias. */
3761#if defined (__stub_socket) || defined (__stub___socket)
3762choke me
3763#else
3764char (*f) () = socket;
3765#endif
3766#ifdef __cplusplus
3767}
3768#endif
3769
3770int
3771main ()
3772{
3773return f != socket;
3774 ;
3775 return 0;
3776}
3777_ACEOF
3778rm -f conftest.$ac_objext conftest$ac_exeext
3779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3780 (eval $ac_link) 2>conftest.er1
3781 ac_status=$?
3782 grep -v '^ *+' conftest.er1 >conftest.err
3783 rm -f conftest.er1
3784 cat conftest.err >&5
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); } &&
3787 { ac_try='test -z "$ac_cxx_werror_flag"
3788 || test ! -s conftest.err'
3789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790 (eval $ac_try) 2>&5
3791 ac_status=$?
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); }; } &&
3794 { ac_try='test -s conftest$ac_exeext'
3795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796 (eval $ac_try) 2>&5
3797 ac_status=$?
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; }; then
3800 ac_cv_func_socket=yes
3801else
3802 echo "$as_me: failed program was:" >&5
3803sed 's/^/| /' conftest.$ac_ext >&5
3804
3805ac_cv_func_socket=no
3806fi
3807rm -f conftest.err conftest.$ac_objext \
3808 conftest$ac_exeext conftest.$ac_ext
3809fi
3810echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3811echo "${ECHO_T}$ac_cv_func_socket" >&6
3812if test $ac_cv_func_socket = yes; then
3813 :
3814else
3815 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3816echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3817if test "${ac_cv_lib_socket_socket+set}" = set; then
3818 echo $ECHO_N "(cached) $ECHO_C" >&6
3819else
3820 ac_check_lib_save_LIBS=$LIBS
3821LIBS="-lsocket $LIBS"
3822cat >conftest.$ac_ext <<_ACEOF
3823/* confdefs.h. */
3824_ACEOF
3825cat confdefs.h >>conftest.$ac_ext
3826cat >>conftest.$ac_ext <<_ACEOF
3827/* end confdefs.h. */
3828
3829/* Override any gcc2 internal prototype to avoid an error. */
3830#ifdef __cplusplus
3831extern "C"
3832#endif
3833/* We use char because int might match the return type of a gcc2
3834 builtin and then its argument prototype would still apply. */
3835char socket ();
3836int
3837main ()
3838{
3839socket ();
3840 ;
3841 return 0;
3842}
3843_ACEOF
3844rm -f conftest.$ac_objext conftest$ac_exeext
3845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3846 (eval $ac_link) 2>conftest.er1
3847 ac_status=$?
3848 grep -v '^ *+' conftest.er1 >conftest.err
3849 rm -f conftest.er1
3850 cat conftest.err >&5
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); } &&
3853 { ac_try='test -z "$ac_cxx_werror_flag"
3854 || test ! -s conftest.err'
3855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3856 (eval $ac_try) 2>&5
3857 ac_status=$?
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }; } &&
3860 { ac_try='test -s conftest$ac_exeext'
3861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862 (eval $ac_try) 2>&5
3863 ac_status=$?
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; }; then
3866 ac_cv_lib_socket_socket=yes
3867else
3868 echo "$as_me: failed program was:" >&5
3869sed 's/^/| /' conftest.$ac_ext >&5
3870
3871ac_cv_lib_socket_socket=no
3872fi
3873rm -f conftest.err conftest.$ac_objext \
3874 conftest$ac_exeext conftest.$ac_ext
3875LIBS=$ac_check_lib_save_LIBS
3876fi
3877echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3878echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3879if test $ac_cv_lib_socket_socket = yes; then
3880 LIBS="$LIBS -lsocket"
3881fi
3882
3883fi
3884
3885
3886
3887support_frills=yes
3888support_inheritpixmap=yes
3889support_tinting=yes
3890support_fading=yes
3891support_keepscrolling=yes
3892support_selectionscrolling=yes
3893support_mousewheel=yes
3894support_mouseslipwheel=yes
3895support_text_blink=yes
3896support_pointer_blank=yes
3897support_scroll_rxvt=yes
3898support_scroll_next=yes
3899support_scroll_xterm=yes
3900support_scroll_plain=yes
3901support_xim=yes
3902support_xpm=yes
3903support_afterimage=yes
3904support_afterstep=yes
3905support_xft=yes
3906support_unicode3=no
3907support_combining=yes
3908support_8bitctrls=no
3909support_iso14755=yes
3910support_styles=yes
3911support_perl=yes
3912codesets=all
3913
3914
3915if test "x$enable_shared" = xyes; then
3916
3917cat >>confdefs.h <<\_ACEOF
3918#define LIBRXVT 1
3919_ACEOF
3920
3921 INSTALL_LIBRXVT=yes
3922fi
3923
3924
3925# Check whether --enable-everything or --disable-everything was given.
3926if test "${enable_everything+set}" = set; then
3927 enableval="$enable_everything"
3928
3929 if test x$enableval = xno; then
3930 support_frills=no
3931 support_inheritpixmap=no
3932 support_tinting=no
3933 support_fading=no
3934 support_keepscrolling=no
3935 support_selectionscrolling=no
3936 support_lastlog=no
3937 support_mousewheel=no
3938 support_mouseslipwheel=no
3939 support_text_blink=no
3940 support_pointer_blank=no
3941 support_scroll_rxvt=no
3942 support_scroll_next=no
3943 support_scroll_xterm=no
3944 support_scroll_plain=no
3945 support_utmp=no
3946 support_wtmp=no
3947 support_xim=no
3948 support_xpm=no
3949 support_afterimage=no
3950 support_afterstep=no
3951 support_xft=no
3952 support_unicode3=no
3953 support_combining=no
3954 support_8bitctrls=no
3955 support_iso14755=no
3956 support_styles=no
3957 support_perl=no
3958 codesets=
3959 fi
3960 if test x$enableval = xyes; then
3961 support_frills=yes
3962 support_inheritpixmap=yes
3963 support_tinting=yes
3964 support_fading=yes
3965 support_keepscrolling=yes
3966 support_selectionscrolling=yes
3967 support_lastlog=yes
3968 support_mousewheel=yes
3969 support_mouseslipwheel=yes
3970 support_text_blink=yes
3971 support_pointer_blank=yes
3972 support_scroll_rxvt=yes
3973 support_scroll_next=yes
3974 support_scroll_xterm=yes
3975 support_scroll_plain=yes
3976 support_utmp=yes
3977 support_wtmp=yes
3978 support_xim=yes
3979 support_xpm=yes
3980 support_afterimage=yes
3981 support_afterstep=yes
3982 support_xft=yes
3983 support_unicode3=yes
3984 support_combining=yes
3985 #support_8bitctrls=yes
3986 support_iso14755=yes
3987 support_styles=yes
3988 support_perl=yes
3989 codesets=all
3990 fi
3991
3992fi;
3993
3994# Check whether --enable-unicode3 or --disable-unicode3 was given.
3995if test "${enable_unicode3+set}" = set; then
3996 enableval="$enable_unicode3"
3997 if test x$enableval = xyes -o x$enableval = xno; then
3998 support_unicode3=$enableval
3999 fi
4000fi;
4001
4002# Check whether --enable-combining or --disable-combining was given.
4003if test "${enable_combining+set}" = set; then
4004 enableval="$enable_combining"
4005 if test x$enableval = xyes -o x$enableval = xno; then
4006 support_combining=$enableval
4007 fi
4008fi;
4009
4010# Check whether --enable-xft or --disable-xft was given.
4011if test "${enable_xft+set}" = set; then
4012 enableval="$enable_xft"
4013 if test x$enableval = xyes -o x$enableval = xno; then
4014 support_xft=$enableval
4015 fi
4016fi;
4017
4018# Check whether --enable-font-styles or --disable-font-styles was given.
4019if test "${enable_font_styles+set}" = set; then
4020 enableval="$enable_font_styles"
4021 if test x$enableval = xyes -o x$enableval = xno; then
4022 support_styles=$enableval
4023 fi
4024fi;
4025
4026# Check whether --enable-xpm-background or --disable-xpm-background was given.
4027if test "${enable_xpm_background+set}" = set; then
4028 enableval="$enable_xpm_background"
4029 if test x$enableval = xyes -o x$enableval = xno; then
4030 support_xpm=$enableval
4031 fi
4032fi;
4033
4034# Check whether --enable-afterimage or --disable-afterimage was given.
4035if test "${enable_afterimage+set}" = set; then
4036 enableval="$enable_afterimage"
4037 if test x$enableval = xyes -o x$enableval = xno; then
4038 support_afterimage=$enableval
4039 fi
4040fi;
4041
4042
4043# Check whether --with-afterimage_config or --without-afterimage_config was given.
4044if test "${with_afterimage_config+set}" = set; then
4045 withval="$with_afterimage_config"
4046 if test "x$withval" != x; then
4047 afterimage_config=$withval/afterimage-config
4048 fi
4049fi;
4050
4051# Check whether --enable-afterstep or --disable-afterstep was given.
4052if test "${enable_afterstep+set}" = set; then
4053 enableval="$enable_afterstep"
4054 if test x$enableval = xyes -o x$enableval = xno; then
4055 support_afterstep=$enableval
4056 fi
4057fi;
4058
4059# Check whether --enable-transparency or --disable-transparency was given.
4060if test "${enable_transparency+set}" = set; then
4061 enableval="$enable_transparency"
4062 if test x$enableval = xyes -o x$enableval = xno; then
4063 support_inheritpixmap=$enableval
4064 fi
4065fi;
4066
4067# Check whether --enable-tinting or --disable-tinting was given.
4068if test "${enable_tinting+set}" = set; then
4069 enableval="$enable_tinting"
4070 if test x$enableval = xyes -o x$enableval = xno; then
4071 support_tinting=$enableval
4072 fi
4073fi;
4074
4075# Check whether --enable-fading or --disable-fading was given.
4076if test "${enable_fading+set}" = set; then
4077 enableval="$enable_fading"
4078 if test x$enableval = xyes -o x$enableval = xno; then
4079 support_fading=$enableval
4080 fi
4081fi;
4082
4083# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
4084if test "${enable_rxvt_scroll+set}" = set; then
4085 enableval="$enable_rxvt_scroll"
4086 if test x$enableval = xyes -o x$enableval = xno; then
4087 support_scroll_rxvt=$enableval
4088 fi
4089fi;
4090
4091# Check whether --enable-next-scroll or --disable-next-scroll was given.
4092if test "${enable_next_scroll+set}" = set; then
4093 enableval="$enable_next_scroll"
4094 if test x$enableval = xyes -o x$enableval = xno; then
4095 support_scroll_next=$enableval
4096 fi
4097fi;
4098
4099# Check whether --enable-xterm-scroll or --disable-xterm-scroll was given.
4100if test "${enable_xterm_scroll+set}" = set; then
4101 enableval="$enable_xterm_scroll"
4102 if test x$enableval = xyes -o x$enableval = xno; then
4103 support_scroll_xterm=$enableval
4104 fi
4105fi;
4106
4107# Check whether --enable-perl or --disable-perl was given.
4108if test "${enable_perl+set}" = set; then
4109 enableval="$enable_perl"
4110 if test x$enableval = xyes -o x$enableval = xno; then
4111 support_perl=$enableval
4112 fi
4113fi;
4114
4115# Check whether --enable-plain-scroll or --disable-plain-scroll was given.
4116if test "${enable_plain_scroll+set}" = set; then
4117 enableval="$enable_plain_scroll"
4118 if test x$enableval = xyes -o x$enableval = xno; then
4119 support_scroll_plain=$enableval
4120 fi
4121fi;
4122
4123
4124# Check whether --with-codesets or --without-codesets was given.
4125if test "${with_codesets+set}" = set; then
4126 withval="$with_codesets"
4127 codesets="$withval"
4128fi;
4129
4130# Check whether --enable-xim or --disable-xim was given.
4131if test "${enable_xim+set}" = set; then
4132 enableval="$enable_xim"
4133 if test x$enableval = xyes -o x$enableval = xno; then
4134 support_xim=$enableval
4135 fi
4136fi;
4137
4138# Check whether --enable-backspace-key or --disable-backspace-key was given.
4139if test "${enable_backspace_key+set}" = set; then
4140 enableval="$enable_backspace_key"
4141 if test x$enableval = xno; then
4142
4143cat >>confdefs.h <<\_ACEOF
4144#define NO_BACKSPACE_KEY 1
4145_ACEOF
4146
4147 fi
4148fi;
4149
4150# Check whether --enable-delete-key or --disable-delete-key was given.
4151if test "${enable_delete_key+set}" = set; then
4152 enableval="$enable_delete_key"
4153 if test x$enableval = xno; then
4154
4155cat >>confdefs.h <<\_ACEOF
4156#define NO_DELETE_KEY 1
4157_ACEOF
4158
4159 fi
4160fi;
4161
4162# Check whether --enable-resources or --disable-resources was given.
4163if test "${enable_resources+set}" = set; then
4164 enableval="$enable_resources"
4165 if test x$enableval = xno; then
4166
4167cat >>confdefs.h <<\_ACEOF
4168#define NO_RESOURCES 1
4169_ACEOF
4170
4171 fi
4172fi;
4173
4174# Check whether --enable-8bitctrls or --disable-8bitctrls was given.
4175if test "${enable_8bitctrls+set}" = set; then
4176 enableval="$enable_8bitctrls"
4177 if test x$enableval = xyes -o x$enableval = xno; then
4178 support_8bitctrls=$enableval
4179 fi
4180fi;
4181
4182RESFALLBACK=Rxvt
4183# Check whether --enable-fallback or --disable-fallback was given.
4184if test "${enable_fallback+set}" = set; then
4185 enableval="$enable_fallback"
4186
4187 test x$enableval = xyes && enableval=Rxvt
4188 test x$enableval = xno && enableval=
4189 RESFALLBACK="$enableval"
4190
4191fi;
4192
4193if test x$RESFALLBACK != x; then
4194
4195cat >>confdefs.h <<_ACEOF
4196#define RESFALLBACK "$RESFALLBACK"
4197_ACEOF
4198
4199fi
4200
4201RESNAME=urxvt
4202
4203# Check whether --with-res-name or --without-res-name was given.
4204if test "${with_res_name+set}" = set; then
4205 withval="$with_res_name"
4206 RESNAME="$withval"
4207fi;
4208
4209cat >>confdefs.h <<_ACEOF
4210#define RESNAME "$RESNAME"
4211_ACEOF
4212
4213
4214RESCLASS=URxvt
4215
4216# Check whether --with-res-class or --without-res-class was given.
4217if test "${with_res_class+set}" = set; then
4218 withval="$with_res_class"
4219 RESCLASS="$withval"
4220fi;
4221
4222cat >>confdefs.h <<_ACEOF
4223#define RESCLASS "$RESCLASS"
4224_ACEOF
4225
4226
4227RXVTNAME=urxvt
4228
4229# Check whether --with-name or --without-name was given.
4230if test "${with_name+set}" = set; then
4231 withval="$with_name"
4232 RXVTNAME="$withval"
4233fi;
4234
4235cat >>confdefs.h <<_ACEOF
4236#define RXVTNAME "$RXVTNAME"
4237_ACEOF
4238
4239
4240RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
4241
4242
4243# Check whether --enable-swapscreen or --disable-swapscreen was given.
4244if test "${enable_swapscreen+set}" = set; then
4245 enableval="$enable_swapscreen"
4246 if test x$enableval = xno; then
4247
4248cat >>confdefs.h <<\_ACEOF
4249#define NO_SECONDARY_SCREEN 1
4250_ACEOF
4251
4252 fi
4253fi;
4254
4255# Check whether --enable-iso14755 or --disable-iso14755 was given.
4256if test "${enable_iso14755+set}" = set; then
4257 enableval="$enable_iso14755"
4258 if test x$enableval = xyes -o x$enableval = xno; then
4259 support_iso14755=$enableval
4260 fi
4261fi;
4262
4263# Check whether --enable-frills or --disable-frills was given.
4264if test "${enable_frills+set}" = set; then
4265 enableval="$enable_frills"
4266 if test x$enableval = xyes -o x$enableval = xno; then
4267 support_frills=$enableval
4268 fi
4269fi;
4270
4271# Check whether --enable-keepscrolling or --disable-keepscrolling was given.
4272if test "${enable_keepscrolling+set}" = set; then
4273 enableval="$enable_keepscrolling"
4274 if test x$enableval = xyes -o x$enableval = xno; then
4275 support_keepscrolling=$enableval
4276 fi
4277fi;
4278
4279# Check whether --enable-selectionscrolling or --disable-selectionscrolling was given.
4280if test "${enable_selectionscrolling+set}" = set; then
4281 enableval="$enable_selectionscrolling"
4282 if test x$enableval = xyes -o x$enableval = xno; then
4283 support_selectionscrolling=$enableval
4284 fi
4285fi;
4286
4287# Check whether --enable-mousewheel or --disable-mousewheel was given.
4288if test "${enable_mousewheel+set}" = set; then
4289 enableval="$enable_mousewheel"
4290 if test x$enableval = xyes -o x$enableval = xno; then
4291 support_mousewheel=$enableval
4292 fi
4293fi;
4294
4295# Check whether --enable-slipwheeling or --disable-slipwheeling was given.
4296if test "${enable_slipwheeling+set}" = set; then
4297 enableval="$enable_slipwheeling"
4298 if test x$enableval = xyes -o x$enableval = xno; then
4299 support_mouseslipwheel=$enableval
4300 fi
4301fi;
4302
4303# Check whether --enable-smart-resize or --disable-smart-resize was given.
4304if test "${enable_smart_resize+set}" = set; then
4305 enableval="$enable_smart_resize"
4306 if test x$enableval = xyes; then
4307
4308cat >>confdefs.h <<\_ACEOF
4309#define SMART_RESIZE 1
4310_ACEOF
4311
4312 fi
4313fi;
4314
4315# Check whether --enable-text-blink or --disable-text-blink was given.
4316if test "${enable_text_blink+set}" = set; then
4317 enableval="$enable_text_blink"
4318 if test x$enableval = xyes -o x$enableval = xno; then
4319 support_text_blink=$enableval
4320 fi
4321fi;
4322
4323# Check whether --enable-pointer-blank or --disable-pointer-blank was given.
4324if test "${enable_pointer_blank+set}" = set; then
4325 enableval="$enable_pointer_blank"
4326 if test x$enableval = xyes -o x$enableval = xno; then
4327 support_pointer_blank=$enableval
4328 fi
4329fi;
4330
4331
4332# Check whether --with-term or --without-term was given.
4333if test "${with_term+set}" = set; then
4334 withval="$with_term"
4335 if test x$withval != x; then
4336
4337cat >>confdefs.h <<_ACEOF
4338#define TERMENV "$withval"
4339_ACEOF
4340 term="$withval"
4341 fi
4342fi;
4343
4344
4345# Check whether --with-terminfo or --without-terminfo was given.
4346if test "${with_terminfo+set}" = set; then
4347 withval="$with_terminfo"
4348 if test x$withval != x; then
4349
4350cat >>confdefs.h <<_ACEOF
4351#define RXVT_TERMINFO "$withval"
4352_ACEOF
4353 terminfo="$withval"
4354 fi
4355fi;
4356
4357
3162 # Extract the first word of "$ac_prog", so it can be a program name with args. 4358# Extract the first word of "tic", so it can be a program name with args.
3163set dummy $ac_prog; ac_word=$2 4359set dummy tic; ac_word=$2
3164echo "$as_me:$LINENO: checking for $ac_word" >&5 4360echo "$as_me:$LINENO: checking for $ac_word" >&5
3165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3166if test "${ac_cv_prog_AWK+set}" = set; then 4362if test "${ac_cv_path_TIC+set}" = set; then
3167 echo $ECHO_N "(cached) $ECHO_C" >&6 4363 echo $ECHO_N "(cached) $ECHO_C" >&6
3168else 4364else
3169 if test -n "$AWK"; then 4365 case $TIC in
4366 [\\/]* | ?:[\\/]*)
3170 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4367 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
3171else 4368 ;;
4369 *)
3172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173for as_dir in $PATH 4371for as_dir in $PATH
3174do 4372do
3175 IFS=$as_save_IFS 4373 IFS=$as_save_IFS
3176 test -z "$as_dir" && as_dir=. 4374 test -z "$as_dir" && as_dir=.
3177 for ac_exec_ext in '' $ac_executable_extensions; do 4375 for ac_exec_ext in '' $ac_executable_extensions; do
3178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3179 ac_cv_prog_AWK="$ac_prog" 4377 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
3180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3181 break 2 4379 break 2
3182 fi 4380 fi
3183done 4381done
3184done 4382done
3185 4383
4384 ;;
4385esac
3186fi 4386fi
3187fi 4387TIC=$ac_cv_path_TIC
3188AWK=$ac_cv_prog_AWK 4388
3189if test -n "$AWK"; then 4389if test -n "$TIC"; then
3190 echo "$as_me:$LINENO: result: $AWK" >&5 4390 echo "$as_me:$LINENO: result: $TIC" >&5
3191echo "${ECHO_T}$AWK" >&6 4391echo "${ECHO_T}$TIC" >&6
3192else 4392else
3193 echo "$as_me:$LINENO: result: no" >&5 4393 echo "$as_me:$LINENO: result: no" >&5
3194echo "${ECHO_T}no" >&6 4394echo "${ECHO_T}no" >&6
3195fi 4395fi
3196 4396
3197 test -n "$AWK" && break
3198done
3199
3200
3201ac_ext=c
3202ac_cpp='$CPP $CPPFLAGS'
3203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3205ac_compiler_gnu=$ac_cv_c_compiler_gnu
3206
3207
3208LINKER="$CXX"
3209if test x$GCC = xyes && test x$GXX = xyes; then
3210
3211echo "$as_me:$LINENO: checking for main in -lsupc++" >&5
3212echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6
3213if test "${ac_cv_lib_supcpp_main+set}" = set; then
3214 echo $ECHO_N "(cached) $ECHO_C" >&6
3215else
3216 ac_check_lib_save_LIBS=$LIBS
3217LIBS="-lsupc++ $LIBS"
3218cat >conftest.$ac_ext <<_ACEOF
3219/* confdefs.h. */
3220_ACEOF
3221cat confdefs.h >>conftest.$ac_ext
3222cat >>conftest.$ac_ext <<_ACEOF
3223/* end confdefs.h. */
3224
3225
3226int
3227main ()
3228{
3229main ();
3230 ;
3231 return 0;
3232}
3233_ACEOF
3234rm -f conftest.$ac_objext conftest$ac_exeext
3235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3236 (eval $ac_link) 2>conftest.er1
3237 ac_status=$?
3238 grep -v '^ *+' conftest.er1 >conftest.err
3239 rm -f conftest.er1
3240 cat conftest.err >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } &&
3243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245 (eval $ac_try) 2>&5
3246 ac_status=$?
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }; } &&
3249 { ac_try='test -s conftest$ac_exeext'
3250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251 (eval $ac_try) 2>&5
3252 ac_status=$?
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; }; then
3255 ac_cv_lib_supcpp_main=yes
3256else
3257 echo "$as_me: failed program was:" >&5
3258sed 's/^/| /' conftest.$ac_ext >&5
3259
3260ac_cv_lib_supcpp_main=no
3261fi
3262rm -f conftest.err conftest.$ac_objext \
3263 conftest$ac_exeext conftest.$ac_ext
3264LIBS=$ac_check_lib_save_LIBS
3265fi
3266echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5
3267echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6
3268if test $ac_cv_lib_supcpp_main = yes; then
3269
3270 LINKER="$CC"
3271 LIBS="$LIBS -lsupc++"
3272
3273fi
3274
3275fi
3276LINKER=$LINKER
3277
3278
3279CPPFLAGS="-D_GNU_SOURCE -D_XOPEN_SOURCE"
3280
3281if test x$GXX = xyes; then
3282 CXXFLAGS="$CXXFLAGS -fno-exceptions"
3283fi
3284
3285ac_ext=cc
3286ac_cpp='$CXXCPP $CPPFLAGS'
3287ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3288ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3289ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3290 4397
3291 4398
3292 4399
3293ac_ext=cc 4400ac_ext=cc
3294ac_cpp='$CXXCPP $CPPFLAGS' 4401ac_cpp='$CXXCPP $CPPFLAGS'
3517ac_ext=cc 4624ac_ext=cc
3518ac_cpp='$CXXCPP $CPPFLAGS' 4625ac_cpp='$CXXCPP $CPPFLAGS'
3519ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4626ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3520ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4627ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3521ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4628ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3522
3523
3524echo "$as_me:$LINENO: checking for egrep" >&5
3525echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3526if test "${ac_cv_prog_egrep+set}" = set; then
3527 echo $ECHO_N "(cached) $ECHO_C" >&6
3528else
3529 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3530 then ac_cv_prog_egrep='grep -E'
3531 else ac_cv_prog_egrep='egrep'
3532 fi
3533fi
3534echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3535echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3536 EGREP=$ac_cv_prog_egrep
3537
3538
3539
3540echo "$as_me:$LINENO: checking for AIX" >&5
3541echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3542cat >conftest.$ac_ext <<_ACEOF
3543/* confdefs.h. */
3544_ACEOF
3545cat confdefs.h >>conftest.$ac_ext
3546cat >>conftest.$ac_ext <<_ACEOF
3547/* end confdefs.h. */
3548#ifdef _AIX
3549 yes
3550#endif
3551
3552_ACEOF
3553if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3554 $EGREP "yes" >/dev/null 2>&1; then
3555 echo "$as_me:$LINENO: result: yes" >&5
3556echo "${ECHO_T}yes" >&6
3557cat >>confdefs.h <<\_ACEOF
3558#define _ALL_SOURCE 1
3559_ACEOF
3560
3561else
3562 echo "$as_me:$LINENO: result: no" >&5
3563echo "${ECHO_T}no" >&6
3564fi
3565rm -f conftest*
3566
3567
3568echo "$as_me:$LINENO: checking for library containing strerror" >&5
3569echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3570if test "${ac_cv_search_strerror+set}" = set; then
3571 echo $ECHO_N "(cached) $ECHO_C" >&6
3572else
3573 ac_func_search_save_LIBS=$LIBS
3574ac_cv_search_strerror=no
3575cat >conftest.$ac_ext <<_ACEOF
3576/* confdefs.h. */
3577_ACEOF
3578cat confdefs.h >>conftest.$ac_ext
3579cat >>conftest.$ac_ext <<_ACEOF
3580/* end confdefs.h. */
3581
3582/* Override any gcc2 internal prototype to avoid an error. */
3583#ifdef __cplusplus
3584extern "C"
3585#endif
3586/* We use char because int might match the return type of a gcc2
3587 builtin and then its argument prototype would still apply. */
3588char strerror ();
3589int
3590main ()
3591{
3592strerror ();
3593 ;
3594 return 0;
3595}
3596_ACEOF
3597rm -f conftest.$ac_objext conftest$ac_exeext
3598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3599 (eval $ac_link) 2>conftest.er1
3600 ac_status=$?
3601 grep -v '^ *+' conftest.er1 >conftest.err
3602 rm -f conftest.er1
3603 cat conftest.err >&5
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); } &&
3606 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3608 (eval $ac_try) 2>&5
3609 ac_status=$?
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }; } &&
3612 { ac_try='test -s conftest$ac_exeext'
3613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3614 (eval $ac_try) 2>&5
3615 ac_status=$?
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); }; }; then
3618 ac_cv_search_strerror="none required"
3619else
3620 echo "$as_me: failed program was:" >&5
3621sed 's/^/| /' conftest.$ac_ext >&5
3622
3623fi
3624rm -f conftest.err conftest.$ac_objext \
3625 conftest$ac_exeext conftest.$ac_ext
3626if test "$ac_cv_search_strerror" = no; then
3627 for ac_lib in cposix; do
3628 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3629 cat >conftest.$ac_ext <<_ACEOF
3630/* confdefs.h. */
3631_ACEOF
3632cat confdefs.h >>conftest.$ac_ext
3633cat >>conftest.$ac_ext <<_ACEOF
3634/* end confdefs.h. */
3635
3636/* Override any gcc2 internal prototype to avoid an error. */
3637#ifdef __cplusplus
3638extern "C"
3639#endif
3640/* We use char because int might match the return type of a gcc2
3641 builtin and then its argument prototype would still apply. */
3642char strerror ();
3643int
3644main ()
3645{
3646strerror ();
3647 ;
3648 return 0;
3649}
3650_ACEOF
3651rm -f conftest.$ac_objext conftest$ac_exeext
3652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3653 (eval $ac_link) 2>conftest.er1
3654 ac_status=$?
3655 grep -v '^ *+' conftest.er1 >conftest.err
3656 rm -f conftest.er1
3657 cat conftest.err >&5
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); } &&
3660 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3662 (eval $ac_try) 2>&5
3663 ac_status=$?
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); }; } &&
3666 { ac_try='test -s conftest$ac_exeext'
3667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668 (eval $ac_try) 2>&5
3669 ac_status=$?
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }; }; then
3672 ac_cv_search_strerror="-l$ac_lib"
3673break
3674else
3675 echo "$as_me: failed program was:" >&5
3676sed 's/^/| /' conftest.$ac_ext >&5
3677
3678fi
3679rm -f conftest.err conftest.$ac_objext \
3680 conftest$ac_exeext conftest.$ac_ext
3681 done
3682fi
3683LIBS=$ac_func_search_save_LIBS
3684fi
3685echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3686echo "${ECHO_T}$ac_cv_search_strerror" >&6
3687if test "$ac_cv_search_strerror" != no; then
3688 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3689
3690fi
3691
3692
3693# Check whether --enable-shared or --disable-shared was given.
3694if test "${enable_shared+set}" = set; then
3695 enableval="$enable_shared"
3696 p=${PACKAGE-default}
3697case "$enableval" in
3698yes) enable_shared=yes ;;
3699no) enable_shared=no ;;
3700*)
3701 enable_shared=no
3702 # Look at the argument we got. We use all the common list separators.
3703 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3704 for pkg in $enableval; do
3705 if test "X$pkg" = "X$p"; then
3706 enable_shared=yes
3707 fi
3708 done
3709 IFS="$ac_save_ifs"
3710 ;;
3711esac
3712else
3713 enable_shared=no
3714fi; # Check whether --enable-static or --disable-static was given.
3715if test "${enable_static+set}" = set; then
3716 enableval="$enable_static"
3717 p=${PACKAGE-default}
3718case "$enableval" in
3719yes) enable_static=yes ;;
3720no) enable_static=no ;;
3721*)
3722 enable_static=no
3723 # Look at the argument we got. We use all the common list separators.
3724 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3725 for pkg in $enableval; do
3726 if test "X$pkg" = "X$p"; then
3727 enable_static=yes
3728 fi
3729 done
3730 IFS="$ac_save_ifs"
3731 ;;
3732esac
3733else
3734 enable_static=yes
3735fi; # Check whether --enable-fast-install or --disable-fast-install was given.
3736if test "${enable_fast_install+set}" = set; then
3737 enableval="$enable_fast_install"
3738 p=${PACKAGE-default}
3739case "$enableval" in
3740yes) enable_fast_install=yes ;;
3741no) enable_fast_install=no ;;
3742*)
3743 enable_fast_install=no
3744 # Look at the argument we got. We use all the common list separators.
3745 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3746 for pkg in $enableval; do
3747 if test "X$pkg" = "X$p"; then
3748 enable_fast_install=yes
3749 fi
3750 done
3751 IFS="$ac_save_ifs"
3752 ;;
3753esac
3754else
3755 enable_fast_install=yes
3756fi;
3757# Make sure we can run config.sub.
3758$ac_config_sub sun4 >/dev/null 2>&1 ||
3759 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3760echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3761 { (exit 1); exit 1; }; }
3762
3763echo "$as_me:$LINENO: checking build system type" >&5
3764echo $ECHO_N "checking build system type... $ECHO_C" >&6
3765if test "${ac_cv_build+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3767else
3768 ac_cv_build_alias=$build_alias
3769test -z "$ac_cv_build_alias" &&
3770 ac_cv_build_alias=`$ac_config_guess`
3771test -z "$ac_cv_build_alias" &&
3772 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3773echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3774 { (exit 1); exit 1; }; }
3775ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3776 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3777echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3778 { (exit 1); exit 1; }; }
3779
3780fi
3781echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3782echo "${ECHO_T}$ac_cv_build" >&6
3783build=$ac_cv_build
3784build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3785build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3786build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3787
3788
3789echo "$as_me:$LINENO: checking host system type" >&5
3790echo $ECHO_N "checking host system type... $ECHO_C" >&6
3791if test "${ac_cv_host+set}" = set; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3793else
3794 ac_cv_host_alias=$host_alias
3795test -z "$ac_cv_host_alias" &&
3796 ac_cv_host_alias=$ac_cv_build_alias
3797ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3798 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3799echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3800 { (exit 1); exit 1; }; }
3801
3802fi
3803echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3804echo "${ECHO_T}$ac_cv_host" >&6
3805host=$ac_cv_host
3806host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3807host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3808host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3809
3810
3811
3812# Check whether --with-gnu-ld or --without-gnu-ld was given.
3813if test "${with_gnu_ld+set}" = set; then
3814 withval="$with_gnu_ld"
3815 test "$withval" = no || with_gnu_ld=yes
3816else
3817 with_gnu_ld=no
3818fi;
3819ac_prog=ld
3820if test "$GCC" = yes; then
3821 # Check if gcc -print-prog-name=ld gives a path.
3822 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3823echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3824 case $host in
3825 *-*-mingw*)
3826 # gcc leaves a trailing carriage return which upsets mingw
3827 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3828 *)
3829 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3830 esac
3831 case "$ac_prog" in
3832 # Accept absolute paths.
3833 [\\/]* | [A-Za-z]:[\\/]*)
3834 re_direlt='/[^/][^/]*/\.\./'
3835 # Canonicalize the path of ld
3836 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3837 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3838 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3839 done
3840 test -z "$LD" && LD="$ac_prog"
3841 ;;
3842 "")
3843 # If it fails, then pretend we aren't using GCC.
3844 ac_prog=ld
3845 ;;
3846 *)
3847 # If it is relative, then search for the first ld in PATH.
3848 with_gnu_ld=unknown
3849 ;;
3850 esac
3851elif test "$with_gnu_ld" = yes; then
3852 echo "$as_me:$LINENO: checking for GNU ld" >&5
3853echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3854else
3855 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3856echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3857fi
3858if test "${lt_cv_path_LD+set}" = set; then
3859 echo $ECHO_N "(cached) $ECHO_C" >&6
3860else
3861 if test -z "$LD"; then
3862 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3863 for ac_dir in $PATH; do
3864 test -z "$ac_dir" && ac_dir=.
3865 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3866 lt_cv_path_LD="$ac_dir/$ac_prog"
3867 # Check to see if the program is GNU ld. I'd rather use --version,
3868 # but apparently some GNU ld's only accept -v.
3869 # Break only if it was the GNU/non-GNU ld that we prefer.
3870 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3871 test "$with_gnu_ld" != no && break
3872 else
3873 test "$with_gnu_ld" != yes && break
3874 fi
3875 fi
3876 done
3877 IFS="$ac_save_ifs"
3878else
3879 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3880fi
3881fi
3882
3883LD="$lt_cv_path_LD"
3884if test -n "$LD"; then
3885 echo "$as_me:$LINENO: result: $LD" >&5
3886echo "${ECHO_T}$LD" >&6
3887else
3888 echo "$as_me:$LINENO: result: no" >&5
3889echo "${ECHO_T}no" >&6
3890fi
3891test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3892echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3893 { (exit 1); exit 1; }; }
3894echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3895echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3896if test "${lt_cv_prog_gnu_ld+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3898else
3899 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3900if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3901 lt_cv_prog_gnu_ld=yes
3902else
3903 lt_cv_prog_gnu_ld=no
3904fi
3905fi
3906echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3907echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3908with_gnu_ld=$lt_cv_prog_gnu_ld
3909
3910
3911echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3912echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3913if test "${lt_cv_ld_reload_flag+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3915else
3916 lt_cv_ld_reload_flag='-r'
3917fi
3918echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3919echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3920reload_flag=$lt_cv_ld_reload_flag
3921test -n "$reload_flag" && reload_flag=" $reload_flag"
3922
3923echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3924echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3925if test "${lt_cv_path_NM+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3927else
3928 if test -n "$NM"; then
3929 # Let the user override the test.
3930 lt_cv_path_NM="$NM"
3931else
3932 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3933 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3934 test -z "$ac_dir" && ac_dir=.
3935 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3936 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3937 # Check to see if the nm accepts a BSD-compat flag.
3938 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3939 # nm: unknown option "B" ignored
3940 # Tru64's nm complains that /dev/null is an invalid object file
3941 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3942 lt_cv_path_NM="$tmp_nm -B"
3943 break
3944 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3945 lt_cv_path_NM="$tmp_nm -p"
3946 break
3947 else
3948 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3949 continue # so that we can try to find one that supports BSD flags
3950 fi
3951 fi
3952 done
3953 IFS="$ac_save_ifs"
3954 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3955fi
3956fi
3957
3958NM="$lt_cv_path_NM"
3959echo "$as_me:$LINENO: result: $NM" >&5
3960echo "${ECHO_T}$NM" >&6
3961
3962echo "$as_me:$LINENO: checking whether ln -s works" >&5
3963echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3964LN_S=$as_ln_s
3965if test "$LN_S" = "ln -s"; then
3966 echo "$as_me:$LINENO: result: yes" >&5
3967echo "${ECHO_T}yes" >&6
3968else
3969 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3970echo "${ECHO_T}no, using $LN_S" >&6
3971fi
3972
3973echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3974echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3975if test "${lt_cv_deplibs_check_method+set}" = set; then
3976 echo $ECHO_N "(cached) $ECHO_C" >&6
3977else
3978 lt_cv_file_magic_cmd='$MAGIC_CMD'
3979lt_cv_file_magic_test_file=
3980lt_cv_deplibs_check_method='unknown'
3981# Need to set the preceding variable on all platforms that support
3982# interlibrary dependencies.
3983# 'none' -- dependencies not supported.
3984# `unknown' -- same as none, but documents that we really don't know.
3985# 'pass_all' -- all dependencies passed with no checks.
3986# 'test_compile' -- check by making test program.
3987# ['file_magic [regex]'] -- check by looking for files in library path
3988# which responds to the $file_magic_cmd with a given egrep regex.
3989# If you have `file' or equivalent on your system and you're not sure
3990# whether `pass_all' will *always* work, you probably want this one.
3991
3992case "$host_os" in
3993aix4*)
3994 lt_cv_deplibs_check_method=pass_all
3995 ;;
3996
3997beos*)
3998 lt_cv_deplibs_check_method=pass_all
3999 ;;
4000
4001bsdi4*)
4002 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4003 lt_cv_file_magic_cmd='/usr/bin/file -L'
4004 lt_cv_file_magic_test_file=/shlib/libc.so
4005 ;;
4006
4007cygwin* | mingw* | pw32*)
4008 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4009 lt_cv_file_magic_cmd='$OBJDUMP -f'
4010 ;;
4011
4012darwin*|rhapsody*)
4013 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4014 lt_cv_file_magiic_cmd=/usr/bin/file
4015 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4016 ;;
4017
4018freebsd*)
4019 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4020 case "$host_cpu" in
4021 i*86 )
4022 # Not sure whether the presence of OpenBSD here was a mistake.
4023 # Let's accept both of them until this is cleared up.
4024 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4025 lt_cv_file_magic_cmd=/usr/bin/file
4026 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4027 ;;
4028 esac
4029 else
4030 lt_cv_deplibs_check_method=pass_all
4031 fi
4032 ;;
4033
4034gnu*)
4035 lt_cv_deplibs_check_method=pass_all
4036 ;;
4037
4038hpux10.20*|hpux11*)
4039 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4040 lt_cv_file_magic_cmd=/usr/bin/file
4041 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4042 ;;
4043
4044irix5* | irix6*)
4045 case "$host_os" in
4046 irix5*)
4047 # this will be overridden with pass_all, but let us keep it just in case
4048 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4049 ;;
4050 *)
4051 case "$LD" in
4052 *-32|*"-32 ") libmagic=32-bit;;
4053 *-n32|*"-n32 ") libmagic=N32;;
4054 *-64|*"-64 ") libmagic=64-bit;;
4055 *) libmagic=never-match;;
4056 esac
4057 # this will be overridden with pass_all, but let us keep it just in case
4058 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4059 ;;
4060 esac
4061 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4062 lt_cv_deplibs_check_method=pass_all
4063 ;;
4064
4065# This must be Linux ELF.
4066linux-gnu*)
4067 case "$host_cpu" in
4068 alpha* | i*86 | powerpc* | sparc* | ia64* )
4069 lt_cv_deplibs_check_method=pass_all ;;
4070 *)
4071 # glibc up to 2.1.1 does not perform some relocations on ARM
4072 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4073 esac
4074 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4075 ;;
4076
4077netbsd*)
4078 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4079 lt_cv_deplibs_check_method='file_magic NetBSD/[a-z0-9]* demand paged shared library'
4080 else
4081 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4082 fi
4083 lt_cv_file_magic_cmd='/usr/bin/file -L'
4084 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4085 ;;
4086
4087newos6*)
4088 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4089 lt_cv_file_magic_cmd=/usr/bin/file
4090 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4091 ;;
4092
4093osf3* | osf4* | osf5*)
4094 # this will be overridden with pass_all, but let us keep it just in case
4095 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4096 lt_cv_file_magic_test_file=/shlib/libc.so
4097 lt_cv_deplibs_check_method=pass_all
4098 ;;
4099
4100sco3.2v5*)
4101 lt_cv_deplibs_check_method=pass_all
4102 ;;
4103
4104solaris*)
4105 lt_cv_deplibs_check_method=pass_all
4106 lt_cv_file_magic_test_file=/lib/libc.so
4107 ;;
4108
4109sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4110 case "$host_vendor" in
4111 motorola)
4112 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4113 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4114 ;;
4115 ncr)
4116 lt_cv_deplibs_check_method=pass_all
4117 ;;
4118 sequent)
4119 lt_cv_file_magic_cmd='/bin/file'
4120 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4121 ;;
4122 sni)
4123 lt_cv_file_magic_cmd='/bin/file'
4124 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4125 lt_cv_file_magic_test_file=/lib/libc.so
4126 ;;
4127 esac
4128 ;;
4129esac
4130
4131fi
4132echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4133echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4134file_magic_cmd=$lt_cv_file_magic_cmd
4135deplibs_check_method=$lt_cv_deplibs_check_method
4136
4137
4138
4139
4140
4141
4142
4143# Check for command to grab the raw symbol name followed by C symbol from nm.
4144echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4145echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4146if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4148else
4149
4150# These are sane defaults that work on at least a few old systems.
4151# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4152
4153# Character class describing NM global symbol codes.
4154symcode='[BCDEGRST]'
4155
4156# Regexp to match symbols that can be accessed directly from C.
4157sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4158
4159# Transform the above into a raw symbol and a C symbol.
4160symxfrm='\1 \2\3 \3'
4161
4162# Transform an extracted symbol line into a proper C declaration
4163lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4164
4165# Define system-specific variables.
4166case "$host_os" in
4167aix*)
4168 symcode='[BCDT]'
4169 ;;
4170cygwin* | mingw* | pw32*)
4171 symcode='[ABCDGISTW]'
4172 ;;
4173hpux*) # Its linker distinguishes data from code symbols
4174 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
4175 ;;
4176irix*)
4177 symcode='[BCDEGRST]'
4178 ;;
4179solaris* | sysv5*)
4180 symcode='[BDT]'
4181 ;;
4182sysv4)
4183 symcode='[DFNSTU]'
4184 ;;
4185esac
4186
4187# Handle CRLF in mingw tool chain
4188opt_cr=
4189case "$host_os" in
4190mingw*)
4191 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4192 ;;
4193esac
4194
4195# If we're using GNU nm, then use its standard symbol codes.
4196if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4197 symcode='[ABCDGISTW]'
4198fi
4199
4200# Try without a prefix undercore, then with it.
4201for ac_symprfx in "" "_"; do
4202
4203 # Write the raw and C identifiers.
4204lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4205
4206 # Check to see that the pipe works correctly.
4207 pipe_works=no
4208 rm -f conftest*
4209 cat > conftest.$ac_ext <<EOF
4210#ifdef __cplusplus
4211extern "C" {
4212#endif
4213char nm_test_var;
4214void nm_test_func(){}
4215#ifdef __cplusplus
4216}
4217#endif
4218main(){nm_test_var='a';nm_test_func();return(0);}
4219EOF
4220
4221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4222 (eval $ac_compile) 2>&5
4223 ac_status=$?
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }; then
4226 # Now try to grab the symbols.
4227 nlist=conftest.nm
4228 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4229 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4230 ac_status=$?
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); } && test -s "$nlist"; then
4233 # Try sorting and uniquifying the output.
4234 if sort "$nlist" | uniq > "$nlist"T; then
4235 mv -f "$nlist"T "$nlist"
4236 else
4237 rm -f "$nlist"T
4238 fi
4239
4240 # Make sure that we snagged all the symbols we need.
4241 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4242 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4243 cat <<EOF > conftest.$ac_ext
4244#ifdef __cplusplus
4245extern "C" {
4246#endif
4247
4248EOF
4249 # Now generate the symbol file.
4250 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4251
4252 cat <<EOF >> conftest.$ac_ext
4253#if defined (__STDC__) && __STDC__
4254# define lt_ptr_t void *
4255#else
4256# define lt_ptr_t char *
4257# define const
4258#endif
4259
4260/* The mapping between symbol names and symbols. */
4261const struct {
4262 const char *name;
4263 lt_ptr_t address;
4264}
4265lt_preloaded_symbols[] =
4266{
4267EOF
4268 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$nlist" >> conftest.$ac_ext
4269 cat <<\EOF >> conftest.$ac_ext
4270 {0, (lt_ptr_t) 0}
4271};
4272
4273#ifdef __cplusplus
4274}
4275#endif
4276EOF
4277 # Now try linking the two files.
4278 mv conftest.$ac_objext conftstm.$ac_objext
4279 save_LIBS="$LIBS"
4280 save_CFLAGS="$CFLAGS"
4281 LIBS="conftstm.$ac_objext"
4282 CFLAGS="$CFLAGS$no_builtin_flag"
4283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4284 (eval $ac_link) 2>&5
4285 ac_status=$?
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); } && test -s conftest; then
4288 pipe_works=yes
4289 fi
4290 LIBS="$save_LIBS"
4291 CFLAGS="$save_CFLAGS"
4292 else
4293 echo "cannot find nm_test_func in $nlist" >&5
4294 fi
4295 else
4296 echo "cannot find nm_test_var in $nlist" >&5
4297 fi
4298 else
4299 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4300 fi
4301 else
4302 echo "$progname: failed program was:" >&5
4303 cat conftest.$ac_ext >&5
4304 fi
4305 rm -f conftest* conftst*
4306
4307 # Do not use the global_symbol_pipe unless it works.
4308 if test "$pipe_works" = yes; then
4309 break
4310 else
4311 lt_cv_sys_global_symbol_pipe=
4312 fi
4313done
4314
4315fi
4316
4317global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4318if test -z "$lt_cv_sys_global_symbol_pipe"; then
4319 global_symbol_to_cdecl=
4320else
4321 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4322fi
4323if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
4324 echo "$as_me:$LINENO: result: failed" >&5
4325echo "${ECHO_T}failed" >&6
4326else
4327 echo "$as_me:$LINENO: result: ok" >&5
4328echo "${ECHO_T}ok" >&6
4329fi
4330
4331echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4332echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4333if test "${ac_cv_header_stdc+set}" = set; then
4334 echo $ECHO_N "(cached) $ECHO_C" >&6
4335else
4336 cat >conftest.$ac_ext <<_ACEOF
4337/* confdefs.h. */
4338_ACEOF
4339cat confdefs.h >>conftest.$ac_ext
4340cat >>conftest.$ac_ext <<_ACEOF
4341/* end confdefs.h. */
4342#include <stdlib.h>
4343#include <stdarg.h>
4344#include <string.h>
4345#include <float.h>
4346
4347int
4348main ()
4349{
4350
4351 ;
4352 return 0;
4353}
4354_ACEOF
4355rm -f conftest.$ac_objext
4356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4357 (eval $ac_compile) 2>conftest.er1
4358 ac_status=$?
4359 grep -v '^ *+' conftest.er1 >conftest.err
4360 rm -f conftest.er1
4361 cat conftest.err >&5
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); } &&
4364 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4366 (eval $ac_try) 2>&5
4367 ac_status=$?
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); }; } &&
4370 { ac_try='test -s conftest.$ac_objext'
4371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372 (eval $ac_try) 2>&5
4373 ac_status=$?
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; }; then
4376 ac_cv_header_stdc=yes
4377else
4378 echo "$as_me: failed program was:" >&5
4379sed 's/^/| /' conftest.$ac_ext >&5
4380
4381ac_cv_header_stdc=no
4382fi
4383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4384
4385if test $ac_cv_header_stdc = yes; then
4386 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4387 cat >conftest.$ac_ext <<_ACEOF
4388/* confdefs.h. */
4389_ACEOF
4390cat confdefs.h >>conftest.$ac_ext
4391cat >>conftest.$ac_ext <<_ACEOF
4392/* end confdefs.h. */
4393#include <string.h>
4394
4395_ACEOF
4396if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4397 $EGREP "memchr" >/dev/null 2>&1; then
4398 :
4399else
4400 ac_cv_header_stdc=no
4401fi
4402rm -f conftest*
4403
4404fi
4405
4406if test $ac_cv_header_stdc = yes; then
4407 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4408 cat >conftest.$ac_ext <<_ACEOF
4409/* confdefs.h. */
4410_ACEOF
4411cat confdefs.h >>conftest.$ac_ext
4412cat >>conftest.$ac_ext <<_ACEOF
4413/* end confdefs.h. */
4414#include <stdlib.h>
4415
4416_ACEOF
4417if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4418 $EGREP "free" >/dev/null 2>&1; then
4419 :
4420else
4421 ac_cv_header_stdc=no
4422fi
4423rm -f conftest*
4424
4425fi
4426
4427if test $ac_cv_header_stdc = yes; then
4428 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4429 if test "$cross_compiling" = yes; then
4430 :
4431else
4432 cat >conftest.$ac_ext <<_ACEOF
4433/* confdefs.h. */
4434_ACEOF
4435cat confdefs.h >>conftest.$ac_ext
4436cat >>conftest.$ac_ext <<_ACEOF
4437/* end confdefs.h. */
4438#include <ctype.h>
4439#if ((' ' & 0x0FF) == 0x020)
4440# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4441# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4442#else
4443# define ISLOWER(c) \
4444 (('a' <= (c) && (c) <= 'i') \
4445 || ('j' <= (c) && (c) <= 'r') \
4446 || ('s' <= (c) && (c) <= 'z'))
4447# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4448#endif
4449
4450#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4451int
4452main ()
4453{
4454 int i;
4455 for (i = 0; i < 256; i++)
4456 if (XOR (islower (i), ISLOWER (i))
4457 || toupper (i) != TOUPPER (i))
4458 exit(2);
4459 exit (0);
4460}
4461_ACEOF
4462rm -f conftest$ac_exeext
4463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4464 (eval $ac_link) 2>&5
4465 ac_status=$?
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4469 (eval $ac_try) 2>&5
4470 ac_status=$?
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); }; }; then
4473 :
4474else
4475 echo "$as_me: program exited with status $ac_status" >&5
4476echo "$as_me: failed program was:" >&5
4477sed 's/^/| /' conftest.$ac_ext >&5
4478
4479( exit $ac_status )
4480ac_cv_header_stdc=no
4481fi
4482rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4483fi
4484fi
4485fi
4486echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4487echo "${ECHO_T}$ac_cv_header_stdc" >&6
4488if test $ac_cv_header_stdc = yes; then
4489
4490cat >>confdefs.h <<\_ACEOF
4491#define STDC_HEADERS 1
4492_ACEOF
4493
4494fi
4495
4496# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4507 inttypes.h stdint.h unistd.h
4508do
4509as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4510echo "$as_me:$LINENO: checking for $ac_header" >&5
4511echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4512if eval "test \"\${$as_ac_Header+set}\" = set"; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4514else
4515 cat >conftest.$ac_ext <<_ACEOF
4516/* confdefs.h. */
4517_ACEOF
4518cat confdefs.h >>conftest.$ac_ext
4519cat >>conftest.$ac_ext <<_ACEOF
4520/* end confdefs.h. */
4521$ac_includes_default
4522
4523#include <$ac_header>
4524_ACEOF
4525rm -f conftest.$ac_objext
4526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4527 (eval $ac_compile) 2>conftest.er1
4528 ac_status=$?
4529 grep -v '^ *+' conftest.er1 >conftest.err
4530 rm -f conftest.er1
4531 cat conftest.err >&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); } &&
4534 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536 (eval $ac_try) 2>&5
4537 ac_status=$?
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; } &&
4540 { ac_try='test -s conftest.$ac_objext'
4541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4542 (eval $ac_try) 2>&5
4543 ac_status=$?
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); }; }; then
4546 eval "$as_ac_Header=yes"
4547else
4548 echo "$as_me: failed program was:" >&5
4549sed 's/^/| /' conftest.$ac_ext >&5
4550
4551eval "$as_ac_Header=no"
4552fi
4553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4554fi
4555echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4556echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4557if test `eval echo '${'$as_ac_Header'}'` = yes; then
4558 cat >>confdefs.h <<_ACEOF
4559#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4560_ACEOF
4561
4562fi
4563
4564done
4565
4566
4567
4568for ac_header in dlfcn.h
4569do
4570as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4571if eval "test \"\${$as_ac_Header+set}\" = set"; then
4572 echo "$as_me:$LINENO: checking for $ac_header" >&5
4573echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4574if eval "test \"\${$as_ac_Header+set}\" = set"; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4576fi
4577echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4578echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4579else
4580 # Is the header compilable?
4581echo "$as_me:$LINENO: checking $ac_header usability" >&5
4582echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4583cat >conftest.$ac_ext <<_ACEOF
4584/* confdefs.h. */
4585_ACEOF
4586cat confdefs.h >>conftest.$ac_ext
4587cat >>conftest.$ac_ext <<_ACEOF
4588/* end confdefs.h. */
4589$ac_includes_default
4590#include <$ac_header>
4591_ACEOF
4592rm -f conftest.$ac_objext
4593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4594 (eval $ac_compile) 2>conftest.er1
4595 ac_status=$?
4596 grep -v '^ *+' conftest.er1 >conftest.err
4597 rm -f conftest.er1
4598 cat conftest.err >&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); } &&
4601 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603 (eval $ac_try) 2>&5
4604 ac_status=$?
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; } &&
4607 { ac_try='test -s conftest.$ac_objext'
4608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609 (eval $ac_try) 2>&5
4610 ac_status=$?
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); }; }; then
4613 ac_header_compiler=yes
4614else
4615 echo "$as_me: failed program was:" >&5
4616sed 's/^/| /' conftest.$ac_ext >&5
4617
4618ac_header_compiler=no
4619fi
4620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4621echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4622echo "${ECHO_T}$ac_header_compiler" >&6
4623
4624# Is the header present?
4625echo "$as_me:$LINENO: checking $ac_header presence" >&5
4626echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4627cat >conftest.$ac_ext <<_ACEOF
4628/* confdefs.h. */
4629_ACEOF
4630cat confdefs.h >>conftest.$ac_ext
4631cat >>conftest.$ac_ext <<_ACEOF
4632/* end confdefs.h. */
4633#include <$ac_header>
4634_ACEOF
4635if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4636 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4637 ac_status=$?
4638 grep -v '^ *+' conftest.er1 >conftest.err
4639 rm -f conftest.er1
4640 cat conftest.err >&5
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); } >/dev/null; then
4643 if test -s conftest.err; then
4644 ac_cpp_err=$ac_cxx_preproc_warn_flag
4645 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4646 else
4647 ac_cpp_err=
4648 fi
4649else
4650 ac_cpp_err=yes
4651fi
4652if test -z "$ac_cpp_err"; then
4653 ac_header_preproc=yes
4654else
4655 echo "$as_me: failed program was:" >&5
4656sed 's/^/| /' conftest.$ac_ext >&5
4657
4658 ac_header_preproc=no
4659fi
4660rm -f conftest.err conftest.$ac_ext
4661echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4662echo "${ECHO_T}$ac_header_preproc" >&6
4663
4664# So? What about this header?
4665case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4666 yes:no: )
4667 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4668echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4670echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4671 ac_header_preproc=yes
4672 ;;
4673 no:yes:* )
4674 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4675echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4676 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4677echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4678 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4679echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4680 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4681echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4683echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4684 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4685echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4686 (
4687 cat <<\_ASBOX
4688## ------------------------------------------ ##
4689## Report this to the AC_PACKAGE_NAME lists. ##
4690## ------------------------------------------ ##
4691_ASBOX
4692 ) |
4693 sed "s/^/$as_me: WARNING: /" >&2
4694 ;;
4695esac
4696echo "$as_me:$LINENO: checking for $ac_header" >&5
4697echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4698if eval "test \"\${$as_ac_Header+set}\" = set"; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4700else
4701 eval "$as_ac_Header=\$ac_header_preproc"
4702fi
4703echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4704echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4705
4706fi
4707if test `eval echo '${'$as_ac_Header'}'` = yes; then
4708 cat >>confdefs.h <<_ACEOF
4709#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4710_ACEOF
4711
4712fi
4713
4714done
4715
4716
4717
4718
4719
4720# Only perform the check for file, if the check method requires it
4721case "$deplibs_check_method" in
4722file_magic*)
4723 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4724 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4725echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4726if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
4728else
4729 case "$MAGIC_CMD" in
4730 /*)
4731 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4732 ;;
4733 ?:/*)
4734 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4735 ;;
4736 *)
4737 ac_save_MAGIC_CMD="$MAGIC_CMD"
4738 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4739 ac_dummy="/usr/bin:$PATH"
4740 for ac_dir in $ac_dummy; do
4741 test -z "$ac_dir" && ac_dir=.
4742 if test -f $ac_dir/${ac_tool_prefix}file; then
4743 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4744 if test -n "$file_magic_test_file"; then
4745 case "$deplibs_check_method" in
4746 "file_magic "*)
4747 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4748 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4749 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4750 egrep "$file_magic_regex" > /dev/null; then
4751 :
4752 else
4753 cat <<EOF 1>&2
4754
4755*** Warning: the command libtool uses to detect shared libraries,
4756*** $file_magic_cmd, produces output that libtool cannot recognize.
4757*** The result is that libtool may fail to recognize shared libraries
4758*** as such. This will affect the creation of libtool libraries that
4759*** depend on shared libraries, but programs linked with such libtool
4760*** libraries will work regardless of this problem. Nevertheless, you
4761*** may want to report the problem to your system manager and/or to
4762*** bug-libtool@gnu.org
4763
4764EOF
4765 fi ;;
4766 esac
4767 fi
4768 break
4769 fi
4770 done
4771 IFS="$ac_save_ifs"
4772 MAGIC_CMD="$ac_save_MAGIC_CMD"
4773 ;;
4774esac
4775fi
4776
4777MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4778if test -n "$MAGIC_CMD"; then
4779 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4780echo "${ECHO_T}$MAGIC_CMD" >&6
4781else
4782 echo "$as_me:$LINENO: result: no" >&5
4783echo "${ECHO_T}no" >&6
4784fi
4785
4786if test -z "$lt_cv_path_MAGIC_CMD"; then
4787 if test -n "$ac_tool_prefix"; then
4788 echo "$as_me:$LINENO: checking for file" >&5
4789echo $ECHO_N "checking for file... $ECHO_C" >&6
4790if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4791 echo $ECHO_N "(cached) $ECHO_C" >&6
4792else
4793 case "$MAGIC_CMD" in
4794 /*)
4795 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4796 ;;
4797 ?:/*)
4798 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4799 ;;
4800 *)
4801 ac_save_MAGIC_CMD="$MAGIC_CMD"
4802 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4803 ac_dummy="/usr/bin:$PATH"
4804 for ac_dir in $ac_dummy; do
4805 test -z "$ac_dir" && ac_dir=.
4806 if test -f $ac_dir/file; then
4807 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4808 if test -n "$file_magic_test_file"; then
4809 case "$deplibs_check_method" in
4810 "file_magic "*)
4811 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4812 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4813 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4814 egrep "$file_magic_regex" > /dev/null; then
4815 :
4816 else
4817 cat <<EOF 1>&2
4818
4819*** Warning: the command libtool uses to detect shared libraries,
4820*** $file_magic_cmd, produces output that libtool cannot recognize.
4821*** The result is that libtool may fail to recognize shared libraries
4822*** as such. This will affect the creation of libtool libraries that
4823*** depend on shared libraries, but programs linked with such libtool
4824*** libraries will work regardless of this problem. Nevertheless, you
4825*** may want to report the problem to your system manager and/or to
4826*** bug-libtool@gnu.org
4827
4828EOF
4829 fi ;;
4830 esac
4831 fi
4832 break
4833 fi
4834 done
4835 IFS="$ac_save_ifs"
4836 MAGIC_CMD="$ac_save_MAGIC_CMD"
4837 ;;
4838esac
4839fi
4840
4841MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4842if test -n "$MAGIC_CMD"; then
4843 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4844echo "${ECHO_T}$MAGIC_CMD" >&6
4845else
4846 echo "$as_me:$LINENO: result: no" >&5
4847echo "${ECHO_T}no" >&6
4848fi
4849
4850 else
4851 MAGIC_CMD=:
4852 fi
4853fi
4854
4855 fi
4856 ;;
4857esac
4858
4859if test -n "$ac_tool_prefix"; then
4860 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4861set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4862echo "$as_me:$LINENO: checking for $ac_word" >&5
4863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4864if test "${ac_cv_prog_RANLIB+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4866else
4867 if test -n "$RANLIB"; then
4868 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4869else
4870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871for as_dir in $PATH
4872do
4873 IFS=$as_save_IFS
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4877 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 break 2
4880 fi
4881done
4882done
4883
4884fi
4885fi
4886RANLIB=$ac_cv_prog_RANLIB
4887if test -n "$RANLIB"; then
4888 echo "$as_me:$LINENO: result: $RANLIB" >&5
4889echo "${ECHO_T}$RANLIB" >&6
4890else
4891 echo "$as_me:$LINENO: result: no" >&5
4892echo "${ECHO_T}no" >&6
4893fi
4894
4895fi
4896if test -z "$ac_cv_prog_RANLIB"; then
4897 ac_ct_RANLIB=$RANLIB
4898 # Extract the first word of "ranlib", so it can be a program name with args.
4899set dummy ranlib; ac_word=$2
4900echo "$as_me:$LINENO: checking for $ac_word" >&5
4901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4902if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4904else
4905 if test -n "$ac_ct_RANLIB"; then
4906 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4907else
4908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909for as_dir in $PATH
4910do
4911 IFS=$as_save_IFS
4912 test -z "$as_dir" && as_dir=.
4913 for ac_exec_ext in '' $ac_executable_extensions; do
4914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4915 ac_cv_prog_ac_ct_RANLIB="ranlib"
4916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4917 break 2
4918 fi
4919done
4920done
4921
4922 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4923fi
4924fi
4925ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4926if test -n "$ac_ct_RANLIB"; then
4927 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4928echo "${ECHO_T}$ac_ct_RANLIB" >&6
4929else
4930 echo "$as_me:$LINENO: result: no" >&5
4931echo "${ECHO_T}no" >&6
4932fi
4933
4934 RANLIB=$ac_ct_RANLIB
4935else
4936 RANLIB="$ac_cv_prog_RANLIB"
4937fi
4938
4939if test -n "$ac_tool_prefix"; then
4940 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4941set dummy ${ac_tool_prefix}strip; ac_word=$2
4942echo "$as_me:$LINENO: checking for $ac_word" >&5
4943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4944if test "${ac_cv_prog_STRIP+set}" = set; then
4945 echo $ECHO_N "(cached) $ECHO_C" >&6
4946else
4947 if test -n "$STRIP"; then
4948 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4949else
4950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951for as_dir in $PATH
4952do
4953 IFS=$as_save_IFS
4954 test -z "$as_dir" && as_dir=.
4955 for ac_exec_ext in '' $ac_executable_extensions; do
4956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4957 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4959 break 2
4960 fi
4961done
4962done
4963
4964fi
4965fi
4966STRIP=$ac_cv_prog_STRIP
4967if test -n "$STRIP"; then
4968 echo "$as_me:$LINENO: result: $STRIP" >&5
4969echo "${ECHO_T}$STRIP" >&6
4970else
4971 echo "$as_me:$LINENO: result: no" >&5
4972echo "${ECHO_T}no" >&6
4973fi
4974
4975fi
4976if test -z "$ac_cv_prog_STRIP"; then
4977 ac_ct_STRIP=$STRIP
4978 # Extract the first word of "strip", so it can be a program name with args.
4979set dummy strip; ac_word=$2
4980echo "$as_me:$LINENO: checking for $ac_word" >&5
4981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4982if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4983 echo $ECHO_N "(cached) $ECHO_C" >&6
4984else
4985 if test -n "$ac_ct_STRIP"; then
4986 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4987else
4988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989for as_dir in $PATH
4990do
4991 IFS=$as_save_IFS
4992 test -z "$as_dir" && as_dir=.
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4995 ac_cv_prog_ac_ct_STRIP="strip"
4996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4997 break 2
4998 fi
4999done
5000done
5001
5002 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5003fi
5004fi
5005ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5006if test -n "$ac_ct_STRIP"; then
5007 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5008echo "${ECHO_T}$ac_ct_STRIP" >&6
5009else
5010 echo "$as_me:$LINENO: result: no" >&5
5011echo "${ECHO_T}no" >&6
5012fi
5013
5014 STRIP=$ac_ct_STRIP
5015else
5016 STRIP="$ac_cv_prog_STRIP"
5017fi
5018
5019
5020enable_dlopen=no
5021enable_win32_dll=no
5022
5023# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5024if test "${enable_libtool_lock+set}" = set; then
5025 enableval="$enable_libtool_lock"
5026
5027fi;
5028test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5029
5030# Some flags need to be propagated to the compiler or linker for good
5031# libtool support.
5032case "$host" in
5033*-*-irix6*)
5034 # Find out which ABI we are using.
5035 echo '#line 5035 "configure"' > conftest.$ac_ext
5036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5037 (eval $ac_compile) 2>&5
5038 ac_status=$?
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); }; then
5041 case "`/usr/bin/file conftest.$ac_objext`" in
5042 *32-bit*)
5043 LD="${LD-ld} -32"
5044 ;;
5045 *N32*)
5046 LD="${LD-ld} -n32"
5047 ;;
5048 *64-bit*)
5049 LD="${LD-ld} -64"
5050 ;;
5051 esac
5052 fi
5053 rm -rf conftest*
5054 ;;
5055
5056*-*-sco3.2v5*)
5057 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5058 SAVE_CFLAGS="$CFLAGS"
5059 CFLAGS="$CFLAGS -belf"
5060 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5061echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5062if test "${lt_cv_cc_needs_belf+set}" = set; then
5063 echo $ECHO_N "(cached) $ECHO_C" >&6
5064else
5065
5066
5067 ac_ext=c
5068ac_cpp='$CPP $CPPFLAGS'
5069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5071ac_compiler_gnu=$ac_cv_c_compiler_gnu
5072
5073 cat >conftest.$ac_ext <<_ACEOF
5074/* confdefs.h. */
5075_ACEOF
5076cat confdefs.h >>conftest.$ac_ext
5077cat >>conftest.$ac_ext <<_ACEOF
5078/* end confdefs.h. */
5079
5080int
5081main ()
5082{
5083
5084 ;
5085 return 0;
5086}
5087_ACEOF
5088rm -f conftest.$ac_objext conftest$ac_exeext
5089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5090 (eval $ac_link) 2>conftest.er1
5091 ac_status=$?
5092 grep -v '^ *+' conftest.er1 >conftest.err
5093 rm -f conftest.er1
5094 cat conftest.err >&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); } &&
5097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5099 (eval $ac_try) 2>&5
5100 ac_status=$?
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); }; } &&
5103 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
5109 lt_cv_cc_needs_belf=yes
5110else
5111 echo "$as_me: failed program was:" >&5
5112sed 's/^/| /' conftest.$ac_ext >&5
5113
5114lt_cv_cc_needs_belf=no
5115fi
5116rm -f conftest.err conftest.$ac_objext \
5117 conftest$ac_exeext conftest.$ac_ext
5118 ac_ext=cc
5119ac_cpp='$CXXCPP $CPPFLAGS'
5120ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5121ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5122ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5123
5124fi
5125echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5126echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5127 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5128 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5129 CFLAGS="$SAVE_CFLAGS"
5130 fi
5131 ;;
5132
5133
5134esac
5135
5136# Sed substitution that helps us do robust quoting. It backslashifies
5137# metacharacters that are still active within double-quoted strings.
5138Xsed='sed -e s/^X//'
5139sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5140
5141# Same as above, but do not quote variable references.
5142double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5143
5144# Sed substitution to delay expansion of an escaped shell variable in a
5145# double_quote_subst'ed string.
5146delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5147
5148# Constants:
5149rm="rm -f"
5150
5151# Global variables:
5152default_ofile=libtool
5153can_build_shared=yes
5154
5155# All known linkers require a `.a' archive for static linking (except M$VC,
5156# which needs '.lib').
5157libext=a
5158ltmain="$ac_aux_dir/ltmain.sh"
5159ofile="$default_ofile"
5160with_gnu_ld="$lt_cv_prog_gnu_ld"
5161need_locks="$enable_libtool_lock"
5162
5163old_CC="$CC"
5164old_CFLAGS="$CFLAGS"
5165
5166# Set sane defaults for various variables
5167test -z "$AR" && AR=ar
5168test -z "$AR_FLAGS" && AR_FLAGS=cru
5169test -z "$AS" && AS=as
5170test -z "$CC" && CC=cc
5171test -z "$DLLTOOL" && DLLTOOL=dlltool
5172test -z "$LD" && LD=ld
5173test -z "$LN_S" && LN_S="ln -s"
5174test -z "$MAGIC_CMD" && MAGIC_CMD=file
5175test -z "$NM" && NM=nm
5176test -z "$OBJDUMP" && OBJDUMP=objdump
5177test -z "$RANLIB" && RANLIB=:
5178test -z "$STRIP" && STRIP=:
5179test -z "$ac_objext" && ac_objext=o
5180
5181if test x"$host" != x"$build"; then
5182 ac_tool_prefix=${host_alias}-
5183else
5184 ac_tool_prefix=
5185fi
5186
5187# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5188case "$host_os" in
5189linux-gnu*) ;;
5190linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5191esac
5192
5193case "$host_os" in
5194aix3*)
5195 # AIX sometimes has problems with the GCC collect2 program. For some
5196 # reason, if we set the COLLECT_NAMES environment variable, the problems
5197 # vanish in a puff of smoke.
5198 if test "X${COLLECT_NAMES+set}" != Xset; then
5199 COLLECT_NAMES=
5200 export COLLECT_NAMES
5201 fi
5202 ;;
5203esac
5204
5205# Determine commands to create old-style static archives.
5206old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5207old_postinstall_cmds='chmod 644 $oldlib'
5208old_postuninstall_cmds=
5209
5210if test -n "$RANLIB"; then
5211 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5212 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5213fi
5214
5215# Allow CC to be a program name with arguments.
5216set dummy $CC
5217compiler="$2"
5218
5219## FIXME: this should be a separate macro
5220##
5221echo "$as_me:$LINENO: checking for objdir" >&5
5222echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5223rm -f .libs 2>/dev/null
5224mkdir .libs 2>/dev/null
5225if test -d .libs; then
5226 objdir=.libs
5227else
5228 # MS-DOS does not allow filenames that begin with a dot.
5229 objdir=_libs
5230fi
5231rmdir .libs 2>/dev/null
5232echo "$as_me:$LINENO: result: $objdir" >&5
5233echo "${ECHO_T}$objdir" >&6
5234##
5235## END FIXME
5236
5237
5238## FIXME: this should be a separate macro
5239##
5240
5241# Check whether --with-pic or --without-pic was given.
5242if test "${with_pic+set}" = set; then
5243 withval="$with_pic"
5244 pic_mode="$withval"
5245else
5246 pic_mode=default
5247fi;
5248test -z "$pic_mode" && pic_mode=default
5249
5250# We assume here that the value for lt_cv_prog_cc_pic will not be cached
5251# in isolation, and that seeing it set (from the cache) indicates that
5252# the associated values are set (in the cache) correctly too.
5253echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5254echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5255if test "${lt_cv_prog_cc_pic+set}" = set; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5257else
5258 lt_cv_prog_cc_pic=
5259 lt_cv_prog_cc_shlib=
5260 lt_cv_prog_cc_wl=
5261 lt_cv_prog_cc_static=
5262 lt_cv_prog_cc_no_builtin=
5263 lt_cv_prog_cc_can_build_shared=$can_build_shared
5264
5265 if test "$GCC" = yes; then
5266 lt_cv_prog_cc_wl='-Wl,'
5267 lt_cv_prog_cc_static='-static'
5268
5269 case "$host_os" in
5270 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
5271 # PIC is the default for these OSes.
5272 ;;
5273 aix*)
5274 # Below there is a dirty hack to force normal static linking with -ldl
5275 # The problem is because libdl dynamically linked with both libc and
5276 # libC (AIX C++ library), which obviously doesn't included in libraries
5277 # list by gcc. This cause undefined symbols with -static flags.
5278 # This hack allows C programs to be linked with "-static -ldl", but
5279 # we not sure about C++ programs.
5280 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5281 ;;
5282 cygwin* | mingw* | pw32* | os2*)
5283 # This hack is so that the source file can tell whether it is being
5284 # built for inclusion in a dll (and should export symbols for example).
5285 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5286 ;;
5287 amigaos*)
5288 # FIXME: we need at least 68020 code to build shared libraries, but
5289 # adding the `-m68020' flag to GCC prevents building anything better,
5290 # like `-m68040'.
5291 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5292 ;;
5293 sysv4*MP*)
5294 if test -d /usr/nec; then
5295 lt_cv_prog_cc_pic=-Kconform_pic
5296 fi
5297 ;;
5298 *)
5299 lt_cv_prog_cc_pic='-fPIC'
5300 ;;
5301 esac
5302 else
5303 # PORTME Check for PIC flags for the system compiler.
5304 case "$host_os" in
5305 aix3* | aix4*)
5306 # All AIX code is PIC.
5307 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5308 ;;
5309
5310 hpux9* | hpux10* | hpux11*)
5311 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5312 lt_cv_prog_cc_wl='-Wl,'
5313 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5314 lt_cv_prog_cc_pic='+Z'
5315 ;;
5316
5317 irix5* | irix6*)
5318 lt_cv_prog_cc_wl='-Wl,'
5319 lt_cv_prog_cc_static='-non_shared'
5320 # PIC (with -KPIC) is the default.
5321 ;;
5322
5323 cygwin* | mingw* | pw32* | os2*)
5324 # This hack is so that the source file can tell whether it is being
5325 # built for inclusion in a dll (and should export symbols for example).
5326 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5327 ;;
5328
5329 newsos6)
5330 lt_cv_prog_cc_pic='-KPIC'
5331 lt_cv_prog_cc_static='-Bstatic'
5332 ;;
5333
5334 osf3* | osf4* | osf5*)
5335 # All OSF/1 code is PIC.
5336 lt_cv_prog_cc_wl='-Wl,'
5337 lt_cv_prog_cc_static='-non_shared'
5338 ;;
5339
5340 sco3.2v5*)
5341 lt_cv_prog_cc_pic='-Kpic'
5342 lt_cv_prog_cc_static='-dn'
5343 lt_cv_prog_cc_shlib='-belf'
5344 ;;
5345
5346 solaris*)
5347 lt_cv_prog_cc_pic='-KPIC'
5348 lt_cv_prog_cc_static='-Bstatic'
5349 lt_cv_prog_cc_wl='-Wl,'
5350 ;;
5351
5352 sunos4*)
5353 lt_cv_prog_cc_pic='-PIC'
5354 lt_cv_prog_cc_static='-Bstatic'
5355 lt_cv_prog_cc_wl='-Qoption ld '
5356 ;;
5357
5358 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5359 lt_cv_prog_cc_pic='-KPIC'
5360 lt_cv_prog_cc_static='-Bstatic'
5361 if test "x$host_vendor" = xsni; then
5362 lt_cv_prog_cc_wl='-LD'
5363 else
5364 lt_cv_prog_cc_wl='-Wl,'
5365 fi
5366 ;;
5367
5368 uts4*)
5369 lt_cv_prog_cc_pic='-pic'
5370 lt_cv_prog_cc_static='-Bstatic'
5371 ;;
5372
5373 sysv4*MP*)
5374 if test -d /usr/nec ;then
5375 lt_cv_prog_cc_pic='-Kconform_pic'
5376 lt_cv_prog_cc_static='-Bstatic'
5377 fi
5378 ;;
5379
5380 *)
5381 lt_cv_prog_cc_can_build_shared=no
5382 ;;
5383 esac
5384 fi
5385
5386fi
5387
5388if test -z "$lt_cv_prog_cc_pic"; then
5389 echo "$as_me:$LINENO: result: none" >&5
5390echo "${ECHO_T}none" >&6
5391else
5392 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5393echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5394
5395 # Check to make sure the pic_flag actually works.
5396 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5397echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5398 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5399 echo $ECHO_N "(cached) $ECHO_C" >&6
5400else
5401 save_CFLAGS="$CFLAGS"
5402 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5403 cat >conftest.$ac_ext <<_ACEOF
5404/* confdefs.h. */
5405_ACEOF
5406cat confdefs.h >>conftest.$ac_ext
5407cat >>conftest.$ac_ext <<_ACEOF
5408/* end confdefs.h. */
5409
5410int
5411main ()
5412{
5413
5414 ;
5415 return 0;
5416}
5417_ACEOF
5418rm -f conftest.$ac_objext
5419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5420 (eval $ac_compile) 2>conftest.er1
5421 ac_status=$?
5422 grep -v '^ *+' conftest.er1 >conftest.err
5423 rm -f conftest.er1
5424 cat conftest.err >&5
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); } &&
5427 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5429 (eval $ac_try) 2>&5
5430 ac_status=$?
5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); }; } &&
5433 { ac_try='test -s conftest.$ac_objext'
5434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435 (eval $ac_try) 2>&5
5436 ac_status=$?
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }; }; then
5439 case "$host_os" in
5440 hpux9* | hpux10* | hpux11*)
5441 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5442 # they create non-PIC objects. So, if there were any warnings, we
5443 # assume that PIC is not supported.
5444 if test -s conftest.err; then
5445 lt_cv_prog_cc_pic_works=no
5446 else
5447 lt_cv_prog_cc_pic_works=yes
5448 fi
5449 ;;
5450 *)
5451 lt_cv_prog_cc_pic_works=yes
5452 ;;
5453 esac
5454
5455else
5456 echo "$as_me: failed program was:" >&5
5457sed 's/^/| /' conftest.$ac_ext >&5
5458
5459 lt_cv_prog_cc_pic_works=no
5460
5461fi
5462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5463 CFLAGS="$save_CFLAGS"
5464
5465fi
5466
5467
5468 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5469 lt_cv_prog_cc_pic=
5470 lt_cv_prog_cc_can_build_shared=no
5471 else
5472 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5473 fi
5474
5475 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5476echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5477fi
5478##
5479## END FIXME
5480
5481# Check for any special shared library compilation flags.
5482if test -n "$lt_cv_prog_cc_shlib"; then
5483 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5484echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5485 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5486 else
5487 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5488echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5489 lt_cv_prog_cc_can_build_shared=no
5490 fi
5491fi
5492
5493## FIXME: this should be a separate macro
5494##
5495echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5496echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5497if test "${lt_cv_prog_cc_static_works+set}" = set; then
5498 echo $ECHO_N "(cached) $ECHO_C" >&6
5499else
5500 lt_cv_prog_cc_static_works=no
5501 save_LDFLAGS="$LDFLAGS"
5502 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5503 cat >conftest.$ac_ext <<_ACEOF
5504/* confdefs.h. */
5505_ACEOF
5506cat confdefs.h >>conftest.$ac_ext
5507cat >>conftest.$ac_ext <<_ACEOF
5508/* end confdefs.h. */
5509
5510int
5511main ()
5512{
5513
5514 ;
5515 return 0;
5516}
5517_ACEOF
5518rm -f conftest.$ac_objext conftest$ac_exeext
5519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5520 (eval $ac_link) 2>conftest.er1
5521 ac_status=$?
5522 grep -v '^ *+' conftest.er1 >conftest.err
5523 rm -f conftest.er1
5524 cat conftest.err >&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); } &&
5527 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5529 (eval $ac_try) 2>&5
5530 ac_status=$?
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); }; } &&
5533 { ac_try='test -s conftest$ac_exeext'
5534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5535 (eval $ac_try) 2>&5
5536 ac_status=$?
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); }; }; then
5539 lt_cv_prog_cc_static_works=yes
5540else
5541 echo "$as_me: failed program was:" >&5
5542sed 's/^/| /' conftest.$ac_ext >&5
5543
5544fi
5545rm -f conftest.err conftest.$ac_objext \
5546 conftest$ac_exeext conftest.$ac_ext
5547 LDFLAGS="$save_LDFLAGS"
5548
5549fi
5550
5551
5552# Belt *and* braces to stop my trousers falling down:
5553test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5554echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5555echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5556
5557pic_flag="$lt_cv_prog_cc_pic"
5558special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5559wl="$lt_cv_prog_cc_wl"
5560link_static_flag="$lt_cv_prog_cc_static"
5561no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5562can_build_shared="$lt_cv_prog_cc_can_build_shared"
5563##
5564## END FIXME
5565
5566
5567## FIXME: this should be a separate macro
5568##
5569# Check to see if options -o and -c are simultaneously supported by compiler
5570echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5571echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5572$rm -r conftest 2>/dev/null
5573mkdir conftest
5574cd conftest
5575echo "int some_variable = 0;" > conftest.$ac_ext
5576mkdir out
5577# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5578# that will create temporary files in the current directory regardless of
5579# the output directory. Thus, making CWD read-only will cause this test
5580# to fail, enabling locking or at least warning the user not to do parallel
5581# builds.
5582chmod -w .
5583save_CFLAGS="$CFLAGS"
5584CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5585compiler_c_o=no
5586if { (eval echo configure:5586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5587 # The compiler can only warn and ignore the option if not recognized
5588 # So say no if there are warnings
5589 if test -s out/conftest.err; then
5590 compiler_c_o=no
5591 else
5592 compiler_c_o=yes
5593 fi
5594else
5595 # Append any errors to the config.log.
5596 cat out/conftest.err 1>&5
5597 compiler_c_o=no
5598fi
5599echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5600echo "${ECHO_T}$compiler_c_o" >&6
5601CFLAGS="$save_CFLAGS"
5602chmod u+w .
5603$rm conftest* out/*
5604rmdir out
5605cd ..
5606rmdir conftest
5607$rm -r conftest 2>/dev/null
5608
5609if test x"$compiler_c_o" = x"yes"; then
5610 # Check to see if we can write to a .lo
5611 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5612echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5613 compiler_o_lo=no
5614 save_CFLAGS="$CFLAGS"
5615 CFLAGS="$CFLAGS -c -o conftest.lo"
5616 cat >conftest.$ac_ext <<_ACEOF
5617/* confdefs.h. */
5618_ACEOF
5619cat confdefs.h >>conftest.$ac_ext
5620cat >>conftest.$ac_ext <<_ACEOF
5621/* end confdefs.h. */
5622
5623int
5624main ()
5625{
5626int some_variable = 0;
5627 ;
5628 return 0;
5629}
5630_ACEOF
5631rm -f conftest.$ac_objext
5632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5633 (eval $ac_compile) 2>conftest.er1
5634 ac_status=$?
5635 grep -v '^ *+' conftest.er1 >conftest.err
5636 rm -f conftest.er1
5637 cat conftest.err >&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } &&
5640 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642 (eval $ac_try) 2>&5
5643 ac_status=$?
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); }; } &&
5646 { ac_try='test -s conftest.$ac_objext'
5647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5648 (eval $ac_try) 2>&5
5649 ac_status=$?
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; }; then
5652 # The compiler can only warn and ignore the option if not recognized
5653 # So say no if there are warnings
5654 if test -s conftest.err; then
5655 compiler_o_lo=no
5656 else
5657 compiler_o_lo=yes
5658 fi
5659
5660else
5661 echo "$as_me: failed program was:" >&5
5662sed 's/^/| /' conftest.$ac_ext >&5
5663
5664fi
5665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5666 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5667echo "${ECHO_T}$compiler_c_o" >&6
5668 CFLAGS="$save_CFLAGS"
5669else
5670 compiler_o_lo=no
5671fi
5672##
5673## END FIXME
5674
5675## FIXME: this should be a separate macro
5676##
5677# Check to see if we can do hard links to lock some files if needed
5678hard_links="nottested"
5679if test "$compiler_c_o" = no && test "$need_locks" != no; then
5680 # do not overwrite the value of need_locks provided by the user
5681 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5682echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5683 hard_links=yes
5684 $rm conftest*
5685 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5686 touch conftest.a
5687 ln conftest.a conftest.b 2>&5 || hard_links=no
5688 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5689 echo "$as_me:$LINENO: result: $hard_links" >&5
5690echo "${ECHO_T}$hard_links" >&6
5691 if test "$hard_links" = no; then
5692 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5693echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5694 need_locks=warn
5695 fi
5696else
5697 need_locks=no
5698fi
5699##
5700## END FIXME
5701
5702## FIXME: this should be a separate macro
5703##
5704if test "$GCC" = yes; then
5705 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5706 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5707echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5708 echo "int some_variable = 0;" > conftest.$ac_ext
5709 save_CFLAGS="$CFLAGS"
5710 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5711 compiler_rtti_exceptions=no
5712 cat >conftest.$ac_ext <<_ACEOF
5713/* confdefs.h. */
5714_ACEOF
5715cat confdefs.h >>conftest.$ac_ext
5716cat >>conftest.$ac_ext <<_ACEOF
5717/* end confdefs.h. */
5718
5719int
5720main ()
5721{
5722int some_variable = 0;
5723 ;
5724 return 0;
5725}
5726_ACEOF
5727rm -f conftest.$ac_objext
5728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5729 (eval $ac_compile) 2>conftest.er1
5730 ac_status=$?
5731 grep -v '^ *+' conftest.er1 >conftest.err
5732 rm -f conftest.er1
5733 cat conftest.err >&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); } &&
5736 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5738 (eval $ac_try) 2>&5
5739 ac_status=$?
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); }; } &&
5742 { ac_try='test -s conftest.$ac_objext'
5743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5744 (eval $ac_try) 2>&5
5745 ac_status=$?
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }; }; then
5748 # The compiler can only warn and ignore the option if not recognized
5749 # So say no if there are warnings
5750 if test -s conftest.err; then
5751 compiler_rtti_exceptions=no
5752 else
5753 compiler_rtti_exceptions=yes
5754 fi
5755
5756else
5757 echo "$as_me: failed program was:" >&5
5758sed 's/^/| /' conftest.$ac_ext >&5
5759
5760fi
5761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5762 CFLAGS="$save_CFLAGS"
5763 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5764echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5765
5766 if test "$compiler_rtti_exceptions" = "yes"; then
5767 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5768 else
5769 no_builtin_flag=' -fno-builtin'
5770 fi
5771fi
5772##
5773## END FIXME
5774
5775## FIXME: this should be a separate macro
5776##
5777# See if the linker supports building shared libraries.
5778echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5779echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5780
5781allow_undefined_flag=
5782no_undefined_flag=
5783need_lib_prefix=unknown
5784need_version=unknown
5785# when you set need_version to no, make sure it does not cause -set_version
5786# flags to be left without arguments
5787archive_cmds=
5788archive_expsym_cmds=
5789old_archive_from_new_cmds=
5790old_archive_from_expsyms_cmds=
5791export_dynamic_flag_spec=
5792whole_archive_flag_spec=
5793thread_safe_flag_spec=
5794hardcode_into_libs=no
5795hardcode_libdir_flag_spec=
5796hardcode_libdir_separator=
5797hardcode_direct=no
5798hardcode_minus_L=no
5799hardcode_shlibpath_var=unsupported
5800runpath_var=
5801link_all_deplibs=unknown
5802always_export_symbols=no
5803export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5804# include_expsyms should be a list of space-separated symbols to be *always*
5805# included in the symbol list
5806include_expsyms=
5807# exclude_expsyms can be an egrep regular expression of symbols to exclude
5808# it will be wrapped by ` (' and `)$', so one must not match beginning or
5809# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5810# as well as any symbol that contains `d'.
5811exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5812# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5813# platforms (ab)use it in PIC code, but their linkers get confused if
5814# the symbol is explicitly referenced. Since portable code cannot
5815# rely on this symbol name, it's probably fine to never include it in
5816# preloaded symbol tables.
5817extract_expsyms_cmds=
5818
5819case "$host_os" in
5820cygwin* | mingw* | pw32* )
5821 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5822 # When not using gcc, we currently assume that we are using
5823 # Microsoft Visual C++.
5824 if test "$GCC" != yes; then
5825 with_gnu_ld=no
5826 fi
5827 ;;
5828
5829esac
5830
5831ld_shlibs=yes
5832if test "$with_gnu_ld" = yes; then
5833 # If archive_cmds runs LD, not CC, wlarc should be empty
5834 wlarc='${wl}'
5835
5836 # See if GNU ld supports shared libraries.
5837 case "$host_os" in
5838 aix3* | aix4*)
5839 # On AIX, the GNU linker is very broken
5840 ld_shlibs=no
5841 cat <<EOF 1>&2
5842
5843*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5844*** to be unable to reliably create shared libraries on AIX.
5845*** Therefore, libtool is disabling shared libraries support. If you
5846*** really care for shared libraries, you may want to modify your PATH
5847*** so that a non-GNU linker is found, and then restart.
5848
5849EOF
5850 ;;
5851
5852 amigaos*)
5853 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5854 hardcode_libdir_flag_spec='-L$libdir'
5855 hardcode_minus_L=yes
5856
5857 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5858 # that the semantics of dynamic libraries on AmigaOS, at least up
5859 # to version 4, is to share data among multiple programs linked
5860 # with the same dynamic library. Since this doesn't match the
5861 # behavior of shared libraries on other platforms, we can use
5862 # them.
5863 ld_shlibs=no
5864 ;;
5865
5866 beos*)
5867 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5868 allow_undefined_flag=unsupported
5869 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5870 # support --undefined. This deserves some investigation. FIXME
5871 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5872 else
5873 ld_shlibs=no
5874 fi
5875 ;;
5876
5877 cygwin* | mingw* | pw32*)
5878 # hardcode_libdir_flag_spec is actually meaningless, as there is
5879 # no search path for DLLs.
5880 hardcode_libdir_flag_spec='-L$libdir'
5881 allow_undefined_flag=unsupported
5882 always_export_symbols=yes
5883
5884 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5885 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5886 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5887 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5888 else $CC -o impgen impgen.c ; fi)~
5889 $output_objdir/impgen $dir/$soname > $output_objdir/$soname-def'
5890
5891 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5892
5893 # cygwin and mingw dlls have different entry points and sets of symbols
5894 # to exclude.
5895 # FIXME: what about values for MSVC?
5896 dll_entry=__cygwin_dll_entry@12
5897 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5898 case "$host_os" in
5899 mingw*)
5900 # mingw values
5901 dll_entry=_DllMainCRTStartup@12
5902 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5903 ;;
5904 esac
5905
5906 # mingw and cygwin differ, and it's simplest to just exclude the union
5907 # of the two symbol sets.
5908 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5909
5910 # recent cygwin and mingw systems supply a stub DllMain which the user
5911 # can override, but on older systems we have to supply one (in ltdll.c)
5912 if test "x$lt_cv_need_dllmain" = "xyes"; then
5913 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5914 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < [$]0 > $output_objdir/$soname-ltdll.c~
5915 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5916 else
5917 ltdll_obj=
5918 ltdll_cmds=
5919 fi
5920
5921 # Extract the symbol export list from an `--export-all' def file,
5922 # then regenerate the def file from the symbol export list, so that
5923 # the compiled dll only exports the symbol export list.
5924 # Be careful not to strip the DATA tag left be newer dlltools.
5925 export_symbols_cmds="$ltdll_cmds"'
5926 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5927 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5928
5929 # If DATA tags from a recent dlltool are present, honour them!
5930 archive_expsym_cmds='echo EXPORTS > $output_objdir/$soname-def~
5931 _lt_hint=1;
5932 cat $export_symbols | while read symbol; do
5933 set dummy \$symbol;
5934 case \$# in
5935 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5936 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5937 esac;
5938 _lt_hint=`expr 1 + \$_lt_hint`;
5939 done~
5940 '"$ltdll_cmds"'
5941 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5942 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5943 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5944 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5945 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5946 ;;
5947
5948 netbsd*)
5949 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5950 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5951 wlarc=
5952 else
5953 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5954 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5955 fi
5956 ;;
5957
5958 solaris* | sysv5*)
5959 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5960 ld_shlibs=no
5961 cat <<EOF 1>&2
5962
5963*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5964*** create shared libraries on Solaris systems. Therefore, libtool
5965*** is disabling shared libraries support. We urge you to upgrade GNU
5966*** binutils to release 2.9.1 or newer. Another option is to modify
5967*** your PATH or compiler configuration so that the native linker is
5968*** used, and then restart.
5969
5970EOF
5971 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5972 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5973 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5974 else
5975 ld_shlibs=no
5976 fi
5977 ;;
5978
5979 sunos4*)
5980 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5981 wlarc=
5982 hardcode_direct=yes
5983 hardcode_shlibpath_var=no
5984 ;;
5985
5986 *)
5987 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5988 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5989 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5990 else
5991 ld_shlibs=no
5992 fi
5993 ;;
5994 esac
5995
5996 if test "$ld_shlibs" = yes; then
5997 runpath_var=LD_RUN_PATH
5998 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5999 export_dynamic_flag_spec='${wl}--export-dynamic'
6000 case $host_os in
6001 cygwin* | mingw* | pw32*)
6002 # dlltool doesn't understand --whole-archive et. al.
6003 whole_archive_flag_spec=
6004 ;;
6005 *)
6006 # ancient GNU ld didn't support --whole-archive et. al.
6007 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6008 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6009 else
6010 whole_archive_flag_spec=
6011 fi
6012 ;;
6013 esac
6014 fi
6015else
6016 # PORTME fill in a description of your system's linker (not GNU ld)
6017 case "$host_os" in
6018 aix3*)
6019 allow_undefined_flag=unsupported
6020 always_export_symbols=yes
6021 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6022 # Note: this linker hardcodes the directories in LIBPATH if there
6023 # are no directories specified by -L.
6024 hardcode_minus_L=yes
6025 if test "$GCC" = yes && test -z "$link_static_flag"; then
6026 # Neither direct hardcoding nor static linking is supported with a
6027 # broken collect2.
6028 hardcode_direct=unsupported
6029 fi
6030 ;;
6031
6032 aix4*)
6033 hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib'
6034 hardcode_libdir_separator=':'
6035 if test "$GCC" = yes; then
6036 collect2name=`${CC} -print-prog-name=collect2`
6037 if test -f "$collect2name" && \
6038 strings "$collect2name" | grep resolve_lib_name >/dev/null
6039 then
6040 # We have reworked collect2
6041 hardcode_direct=yes
6042 else
6043 # We have old collect2
6044 hardcode_direct=unsupported
6045 # It fails to find uninstalled libraries when the uninstalled
6046 # path is not listed in the libpath. Setting hardcode_minus_L
6047 # to unsupported forces relinking
6048 hardcode_minus_L=yes
6049 hardcode_libdir_flag_spec='-L$libdir'
6050 hardcode_libdir_separator=
6051 fi
6052 shared_flag='-shared'
6053 else
6054 shared_flag='${wl}-bM:SRE'
6055 hardcode_direct=yes
6056 fi
6057 allow_undefined_flag=' ${wl}-berok'
6058 archive_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}'
6059 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}'
6060 case "$host_os" in aix4.[01]|aix4.[01].*)
6061 # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on
6062 always_export_symbols=yes ;;
6063 esac
6064
6065 # We don't want to build shared libraries on unknown CPU types.
6066 case $host_cpu in
6067 powerpc | rs6000) ;;
6068 *) ld_shlibs=no ;;
6069 esac
6070 ;;
6071
6072 amigaos*)
6073 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6074 hardcode_libdir_flag_spec='-L$libdir'
6075 hardcode_minus_L=yes
6076 # see comment about different semantics on the GNU ld section
6077 ld_shlibs=no
6078 ;;
6079
6080 cygwin* | mingw* | pw32*)
6081 # When not using gcc, we currently assume that we are using
6082 # Microsoft Visual C++.
6083 # hardcode_libdir_flag_spec is actually meaningless, as there is
6084 # no search path for DLLs.
6085 hardcode_libdir_flag_spec=' '
6086 allow_undefined_flag=unsupported
6087 # Tell ltmain to make .lib files, not .a files.
6088 libext=lib
6089 # FIXME: Setting linknames here is a bad hack.
6090 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6091 # The linker will automatically build a .lib file if we build a DLL.
6092 old_archive_from_new_cmds='true'
6093 # FIXME: Should let the user specify the lib program.
6094 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6095 fix_srcfile_path='`cygpath -w "$srcfile"`'
6096 ;;
6097
6098 darwin* | rhapsody*)
6099 allow_undefined_flag='-undefined warning'
6100 archive_cmds='$CC `if test "$module" = "yes"; then echo -bundle; else
6101 echo -dynamiclib; fi` -o $lib $libobjs $deplibs $linkopts'
6102 archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6103 ## What we need is to hardcode the path to the library, not the search path
6104 #hardcode_direct=yes
6105 #hardcode_libdir_flag_spec='-install_name $libdir/$lib'
6106 hardcode_shlibpath_var=no
6107 whole_archive_flag_spec='-all_load'
6108 ;;
6109
6110 freebsd1*)
6111 ld_shlibs=no
6112 ;;
6113
6114 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6115 # support. Future versions do this automatically, but an explicit c++rt0.o
6116 # does not break anything, and helps significantly (at the cost of a little
6117 # extra space).
6118 freebsd2.2*)
6119 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6120 hardcode_libdir_flag_spec='-R$libdir'
6121 hardcode_direct=yes
6122 hardcode_shlibpath_var=no
6123 ;;
6124
6125 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6126 freebsd2*)
6127 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6128 hardcode_direct=yes
6129 hardcode_minus_L=yes
6130 hardcode_shlibpath_var=no
6131 ;;
6132
6133 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6134 freebsd*)
6135 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6136 hardcode_libdir_flag_spec='-R$libdir'
6137 hardcode_direct=yes
6138 hardcode_shlibpath_var=no
6139 ;;
6140
6141 hpux9* | hpux10* | hpux11*)
6142 case "$host_os" in
6143 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
6144 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6145 esac
6146 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6147 hardcode_libdir_separator=:
6148 hardcode_direct=yes
6149 hardcode_minus_L=yes # Not in the search PATH, but as the default
6150 # location of the library.
6151 export_dynamic_flag_spec='${wl}-E'
6152 ;;
6153
6154 irix5* | irix6*)
6155 if test "$GCC" = yes; then
6156 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6157 else
6158 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6159 fi
6160 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6161 hardcode_libdir_separator=:
6162 link_all_deplibs=yes
6163 ;;
6164
6165 netbsd*)
6166 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6167 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6168 else
6169 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6170 fi
6171 hardcode_libdir_flag_spec='-R$libdir'
6172 hardcode_direct=yes
6173 hardcode_shlibpath_var=no
6174 ;;
6175
6176 newsos6)
6177 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
6178 hardcode_direct=yes
6179 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6180 hardcode_libdir_separator=:
6181 hardcode_shlibpath_var=no
6182 ;;
6183
6184 openbsd*)
6185 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6186 hardcode_libdir_flag_spec='-R$libdir'
6187 hardcode_direct=yes
6188 hardcode_shlibpath_var=no
6189 ;;
6190
6191 os2*)
6192 hardcode_libdir_flag_spec='-L$libdir'
6193 hardcode_minus_L=yes
6194 allow_undefined_flag=unsupported
6195 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6196 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6197 ;;
6198
6199 osf3*)
6200 if test "$GCC" = yes; then
6201 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6202 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6203 else
6204 allow_undefined_flag=' -expect_unresolved \*'
6205 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6206 fi
6207 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6208 hardcode_libdir_separator=:
6209 ;;
6210
6211 osf4* | osf5*) # as osf3* with the addition of -msym flag
6212 if test "$GCC" = yes; then
6213 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6214 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6215 else
6216 allow_undefined_flag=' -expect_unresolved \*'
6217 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6218 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6219 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6220 fi
6221#Both c and cxx compiler support -rpath directly
6222 hardcode_libdir_flag_spec='-rpath $libdir'
6223 hardcode_libdir_separator=:
6224 ;;
6225
6226 sco3.2v5*)
6227 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6228 hardcode_shlibpath_var=no
6229 runpath_var=LD_RUN_PATH
6230 hardcode_runpath_var=yes
6231 ;;
6232
6233 solaris*)
6234 no_undefined_flag=' -z text'
6235 # $CC -shared without GNU ld will not create a library from C++
6236 # object files and a static libstdc++, better avoid it by now
6237 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6238 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6239 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6240 hardcode_libdir_flag_spec='-R$libdir'
6241 hardcode_shlibpath_var=no
6242 case "$host_os" in
6243 solaris2.[0-5] | solaris2.[0-5].*) ;;
6244 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6245 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6246 esac
6247 link_all_deplibs=yes
6248 ;;
6249
6250 sunos4*)
6251 if test "x$host_vendor" = xsequent; then
6252 # Use $CC to link under sequent, because it throws in some extra .o
6253 # files that make .init and .fini sections work.
6254 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6255 else
6256 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6257 fi
6258 hardcode_libdir_flag_spec='-L$libdir'
6259 hardcode_direct=yes
6260 hardcode_minus_L=yes
6261 hardcode_shlibpath_var=no
6262 ;;
6263
6264 sysv4)
6265 if test "x$host_vendor" = xsno; then
6266 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
6267 hardcode_direct=yes # is this really true???
6268 else
6269 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6270 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6271 fi
6272 runpath_var='LD_RUN_PATH'
6273 hardcode_shlibpath_var=no
6274 ;;
6275
6276 sysv4.3*)
6277 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6278 hardcode_shlibpath_var=no
6279 export_dynamic_flag_spec='-Bexport'
6280 ;;
6281
6282 sysv5*)
6283 no_undefined_flag=' -z text'
6284 # $CC -shared without GNU ld will not create a library from C++
6285 # object files and a static libstdc++, better avoid it by now
6286 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6287 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6288 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6289 hardcode_libdir_flag_spec=
6290 hardcode_shlibpath_var=no
6291 runpath_var='LD_RUN_PATH'
6292 ;;
6293
6294 uts4*)
6295 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6296 hardcode_libdir_flag_spec='-L$libdir'
6297 hardcode_shlibpath_var=no
6298 ;;
6299
6300 dgux*)
6301 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6302 hardcode_libdir_flag_spec='-L$libdir'
6303 hardcode_shlibpath_var=no
6304 ;;
6305
6306 sysv4*MP*)
6307 if test -d /usr/nec; then
6308 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6309 hardcode_shlibpath_var=no
6310 runpath_var=LD_RUN_PATH
6311 hardcode_runpath_var=yes
6312 ld_shlibs=yes
6313 fi
6314 ;;
6315
6316 sysv4.2uw2*)
6317 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6318 hardcode_direct=yes
6319 hardcode_minus_L=no
6320 hardcode_shlibpath_var=no
6321 hardcode_runpath_var=yes
6322 runpath_var=LD_RUN_PATH
6323 ;;
6324
6325 unixware7*)
6326 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6327 runpath_var='LD_RUN_PATH'
6328 hardcode_shlibpath_var=no
6329 ;;
6330
6331 *)
6332 ld_shlibs=no
6333 ;;
6334 esac
6335fi
6336echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6337echo "${ECHO_T}$ld_shlibs" >&6
6338test "$ld_shlibs" = no && can_build_shared=no
6339##
6340## END FIXME
6341
6342## FIXME: this should be a separate macro
6343##
6344# Check hardcoding attributes.
6345echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6346echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6347hardcode_action=
6348if test -n "$hardcode_libdir_flag_spec" || \
6349 test -n "$runpath_var"; then
6350
6351 # We can hardcode non-existant directories.
6352 if test "$hardcode_direct" != no &&
6353 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6354 # have to relink, otherwise we might link with an installed library
6355 # when we should be linking with a yet-to-be-installed one
6356 ## test "$hardcode_shlibpath_var" != no &&
6357 test "$hardcode_minus_L" != no; then
6358 # Linking always hardcodes the temporary library directory.
6359 hardcode_action=relink
6360 else
6361 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6362 hardcode_action=immediate
6363 fi
6364else
6365 # We cannot hardcode anything, or else we can only hardcode existing
6366 # directories.
6367 hardcode_action=unsupported
6368fi
6369echo "$as_me:$LINENO: result: $hardcode_action" >&5
6370echo "${ECHO_T}$hardcode_action" >&6
6371##
6372## END FIXME
6373
6374## FIXME: this should be a separate macro
6375##
6376striplib=
6377old_striplib=
6378echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6379echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6380if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6381 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6382 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6383 echo "$as_me:$LINENO: result: yes" >&5
6384echo "${ECHO_T}yes" >&6
6385else
6386 echo "$as_me:$LINENO: result: no" >&5
6387echo "${ECHO_T}no" >&6
6388fi
6389##
6390## END FIXME
6391
6392reload_cmds='$LD$reload_flag -o $output$reload_objs'
6393test -z "$deplibs_check_method" && deplibs_check_method=unknown
6394
6395## FIXME: this should be a separate macro
6396##
6397# PORTME Fill in your ld.so characteristics
6398echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6399echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6400library_names_spec=
6401libname_spec='lib$name'
6402soname_spec=
6403postinstall_cmds=
6404postuninstall_cmds=
6405finish_cmds=
6406finish_eval=
6407shlibpath_var=
6408shlibpath_overrides_runpath=unknown
6409version_type=none
6410dynamic_linker="$host_os ld.so"
6411sys_lib_dlsearch_path_spec="/lib /usr/lib"
6412sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6413
6414case "$host_os" in
6415aix3*)
6416 version_type=linux
6417 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6418 shlibpath_var=LIBPATH
6419
6420 # AIX has no versioning support, so we append a major version to the name.
6421 soname_spec='${libname}${release}.so$major'
6422 ;;
6423
6424aix4*)
6425 version_type=linux
6426 # AIX has no versioning support, so currently we can not hardcode correct
6427 # soname into executable. Probably we can add versioning support to
6428 # collect2, so additional links can be useful in future.
6429 # We preserve .a as extension for shared libraries though AIX4.2
6430 # and later linker supports .so
6431 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.a'
6432 shlibpath_var=LIBPATH
6433 ;;
6434
6435amigaos*)
6436 library_names_spec='$libname.ixlibrary $libname.a'
6437 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6438 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
6439 ;;
6440
6441beos*)
6442 library_names_spec='${libname}.so'
6443 dynamic_linker="$host_os ld.so"
6444 shlibpath_var=LIBRARY_PATH
6445 ;;
6446
6447bsdi4*)
6448 version_type=linux
6449 need_version=no
6450 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6451 soname_spec='${libname}${release}.so$major'
6452 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6453 shlibpath_var=LD_LIBRARY_PATH
6454 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6455 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6456 export_dynamic_flag_spec=-rdynamic
6457 # the default ld.so.conf also contains /usr/contrib/lib and
6458 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6459 # libtool to hard-code these into programs
6460 ;;
6461
6462cygwin* | mingw* | pw32*)
6463 version_type=windows
6464 need_version=no
6465 need_lib_prefix=no
6466 if test "$GCC" = yes; then
6467 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6468 else
6469 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6470 fi
6471 dynamic_linker='Win32 ld.exe'
6472 # FIXME: first we should search . and the directory the executable is in
6473 shlibpath_var=PATH
6474 ;;
6475
6476darwin* | rhapsody*)
6477 need_lib_prefix=no
6478 need_version=no
6479 library_names_spec='${libname}.`if test "$module" = "yes"; then echo so; else echo dylib; fi`'
6480 shlibpath_overrides_runpath=yes
6481 shlibpath_var=DYLD_LIBRARY_PATH
6482 postinstall_cmds='chmod +x $lib'
6483 ;;
6484
6485freebsd1*)
6486 dynamic_linker=no
6487 ;;
6488
6489freebsd*)
6490 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6491 version_type=freebsd-$objformat
6492 case "$version_type" in
6493 freebsd-elf*)
6494 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6495 need_version=no
6496 need_lib_prefix=no
6497 ;;
6498 freebsd-*)
6499 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6500 need_version=yes
6501 ;;
6502 esac
6503 shlibpath_var=LD_LIBRARY_PATH
6504 case "$host_os" in
6505 freebsd2*)
6506 shlibpath_overrides_runpath=yes
6507 ;;
6508 *)
6509 shlibpath_overrides_runpath=no
6510 hardcode_into_libs=yes
6511 ;;
6512 esac
6513 ;;
6514
6515gnu*)
6516 version_type=linux
6517 need_lib_prefix=no
6518 need_version=no
6519 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6520 soname_spec='${libname}${release}.so$major'
6521 shlibpath_var=LD_LIBRARY_PATH
6522 hardcode_into_libs=yes
6523 ;;
6524
6525hpux9* | hpux10* | hpux11*)
6526 # Give a soname corresponding to the major version so that dld.sl refuses to
6527 # link against other versions.
6528 dynamic_linker="$host_os dld.sl"
6529 version_type=sunos
6530 need_lib_prefix=no
6531 need_version=no
6532 shlibpath_var=SHLIB_PATH
6533 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6534 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6535 soname_spec='${libname}${release}.sl$major'
6536 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6537 postinstall_cmds='chmod 555 $lib'
6538 ;;
6539
6540irix5* | irix6*)
6541 version_type=irix
6542 need_lib_prefix=no
6543 need_version=no
6544 soname_spec='${libname}${release}.so$major'
6545 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6546 case "$host_os" in
6547 irix5*)
6548 libsuff= shlibsuff=
6549 ;;
6550 *)
6551 case "$LD" in # libtool.m4 will add one of these switches to LD
6552 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6553 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6554 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6555 *) libsuff= shlibsuff= libmagic=never-match;;
6556 esac
6557 ;;
6558 esac
6559 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6560 shlibpath_overrides_runpath=no
6561 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6562 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6563 ;;
6564
6565# No shared lib support for Linux oldld, aout, or coff.
6566linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6567 dynamic_linker=no
6568 ;;
6569
6570# This must be Linux ELF.
6571linux-gnu*)
6572 version_type=linux
6573 need_lib_prefix=no
6574 need_version=no
6575 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6576 soname_spec='${libname}${release}.so$major'
6577 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6578 shlibpath_var=LD_LIBRARY_PATH
6579 shlibpath_overrides_runpath=no
6580 # This implies no fast_install, which is unacceptable.
6581 # Some rework will be needed to allow for fast_install
6582 # before this can be enabled.
6583 hardcode_into_libs=yes
6584
6585 # We used to test for /lib/ld.so.1 and disable shared libraries on
6586 # powerpc, because MkLinux only supported shared libraries with the
6587 # GNU dynamic linker. Since this was broken with cross compilers,
6588 # most powerpc-linux boxes support dynamic linking these days and
6589 # people can always --disable-shared, the test was removed, and we
6590 # assume the GNU/Linux dynamic linker is in use.
6591 dynamic_linker='GNU/Linux ld.so'
6592 ;;
6593
6594netbsd*)
6595 version_type=sunos
6596 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6597 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6598 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6599 dynamic_linker='NetBSD (a.out) ld.so'
6600 else
6601 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6602 soname_spec='${libname}${release}.so$major'
6603 dynamic_linker='NetBSD ld.elf_so'
6604 fi
6605 shlibpath_var=LD_LIBRARY_PATH
6606 shlibpath_overrides_runpath=yes
6607 hardcode_into_libs=yes
6608 ;;
6609
6610newsos6)
6611 version_type=linux
6612 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6613 shlibpath_var=LD_LIBRARY_PATH
6614 shlibpath_overrides_runpath=yes
6615 ;;
6616
6617openbsd*)
6618 version_type=sunos
6619 if test "$with_gnu_ld" = yes; then
6620 need_lib_prefix=no
6621 need_version=no
6622 fi
6623 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6625 shlibpath_var=LD_LIBRARY_PATH
6626 ;;
6627
6628os2*)
6629 libname_spec='$name'
6630 need_lib_prefix=no
6631 library_names_spec='$libname.dll $libname.a'
6632 dynamic_linker='OS/2 ld.exe'
6633 shlibpath_var=LIBPATH
6634 ;;
6635
6636osf3* | osf4* | osf5*)
6637 version_type=osf
6638 need_version=no
6639 soname_spec='${libname}${release}.so'
6640 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6641 shlibpath_var=LD_LIBRARY_PATH
6642 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6643 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6644 ;;
6645
6646sco3.2v5*)
6647 version_type=osf
6648 soname_spec='${libname}${release}.so$major'
6649 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6650 shlibpath_var=LD_LIBRARY_PATH
6651 ;;
6652
6653solaris*)
6654 version_type=linux
6655 need_lib_prefix=no
6656 need_version=no
6657 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6658 soname_spec='${libname}${release}.so$major'
6659 shlibpath_var=LD_LIBRARY_PATH
6660 shlibpath_overrides_runpath=yes
6661 hardcode_into_libs=yes
6662 # ldd complains unless libraries are executable
6663 postinstall_cmds='chmod +x $lib'
6664 ;;
6665
6666sunos4*)
6667 version_type=sunos
6668 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6669 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6670 shlibpath_var=LD_LIBRARY_PATH
6671 shlibpath_overrides_runpath=yes
6672 if test "$with_gnu_ld" = yes; then
6673 need_lib_prefix=no
6674 fi
6675 need_version=yes
6676 ;;
6677
6678sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6679 version_type=linux
6680 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6681 soname_spec='${libname}${release}.so$major'
6682 shlibpath_var=LD_LIBRARY_PATH
6683 case "$host_vendor" in
6684 sni)
6685 shlibpath_overrides_runpath=no
6686 ;;
6687 motorola)
6688 need_lib_prefix=no
6689 need_version=no
6690 shlibpath_overrides_runpath=no
6691 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6692 ;;
6693 esac
6694 ;;
6695
6696uts4*)
6697 version_type=linux
6698 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6699 soname_spec='${libname}${release}.so$major'
6700 shlibpath_var=LD_LIBRARY_PATH
6701 ;;
6702
6703dgux*)
6704 version_type=linux
6705 need_lib_prefix=no
6706 need_version=no
6707 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6708 soname_spec='${libname}${release}.so$major'
6709 shlibpath_var=LD_LIBRARY_PATH
6710 ;;
6711
6712sysv4*MP*)
6713 if test -d /usr/nec ;then
6714 version_type=linux
6715 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6716 soname_spec='$libname.so.$major'
6717 shlibpath_var=LD_LIBRARY_PATH
6718 fi
6719 ;;
6720
6721*)
6722 dynamic_linker=no
6723 ;;
6724esac
6725echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6726echo "${ECHO_T}$dynamic_linker" >&6
6727test "$dynamic_linker" = no && can_build_shared=no
6728##
6729## END FIXME
6730
6731## FIXME: this should be a separate macro
6732##
6733# Report the final consequences.
6734echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6735echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6736echo "$as_me:$LINENO: result: $can_build_shared" >&5
6737echo "${ECHO_T}$can_build_shared" >&6
6738##
6739## END FIXME
6740
6741if test "$hardcode_action" = relink; then
6742 # Fast installation is not supported
6743 enable_fast_install=no
6744elif test "$shlibpath_overrides_runpath" = yes ||
6745 test "$enable_shared" = no; then
6746 # Fast installation is not necessary
6747 enable_fast_install=needless
6748fi
6749
6750variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6751if test "$GCC" = yes; then
6752 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6753fi
6754
6755if test "x$enable_dlopen" != xyes; then
6756 enable_dlopen=unknown
6757 enable_dlopen_self=unknown
6758 enable_dlopen_self_static=unknown
6759else
6760 lt_cv_dlopen=no
6761 lt_cv_dlopen_libs=
6762
6763 case "$host_os" in
6764 beos*)
6765 lt_cv_dlopen="load_add_on"
6766 lt_cv_dlopen_libs=
6767 lt_cv_dlopen_self=yes
6768 ;;
6769
6770 cygwin* | mingw* | pw32*)
6771 lt_cv_dlopen="LoadLibrary"
6772 lt_cv_dlopen_libs=
6773 ;;
6774
6775 *)
6776 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6777echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6778if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6779 echo $ECHO_N "(cached) $ECHO_C" >&6
6780else
6781 ac_check_lib_save_LIBS=$LIBS
6782LIBS="-ldl $LIBS"
6783cat >conftest.$ac_ext <<_ACEOF
6784/* confdefs.h. */
6785_ACEOF
6786cat confdefs.h >>conftest.$ac_ext
6787cat >>conftest.$ac_ext <<_ACEOF
6788/* end confdefs.h. */
6789
6790/* Override any gcc2 internal prototype to avoid an error. */
6791#ifdef __cplusplus
6792extern "C"
6793#endif
6794/* We use char because int might match the return type of a gcc2
6795 builtin and then its argument prototype would still apply. */
6796char dlopen ();
6797int
6798main ()
6799{
6800dlopen ();
6801 ;
6802 return 0;
6803}
6804_ACEOF
6805rm -f conftest.$ac_objext conftest$ac_exeext
6806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6807 (eval $ac_link) 2>conftest.er1
6808 ac_status=$?
6809 grep -v '^ *+' conftest.er1 >conftest.err
6810 rm -f conftest.er1
6811 cat conftest.err >&5
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); } &&
6814 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6816 (eval $ac_try) 2>&5
6817 ac_status=$?
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); }; } &&
6820 { ac_try='test -s conftest$ac_exeext'
6821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6822 (eval $ac_try) 2>&5
6823 ac_status=$?
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); }; }; then
6826 ac_cv_lib_dl_dlopen=yes
6827else
6828 echo "$as_me: failed program was:" >&5
6829sed 's/^/| /' conftest.$ac_ext >&5
6830
6831ac_cv_lib_dl_dlopen=no
6832fi
6833rm -f conftest.err conftest.$ac_objext \
6834 conftest$ac_exeext conftest.$ac_ext
6835LIBS=$ac_check_lib_save_LIBS
6836fi
6837echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6838echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6839if test $ac_cv_lib_dl_dlopen = yes; then
6840 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6841else
6842 echo "$as_me:$LINENO: checking for dlopen" >&5
6843echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6844if test "${ac_cv_func_dlopen+set}" = set; then
6845 echo $ECHO_N "(cached) $ECHO_C" >&6
6846else
6847 cat >conftest.$ac_ext <<_ACEOF
6848/* confdefs.h. */
6849_ACEOF
6850cat confdefs.h >>conftest.$ac_ext
6851cat >>conftest.$ac_ext <<_ACEOF
6852/* end confdefs.h. */
6853/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
6854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6855#define dlopen innocuous_dlopen
6856
6857/* System header to define __stub macros and hopefully few prototypes,
6858 which can conflict with char dlopen (); below.
6859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6860 <limits.h> exists even on freestanding compilers. */
6861
6862#ifdef __STDC__
6863# include <limits.h>
6864#else
6865# include <assert.h>
6866#endif
6867
6868#undef dlopen
6869
6870/* Override any gcc2 internal prototype to avoid an error. */
6871#ifdef __cplusplus
6872extern "C"
6873{
6874#endif
6875/* We use char because int might match the return type of a gcc2
6876 builtin and then its argument prototype would still apply. */
6877char dlopen ();
6878/* The GNU C library defines this for functions which it implements
6879 to always fail with ENOSYS. Some functions are actually named
6880 something starting with __ and the normal name is an alias. */
6881#if defined (__stub_dlopen) || defined (__stub___dlopen)
6882choke me
6883#else
6884char (*f) () = dlopen;
6885#endif
6886#ifdef __cplusplus
6887}
6888#endif
6889
6890int
6891main ()
6892{
6893return f != dlopen;
6894 ;
6895 return 0;
6896}
6897_ACEOF
6898rm -f conftest.$ac_objext conftest$ac_exeext
6899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6900 (eval $ac_link) 2>conftest.er1
6901 ac_status=$?
6902 grep -v '^ *+' conftest.er1 >conftest.err
6903 rm -f conftest.er1
6904 cat conftest.err >&5
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); } &&
6907 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6909 (eval $ac_try) 2>&5
6910 ac_status=$?
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); }; } &&
6913 { ac_try='test -s conftest$ac_exeext'
6914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915 (eval $ac_try) 2>&5
6916 ac_status=$?
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); }; }; then
6919 ac_cv_func_dlopen=yes
6920else
6921 echo "$as_me: failed program was:" >&5
6922sed 's/^/| /' conftest.$ac_ext >&5
6923
6924ac_cv_func_dlopen=no
6925fi
6926rm -f conftest.err conftest.$ac_objext \
6927 conftest$ac_exeext conftest.$ac_ext
6928fi
6929echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6930echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6931if test $ac_cv_func_dlopen = yes; then
6932 lt_cv_dlopen="dlopen"
6933else
6934 echo "$as_me:$LINENO: checking for shl_load" >&5
6935echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6936if test "${ac_cv_func_shl_load+set}" = set; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
6938else
6939 cat >conftest.$ac_ext <<_ACEOF
6940/* confdefs.h. */
6941_ACEOF
6942cat confdefs.h >>conftest.$ac_ext
6943cat >>conftest.$ac_ext <<_ACEOF
6944/* end confdefs.h. */
6945/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
6946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6947#define shl_load innocuous_shl_load
6948
6949/* System header to define __stub macros and hopefully few prototypes,
6950 which can conflict with char shl_load (); below.
6951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6952 <limits.h> exists even on freestanding compilers. */
6953
6954#ifdef __STDC__
6955# include <limits.h>
6956#else
6957# include <assert.h>
6958#endif
6959
6960#undef shl_load
6961
6962/* Override any gcc2 internal prototype to avoid an error. */
6963#ifdef __cplusplus
6964extern "C"
6965{
6966#endif
6967/* We use char because int might match the return type of a gcc2
6968 builtin and then its argument prototype would still apply. */
6969char shl_load ();
6970/* The GNU C library defines this for functions which it implements
6971 to always fail with ENOSYS. Some functions are actually named
6972 something starting with __ and the normal name is an alias. */
6973#if defined (__stub_shl_load) || defined (__stub___shl_load)
6974choke me
6975#else
6976char (*f) () = shl_load;
6977#endif
6978#ifdef __cplusplus
6979}
6980#endif
6981
6982int
6983main ()
6984{
6985return f != shl_load;
6986 ;
6987 return 0;
6988}
6989_ACEOF
6990rm -f conftest.$ac_objext conftest$ac_exeext
6991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6992 (eval $ac_link) 2>conftest.er1
6993 ac_status=$?
6994 grep -v '^ *+' conftest.er1 >conftest.err
6995 rm -f conftest.er1
6996 cat conftest.err >&5
6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); } &&
6999 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7001 (eval $ac_try) 2>&5
7002 ac_status=$?
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); }; } &&
7005 { ac_try='test -s conftest$ac_exeext'
7006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7007 (eval $ac_try) 2>&5
7008 ac_status=$?
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); }; }; then
7011 ac_cv_func_shl_load=yes
7012else
7013 echo "$as_me: failed program was:" >&5
7014sed 's/^/| /' conftest.$ac_ext >&5
7015
7016ac_cv_func_shl_load=no
7017fi
7018rm -f conftest.err conftest.$ac_objext \
7019 conftest$ac_exeext conftest.$ac_ext
7020fi
7021echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7022echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7023if test $ac_cv_func_shl_load = yes; then
7024 lt_cv_dlopen="shl_load"
7025else
7026 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7027echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7028if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7030else
7031 ac_check_lib_save_LIBS=$LIBS
7032LIBS="-lsvld $LIBS"
7033cat >conftest.$ac_ext <<_ACEOF
7034/* confdefs.h. */
7035_ACEOF
7036cat confdefs.h >>conftest.$ac_ext
7037cat >>conftest.$ac_ext <<_ACEOF
7038/* end confdefs.h. */
7039
7040/* Override any gcc2 internal prototype to avoid an error. */
7041#ifdef __cplusplus
7042extern "C"
7043#endif
7044/* We use char because int might match the return type of a gcc2
7045 builtin and then its argument prototype would still apply. */
7046char dlopen ();
7047int
7048main ()
7049{
7050dlopen ();
7051 ;
7052 return 0;
7053}
7054_ACEOF
7055rm -f conftest.$ac_objext conftest$ac_exeext
7056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7057 (eval $ac_link) 2>conftest.er1
7058 ac_status=$?
7059 grep -v '^ *+' conftest.er1 >conftest.err
7060 rm -f conftest.er1
7061 cat conftest.err >&5
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); } &&
7064 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7066 (eval $ac_try) 2>&5
7067 ac_status=$?
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); }; } &&
7070 { ac_try='test -s conftest$ac_exeext'
7071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7072 (eval $ac_try) 2>&5
7073 ac_status=$?
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); }; }; then
7076 ac_cv_lib_svld_dlopen=yes
7077else
7078 echo "$as_me: failed program was:" >&5
7079sed 's/^/| /' conftest.$ac_ext >&5
7080
7081ac_cv_lib_svld_dlopen=no
7082fi
7083rm -f conftest.err conftest.$ac_objext \
7084 conftest$ac_exeext conftest.$ac_ext
7085LIBS=$ac_check_lib_save_LIBS
7086fi
7087echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7088echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7089if test $ac_cv_lib_svld_dlopen = yes; then
7090 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7091else
7092 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7093echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7094if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7095 echo $ECHO_N "(cached) $ECHO_C" >&6
7096else
7097 ac_check_lib_save_LIBS=$LIBS
7098LIBS="-ldld $LIBS"
7099cat >conftest.$ac_ext <<_ACEOF
7100/* confdefs.h. */
7101_ACEOF
7102cat confdefs.h >>conftest.$ac_ext
7103cat >>conftest.$ac_ext <<_ACEOF
7104/* end confdefs.h. */
7105
7106/* Override any gcc2 internal prototype to avoid an error. */
7107#ifdef __cplusplus
7108extern "C"
7109#endif
7110/* We use char because int might match the return type of a gcc2
7111 builtin and then its argument prototype would still apply. */
7112char shl_load ();
7113int
7114main ()
7115{
7116shl_load ();
7117 ;
7118 return 0;
7119}
7120_ACEOF
7121rm -f conftest.$ac_objext conftest$ac_exeext
7122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7123 (eval $ac_link) 2>conftest.er1
7124 ac_status=$?
7125 grep -v '^ *+' conftest.er1 >conftest.err
7126 rm -f conftest.er1
7127 cat conftest.err >&5
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); } &&
7130 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7132 (eval $ac_try) 2>&5
7133 ac_status=$?
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); }; } &&
7136 { ac_try='test -s conftest$ac_exeext'
7137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7138 (eval $ac_try) 2>&5
7139 ac_status=$?
7140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); }; }; then
7142 ac_cv_lib_dld_shl_load=yes
7143else
7144 echo "$as_me: failed program was:" >&5
7145sed 's/^/| /' conftest.$ac_ext >&5
7146
7147ac_cv_lib_dld_shl_load=no
7148fi
7149rm -f conftest.err conftest.$ac_objext \
7150 conftest$ac_exeext conftest.$ac_ext
7151LIBS=$ac_check_lib_save_LIBS
7152fi
7153echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7154echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7155if test $ac_cv_lib_dld_shl_load = yes; then
7156 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7157fi
7158
7159
7160fi
7161
7162
7163fi
7164
7165
7166fi
7167
7168
7169fi
7170
7171 ;;
7172 esac
7173
7174 if test "x$lt_cv_dlopen" != xno; then
7175 enable_dlopen=yes
7176 else
7177 enable_dlopen=no
7178 fi
7179
7180 case "$lt_cv_dlopen" in
7181 dlopen)
7182 save_CPPFLAGS="$CPP_FLAGS"
7183 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7184
7185 save_LDFLAGS="$LDFLAGS"
7186 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7187
7188 save_LIBS="$LIBS"
7189 LIBS="$lt_cv_dlopen_libs $LIBS"
7190
7191 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7192echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7193if test "${lt_cv_dlopen_self+set}" = set; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
7195else
7196 if test "$cross_compiling" = yes; then :
7197 lt_cv_dlopen_self=cross
7198else
7199 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7200 lt_status=$lt_dlunknown
7201 cat > conftest.$ac_ext <<EOF
7202#line 7202 "configure"
7203#include "confdefs.h"
7204
7205#if HAVE_DLFCN_H
7206#include <dlfcn.h>
7207#endif
7208
7209#include <stdio.h>
7210
7211#ifdef RTLD_GLOBAL
7212# define LT_DLGLOBAL RTLD_GLOBAL
7213#else
7214# ifdef DL_GLOBAL
7215# define LT_DLGLOBAL DL_GLOBAL
7216# else
7217# define LT_DLGLOBAL 0
7218# endif
7219#endif
7220
7221/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7222 find out it does not work in some platform. */
7223#ifndef LT_DLLAZY_OR_NOW
7224# ifdef RTLD_LAZY
7225# define LT_DLLAZY_OR_NOW RTLD_LAZY
7226# else
7227# ifdef DL_LAZY
7228# define LT_DLLAZY_OR_NOW DL_LAZY
7229# else
7230# ifdef RTLD_NOW
7231# define LT_DLLAZY_OR_NOW RTLD_NOW
7232# else
7233# ifdef DL_NOW
7234# define LT_DLLAZY_OR_NOW DL_NOW
7235# else
7236# define LT_DLLAZY_OR_NOW 0
7237# endif
7238# endif
7239# endif
7240# endif
7241#endif
7242
7243#ifdef __cplusplus
7244extern "C" void exit (int);
7245#endif
7246
7247fnord() { int i=42;}
7248main ()
7249{
7250 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7251 int status = $lt_dlunknown;
7252
7253 if (self)
7254 {
7255 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7256 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7257 /* dlclose (self); */
7258 }
7259
7260 exit (status);
7261}
7262EOF
7263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7264 (eval $ac_link) 2>&5
7265 ac_status=$?
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7268 (./conftest; exit; ) 2>/dev/null
7269 lt_status=$?
7270 case x$lt_status in
7271 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7272 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7273 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7274 esac
7275 else :
7276 # compilation failed
7277 lt_cv_dlopen_self=no
7278 fi
7279fi
7280rm -fr conftest*
7281
7282
7283fi
7284echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7285echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7286
7287 if test "x$lt_cv_dlopen_self" = xyes; then
7288 LDFLAGS="$LDFLAGS $link_static_flag"
7289 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7290echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7291if test "${lt_cv_dlopen_self_static+set}" = set; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
7293else
7294 if test "$cross_compiling" = yes; then :
7295 lt_cv_dlopen_self_static=cross
7296else
7297 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7298 lt_status=$lt_dlunknown
7299 cat > conftest.$ac_ext <<EOF
7300#line 7300 "configure"
7301#include "confdefs.h"
7302
7303#if HAVE_DLFCN_H
7304#include <dlfcn.h>
7305#endif
7306
7307#include <stdio.h>
7308
7309#ifdef RTLD_GLOBAL
7310# define LT_DLGLOBAL RTLD_GLOBAL
7311#else
7312# ifdef DL_GLOBAL
7313# define LT_DLGLOBAL DL_GLOBAL
7314# else
7315# define LT_DLGLOBAL 0
7316# endif
7317#endif
7318
7319/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7320 find out it does not work in some platform. */
7321#ifndef LT_DLLAZY_OR_NOW
7322# ifdef RTLD_LAZY
7323# define LT_DLLAZY_OR_NOW RTLD_LAZY
7324# else
7325# ifdef DL_LAZY
7326# define LT_DLLAZY_OR_NOW DL_LAZY
7327# else
7328# ifdef RTLD_NOW
7329# define LT_DLLAZY_OR_NOW RTLD_NOW
7330# else
7331# ifdef DL_NOW
7332# define LT_DLLAZY_OR_NOW DL_NOW
7333# else
7334# define LT_DLLAZY_OR_NOW 0
7335# endif
7336# endif
7337# endif
7338# endif
7339#endif
7340
7341#ifdef __cplusplus
7342extern "C" void exit (int);
7343#endif
7344
7345fnord() { int i=42;}
7346main ()
7347{
7348 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7349 int status = $lt_dlunknown;
7350
7351 if (self)
7352 {
7353 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7354 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7355 /* dlclose (self); */
7356 }
7357
7358 exit (status);
7359}
7360EOF
7361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7362 (eval $ac_link) 2>&5
7363 ac_status=$?
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7366 (./conftest; exit; ) 2>/dev/null
7367 lt_status=$?
7368 case x$lt_status in
7369 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7370 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7371 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7372 esac
7373 else :
7374 # compilation failed
7375 lt_cv_dlopen_self_static=no
7376 fi
7377fi
7378rm -fr conftest*
7379
7380
7381fi
7382echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7383echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7384 fi
7385
7386 CPPFLAGS="$save_CPPFLAGS"
7387 LDFLAGS="$save_LDFLAGS"
7388 LIBS="$save_LIBS"
7389 ;;
7390 esac
7391
7392 case "$lt_cv_dlopen_self" in
7393 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7394 *) enable_dlopen_self=unknown ;;
7395 esac
7396
7397 case "$lt_cv_dlopen_self_static" in
7398 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7399 *) enable_dlopen_self_static=unknown ;;
7400 esac
7401fi
7402
7403
7404## FIXME: this should be a separate macro
7405##
7406if test "$enable_shared" = yes && test "$GCC" = yes; then
7407 case "$archive_cmds" in
7408 *'~'*)
7409 # FIXME: we may have to deal with multi-command sequences.
7410 ;;
7411 '$CC '*)
7412 # Test whether the compiler implicitly links with -lc since on some
7413 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7414 # to ld, don't add -lc before -lgcc.
7415 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7416echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7417 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7418 echo $ECHO_N "(cached) $ECHO_C" >&6
7419else
7420 $rm conftest*
7421 echo 'static int dummy;' > conftest.$ac_ext
7422
7423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7424 (eval $ac_compile) 2>&5
7425 ac_status=$?
7426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); }; then
7428 soname=conftest
7429 lib=conftest
7430 libobjs=conftest.$ac_objext
7431 deplibs=
7432 wl=$lt_cv_prog_cc_wl
7433 compiler_flags=-v
7434 linker_flags=-v
7435 verstring=
7436 output_objdir=.
7437 libname=conftest
7438 save_allow_undefined_flag=$allow_undefined_flag
7439 allow_undefined_flag=
7440 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7441 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7442 ac_status=$?
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); }
7445 then
7446 lt_cv_archive_cmds_need_lc=no
7447 else
7448 lt_cv_archive_cmds_need_lc=yes
7449 fi
7450 allow_undefined_flag=$save_allow_undefined_flag
7451 else
7452 cat conftest.err 1>&5
7453 fi
7454fi
7455
7456 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7457echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7458 ;;
7459 esac
7460fi
7461need_lc=${lt_cv_archive_cmds_need_lc-yes}
7462##
7463## END FIXME
7464
7465## FIXME: this should be a separate macro
7466##
7467# The second clause should only fire when bootstrapping the
7468# libtool distribution, otherwise you forgot to ship ltmain.sh
7469# with your package, and you will get complaints that there are
7470# no rules to generate ltmain.sh.
7471if test -f "$ltmain"; then
7472 :
7473else
7474 # If there is no Makefile yet, we rely on a make rule to execute
7475 # `config.status --recheck' to rerun these tests and create the
7476 # libtool script then.
7477 test -f Makefile && make "$ltmain"
7478fi
7479
7480if test -f "$ltmain"; then
7481 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7482 $rm -f "${ofile}T"
7483
7484 echo creating $ofile
7485
7486 # Now quote all the things that may contain metacharacters while being
7487 # careful not to overquote the AC_SUBSTed values. We take copies of the
7488 # variables and quote the copies for generation of the libtool script.
7489 for var in echo old_CC old_CFLAGS \
7490 AR AR_FLAGS CC LD LN_S NM SHELL \
7491 reload_flag reload_cmds wl \
7492 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7493 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7494 library_names_spec soname_spec \
7495 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7496 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7497 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7498 old_striplib striplib file_magic_cmd export_symbols_cmds \
7499 deplibs_check_method allow_undefined_flag no_undefined_flag \
7500 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7501 hardcode_libdir_flag_spec hardcode_libdir_separator \
7502 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7503 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7504
7505 case "$var" in
7506 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7507 old_postinstall_cmds | old_postuninstall_cmds | \
7508 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7509 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7510 postinstall_cmds | postuninstall_cmds | \
7511 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7512 # Double-quote double-evaled strings.
7513 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7514 ;;
7515 *)
7516 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7517 ;;
7518 esac
7519 done
7520
7521 cat <<__EOF__ > "${ofile}T"
7522#! $SHELL
7523
7524# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7525# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7526# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7527#
7528# Copyright (C) 1996-2000 Free Software Foundation, Inc.
7529# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7530#
7531# This program is free software; you can redistribute it and/or modify
7532# it under the terms of the GNU General Public License as published by
7533# the Free Software Foundation; either version 2 of the License, or
7534# (at your option) any later version.
7535#
7536# This program is distributed in the hope that it will be useful, but
7537# WITHOUT ANY WARRANTY; without even the implied warranty of
7538# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7539# General Public License for more details.
7540#
7541# You should have received a copy of the GNU General Public License
7542# along with this program; if not, write to the Free Software
7543# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7544#
7545# As a special exception to the GNU General Public License, if you
7546# distribute this file as part of a program that contains a
7547# configuration script generated by Autoconf, you may include it under
7548# the same distribution terms that you use for the rest of that program.
7549
7550# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7551Xsed="sed -e s/^X//"
7552
7553# The HP-UX ksh and POSIX shell print the target directory to stdout
7554# if CDPATH is set.
7555if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7556
7557# ### BEGIN LIBTOOL CONFIG
7558
7559# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7560
7561# Shell to use when invoking shell scripts.
7562SHELL=$lt_SHELL
7563
7564# Whether or not to build shared libraries.
7565build_libtool_libs=$enable_shared
7566
7567# Whether or not to add -lc for building shared libraries.
7568build_libtool_need_lc=$need_lc
7569
7570# Whether or not to build static libraries.
7571build_old_libs=$enable_static
7572
7573# Whether or not to optimize for fast installation.
7574fast_install=$enable_fast_install
7575
7576# The host system.
7577host_alias=$host_alias
7578host=$host
7579
7580# An echo program that does not interpret backslashes.
7581echo=$lt_echo
7582
7583# The archiver.
7584AR=$lt_AR
7585AR_FLAGS=$lt_AR_FLAGS
7586
7587# The default C compiler.
7588CC=$lt_CC
7589
7590# Is the compiler the GNU C compiler?
7591with_gcc=$GCC
7592
7593# The linker used to build libraries.
7594LD=$lt_LD
7595
7596# Whether we need hard or soft links.
7597LN_S=$lt_LN_S
7598
7599# A BSD-compatible nm program.
7600NM=$lt_NM
7601
7602# A symbol stripping program
7603STRIP=$STRIP
7604
7605# Used to examine libraries when file_magic_cmd begins "file"
7606MAGIC_CMD=$MAGIC_CMD
7607
7608# Used on cygwin: DLL creation program.
7609DLLTOOL="$DLLTOOL"
7610
7611# Used on cygwin: object dumper.
7612OBJDUMP="$OBJDUMP"
7613
7614# Used on cygwin: assembler.
7615AS="$AS"
7616
7617# The name of the directory that contains temporary libtool files.
7618objdir=$objdir
7619
7620# How to create reloadable object files.
7621reload_flag=$lt_reload_flag
7622reload_cmds=$lt_reload_cmds
7623
7624# How to pass a linker flag through the compiler.
7625wl=$lt_wl
7626
7627# Object file suffix (normally "o").
7628objext="$ac_objext"
7629
7630# Old archive suffix (normally "a").
7631libext="$libext"
7632
7633# Executable file suffix (normally "").
7634exeext="$exeext"
7635
7636# Additional compiler flags for building library objects.
7637pic_flag=$lt_pic_flag
7638pic_mode=$pic_mode
7639
7640# Does compiler simultaneously support -c and -o options?
7641compiler_c_o=$lt_compiler_c_o
7642
7643# Can we write directly to a .lo ?
7644compiler_o_lo=$lt_compiler_o_lo
7645
7646# Must we lock files when doing compilation ?
7647need_locks=$lt_need_locks
7648
7649# Do we need the lib prefix for modules?
7650need_lib_prefix=$need_lib_prefix
7651
7652# Do we need a version for libraries?
7653need_version=$need_version
7654
7655# Whether dlopen is supported.
7656dlopen_support=$enable_dlopen
7657
7658# Whether dlopen of programs is supported.
7659dlopen_self=$enable_dlopen_self
7660
7661# Whether dlopen of statically linked programs is supported.
7662dlopen_self_static=$enable_dlopen_self_static
7663
7664# Compiler flag to prevent dynamic linking.
7665link_static_flag=$lt_link_static_flag
7666
7667# Compiler flag to turn off builtin functions.
7668no_builtin_flag=$lt_no_builtin_flag
7669
7670# Compiler flag to allow reflexive dlopens.
7671export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7672
7673# Compiler flag to generate shared objects directly from archives.
7674whole_archive_flag_spec=$lt_whole_archive_flag_spec
7675
7676# Compiler flag to generate thread-safe objects.
7677thread_safe_flag_spec=$lt_thread_safe_flag_spec
7678
7679# Library versioning type.
7680version_type=$version_type
7681
7682# Format of library name prefix.
7683libname_spec=$lt_libname_spec
7684
7685# List of archive names. First name is the real one, the rest are links.
7686# The last name is the one that the linker finds with -lNAME.
7687library_names_spec=$lt_library_names_spec
7688
7689# The coded name of the library, if different from the real name.
7690soname_spec=$lt_soname_spec
7691
7692# Commands used to build and install an old-style archive.
7693RANLIB=$lt_RANLIB
7694old_archive_cmds=$lt_old_archive_cmds
7695old_postinstall_cmds=$lt_old_postinstall_cmds
7696old_postuninstall_cmds=$lt_old_postuninstall_cmds
7697
7698# Create an old-style archive from a shared archive.
7699old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7700
7701# Create a temporary old-style archive to link instead of a shared archive.
7702old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7703
7704# Commands used to build and install a shared archive.
7705archive_cmds=$lt_archive_cmds
7706archive_expsym_cmds=$lt_archive_expsym_cmds
7707postinstall_cmds=$lt_postinstall_cmds
7708postuninstall_cmds=$lt_postuninstall_cmds
7709
7710# Commands to strip libraries.
7711old_striplib=$lt_old_striplib
7712striplib=$lt_striplib
7713
7714# Method to check whether dependent libraries are shared objects.
7715deplibs_check_method=$lt_deplibs_check_method
7716
7717# Command to use when deplibs_check_method == file_magic.
7718file_magic_cmd=$lt_file_magic_cmd
7719
7720# Flag that allows shared libraries with undefined symbols to be built.
7721allow_undefined_flag=$lt_allow_undefined_flag
7722
7723# Flag that forces no undefined symbols.
7724no_undefined_flag=$lt_no_undefined_flag
7725
7726# Commands used to finish a libtool library installation in a directory.
7727finish_cmds=$lt_finish_cmds
7728
7729# Same as above, but a single script fragment to be evaled but not shown.
7730finish_eval=$lt_finish_eval
7731
7732# Take the output of nm and produce a listing of raw symbols and C names.
7733global_symbol_pipe=$lt_global_symbol_pipe
7734
7735# Transform the output of nm in a proper C declaration
7736global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7737
7738# This is the shared library runtime path variable.
7739runpath_var=$runpath_var
7740
7741# This is the shared library path variable.
7742shlibpath_var=$shlibpath_var
7743
7744# Is shlibpath searched before the hard-coded library search path?
7745shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7746
7747# How to hardcode a shared library path into an executable.
7748hardcode_action=$hardcode_action
7749
7750# Whether we should hardcode library paths into libraries.
7751hardcode_into_libs=$hardcode_into_libs
7752
7753# Flag to hardcode \$libdir into a binary during linking.
7754# This must work even if \$libdir does not exist.
7755hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7756
7757# Whether we need a single -rpath flag with a separated argument.
7758hardcode_libdir_separator=$lt_hardcode_libdir_separator
7759
7760# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7761# resulting binary.
7762hardcode_direct=$hardcode_direct
7763
7764# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7765# resulting binary.
7766hardcode_minus_L=$hardcode_minus_L
7767
7768# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7769# the resulting binary.
7770hardcode_shlibpath_var=$hardcode_shlibpath_var
7771
7772# Variables whose values should be saved in libtool wrapper scripts and
7773# restored at relink time.
7774variables_saved_for_relink="$variables_saved_for_relink"
7775
7776# Whether libtool must link a program against all its dependency libraries.
7777link_all_deplibs=$link_all_deplibs
7778
7779# Compile-time system search path for libraries
7780sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7781
7782# Run-time system search path for libraries
7783sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7784
7785# Fix the shell variable \$srcfile for the compiler.
7786fix_srcfile_path="$fix_srcfile_path"
7787
7788# Set to yes if exported symbols are required.
7789always_export_symbols=$always_export_symbols
7790
7791# The commands to list exported symbols.
7792export_symbols_cmds=$lt_export_symbols_cmds
7793
7794# The commands to extract the exported symbol list from a shared archive.
7795extract_expsyms_cmds=$lt_extract_expsyms_cmds
7796
7797# Symbols that should not be listed in the preloaded symbols.
7798exclude_expsyms=$lt_exclude_expsyms
7799
7800# Symbols that must always be exported.
7801include_expsyms=$lt_include_expsyms
7802
7803# ### END LIBTOOL CONFIG
7804
7805__EOF__
7806
7807 case "$host_os" in
7808 aix3*)
7809 cat <<\EOF >> "${ofile}T"
7810
7811# AIX sometimes has problems with the GCC collect2 program. For some
7812# reason, if we set the COLLECT_NAMES environment variable, the problems
7813# vanish in a puff of smoke.
7814if test "X${COLLECT_NAMES+set}" != Xset; then
7815 COLLECT_NAMES=
7816 export COLLECT_NAMES
7817fi
7818EOF
7819 ;;
7820 esac
7821
7822 case "$host_os" in
7823 cygwin* | mingw* | pw32* | os2*)
7824 cat <<'EOF' >> "${ofile}T"
7825 # This is a source program that is used to create dlls on Windows
7826 # Don't remove nor modify the starting and closing comments
7827# /* ltdll.c starts here */
7828# #define WIN32_LEAN_AND_MEAN
7829# #include <windows.h>
7830# #undef WIN32_LEAN_AND_MEAN
7831# #include <stdio.h>
7832#
7833# #ifndef __CYGWIN__
7834# # ifdef __CYGWIN32__
7835# # define __CYGWIN__ __CYGWIN32__
7836# # endif
7837# #endif
7838#
7839# #ifdef __cplusplus
7840# extern "C" {
7841# #endif
7842# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7843# #ifdef __cplusplus
7844# }
7845# #endif
7846#
7847# #ifdef __CYGWIN__
7848# #include <cygwin/cygwin_dll.h>
7849# DECLARE_CYGWIN_DLL( DllMain );
7850# #endif
7851# HINSTANCE __hDllInstance_base;
7852#
7853# BOOL APIENTRY
7854# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7855# {
7856# __hDllInstance_base = hInst;
7857# return TRUE;
7858# }
7859# /* ltdll.c ends here */
7860 # This is a source program that is used to create import libraries
7861 # on Windows for dlls which lack them. Don't remove nor modify the
7862 # starting and closing comments
7863# /* impgen.c starts here */
7864# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7865#
7866# This file is part of GNU libtool.
7867#
7868# This program is free software; you can redistribute it and/or modify
7869# it under the terms of the GNU General Public License as published by
7870# the Free Software Foundation; either version 2 of the License, or
7871# (at your option) any later version.
7872#
7873# This program is distributed in the hope that it will be useful,
7874# but WITHOUT ANY WARRANTY; without even the implied warranty of
7875# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7876# GNU General Public License for more details.
7877#
7878# You should have received a copy of the GNU General Public License
7879# along with this program; if not, write to the Free Software
7880# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7881# */
7882#
7883# #include <stdio.h> /* for printf() */
7884# #include <unistd.h> /* for open(), lseek(), read() */
7885# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7886# #include <string.h> /* for strdup() */
7887#
7888# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7889# #ifndef O_BINARY
7890# #define O_BINARY 0
7891# #endif
7892#
7893# static unsigned int
7894# pe_get16 (fd, offset)
7895# int fd;
7896# int offset;
7897# {
7898# unsigned char b[2];
7899# lseek (fd, offset, SEEK_SET);
7900# read (fd, b, 2);
7901# return b[0] + (b[1]<<8);
7902# }
7903#
7904# static unsigned int
7905# pe_get32 (fd, offset)
7906# int fd;
7907# int offset;
7908# {
7909# unsigned char b[4];
7910# lseek (fd, offset, SEEK_SET);
7911# read (fd, b, 4);
7912# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7913# }
7914#
7915# static unsigned int
7916# pe_as32 (ptr)
7917# void *ptr;
7918# {
7919# unsigned char *b = ptr;
7920# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7921# }
7922#
7923# int
7924# main (argc, argv)
7925# int argc;
7926# char *argv[];
7927# {
7928# int dll;
7929# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7930# unsigned long export_rva, export_size, nsections, secptr, expptr;
7931# unsigned long name_rvas, nexp;
7932# unsigned char *expdata, *erva;
7933# char *filename, *dll_name;
7934#
7935# filename = argv[1];
7936#
7937# dll = open(filename, O_RDONLY|O_BINARY);
7938# if (!dll)
7939# return 1;
7940#
7941# dll_name = filename;
7942#
7943# for (i=0; filename[i]; i++)
7944# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7945# dll_name = filename + i +1;
7946#
7947# pe_header_offset = pe_get32 (dll, 0x3c);
7948# opthdr_ofs = pe_header_offset + 4 + 20;
7949# num_entries = pe_get32 (dll, opthdr_ofs + 92);
7950#
7951# if (num_entries < 1) /* no exports */
7952# return 1;
7953#
7954# export_rva = pe_get32 (dll, opthdr_ofs + 96);
7955# export_size = pe_get32 (dll, opthdr_ofs + 100);
7956# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7957# secptr = (pe_header_offset + 4 + 20 +
7958# pe_get16 (dll, pe_header_offset + 4 + 16));
7959#
7960# expptr = 0;
7961# for (i = 0; i < nsections; i++)
7962# {
7963# char sname[8];
7964# unsigned long secptr1 = secptr + 40 * i;
7965# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7966# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7967# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7968# lseek(dll, secptr1, SEEK_SET);
7969# read(dll, sname, 8);
7970# if (vaddr <= export_rva && vaddr+vsize > export_rva)
7971# {
7972# expptr = fptr + (export_rva - vaddr);
7973# if (export_rva + export_size > vaddr + vsize)
7974# export_size = vsize - (export_rva - vaddr);
7975# break;
7976# }
7977# }
7978#
7979# expdata = (unsigned char*)malloc(export_size);
7980# lseek (dll, expptr, SEEK_SET);
7981# read (dll, expdata, export_size);
7982# erva = expdata - export_rva;
7983#
7984# nexp = pe_as32 (expdata+24);
7985# name_rvas = pe_as32 (expdata+32);
7986#
7987# printf ("EXPORTS\n");
7988# for (i = 0; i<nexp; i++)
7989# {
7990# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7991# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7992# }
7993#
7994# return 0;
7995# }
7996# /* impgen.c ends here */
7997
7998EOF
7999 ;;
8000 esac
8001
8002 # We use sed instead of cat because bash on DJGPP gets confused if
8003 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8004 # text mode, it properly converts lines to CR/LF. This bash problem
8005 # is reportedly fixed, but why not run on old versions too?
8006 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8007
8008 mv -f "${ofile}T" "$ofile" || \
8009 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8010 chmod +x "$ofile"
8011fi
8012##
8013## END FIXME
8014
8015
8016
8017
8018
8019# This can be used to rebuild libtool when needed
8020LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8021
8022# Always use our own libtool.
8023LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8024
8025# Prevent multiple expansion
8026
8027
8028MALLOC_TYPE=S
8029support_addstrings=no
8030support_frills=no
8031support_linespace=no
8032support_inheritpixmap=no
8033support_keepscrolling=no
8034support_selectionscrolling=no
8035support_menubar=no
8036support_mousewheel=no
8037support_mouseslipwheel=no
8038support_oldselection=no
8039support_utmp=no
8040support_wtmp=no
8041support_lastlog=no
8042support_cursor_blink=no
8043support_text_blink=no
8044support_pointer_blank=no
8045support_scroll_rxvt=no
8046support_scroll_next=no
8047support_scroll_xterm=no
8048support_scroll_plain=no
8049support_xim=no
8050support_xpm=no
8051support_xft=no
8052support_unicode3=no
8053codesets=
8054
8055
8056if test "x$enable_shared" = xyes; then
8057
8058cat >>confdefs.h <<\_ACEOF
8059#define LIBRXVT 1
8060_ACEOF
8061
8062 INSTALL_LIBRXVT=yes
8063fi
8064
8065
8066# Check whether --enable-everything or --disable-everything was given.
8067if test "${enable_everything+set}" = set; then
8068 enableval="$enable_everything"
8069 if test x$enableval = xyes; then
8070 support_24bit=yes
8071 support_frills=yes
8072 support_linespace=yes
8073 support_inheritpixmap=yes
8074 support_keepscrolling=yes
8075 support_selectionscrolling=yes
8076 support_lastlog=yes
8077 support_menubar=yes
8078 support_mousewheel=yes
8079 support_mouseslipwheel=yes
8080 support_oldselection=yes
8081 support_cursor_blink=yes
8082 support_text_blink=yes
8083 support_pointer_blank=yes
8084 support_scroll_rxvt=yes
8085 support_scroll_next=yes
8086 support_scroll_xterm=yes
8087 support_scroll_plain=yes
8088 support_utmp=yes
8089 support_wtmp=yes
8090 support_xim=yes
8091 support_xpm=yes
8092 support_xft=yes
8093 support_unicode3=yes
8094 codesets=all
8095 fi
8096fi;
8097
8098# Check whether --enable-unicode3 or --disable-unicode3 was given.
8099if test "${enable_unicode3+set}" = set; then
8100 enableval="$enable_unicode3"
8101 if test x$enableval = xyes -o x$enableval = xno; then
8102 support_unicode3=yes
8103 fi
8104fi;
8105
8106# Check whether --enable-xft or --disable-xft was given.
8107if test "${enable_xft+set}" = set; then
8108 enableval="$enable_xft"
8109 if test x$enableval = xyes -o x$enableval = xno; then
8110 support_xft=yes
8111 fi
8112fi;
8113
8114
8115# Check whether --with-codesets or --without-codesets was given.
8116if test "${with_codesets+set}" = set; then
8117 withval="$with_codesets"
8118 codesets="$withval"
8119fi;
8120
8121# Check whether --enable-utmp or --disable-utmp was given.
8122if test "${enable_utmp+set}" = set; then
8123 enableval="$enable_utmp"
8124 if test x$enableval = xyes -o x$enableval = xno; then
8125 support_utmp=$enableval
8126 fi
8127fi;
8128
8129# Check whether --enable-wtmp or --disable-wtmp was given.
8130if test "${enable_wtmp+set}" = set; then
8131 enableval="$enable_wtmp"
8132 if test x$enableval = xyes -o x$enableval = xno; then
8133 support_wtmp=$enableval
8134 fi
8135fi;
8136
8137# Check whether --enable-lastlog or --disable-lastlog was given.
8138if test "${enable_lastlog+set}" = set; then
8139 enableval="$enable_lastlog"
8140 if test x$enableval = xyes -o x$enableval = xno; then
8141 support_lastlog=$enableval
8142 fi
8143fi;
8144
8145# Check whether --enable-xpm-background or --disable-xpm-background was given.
8146if test "${enable_xpm_background+set}" = set; then
8147 enableval="$enable_xpm_background"
8148 if test x$enableval = xyes -o x$enableval = xno; then
8149 support_xpm=$enableval
8150 fi
8151fi;
8152
8153# Check whether --enable-transparency or --disable-transparency was given.
8154if test "${enable_transparency+set}" = set; then
8155 enableval="$enable_transparency"
8156 if test x$enableval = xyes -o x$enableval = xno; then
8157 support_inheritpixmap=$enableval
8158 fi
8159fi;
8160
8161# Check whether --enable-menubar or --disable-menubar was given.
8162if test "${enable_menubar+set}" = set; then
8163 enableval="$enable_menubar"
8164 if test x$enableval = xyes -o x$enableval = xno; then
8165 support_menubar=$enableval
8166 fi
8167fi;
8168
8169# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
8170if test "${enable_rxvt_scroll+set}" = set; then
8171 enableval="$enable_rxvt_scroll"
8172 if test x$enableval = xyes -o x$enableval = xno; then
8173 support_scroll_rxvt=$enableval
8174 fi
8175fi;
8176
8177# Check whether --enable-next-scroll or --disable-next-scroll was given.
8178if test "${enable_next_scroll+set}" = set; then
8179 enableval="$enable_next_scroll"
8180 if test x$enableval = xyes -o x$enableval = xno; then
8181 support_scroll_next=$enableval
8182 fi
8183fi;
8184
8185# Check whether --enable-xterm-scroll or --disable-xterm-scroll was given.
8186if test "${enable_xterm_scroll+set}" = set; then
8187 enableval="$enable_xterm_scroll"
8188 if test x$enableval = xyes -o x$enableval = xno; then
8189 support_scroll_xterm=$enableval
8190 fi
8191fi;
8192
8193# Check whether --enable-plain-scroll or --disable-plain-scroll was given.
8194if test "${enable_plain_scroll+set}" = set; then
8195 enableval="$enable_plain_scroll"
8196 if test x$enableval = xyes -o x$enableval = xno; then
8197 support_scroll_plain=$enableval
8198 fi
8199fi;
8200
8201# Check whether --enable-half-shadow or --disable-half-shadow was given.
8202if test "${enable_half_shadow+set}" = set; then
8203 enableval="$enable_half_shadow"
8204 if test x$enableval = xyes; then
8205
8206cat >>confdefs.h <<\_ACEOF
8207#define HALFSHADOW 1
8208_ACEOF
8209
8210 fi
8211fi;
8212
8213# Check whether --enable-xim or --disable-xim was given.
8214if test "${enable_xim+set}" = set; then
8215 enableval="$enable_xim"
8216 if test x$enableval = xyes -o x$enableval = xno; then
8217 support_xim=$enableval
8218 fi
8219fi;
8220
8221# Check whether --enable-ttygid or --disable-ttygid was given.
8222if test "${enable_ttygid+set}" = set; then
8223 enableval="$enable_ttygid"
8224 if test x$enableval = xyes; then
8225
8226cat >>confdefs.h <<\_ACEOF
8227#define TTY_GID_SUPPORT 1
8228_ACEOF
8229
8230 fi
8231fi;
8232
8233# Check whether --enable-backspace-key or --disable-backspace-key was given.
8234if test "${enable_backspace_key+set}" = set; then
8235 enableval="$enable_backspace_key"
8236 if test x$enableval = xno; then
8237
8238cat >>confdefs.h <<\_ACEOF
8239#define NO_BACKSPACE_KEY 1
8240_ACEOF
8241
8242 fi
8243fi;
8244
8245# Check whether --enable-delete-key or --disable-delete-key was given.
8246if test "${enable_delete_key+set}" = set; then
8247 enableval="$enable_delete_key"
8248 if test x$enableval = xno; then
8249
8250cat >>confdefs.h <<\_ACEOF
8251#define NO_DELETE_KEY 1
8252_ACEOF
8253
8254 fi
8255fi;
8256
8257# Check whether --enable-resources or --disable-resources was given.
8258if test "${enable_resources+set}" = set; then
8259 enableval="$enable_resources"
8260 if test x$enableval = xno; then
8261
8262cat >>confdefs.h <<\_ACEOF
8263#define NO_RESOURCES 1
8264_ACEOF
8265
8266 fi
8267fi;
8268
8269# Check whether --enable-xgetdefault or --disable-xgetdefault was given.
8270if test "${enable_xgetdefault+set}" = set; then
8271 enableval="$enable_xgetdefault"
8272 if test x$enableval = xyes; then
8273
8274cat >>confdefs.h <<\_ACEOF
8275#define USE_XGETDEFAULT 1
8276_ACEOF
8277
8278 fi
8279fi;
8280
8281# Check whether --enable-strings or --disable-strings was given.
8282if test "${enable_strings+set}" = set; then
8283 enableval="$enable_strings"
8284 if test x$enableval = xyes -o x$enableval = xno; then
8285 support_addstrings=$enableval
8286 fi
8287fi;
8288
8289# Check whether --enable-swapscreen or --disable-swapscreen was given.
8290if test "${enable_swapscreen+set}" = set; then
8291 enableval="$enable_swapscreen"
8292 if test x$enableval = xno; then
8293
8294cat >>confdefs.h <<\_ACEOF
8295#define NO_SECONDARY_SCREEN 1
8296_ACEOF
8297
8298 fi
8299fi;
8300
8301# Check whether --enable-frills or --disable-frills was given.
8302if test "${enable_frills+set}" = set; then
8303 enableval="$enable_frills"
8304 if test x$enableval = xyes -o x$enableval = xno; then
8305 support_frills=$enableval
8306 fi
8307fi;
8308
8309# Check whether --enable-linespace or --disable-linespace was given.
8310if test "${enable_linespace+set}" = set; then
8311 enableval="$enable_linespace"
8312 if test x$enableval = xyes -o x$enableval = xno; then
8313 support_linespace=$enableval
8314 fi
8315fi;
8316
8317# Check whether --enable-24bit or --disable-24bit was given.
8318if test "${enable_24bit+set}" = set; then
8319 enableval="$enable_24bit"
8320 if test x$enableval = xyes -o x$enableval = xno; then
8321 support_24bit=$enableval
8322 fi
8323fi;
8324
8325# Check whether --enable-keepscrolling or --disable-keepscrolling was given.
8326if test "${enable_keepscrolling+set}" = set; then
8327 enableval="$enable_keepscrolling"
8328 if test x$enableval = xyes -o x$enableval = xno; then
8329 support_keepscrolling=$enableval
8330 fi
8331fi;
8332
8333# Check whether --enable-selectionscrolling or --disable-selectionscrolling was given.
8334if test "${enable_selectionscrolling+set}" = set; then
8335 enableval="$enable_selectionscrolling"
8336 if test x$enableval = xyes -o x$enableval = xno; then
8337 support_selectionscrolling=$enableval
8338 fi
8339fi;
8340
8341# Check whether --enable-mousewheel or --disable-mousewheel was given.
8342if test "${enable_mousewheel+set}" = set; then
8343 enableval="$enable_mousewheel"
8344 if test x$enableval = xyes -o x$enableval = xno; then
8345 support_mousewheel=$enableval
8346 fi
8347fi;
8348
8349# Check whether --enable-slipwheeling or --disable-slipwheeling was given.
8350if test "${enable_slipwheeling+set}" = set; then
8351 enableval="$enable_slipwheeling"
8352 if test x$enableval = xyes -o x$enableval = xno; then
8353 support_mouseslipwheel=$enableval
8354 fi
8355fi;
8356
8357# Check whether --enable-old-selection or --disable-old-selection was given.
8358if test "${enable_old_selection+set}" = set; then
8359 enableval="$enable_old_selection"
8360 if test x$enableval = xyes -o x$enableval = xno; then
8361 support_oldselection=$enableval
8362 fi
8363fi;
8364
8365# Check whether --enable-new-selection or --disable-new-selection was given.
8366if test "${enable_new_selection+set}" = set; then
8367 enableval="$enable_new_selection"
8368 if test x$enableval = xno; then
8369
8370cat >>confdefs.h <<\_ACEOF
8371#define NO_NEW_SELECTION 1
8372_ACEOF
8373
8374 fi
8375fi;
8376
8377# Check whether --enable-dmalloc or --disable-dmalloc was given.
8378if test "${enable_dmalloc+set}" = set; then
8379 enableval="$enable_dmalloc"
8380 if test x$enableval = xyes; then
8381 MALLOC_TYPE=G
8382 DEBUG=-DDEBUG_MALLOC
8383 DLIB="-L/usr/local/lib -ldmalloc"
8384 DINCLUDE=-I/usr/local/include
8385 fi
8386fi;
8387
8388# Check whether --enable-dlmalloc or --disable-dlmalloc was given.
8389if test "${enable_dlmalloc+set}" = set; then
8390 enableval="$enable_dlmalloc"
8391 if test x$enableval = xyes; then
8392 MALLOC_TYPE=D
8393 DEBUG=
8394 DLIB="-L/usr/local/lib -ldlmalloc"
8395 DINCLUDE=
8396 fi
8397fi;
8398
8399# Check whether --enable-smart-resize or --disable-smart-resize was given.
8400if test "${enable_smart_resize+set}" = set; then
8401 enableval="$enable_smart_resize"
8402 if test x$enableval = xyes; then
8403
8404cat >>confdefs.h <<\_ACEOF
8405#define SMART_RESIZE 1
8406_ACEOF
8407
8408 fi
8409fi;
8410
8411# Check whether --enable-256-color or --disable-256-color was given.
8412if test "${enable_256_color+set}" = set; then
8413 enableval="$enable_256_color"
8414 if test x$enableval = xyes; then
8415
8416cat >>confdefs.h <<\_ACEOF
8417#define TTY_256COLOR 1
8418_ACEOF
8419
8420 fi
8421fi;
8422
8423# Check whether --enable-cursor-blink or --disable-cursor-blink was given.
8424if test "${enable_cursor_blink+set}" = set; then
8425 enableval="$enable_cursor_blink"
8426 if test x$enableval = xyes -o x$enableval = xno; then
8427 support_cursor_blink=$enableval
8428 fi
8429fi;
8430
8431# Check whether --enable-text-blink or --disable-text-blink was given.
8432if test "${enable_text_blink+set}" = set; then
8433 enableval="$enable_text_blink"
8434 if test x$enableval = xyes -o x$enableval = xno; then
8435 support_text_blink=$enableval
8436 fi
8437fi;
8438
8439# Check whether --enable-pointer-blank or --disable-pointer-blank was given.
8440if test "${enable_pointer_blank+set}" = set; then
8441 enableval="$enable_pointer_blank"
8442 if test x$enableval = xyes -o x$enableval = xno; then
8443 support_pointer_blank=$enableval
8444 fi
8445fi;
8446
8447
8448# Check whether --with-term or --without-term was given.
8449if test "${with_term+set}" = set; then
8450 withval="$with_term"
8451 if test x$withval != x; then
8452
8453cat >>confdefs.h <<_ACEOF
8454#define TERMENV "$withval"
8455_ACEOF
8456 term="$withval"
8457 fi
8458fi;
8459
8460
8461# Check whether --with-terminfo or --without-terminfo was given.
8462if test "${with_terminfo+set}" = set; then
8463 withval="$with_terminfo"
8464 if test x$withval != x; then
8465
8466cat >>confdefs.h <<_ACEOF
8467#define RXVT_TERMINFO "$withval"
8468_ACEOF
8469 terminfo="$withval"
8470 fi
8471fi;
8472
8473
8474
8475cat >>confdefs.h <<\_ACEOF
8476#define PROTOTYPES 1
8477_ACEOF
8478
8479
8480if test -z "$CFLAGS"; then
8481 if test -z "$CCOPTS"; then
8482 CCOPTS='-O'
8483 fi
8484 CFLAGS="$CCOPTS"
8485fi
8486
8487# Extract the first word of "mv", so it can be a program name with args.
8488set dummy mv; ac_word=$2
8489echo "$as_me:$LINENO: checking for $ac_word" >&5
8490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8491if test "${ac_cv_path_MV+set}" = set; then
8492 echo $ECHO_N "(cached) $ECHO_C" >&6
8493else
8494 case $MV in
8495 [\\/]* | ?:[\\/]*)
8496 ac_cv_path_MV="$MV" # Let the user override the test with a path.
8497 ;;
8498 *)
8499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8500for as_dir in $PATH
8501do
8502 IFS=$as_save_IFS
8503 test -z "$as_dir" && as_dir=.
8504 for ac_exec_ext in '' $ac_executable_extensions; do
8505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8506 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8508 break 2
8509 fi
8510done
8511done
8512
8513 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
8514 ;;
8515esac
8516fi
8517MV=$ac_cv_path_MV
8518
8519if test -n "$MV"; then
8520 echo "$as_me:$LINENO: result: $MV" >&5
8521echo "${ECHO_T}$MV" >&6
8522else
8523 echo "$as_me:$LINENO: result: no" >&5
8524echo "${ECHO_T}no" >&6
8525fi
8526
8527# Extract the first word of "rm", so it can be a program name with args.
8528set dummy rm; ac_word=$2
8529echo "$as_me:$LINENO: checking for $ac_word" >&5
8530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8531if test "${ac_cv_path_RM+set}" = set; then
8532 echo $ECHO_N "(cached) $ECHO_C" >&6
8533else
8534 case $RM in
8535 [\\/]* | ?:[\\/]*)
8536 ac_cv_path_RM="$RM" # Let the user override the test with a path.
8537 ;;
8538 *)
8539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8540for as_dir in $PATH
8541do
8542 IFS=$as_save_IFS
8543 test -z "$as_dir" && as_dir=.
8544 for ac_exec_ext in '' $ac_executable_extensions; do
8545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8546 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8548 break 2
8549 fi
8550done
8551done
8552
8553 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
8554 ;;
8555esac
8556fi
8557RM=$ac_cv_path_RM
8558
8559if test -n "$RM"; then
8560 echo "$as_me:$LINENO: result: $RM" >&5
8561echo "${ECHO_T}$RM" >&6
8562else
8563 echo "$as_me:$LINENO: result: no" >&5
8564echo "${ECHO_T}no" >&6
8565fi
8566
8567# Extract the first word of "cp", so it can be a program name with args.
8568set dummy cp; ac_word=$2
8569echo "$as_me:$LINENO: checking for $ac_word" >&5
8570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8571if test "${ac_cv_path_CP+set}" = set; then
8572 echo $ECHO_N "(cached) $ECHO_C" >&6
8573else
8574 case $CP in
8575 [\\/]* | ?:[\\/]*)
8576 ac_cv_path_CP="$CP" # Let the user override the test with a path.
8577 ;;
8578 *)
8579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8580for as_dir in $PATH
8581do
8582 IFS=$as_save_IFS
8583 test -z "$as_dir" && as_dir=.
8584 for ac_exec_ext in '' $ac_executable_extensions; do
8585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8586 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
8587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8588 break 2
8589 fi
8590done
8591done
8592
8593 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
8594 ;;
8595esac
8596fi
8597CP=$ac_cv_path_CP
8598
8599if test -n "$CP"; then
8600 echo "$as_me:$LINENO: result: $CP" >&5
8601echo "${ECHO_T}$CP" >&6
8602else
8603 echo "$as_me:$LINENO: result: no" >&5
8604echo "${ECHO_T}no" >&6
8605fi
8606
8607# Extract the first word of "ln", so it can be a program name with args.
8608set dummy ln; ac_word=$2
8609echo "$as_me:$LINENO: checking for $ac_word" >&5
8610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8611if test "${ac_cv_path_LN+set}" = set; then
8612 echo $ECHO_N "(cached) $ECHO_C" >&6
8613else
8614 case $LN in
8615 [\\/]* | ?:[\\/]*)
8616 ac_cv_path_LN="$LN" # Let the user override the test with a path.
8617 ;;
8618 *)
8619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8620for as_dir in $PATH
8621do
8622 IFS=$as_save_IFS
8623 test -z "$as_dir" && as_dir=.
8624 for ac_exec_ext in '' $ac_executable_extensions; do
8625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8626 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8628 break 2
8629 fi
8630done
8631done
8632
8633 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
8634 ;;
8635esac
8636fi
8637LN=$ac_cv_path_LN
8638
8639if test -n "$LN"; then
8640 echo "$as_me:$LINENO: result: $LN" >&5
8641echo "${ECHO_T}$LN" >&6
8642else
8643 echo "$as_me:$LINENO: result: no" >&5
8644echo "${ECHO_T}no" >&6
8645fi
8646
8647# Extract the first word of "sed", so it can be a program name with args.
8648set dummy sed; ac_word=$2
8649echo "$as_me:$LINENO: checking for $ac_word" >&5
8650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8651if test "${ac_cv_path_SED+set}" = set; then
8652 echo $ECHO_N "(cached) $ECHO_C" >&6
8653else
8654 case $SED in
8655 [\\/]* | ?:[\\/]*)
8656 ac_cv_path_SED="$SED" # Let the user override the test with a path.
8657 ;;
8658 *)
8659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8660for as_dir in $PATH
8661do
8662 IFS=$as_save_IFS
8663 test -z "$as_dir" && as_dir=.
8664 for ac_exec_ext in '' $ac_executable_extensions; do
8665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8666 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
8667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8668 break 2
8669 fi
8670done
8671done
8672
8673 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
8674 ;;
8675esac
8676fi
8677SED=$ac_cv_path_SED
8678
8679if test -n "$SED"; then
8680 echo "$as_me:$LINENO: result: $SED" >&5
8681echo "${ECHO_T}$SED" >&6
8682else
8683 echo "$as_me:$LINENO: result: no" >&5
8684echo "${ECHO_T}no" >&6
8685fi
8686
8687# Extract the first word of "echo", so it can be a program name with args.
8688set dummy echo; ac_word=$2
8689echo "$as_me:$LINENO: checking for $ac_word" >&5
8690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8691if test "${ac_cv_path_ECHO+set}" = set; then
8692 echo $ECHO_N "(cached) $ECHO_C" >&6
8693else
8694 case $ECHO in
8695 [\\/]* | ?:[\\/]*)
8696 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
8697 ;;
8698 *)
8699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8700for as_dir in $PATH
8701do
8702 IFS=$as_save_IFS
8703 test -z "$as_dir" && as_dir=.
8704 for ac_exec_ext in '' $ac_executable_extensions; do
8705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8706 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
8707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8708 break 2
8709 fi
8710done
8711done
8712
8713 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
8714 ;;
8715esac
8716fi
8717ECHO=$ac_cv_path_ECHO
8718
8719if test -n "$ECHO"; then
8720 echo "$as_me:$LINENO: result: $ECHO" >&5
8721echo "${ECHO_T}$ECHO" >&6
8722else
8723 echo "$as_me:$LINENO: result: no" >&5
8724echo "${ECHO_T}no" >&6
8725fi
8726
8727# Extract the first word of "cmp", so it can be a program name with args.
8728set dummy cmp; ac_word=$2
8729echo "$as_me:$LINENO: checking for $ac_word" >&5
8730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8731if test "${ac_cv_path_CMP+set}" = set; then
8732 echo $ECHO_N "(cached) $ECHO_C" >&6
8733else
8734 case $CMP in
8735 [\\/]* | ?:[\\/]*)
8736 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
8737 ;;
8738 *)
8739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8740for as_dir in $PATH
8741do
8742 IFS=$as_save_IFS
8743 test -z "$as_dir" && as_dir=.
8744 for ac_exec_ext in '' $ac_executable_extensions; do
8745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8746 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
8747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8748 break 2
8749 fi
8750done
8751done
8752
8753 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
8754 ;;
8755esac
8756fi
8757CMP=$ac_cv_path_CMP
8758
8759if test -n "$CMP"; then
8760 echo "$as_me:$LINENO: result: $CMP" >&5
8761echo "${ECHO_T}$CMP" >&6
8762else
8763 echo "$as_me:$LINENO: result: no" >&5
8764echo "${ECHO_T}no" >&6
8765fi
8766
8767# Extract the first word of "tbl", so it can be a program name with args.
8768set dummy tbl; ac_word=$2
8769echo "$as_me:$LINENO: checking for $ac_word" >&5
8770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8771if test "${ac_cv_path_TBL+set}" = set; then
8772 echo $ECHO_N "(cached) $ECHO_C" >&6
8773else
8774 case $TBL in
8775 [\\/]* | ?:[\\/]*)
8776 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
8777 ;;
8778 *)
8779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8780for as_dir in $PATH
8781do
8782 IFS=$as_save_IFS
8783 test -z "$as_dir" && as_dir=.
8784 for ac_exec_ext in '' $ac_executable_extensions; do
8785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8786 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
8787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8788 break 2
8789 fi
8790done
8791done
8792
8793 ;;
8794esac
8795fi
8796TBL=$ac_cv_path_TBL
8797
8798if test -n "$TBL"; then
8799 echo "$as_me:$LINENO: result: $TBL" >&5
8800echo "${ECHO_T}$TBL" >&6
8801else
8802 echo "$as_me:$LINENO: result: no" >&5
8803echo "${ECHO_T}no" >&6
8804fi
8805
8806
8807 4629
8808 4630
8809echo "$as_me:$LINENO: checking for X" >&5 4631echo "$as_me:$LINENO: checking for X" >&5
8810echo $ECHO_N "checking for X... $ECHO_C" >&6 4632echo $ECHO_N "checking for X... $ECHO_C" >&6
8811 4633
8973 grep -v '^ *+' conftest.er1 >conftest.err 4795 grep -v '^ *+' conftest.er1 >conftest.err
8974 rm -f conftest.er1 4796 rm -f conftest.er1
8975 cat conftest.err >&5 4797 cat conftest.err >&5
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); } && 4799 (exit $ac_status); } &&
8978 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4800 { ac_try='test -z "$ac_cxx_werror_flag"
4801 || test ! -s conftest.err'
8979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980 (eval $ac_try) 2>&5 4803 (eval $ac_try) 2>&5
8981 ac_status=$? 4804 ac_status=$?
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); }; } && 4806 (exit $ac_status); }; } &&
9084 grep -v '^ *+' conftest.er1 >conftest.err 4907 grep -v '^ *+' conftest.er1 >conftest.err
9085 rm -f conftest.er1 4908 rm -f conftest.er1
9086 cat conftest.err >&5 4909 cat conftest.err >&5
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); } && 4911 (exit $ac_status); } &&
9089 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4912 { ac_try='test -z "$ac_cxx_werror_flag"
4913 || test ! -s conftest.err'
9090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9091 (eval $ac_try) 2>&5 4915 (eval $ac_try) 2>&5
9092 ac_status=$? 4916 ac_status=$?
9093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 (exit $ac_status); }; } && 4918 (exit $ac_status); }; } &&
9135 grep -v '^ *+' conftest.er1 >conftest.err 4959 grep -v '^ *+' conftest.er1 >conftest.err
9136 rm -f conftest.er1 4960 rm -f conftest.er1
9137 cat conftest.err >&5 4961 cat conftest.err >&5
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); } && 4963 (exit $ac_status); } &&
9140 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4964 { ac_try='test -z "$ac_cxx_werror_flag"
4965 || test ! -s conftest.err'
9141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9142 (eval $ac_try) 2>&5 4967 (eval $ac_try) 2>&5
9143 ac_status=$? 4968 ac_status=$?
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); }; } && 4970 (exit $ac_status); }; } &&
9211 grep -v '^ *+' conftest.er1 >conftest.err 5036 grep -v '^ *+' conftest.er1 >conftest.err
9212 rm -f conftest.er1 5037 rm -f conftest.er1
9213 cat conftest.err >&5 5038 cat conftest.err >&5
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); } && 5040 (exit $ac_status); } &&
9216 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5041 { ac_try='test -z "$ac_cxx_werror_flag"
5042 || test ! -s conftest.err'
9217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9218 (eval $ac_try) 2>&5 5044 (eval $ac_try) 2>&5
9219 ac_status=$? 5045 ac_status=$?
9220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221 (exit $ac_status); }; } && 5047 (exit $ac_status); }; } &&
9266 grep -v '^ *+' conftest.er1 >conftest.err 5092 grep -v '^ *+' conftest.er1 >conftest.err
9267 rm -f conftest.er1 5093 rm -f conftest.er1
9268 cat conftest.err >&5 5094 cat conftest.err >&5
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); } && 5096 (exit $ac_status); } &&
9271 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5097 { ac_try='test -z "$ac_cxx_werror_flag"
5098 || test ! -s conftest.err'
9272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9273 (eval $ac_try) 2>&5 5100 (eval $ac_try) 2>&5
9274 ac_status=$? 5101 ac_status=$?
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); }; } && 5103 (exit $ac_status); }; } &&
9334 grep -v '^ *+' conftest.er1 >conftest.err 5161 grep -v '^ *+' conftest.er1 >conftest.err
9335 rm -f conftest.er1 5162 rm -f conftest.er1
9336 cat conftest.err >&5 5163 cat conftest.err >&5
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); } && 5165 (exit $ac_status); } &&
9339 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5166 { ac_try='test -z "$ac_cxx_werror_flag"
5167 || test ! -s conftest.err'
9340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9341 (eval $ac_try) 2>&5 5169 (eval $ac_try) 2>&5
9342 ac_status=$? 5170 ac_status=$?
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); }; } && 5172 (exit $ac_status); }; } &&
9442 grep -v '^ *+' conftest.er1 >conftest.err 5270 grep -v '^ *+' conftest.er1 >conftest.err
9443 rm -f conftest.er1 5271 rm -f conftest.er1
9444 cat conftest.err >&5 5272 cat conftest.err >&5
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); } && 5274 (exit $ac_status); } &&
9447 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5275 { ac_try='test -z "$ac_cxx_werror_flag"
5276 || test ! -s conftest.err'
9448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9449 (eval $ac_try) 2>&5 5278 (eval $ac_try) 2>&5
9450 ac_status=$? 5279 ac_status=$?
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); }; } && 5281 (exit $ac_status); }; } &&
9506 grep -v '^ *+' conftest.er1 >conftest.err 5335 grep -v '^ *+' conftest.er1 >conftest.err
9507 rm -f conftest.er1 5336 rm -f conftest.er1
9508 cat conftest.err >&5 5337 cat conftest.err >&5
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); } && 5339 (exit $ac_status); } &&
9511 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5340 { ac_try='test -z "$ac_cxx_werror_flag"
5341 || test ! -s conftest.err'
9512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9513 (eval $ac_try) 2>&5 5343 (eval $ac_try) 2>&5
9514 ac_status=$? 5344 ac_status=$?
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); }; } && 5346 (exit $ac_status); }; } &&
9574 grep -v '^ *+' conftest.er1 >conftest.err 5404 grep -v '^ *+' conftest.er1 >conftest.err
9575 rm -f conftest.er1 5405 rm -f conftest.er1
9576 cat conftest.err >&5 5406 cat conftest.err >&5
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); } && 5408 (exit $ac_status); } &&
9579 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5409 { ac_try='test -z "$ac_cxx_werror_flag"
5410 || test ! -s conftest.err'
9580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9581 (eval $ac_try) 2>&5 5412 (eval $ac_try) 2>&5
9582 ac_status=$? 5413 ac_status=$?
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); }; } && 5415 (exit $ac_status); }; } &&
9678 grep -v '^ *+' conftest.er1 >conftest.err 5509 grep -v '^ *+' conftest.er1 >conftest.err
9679 rm -f conftest.er1 5510 rm -f conftest.er1
9680 cat conftest.err >&5 5511 cat conftest.err >&5
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); } && 5513 (exit $ac_status); } &&
9683 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5514 { ac_try='test -z "$ac_cxx_werror_flag"
5515 || test ! -s conftest.err'
9684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9685 (eval $ac_try) 2>&5 5517 (eval $ac_try) 2>&5
9686 ac_status=$? 5518 ac_status=$?
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); }; } && 5520 (exit $ac_status); }; } &&
9742 grep -v '^ *+' conftest.er1 >conftest.err 5574 grep -v '^ *+' conftest.er1 >conftest.err
9743 rm -f conftest.er1 5575 rm -f conftest.er1
9744 cat conftest.err >&5 5576 cat conftest.err >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); } && 5578 (exit $ac_status); } &&
9747 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5579 { ac_try='test -z "$ac_cxx_werror_flag"
5580 || test ! -s conftest.err'
9748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9749 (eval $ac_try) 2>&5 5582 (eval $ac_try) 2>&5
9750 ac_status=$? 5583 ac_status=$?
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); }; } && 5585 (exit $ac_status); }; } &&
9839 grep -v '^ *+' conftest.er1 >conftest.err 5672 grep -v '^ *+' conftest.er1 >conftest.err
9840 rm -f conftest.er1 5673 rm -f conftest.er1
9841 cat conftest.err >&5 5674 cat conftest.err >&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } && 5676 (exit $ac_status); } &&
9844 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5677 { ac_try='test -z "$ac_cxx_werror_flag"
5678 || test ! -s conftest.err'
9845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9846 (eval $ac_try) 2>&5 5680 (eval $ac_try) 2>&5
9847 ac_status=$? 5681 ac_status=$?
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); }; } && 5683 (exit $ac_status); }; } &&
9903 grep -v '^ *+' conftest.er1 >conftest.err 5737 grep -v '^ *+' conftest.er1 >conftest.err
9904 rm -f conftest.er1 5738 rm -f conftest.er1
9905 cat conftest.err >&5 5739 cat conftest.err >&5
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); } && 5741 (exit $ac_status); } &&
9908 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5742 { ac_try='test -z "$ac_cxx_werror_flag"
5743 || test ! -s conftest.err'
9909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9910 (eval $ac_try) 2>&5 5745 (eval $ac_try) 2>&5
9911 ac_status=$? 5746 ac_status=$?
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); }; } && 5748 (exit $ac_status); }; } &&
10000 grep -v '^ *+' conftest.er1 >conftest.err 5835 grep -v '^ *+' conftest.er1 >conftest.err
10001 rm -f conftest.er1 5836 rm -f conftest.er1
10002 cat conftest.err >&5 5837 cat conftest.err >&5
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); } && 5839 (exit $ac_status); } &&
10005 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5840 { ac_try='test -z "$ac_cxx_werror_flag"
5841 || test ! -s conftest.err'
10006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10007 (eval $ac_try) 2>&5 5843 (eval $ac_try) 2>&5
10008 ac_status=$? 5844 ac_status=$?
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); }; } && 5846 (exit $ac_status); }; } &&
10064 grep -v '^ *+' conftest.er1 >conftest.err 5900 grep -v '^ *+' conftest.er1 >conftest.err
10065 rm -f conftest.er1 5901 rm -f conftest.er1
10066 cat conftest.err >&5 5902 cat conftest.err >&5
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); } && 5904 (exit $ac_status); } &&
10069 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5905 { ac_try='test -z "$ac_cxx_werror_flag"
5906 || test ! -s conftest.err'
10070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10071 (eval $ac_try) 2>&5 5908 (eval $ac_try) 2>&5
10072 ac_status=$? 5909 ac_status=$?
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); }; } && 5911 (exit $ac_status); }; } &&
10143 grep -v '^ *+' conftest.er1 >conftest.err 5980 grep -v '^ *+' conftest.er1 >conftest.err
10144 rm -f conftest.er1 5981 rm -f conftest.er1
10145 cat conftest.err >&5 5982 cat conftest.err >&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); } && 5984 (exit $ac_status); } &&
10148 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5985 { ac_try='test -z "$ac_cxx_werror_flag"
5986 || test ! -s conftest.err'
10149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150 (eval $ac_try) 2>&5 5988 (eval $ac_try) 2>&5
10151 ac_status=$? 5989 ac_status=$?
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); }; } && 5991 (exit $ac_status); }; } &&
10178 6016
10179fi 6017fi
10180 6018
10181 6019
10182 6020
6021LIBAFTERIMAGE_CFLAGS=
6022AFTERIMAGE_LIBS=
6023have_afterimage=
6024
10183if test x$support_xpm = xyes; then 6025if test x$support_afterimage = xyes; then
6026 support_afterimage=no
6027
6028 if test "x$afterimage_config" = "x" ; then
6029 # Extract the first word of "afterimage-config", so it can be a program name with args.
6030set dummy afterimage-config; ac_word=$2
6031echo "$as_me:$LINENO: checking for $ac_word" >&5
6032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6033if test "${ac_cv_path_afterimage_config+set}" = set; then
6034 echo $ECHO_N "(cached) $ECHO_C" >&6
6035else
6036 case $afterimage_config in
6037 [\\/]* | ?:[\\/]*)
6038 ac_cv_path_afterimage_config="$afterimage_config" # Let the user override the test with a path.
6039 ;;
6040 *)
6041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042for as_dir in $PATH
6043do
6044 IFS=$as_save_IFS
6045 test -z "$as_dir" && as_dir=.
6046 for ac_exec_ext in '' $ac_executable_extensions; do
6047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6048 ac_cv_path_afterimage_config="$as_dir/$ac_word$ac_exec_ext"
6049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6050 break 2
6051 fi
6052done
6053done
6054
6055 test -z "$ac_cv_path_afterimage_config" && ac_cv_path_afterimage_config="no"
6056 ;;
6057esac
6058fi
6059afterimage_config=$ac_cv_path_afterimage_config
6060
6061if test -n "$afterimage_config"; then
6062 echo "$as_me:$LINENO: result: $afterimage_config" >&5
6063echo "${ECHO_T}$afterimage_config" >&6
6064else
6065 echo "$as_me:$LINENO: result: no" >&5
6066echo "${ECHO_T}no" >&6
6067fi
6068
6069 fi
6070
6071 echo "$as_me:$LINENO: checking for libAfterImage" >&5
6072echo $ECHO_N "checking for libAfterImage... $ECHO_C" >&6
6073 if $afterimage_config --version >/dev/null 2>&1 ; then
6074 LIBAFTERIMAGE_CFLAGS=`$afterimage_config --cflags`
6075 AFTERIMAGE_LIBS=`$afterimage_config --libs`
6076 if test "x$AFTERIMAGE_LIBS" != "x"; then
6077 support_afterimage=yes
6078 fi
6079 fi
6080
6081 if test "x$support_afterimage" = "xyes"; then
6082 echo "$as_me:$LINENO: result: $AFTERIMAGE_LIBS" >&5
6083echo "${ECHO_T}$AFTERIMAGE_LIBS" >&6
6084 else
6085 echo "$as_me:$LINENO: result: no" >&5
6086echo "${ECHO_T}no" >&6
6087 fi
6088fi
6089
6090if test x$support_afterimage != xyes -a x$support_xpm = xyes ; then
10184 6091
10185 6092
10186 6093
10187# Initialize some more variables set by options. 6094# Initialize some more variables set by options.
10188# The variables have the same names as the options, with 6095# The variables have the same names as the options, with
10359 grep -v '^ *+' conftest.er1 >conftest.err 6266 grep -v '^ *+' conftest.er1 >conftest.err
10360 rm -f conftest.er1 6267 rm -f conftest.er1
10361 cat conftest.err >&5 6268 cat conftest.err >&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); } && 6270 (exit $ac_status); } &&
10364 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6271 { ac_try='test -z "$ac_cxx_werror_flag"
6272 || test ! -s conftest.err'
10365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10366 (eval $ac_try) 2>&5 6274 (eval $ac_try) 2>&5
10367 ac_status=$? 6275 ac_status=$?
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); }; } && 6277 (exit $ac_status); }; } &&
10573 grep -v '^ *+' conftest.er1 >conftest.err 6481 grep -v '^ *+' conftest.er1 >conftest.err
10574 rm -f conftest.er1 6482 rm -f conftest.er1
10575 cat conftest.err >&5 6483 cat conftest.err >&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); } && 6485 (exit $ac_status); } &&
10578 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6486 { ac_try='test -z "$ac_cxx_werror_flag"
6487 || test ! -s conftest.err'
10579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10580 (eval $ac_try) 2>&5 6489 (eval $ac_try) 2>&5
10581 ac_status=$? 6490 ac_status=$?
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); }; } && 6492 (exit $ac_status); }; } &&
10604#define HAVE_SYS_WAIT_H 1 6513#define HAVE_SYS_WAIT_H 1
10605_ACEOF 6514_ACEOF
10606 6515
10607fi 6516fi
10608 6517
6518echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6519echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6520if test "${ac_cv_header_stdc+set}" = set; then
6521 echo $ECHO_N "(cached) $ECHO_C" >&6
6522else
6523 cat >conftest.$ac_ext <<_ACEOF
6524/* confdefs.h. */
6525_ACEOF
6526cat confdefs.h >>conftest.$ac_ext
6527cat >>conftest.$ac_ext <<_ACEOF
6528/* end confdefs.h. */
6529#include <stdlib.h>
6530#include <stdarg.h>
6531#include <string.h>
6532#include <float.h>
6533
6534int
6535main ()
6536{
6537
6538 ;
6539 return 0;
6540}
6541_ACEOF
6542rm -f conftest.$ac_objext
6543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6544 (eval $ac_compile) 2>conftest.er1
6545 ac_status=$?
6546 grep -v '^ *+' conftest.er1 >conftest.err
6547 rm -f conftest.er1
6548 cat conftest.err >&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } &&
6551 { ac_try='test -z "$ac_cxx_werror_flag"
6552 || test ! -s conftest.err'
6553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6554 (eval $ac_try) 2>&5
6555 ac_status=$?
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }; } &&
6558 { ac_try='test -s conftest.$ac_objext'
6559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6560 (eval $ac_try) 2>&5
6561 ac_status=$?
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); }; }; then
6564 ac_cv_header_stdc=yes
6565else
6566 echo "$as_me: failed program was:" >&5
6567sed 's/^/| /' conftest.$ac_ext >&5
6568
6569ac_cv_header_stdc=no
6570fi
6571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6572
6573if test $ac_cv_header_stdc = yes; then
6574 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6575 cat >conftest.$ac_ext <<_ACEOF
6576/* confdefs.h. */
6577_ACEOF
6578cat confdefs.h >>conftest.$ac_ext
6579cat >>conftest.$ac_ext <<_ACEOF
6580/* end confdefs.h. */
6581#include <string.h>
6582
6583_ACEOF
6584if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6585 $EGREP "memchr" >/dev/null 2>&1; then
6586 :
6587else
6588 ac_cv_header_stdc=no
6589fi
6590rm -f conftest*
6591
6592fi
6593
6594if test $ac_cv_header_stdc = yes; then
6595 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6596 cat >conftest.$ac_ext <<_ACEOF
6597/* confdefs.h. */
6598_ACEOF
6599cat confdefs.h >>conftest.$ac_ext
6600cat >>conftest.$ac_ext <<_ACEOF
6601/* end confdefs.h. */
6602#include <stdlib.h>
6603
6604_ACEOF
6605if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6606 $EGREP "free" >/dev/null 2>&1; then
6607 :
6608else
6609 ac_cv_header_stdc=no
6610fi
6611rm -f conftest*
6612
6613fi
6614
6615if test $ac_cv_header_stdc = yes; then
6616 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6617 if test "$cross_compiling" = yes; then
6618 :
6619else
6620 cat >conftest.$ac_ext <<_ACEOF
6621/* confdefs.h. */
6622_ACEOF
6623cat confdefs.h >>conftest.$ac_ext
6624cat >>conftest.$ac_ext <<_ACEOF
6625/* end confdefs.h. */
6626#include <ctype.h>
6627#if ((' ' & 0x0FF) == 0x020)
6628# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6629# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6630#else
6631# define ISLOWER(c) \
6632 (('a' <= (c) && (c) <= 'i') \
6633 || ('j' <= (c) && (c) <= 'r') \
6634 || ('s' <= (c) && (c) <= 'z'))
6635# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6636#endif
6637
6638#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6639int
6640main ()
6641{
6642 int i;
6643 for (i = 0; i < 256; i++)
6644 if (XOR (islower (i), ISLOWER (i))
6645 || toupper (i) != TOUPPER (i))
6646 exit(2);
6647 exit (0);
6648}
6649_ACEOF
6650rm -f conftest$ac_exeext
6651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6652 (eval $ac_link) 2>&5
6653 ac_status=$?
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6657 (eval $ac_try) 2>&5
6658 ac_status=$?
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); }; }; then
6661 :
6662else
6663 echo "$as_me: program exited with status $ac_status" >&5
6664echo "$as_me: failed program was:" >&5
6665sed 's/^/| /' conftest.$ac_ext >&5
6666
6667( exit $ac_status )
6668ac_cv_header_stdc=no
6669fi
6670rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6671fi
6672fi
6673fi
6674echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6675echo "${ECHO_T}$ac_cv_header_stdc" >&6
6676if test $ac_cv_header_stdc = yes; then
6677
6678cat >>confdefs.h <<\_ACEOF
6679#define STDC_HEADERS 1
6680_ACEOF
6681
6682fi
6683
6684# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6695 inttypes.h stdint.h unistd.h
6696do
6697as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6698echo "$as_me:$LINENO: checking for $ac_header" >&5
6699echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6700if eval "test \"\${$as_ac_Header+set}\" = set"; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6702else
6703 cat >conftest.$ac_ext <<_ACEOF
6704/* confdefs.h. */
6705_ACEOF
6706cat confdefs.h >>conftest.$ac_ext
6707cat >>conftest.$ac_ext <<_ACEOF
6708/* end confdefs.h. */
6709$ac_includes_default
6710
6711#include <$ac_header>
6712_ACEOF
6713rm -f conftest.$ac_objext
6714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6715 (eval $ac_compile) 2>conftest.er1
6716 ac_status=$?
6717 grep -v '^ *+' conftest.er1 >conftest.err
6718 rm -f conftest.er1
6719 cat conftest.err >&5
6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); } &&
6722 { ac_try='test -z "$ac_cxx_werror_flag"
6723 || test ! -s conftest.err'
6724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6725 (eval $ac_try) 2>&5
6726 ac_status=$?
6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); }; } &&
6729 { ac_try='test -s conftest.$ac_objext'
6730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6731 (eval $ac_try) 2>&5
6732 ac_status=$?
6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734 (exit $ac_status); }; }; then
6735 eval "$as_ac_Header=yes"
6736else
6737 echo "$as_me: failed program was:" >&5
6738sed 's/^/| /' conftest.$ac_ext >&5
6739
6740eval "$as_ac_Header=no"
6741fi
6742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6743fi
6744echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6745echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6746if test `eval echo '${'$as_ac_Header'}'` = yes; then
6747 cat >>confdefs.h <<_ACEOF
6748#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6749_ACEOF
6750
6751fi
6752
6753done
10609 6754
10610 6755
10611 6756
10612 6757
10613 6758
10626 6771
10627 6772
10628for ac_header in \ 6773for ac_header in \
10629 assert.h \ 6774 assert.h \
10630 fcntl.h \ 6775 fcntl.h \
10631 grp.h \
10632 libc.h \
10633 lastlog.h \
10634 stdarg.h \ 6776 stdarg.h \
10635 stdlib.h \ 6777 stdlib.h \
10636 string.h \ 6778 string.h \
10637 termios.h \ 6779 termios.h \
10638 unistd.h \ 6780 unistd.h \
10640 sys/ioctl.h \ 6782 sys/ioctl.h \
10641 sys/select.h \ 6783 sys/select.h \
10642 sys/sockio.h \ 6784 sys/sockio.h \
10643 sys/strredir.h \ 6785 sys/strredir.h \
10644 sys/time.h \ 6786 sys/time.h \
10645 utmp.h \ 6787 stdint.h \
10646 utmpx.h \ 6788 wchar.h \
10647 stdint.h \ 6789 cwchar \
6790 clocale \
10648 6791
10649do 6792do
10650as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6793as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10651if eval "test \"\${$as_ac_Header+set}\" = set"; then 6794if eval "test \"\${$as_ac_Header+set}\" = set"; then
10652 echo "$as_me:$LINENO: checking for $ac_header" >&5 6795 echo "$as_me:$LINENO: checking for $ac_header" >&5
10676 grep -v '^ *+' conftest.er1 >conftest.err 6819 grep -v '^ *+' conftest.er1 >conftest.err
10677 rm -f conftest.er1 6820 rm -f conftest.er1
10678 cat conftest.err >&5 6821 cat conftest.err >&5
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); } && 6823 (exit $ac_status); } &&
10681 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6824 { ac_try='test -z "$ac_cxx_werror_flag"
6825 || test ! -s conftest.err'
10682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10683 (eval $ac_try) 2>&5 6827 (eval $ac_try) 2>&5
10684 ac_status=$? 6828 ac_status=$?
10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); }; } && 6830 (exit $ac_status); }; } &&
10825 grep -v '^ *+' conftest.er1 >conftest.err 6969 grep -v '^ *+' conftest.er1 >conftest.err
10826 rm -f conftest.er1 6970 rm -f conftest.er1
10827 cat conftest.err >&5 6971 cat conftest.err >&5
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); } && 6973 (exit $ac_status); } &&
10830 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6974 { ac_try='test -z "$ac_cxx_werror_flag"
6975 || test ! -s conftest.err'
10831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10832 (eval $ac_try) 2>&5 6977 (eval $ac_try) 2>&5
10833 ac_status=$? 6978 ac_status=$?
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); }; } && 6980 (exit $ac_status); }; } &&
10890 grep -v '^ *+' conftest.er1 >conftest.err 7035 grep -v '^ *+' conftest.er1 >conftest.err
10891 rm -f conftest.er1 7036 rm -f conftest.er1
10892 cat conftest.err >&5 7037 cat conftest.err >&5
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); } && 7039 (exit $ac_status); } &&
10895 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7040 { ac_try='test -z "$ac_cxx_werror_flag"
7041 || test ! -s conftest.err'
10896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10897 (eval $ac_try) 2>&5 7043 (eval $ac_try) 2>&5
10898 ac_status=$? 7044 ac_status=$?
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); }; } && 7046 (exit $ac_status); }; } &&
10940/* confdefs.h. */ 7086/* confdefs.h. */
10941_ACEOF 7087_ACEOF
10942cat confdefs.h >>conftest.$ac_ext 7088cat confdefs.h >>conftest.$ac_ext
10943cat >>conftest.$ac_ext <<_ACEOF 7089cat >>conftest.$ac_ext <<_ACEOF
10944/* end confdefs.h. */ 7090/* end confdefs.h. */
10945 7091#include <X11/Xlib.h>
7092#include <stdlib.h>
10946main() 7093main()
10947{ 7094{
10948 exit(0); 7095 exit(0);
10949 (void) XOpenDisplay("foobar"); 7096 (void) XOpenDisplay("foobar");
10950} 7097}
10989/* confdefs.h. */ 7136/* confdefs.h. */
10990_ACEOF 7137_ACEOF
10991cat confdefs.h >>conftest.$ac_ext 7138cat confdefs.h >>conftest.$ac_ext
10992cat >>conftest.$ac_ext <<_ACEOF 7139cat >>conftest.$ac_ext <<_ACEOF
10993/* end confdefs.h. */ 7140/* end confdefs.h. */
10994 7141#include <X11/Xlib.h>
7142#include <stdlib.h>
10995main() 7143main()
10996{ 7144{
10997 exit(0); 7145 exit(0);
10998 (void) XOpenDisplay("foobar"); 7146 (void) XOpenDisplay("foobar");
10999} 7147}
11055 grep -v '^ *+' conftest.er1 >conftest.err 7203 grep -v '^ *+' conftest.er1 >conftest.err
11056 rm -f conftest.er1 7204 rm -f conftest.er1
11057 cat conftest.err >&5 7205 cat conftest.err >&5
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); } && 7207 (exit $ac_status); } &&
11060 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7208 { ac_try='test -z "$ac_cxx_werror_flag"
7209 || test ! -s conftest.err'
11061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11062 (eval $ac_try) 2>&5 7211 (eval $ac_try) 2>&5
11063 ac_status=$? 7212 ac_status=$?
11064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065 (exit $ac_status); }; } && 7214 (exit $ac_status); }; } &&
11088 7237
11089fi 7238fi
11090LIBS=$ac_save_LIBS 7239LIBS=$ac_save_LIBS
11091CFLAGS=$ac_save_CFLAGS 7240CFLAGS=$ac_save_CFLAGS
11092 7241
7242echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5
7243echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6
7244if test "${rxvt_xlib_illegal_access+set}" = set; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7246else
7247 cat >conftest.$ac_ext <<_ACEOF
7248/* confdefs.h. */
7249_ACEOF
7250cat confdefs.h >>conftest.$ac_ext
7251cat >>conftest.$ac_ext <<_ACEOF
7252/* end confdefs.h. */
7253
7254#define XLIB_ILLEGAL_ACCESS
7255#include <X11/Xlib.h>
7256
7257int
7258main ()
7259{
7260
7261 Display *dpy;
7262 dpy->xdefaults = (char *)0;
7263
7264 ;
7265 return 0;
7266}
7267_ACEOF
7268rm -f conftest.$ac_objext
7269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7270 (eval $ac_compile) 2>conftest.er1
7271 ac_status=$?
7272 grep -v '^ *+' conftest.er1 >conftest.err
7273 rm -f conftest.er1
7274 cat conftest.err >&5
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); } &&
7277 { ac_try='test -z "$ac_cxx_werror_flag"
7278 || test ! -s conftest.err'
7279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280 (eval $ac_try) 2>&5
7281 ac_status=$?
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); }; } &&
7284 { ac_try='test -s conftest.$ac_objext'
7285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7286 (eval $ac_try) 2>&5
7287 ac_status=$?
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); }; }; then
7290 rxvt_xlib_illegal_access=yes
7291else
7292 echo "$as_me: failed program was:" >&5
7293sed 's/^/| /' conftest.$ac_ext >&5
7294
7295rxvt_xlib_illegal_access=no
7296
7297fi
7298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7299fi
7300echo "$as_me:$LINENO: result: $rxvt_xlib_illegal_access" >&5
7301echo "${ECHO_T}$rxvt_xlib_illegal_access" >&6
7302if test x$rxvt_xlib_illegal_access = xyes; then
7303
7304cat >>confdefs.h <<\_ACEOF
7305#define XLIB_ILLEGAL_ACCESS 1
7306_ACEOF
7307
7308fi
11093 7309
11094echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 7310echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11095echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 7311echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11096if test "${ac_cv_c_const+set}" = set; then 7312if test "${ac_cv_c_const+set}" = set; then
11097 echo $ECHO_N "(cached) $ECHO_C" >&6 7313 echo $ECHO_N "(cached) $ECHO_C" >&6
11164 grep -v '^ *+' conftest.er1 >conftest.err 7380 grep -v '^ *+' conftest.er1 >conftest.err
11165 rm -f conftest.er1 7381 rm -f conftest.er1
11166 cat conftest.err >&5 7382 cat conftest.err >&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); } && 7384 (exit $ac_status); } &&
11169 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7385 { ac_try='test -z "$ac_cxx_werror_flag"
7386 || test ! -s conftest.err'
11170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11171 (eval $ac_try) 2>&5 7388 (eval $ac_try) 2>&5
11172 ac_status=$? 7389 ac_status=$?
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); }; } && 7391 (exit $ac_status); }; } &&
11224 grep -v '^ *+' conftest.er1 >conftest.err 7441 grep -v '^ *+' conftest.er1 >conftest.err
11225 rm -f conftest.er1 7442 rm -f conftest.er1
11226 cat conftest.err >&5 7443 cat conftest.err >&5
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); } && 7445 (exit $ac_status); } &&
11229 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7446 { ac_try='test -z "$ac_cxx_werror_flag"
7447 || test ! -s conftest.err'
11230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11231 (eval $ac_try) 2>&5 7449 (eval $ac_try) 2>&5
11232 ac_status=$? 7450 ac_status=$?
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); }; } && 7452 (exit $ac_status); }; } &&
11299 grep -v '^ *+' conftest.er1 >conftest.err 7517 grep -v '^ *+' conftest.er1 >conftest.err
11300 rm -f conftest.er1 7518 rm -f conftest.er1
11301 cat conftest.err >&5 7519 cat conftest.err >&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); } && 7521 (exit $ac_status); } &&
11304 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7522 { ac_try='test -z "$ac_cxx_werror_flag"
7523 || test ! -s conftest.err'
11305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11306 (eval $ac_try) 2>&5 7525 (eval $ac_try) 2>&5
11307 ac_status=$? 7526 ac_status=$?
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); }; } && 7528 (exit $ac_status); }; } &&
11364 grep -v '^ *+' conftest.er1 >conftest.err 7583 grep -v '^ *+' conftest.er1 >conftest.err
11365 rm -f conftest.er1 7584 rm -f conftest.er1
11366 cat conftest.err >&5 7585 cat conftest.err >&5
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); } && 7587 (exit $ac_status); } &&
11369 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7588 { ac_try='test -z "$ac_cxx_werror_flag"
7589 || test ! -s conftest.err'
11370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371 (eval $ac_try) 2>&5 7591 (eval $ac_try) 2>&5
11372 ac_status=$? 7592 ac_status=$?
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; } && 7594 (exit $ac_status); }; } &&
11434cat >>confdefs.h <<\_ACEOF 7654cat >>confdefs.h <<\_ACEOF
11435#define gid_t int 7655#define gid_t int
11436_ACEOF 7656_ACEOF
11437 7657
11438fi 7658fi
11439
11440
11441
11442echo "$as_me:$LINENO: checking for char" >&5
11443echo $ECHO_N "checking for char... $ECHO_C" >&6
11444if test "${ac_cv_type_char+set}" = set; then
11445 echo $ECHO_N "(cached) $ECHO_C" >&6
11446else
11447 cat >conftest.$ac_ext <<_ACEOF
11448/* confdefs.h. */
11449_ACEOF
11450cat confdefs.h >>conftest.$ac_ext
11451cat >>conftest.$ac_ext <<_ACEOF
11452/* end confdefs.h. */
11453$ac_includes_default
11454int
11455main ()
11456{
11457if ((char *) 0)
11458 return 0;
11459if (sizeof (char))
11460 return 0;
11461 ;
11462 return 0;
11463}
11464_ACEOF
11465rm -f conftest.$ac_objext
11466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11467 (eval $ac_compile) 2>conftest.er1
11468 ac_status=$?
11469 grep -v '^ *+' conftest.er1 >conftest.err
11470 rm -f conftest.er1
11471 cat conftest.err >&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); } &&
11474 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11476 (eval $ac_try) 2>&5
11477 ac_status=$?
11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479 (exit $ac_status); }; } &&
11480 { ac_try='test -s conftest.$ac_objext'
11481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11482 (eval $ac_try) 2>&5
11483 ac_status=$?
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); }; }; then
11486 ac_cv_type_char=yes
11487else
11488 echo "$as_me: failed program was:" >&5
11489sed 's/^/| /' conftest.$ac_ext >&5
11490
11491ac_cv_type_char=no
11492fi
11493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11494fi
11495echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11496echo "${ECHO_T}$ac_cv_type_char" >&6
11497
11498echo "$as_me:$LINENO: checking size of char" >&5
11499echo $ECHO_N "checking size of char... $ECHO_C" >&6
11500if test "${ac_cv_sizeof_char+set}" = set; then
11501 echo $ECHO_N "(cached) $ECHO_C" >&6
11502else
11503 if test "$ac_cv_type_char" = yes; then
11504 # The cast to unsigned long works around a bug in the HP C Compiler
11505 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11506 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11507 # This bug is HP SR number 8606223364.
11508 if test "$cross_compiling" = yes; then
11509 # Depending upon the size, compute the lo and hi bounds.
11510cat >conftest.$ac_ext <<_ACEOF
11511/* confdefs.h. */
11512_ACEOF
11513cat confdefs.h >>conftest.$ac_ext
11514cat >>conftest.$ac_ext <<_ACEOF
11515/* end confdefs.h. */
11516$ac_includes_default
11517int
11518main ()
11519{
11520static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11521test_array [0] = 0
11522
11523 ;
11524 return 0;
11525}
11526_ACEOF
11527rm -f conftest.$ac_objext
11528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11529 (eval $ac_compile) 2>conftest.er1
11530 ac_status=$?
11531 grep -v '^ *+' conftest.er1 >conftest.err
11532 rm -f conftest.er1
11533 cat conftest.err >&5
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); } &&
11536 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11538 (eval $ac_try) 2>&5
11539 ac_status=$?
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); }; } &&
11542 { ac_try='test -s conftest.$ac_objext'
11543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11544 (eval $ac_try) 2>&5
11545 ac_status=$?
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); }; }; then
11548 ac_lo=0 ac_mid=0
11549 while :; do
11550 cat >conftest.$ac_ext <<_ACEOF
11551/* confdefs.h. */
11552_ACEOF
11553cat confdefs.h >>conftest.$ac_ext
11554cat >>conftest.$ac_ext <<_ACEOF
11555/* end confdefs.h. */
11556$ac_includes_default
11557int
11558main ()
11559{
11560static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11561test_array [0] = 0
11562
11563 ;
11564 return 0;
11565}
11566_ACEOF
11567rm -f conftest.$ac_objext
11568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11569 (eval $ac_compile) 2>conftest.er1
11570 ac_status=$?
11571 grep -v '^ *+' conftest.er1 >conftest.err
11572 rm -f conftest.er1
11573 cat conftest.err >&5
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); } &&
11576 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11578 (eval $ac_try) 2>&5
11579 ac_status=$?
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); }; } &&
11582 { ac_try='test -s conftest.$ac_objext'
11583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11584 (eval $ac_try) 2>&5
11585 ac_status=$?
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); }; }; then
11588 ac_hi=$ac_mid; break
11589else
11590 echo "$as_me: failed program was:" >&5
11591sed 's/^/| /' conftest.$ac_ext >&5
11592
11593ac_lo=`expr $ac_mid + 1`
11594 if test $ac_lo -le $ac_mid; then
11595 ac_lo= ac_hi=
11596 break
11597 fi
11598 ac_mid=`expr 2 '*' $ac_mid + 1`
11599fi
11600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11601 done
11602else
11603 echo "$as_me: failed program was:" >&5
11604sed 's/^/| /' conftest.$ac_ext >&5
11605
11606cat >conftest.$ac_ext <<_ACEOF
11607/* confdefs.h. */
11608_ACEOF
11609cat confdefs.h >>conftest.$ac_ext
11610cat >>conftest.$ac_ext <<_ACEOF
11611/* end confdefs.h. */
11612$ac_includes_default
11613int
11614main ()
11615{
11616static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
11617test_array [0] = 0
11618
11619 ;
11620 return 0;
11621}
11622_ACEOF
11623rm -f conftest.$ac_objext
11624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11625 (eval $ac_compile) 2>conftest.er1
11626 ac_status=$?
11627 grep -v '^ *+' conftest.er1 >conftest.err
11628 rm -f conftest.er1
11629 cat conftest.err >&5
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); } &&
11632 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11634 (eval $ac_try) 2>&5
11635 ac_status=$?
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); }; } &&
11638 { ac_try='test -s conftest.$ac_objext'
11639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11640 (eval $ac_try) 2>&5
11641 ac_status=$?
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); }; }; then
11644 ac_hi=-1 ac_mid=-1
11645 while :; do
11646 cat >conftest.$ac_ext <<_ACEOF
11647/* confdefs.h. */
11648_ACEOF
11649cat confdefs.h >>conftest.$ac_ext
11650cat >>conftest.$ac_ext <<_ACEOF
11651/* end confdefs.h. */
11652$ac_includes_default
11653int
11654main ()
11655{
11656static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11657test_array [0] = 0
11658
11659 ;
11660 return 0;
11661}
11662_ACEOF
11663rm -f conftest.$ac_objext
11664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11665 (eval $ac_compile) 2>conftest.er1
11666 ac_status=$?
11667 grep -v '^ *+' conftest.er1 >conftest.err
11668 rm -f conftest.er1
11669 cat conftest.err >&5
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); } &&
11672 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11674 (eval $ac_try) 2>&5
11675 ac_status=$?
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); }; } &&
11678 { ac_try='test -s conftest.$ac_objext'
11679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11680 (eval $ac_try) 2>&5
11681 ac_status=$?
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); }; }; then
11684 ac_lo=$ac_mid; break
11685else
11686 echo "$as_me: failed program was:" >&5
11687sed 's/^/| /' conftest.$ac_ext >&5
11688
11689ac_hi=`expr '(' $ac_mid ')' - 1`
11690 if test $ac_mid -le $ac_hi; then
11691 ac_lo= ac_hi=
11692 break
11693 fi
11694 ac_mid=`expr 2 '*' $ac_mid`
11695fi
11696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11697 done
11698else
11699 echo "$as_me: failed program was:" >&5
11700sed 's/^/| /' conftest.$ac_ext >&5
11701
11702ac_lo= ac_hi=
11703fi
11704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11705fi
11706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11707# Binary search between lo and hi bounds.
11708while test "x$ac_lo" != "x$ac_hi"; do
11709 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11710 cat >conftest.$ac_ext <<_ACEOF
11711/* confdefs.h. */
11712_ACEOF
11713cat confdefs.h >>conftest.$ac_ext
11714cat >>conftest.$ac_ext <<_ACEOF
11715/* end confdefs.h. */
11716$ac_includes_default
11717int
11718main ()
11719{
11720static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11721test_array [0] = 0
11722
11723 ;
11724 return 0;
11725}
11726_ACEOF
11727rm -f conftest.$ac_objext
11728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11729 (eval $ac_compile) 2>conftest.er1
11730 ac_status=$?
11731 grep -v '^ *+' conftest.er1 >conftest.err
11732 rm -f conftest.er1
11733 cat conftest.err >&5
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); } &&
11736 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11738 (eval $ac_try) 2>&5
11739 ac_status=$?
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); }; } &&
11742 { ac_try='test -s conftest.$ac_objext'
11743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11744 (eval $ac_try) 2>&5
11745 ac_status=$?
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); }; }; then
11748 ac_hi=$ac_mid
11749else
11750 echo "$as_me: failed program was:" >&5
11751sed 's/^/| /' conftest.$ac_ext >&5
11752
11753ac_lo=`expr '(' $ac_mid ')' + 1`
11754fi
11755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11756done
11757case $ac_lo in
11758?*) ac_cv_sizeof_char=$ac_lo;;
11759'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11760See \`config.log' for more details." >&5
11761echo "$as_me: error: cannot compute sizeof (char), 77
11762See \`config.log' for more details." >&2;}
11763 { (exit 1); exit 1; }; } ;;
11764esac
11765else
11766 if test "$cross_compiling" = yes; then
11767 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
11768echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
11769 { (exit 1); exit 1; }; }
11770else
11771 cat >conftest.$ac_ext <<_ACEOF
11772/* confdefs.h. */
11773_ACEOF
11774cat confdefs.h >>conftest.$ac_ext
11775cat >>conftest.$ac_ext <<_ACEOF
11776/* end confdefs.h. */
11777$ac_includes_default
11778long longval () { return (long) (sizeof (char)); }
11779unsigned long ulongval () { return (long) (sizeof (char)); }
11780#include <stdio.h>
11781#include <stdlib.h>
11782int
11783main ()
11784{
11785
11786 FILE *f = fopen ("conftest.val", "w");
11787 if (! f)
11788 exit (1);
11789 if (((long) (sizeof (char))) < 0)
11790 {
11791 long i = longval ();
11792 if (i != ((long) (sizeof (char))))
11793 exit (1);
11794 fprintf (f, "%ld\n", i);
11795 }
11796 else
11797 {
11798 unsigned long i = ulongval ();
11799 if (i != ((long) (sizeof (char))))
11800 exit (1);
11801 fprintf (f, "%lu\n", i);
11802 }
11803 exit (ferror (f) || fclose (f) != 0);
11804
11805 ;
11806 return 0;
11807}
11808_ACEOF
11809rm -f conftest$ac_exeext
11810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11811 (eval $ac_link) 2>&5
11812 ac_status=$?
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11816 (eval $ac_try) 2>&5
11817 ac_status=$?
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); }; }; then
11820 ac_cv_sizeof_char=`cat conftest.val`
11821else
11822 echo "$as_me: program exited with status $ac_status" >&5
11823echo "$as_me: failed program was:" >&5
11824sed 's/^/| /' conftest.$ac_ext >&5
11825
11826( exit $ac_status )
11827{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11828See \`config.log' for more details." >&5
11829echo "$as_me: error: cannot compute sizeof (char), 77
11830See \`config.log' for more details." >&2;}
11831 { (exit 1); exit 1; }; }
11832fi
11833rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11834fi
11835fi
11836rm -f conftest.val
11837else
11838 ac_cv_sizeof_char=0
11839fi
11840fi
11841echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
11842echo "${ECHO_T}$ac_cv_sizeof_char" >&6
11843cat >>confdefs.h <<_ACEOF
11844#define SIZEOF_CHAR $ac_cv_sizeof_char
11845_ACEOF
11846 7659
11847 7660
11848echo "$as_me:$LINENO: checking for short" >&5 7661echo "$as_me:$LINENO: checking for short" >&5
11849echo $ECHO_N "checking for short... $ECHO_C" >&6 7662echo $ECHO_N "checking for short... $ECHO_C" >&6
11850if test "${ac_cv_type_short+set}" = set; then 7663if test "${ac_cv_type_short+set}" = set; then
11875 grep -v '^ *+' conftest.er1 >conftest.err 7688 grep -v '^ *+' conftest.er1 >conftest.err
11876 rm -f conftest.er1 7689 rm -f conftest.er1
11877 cat conftest.err >&5 7690 cat conftest.err >&5
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); } && 7692 (exit $ac_status); } &&
11880 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7693 { ac_try='test -z "$ac_cxx_werror_flag"
7694 || test ! -s conftest.err'
11881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11882 (eval $ac_try) 2>&5 7696 (eval $ac_try) 2>&5
11883 ac_status=$? 7697 ac_status=$?
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); }; } && 7699 (exit $ac_status); }; } &&
11937 grep -v '^ *+' conftest.er1 >conftest.err 7751 grep -v '^ *+' conftest.er1 >conftest.err
11938 rm -f conftest.er1 7752 rm -f conftest.er1
11939 cat conftest.err >&5 7753 cat conftest.err >&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); } && 7755 (exit $ac_status); } &&
11942 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7756 { ac_try='test -z "$ac_cxx_werror_flag"
7757 || test ! -s conftest.err'
11943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11944 (eval $ac_try) 2>&5 7759 (eval $ac_try) 2>&5
11945 ac_status=$? 7760 ac_status=$?
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); }; } && 7762 (exit $ac_status); }; } &&
11977 grep -v '^ *+' conftest.er1 >conftest.err 7792 grep -v '^ *+' conftest.er1 >conftest.err
11978 rm -f conftest.er1 7793 rm -f conftest.er1
11979 cat conftest.err >&5 7794 cat conftest.err >&5
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); } && 7796 (exit $ac_status); } &&
11982 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7797 { ac_try='test -z "$ac_cxx_werror_flag"
7798 || test ! -s conftest.err'
11983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11984 (eval $ac_try) 2>&5 7800 (eval $ac_try) 2>&5
11985 ac_status=$? 7801 ac_status=$?
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); }; } && 7803 (exit $ac_status); }; } &&
12033 grep -v '^ *+' conftest.er1 >conftest.err 7849 grep -v '^ *+' conftest.er1 >conftest.err
12034 rm -f conftest.er1 7850 rm -f conftest.er1
12035 cat conftest.err >&5 7851 cat conftest.err >&5
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); } && 7853 (exit $ac_status); } &&
12038 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7854 { ac_try='test -z "$ac_cxx_werror_flag"
7855 || test ! -s conftest.err'
12039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12040 (eval $ac_try) 2>&5 7857 (eval $ac_try) 2>&5
12041 ac_status=$? 7858 ac_status=$?
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); }; } && 7860 (exit $ac_status); }; } &&
12073 grep -v '^ *+' conftest.er1 >conftest.err 7890 grep -v '^ *+' conftest.er1 >conftest.err
12074 rm -f conftest.er1 7891 rm -f conftest.er1
12075 cat conftest.err >&5 7892 cat conftest.err >&5
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); } && 7894 (exit $ac_status); } &&
12078 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7895 { ac_try='test -z "$ac_cxx_werror_flag"
7896 || test ! -s conftest.err'
12079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12080 (eval $ac_try) 2>&5 7898 (eval $ac_try) 2>&5
12081 ac_status=$? 7899 ac_status=$?
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); }; } && 7901 (exit $ac_status); }; } &&
12137 grep -v '^ *+' conftest.er1 >conftest.err 7955 grep -v '^ *+' conftest.er1 >conftest.err
12138 rm -f conftest.er1 7956 rm -f conftest.er1
12139 cat conftest.err >&5 7957 cat conftest.err >&5
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); } && 7959 (exit $ac_status); } &&
12142 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7960 { ac_try='test -z "$ac_cxx_werror_flag"
7961 || test ! -s conftest.err'
12143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12144 (eval $ac_try) 2>&5 7963 (eval $ac_try) 2>&5
12145 ac_status=$? 7964 ac_status=$?
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); }; } && 7966 (exit $ac_status); }; } &&
12168See \`config.log' for more details." >&2;} 7987See \`config.log' for more details." >&2;}
12169 { (exit 1); exit 1; }; } ;; 7988 { (exit 1); exit 1; }; } ;;
12170esac 7989esac
12171else 7990else
12172 if test "$cross_compiling" = yes; then 7991 if test "$cross_compiling" = yes; then
12173 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 7992 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12174echo "$as_me: error: internal error: not reached in cross-compile" >&2;} 7993See \`config.log' for more details." >&5
7994echo "$as_me: error: cannot run test program while cross compiling
7995See \`config.log' for more details." >&2;}
12175 { (exit 1); exit 1; }; } 7996 { (exit 1); exit 1; }; }
12176else 7997else
12177 cat >conftest.$ac_ext <<_ACEOF 7998 cat >conftest.$ac_ext <<_ACEOF
12178/* confdefs.h. */ 7999/* confdefs.h. */
12179_ACEOF 8000_ACEOF
12281 grep -v '^ *+' conftest.er1 >conftest.err 8102 grep -v '^ *+' conftest.er1 >conftest.err
12282 rm -f conftest.er1 8103 rm -f conftest.er1
12283 cat conftest.err >&5 8104 cat conftest.err >&5
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); } && 8106 (exit $ac_status); } &&
12286 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8107 { ac_try='test -z "$ac_cxx_werror_flag"
8108 || test ! -s conftest.err'
12287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12288 (eval $ac_try) 2>&5 8110 (eval $ac_try) 2>&5
12289 ac_status=$? 8111 ac_status=$?
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); }; } && 8113 (exit $ac_status); }; } &&
12343 grep -v '^ *+' conftest.er1 >conftest.err 8165 grep -v '^ *+' conftest.er1 >conftest.err
12344 rm -f conftest.er1 8166 rm -f conftest.er1
12345 cat conftest.err >&5 8167 cat conftest.err >&5
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); } && 8169 (exit $ac_status); } &&
12348 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8170 { ac_try='test -z "$ac_cxx_werror_flag"
8171 || test ! -s conftest.err'
12349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12350 (eval $ac_try) 2>&5 8173 (eval $ac_try) 2>&5
12351 ac_status=$? 8174 ac_status=$?
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); }; } && 8176 (exit $ac_status); }; } &&
12383 grep -v '^ *+' conftest.er1 >conftest.err 8206 grep -v '^ *+' conftest.er1 >conftest.err
12384 rm -f conftest.er1 8207 rm -f conftest.er1
12385 cat conftest.err >&5 8208 cat conftest.err >&5
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); } && 8210 (exit $ac_status); } &&
12388 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8211 { ac_try='test -z "$ac_cxx_werror_flag"
8212 || test ! -s conftest.err'
12389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12390 (eval $ac_try) 2>&5 8214 (eval $ac_try) 2>&5
12391 ac_status=$? 8215 ac_status=$?
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); }; } && 8217 (exit $ac_status); }; } &&
12439 grep -v '^ *+' conftest.er1 >conftest.err 8263 grep -v '^ *+' conftest.er1 >conftest.err
12440 rm -f conftest.er1 8264 rm -f conftest.er1
12441 cat conftest.err >&5 8265 cat conftest.err >&5
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); } && 8267 (exit $ac_status); } &&
12444 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8268 { ac_try='test -z "$ac_cxx_werror_flag"
8269 || test ! -s conftest.err'
12445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12446 (eval $ac_try) 2>&5 8271 (eval $ac_try) 2>&5
12447 ac_status=$? 8272 ac_status=$?
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); }; } && 8274 (exit $ac_status); }; } &&
12479 grep -v '^ *+' conftest.er1 >conftest.err 8304 grep -v '^ *+' conftest.er1 >conftest.err
12480 rm -f conftest.er1 8305 rm -f conftest.er1
12481 cat conftest.err >&5 8306 cat conftest.err >&5
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); } && 8308 (exit $ac_status); } &&
12484 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8309 { ac_try='test -z "$ac_cxx_werror_flag"
8310 || test ! -s conftest.err'
12485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12486 (eval $ac_try) 2>&5 8312 (eval $ac_try) 2>&5
12487 ac_status=$? 8313 ac_status=$?
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); }; } && 8315 (exit $ac_status); }; } &&
12543 grep -v '^ *+' conftest.er1 >conftest.err 8369 grep -v '^ *+' conftest.er1 >conftest.err
12544 rm -f conftest.er1 8370 rm -f conftest.er1
12545 cat conftest.err >&5 8371 cat conftest.err >&5
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); } && 8373 (exit $ac_status); } &&
12548 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8374 { ac_try='test -z "$ac_cxx_werror_flag"
8375 || test ! -s conftest.err'
12549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12550 (eval $ac_try) 2>&5 8377 (eval $ac_try) 2>&5
12551 ac_status=$? 8378 ac_status=$?
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); }; } && 8380 (exit $ac_status); }; } &&
12574See \`config.log' for more details." >&2;} 8401See \`config.log' for more details." >&2;}
12575 { (exit 1); exit 1; }; } ;; 8402 { (exit 1); exit 1; }; } ;;
12576esac 8403esac
12577else 8404else
12578 if test "$cross_compiling" = yes; then 8405 if test "$cross_compiling" = yes; then
12579 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 8406 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12580echo "$as_me: error: internal error: not reached in cross-compile" >&2;} 8407See \`config.log' for more details." >&5
8408echo "$as_me: error: cannot run test program while cross compiling
8409See \`config.log' for more details." >&2;}
12581 { (exit 1); exit 1; }; } 8410 { (exit 1); exit 1; }; }
12582else 8411else
12583 cat >conftest.$ac_ext <<_ACEOF 8412 cat >conftest.$ac_ext <<_ACEOF
12584/* confdefs.h. */ 8413/* confdefs.h. */
12585_ACEOF 8414_ACEOF
12655cat >>confdefs.h <<_ACEOF 8484cat >>confdefs.h <<_ACEOF
12656#define SIZEOF_INT $ac_cv_sizeof_int 8485#define SIZEOF_INT $ac_cv_sizeof_int
12657_ACEOF 8486_ACEOF
12658 8487
12659 8488
12660echo "$as_me:$LINENO: checking for long" >&5
12661echo $ECHO_N "checking for long... $ECHO_C" >&6
12662if test "${ac_cv_type_long+set}" = set; then
12663 echo $ECHO_N "(cached) $ECHO_C" >&6
12664else
12665 cat >conftest.$ac_ext <<_ACEOF
12666/* confdefs.h. */
12667_ACEOF
12668cat confdefs.h >>conftest.$ac_ext
12669cat >>conftest.$ac_ext <<_ACEOF
12670/* end confdefs.h. */
12671$ac_includes_default
12672int
12673main ()
12674{
12675if ((long *) 0)
12676 return 0;
12677if (sizeof (long))
12678 return 0;
12679 ;
12680 return 0;
12681}
12682_ACEOF
12683rm -f conftest.$ac_objext
12684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12685 (eval $ac_compile) 2>conftest.er1
12686 ac_status=$?
12687 grep -v '^ *+' conftest.er1 >conftest.err
12688 rm -f conftest.er1
12689 cat conftest.err >&5
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); } &&
12692 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12694 (eval $ac_try) 2>&5
12695 ac_status=$?
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); }; } &&
12698 { ac_try='test -s conftest.$ac_objext'
12699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12700 (eval $ac_try) 2>&5
12701 ac_status=$?
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); }; }; then
12704 ac_cv_type_long=yes
12705else
12706 echo "$as_me: failed program was:" >&5
12707sed 's/^/| /' conftest.$ac_ext >&5
12708
12709ac_cv_type_long=no
12710fi
12711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12712fi
12713echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12714echo "${ECHO_T}$ac_cv_type_long" >&6
12715
12716echo "$as_me:$LINENO: checking size of long" >&5
12717echo $ECHO_N "checking size of long... $ECHO_C" >&6
12718if test "${ac_cv_sizeof_long+set}" = set; then
12719 echo $ECHO_N "(cached) $ECHO_C" >&6
12720else
12721 if test "$ac_cv_type_long" = yes; then
12722 # The cast to unsigned long works around a bug in the HP C Compiler
12723 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12724 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12725 # This bug is HP SR number 8606223364.
12726 if test "$cross_compiling" = yes; then
12727 # Depending upon the size, compute the lo and hi bounds.
12728cat >conftest.$ac_ext <<_ACEOF
12729/* confdefs.h. */
12730_ACEOF
12731cat confdefs.h >>conftest.$ac_ext
12732cat >>conftest.$ac_ext <<_ACEOF
12733/* end confdefs.h. */
12734$ac_includes_default
12735int
12736main ()
12737{
12738static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12739test_array [0] = 0
12740
12741 ;
12742 return 0;
12743}
12744_ACEOF
12745rm -f conftest.$ac_objext
12746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12747 (eval $ac_compile) 2>conftest.er1
12748 ac_status=$?
12749 grep -v '^ *+' conftest.er1 >conftest.err
12750 rm -f conftest.er1
12751 cat conftest.err >&5
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); } &&
12754 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12756 (eval $ac_try) 2>&5
12757 ac_status=$?
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); }; } &&
12760 { ac_try='test -s conftest.$ac_objext'
12761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12762 (eval $ac_try) 2>&5
12763 ac_status=$?
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); }; }; then
12766 ac_lo=0 ac_mid=0
12767 while :; do
12768 cat >conftest.$ac_ext <<_ACEOF
12769/* confdefs.h. */
12770_ACEOF
12771cat confdefs.h >>conftest.$ac_ext
12772cat >>conftest.$ac_ext <<_ACEOF
12773/* end confdefs.h. */
12774$ac_includes_default
12775int
12776main ()
12777{
12778static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12779test_array [0] = 0
12780
12781 ;
12782 return 0;
12783}
12784_ACEOF
12785rm -f conftest.$ac_objext
12786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12787 (eval $ac_compile) 2>conftest.er1
12788 ac_status=$?
12789 grep -v '^ *+' conftest.er1 >conftest.err
12790 rm -f conftest.er1
12791 cat conftest.err >&5
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); } &&
12794 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12796 (eval $ac_try) 2>&5
12797 ac_status=$?
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); }; } &&
12800 { ac_try='test -s conftest.$ac_objext'
12801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12802 (eval $ac_try) 2>&5
12803 ac_status=$?
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); }; }; then
12806 ac_hi=$ac_mid; break
12807else
12808 echo "$as_me: failed program was:" >&5
12809sed 's/^/| /' conftest.$ac_ext >&5
12810
12811ac_lo=`expr $ac_mid + 1`
12812 if test $ac_lo -le $ac_mid; then
12813 ac_lo= ac_hi=
12814 break
12815 fi
12816 ac_mid=`expr 2 '*' $ac_mid + 1`
12817fi
12818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12819 done
12820else
12821 echo "$as_me: failed program was:" >&5
12822sed 's/^/| /' conftest.$ac_ext >&5
12823
12824cat >conftest.$ac_ext <<_ACEOF
12825/* confdefs.h. */
12826_ACEOF
12827cat confdefs.h >>conftest.$ac_ext
12828cat >>conftest.$ac_ext <<_ACEOF
12829/* end confdefs.h. */
12830$ac_includes_default
12831int
12832main ()
12833{
12834static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12835test_array [0] = 0
12836
12837 ;
12838 return 0;
12839}
12840_ACEOF
12841rm -f conftest.$ac_objext
12842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12843 (eval $ac_compile) 2>conftest.er1
12844 ac_status=$?
12845 grep -v '^ *+' conftest.er1 >conftest.err
12846 rm -f conftest.er1
12847 cat conftest.err >&5
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); } &&
12850 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12852 (eval $ac_try) 2>&5
12853 ac_status=$?
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); }; } &&
12856 { ac_try='test -s conftest.$ac_objext'
12857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12858 (eval $ac_try) 2>&5
12859 ac_status=$?
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); }; }; then
12862 ac_hi=-1 ac_mid=-1
12863 while :; do
12864 cat >conftest.$ac_ext <<_ACEOF
12865/* confdefs.h. */
12866_ACEOF
12867cat confdefs.h >>conftest.$ac_ext
12868cat >>conftest.$ac_ext <<_ACEOF
12869/* end confdefs.h. */
12870$ac_includes_default
12871int
12872main ()
12873{
12874static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12875test_array [0] = 0
12876
12877 ;
12878 return 0;
12879}
12880_ACEOF
12881rm -f conftest.$ac_objext
12882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12883 (eval $ac_compile) 2>conftest.er1
12884 ac_status=$?
12885 grep -v '^ *+' conftest.er1 >conftest.err
12886 rm -f conftest.er1
12887 cat conftest.err >&5
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); } &&
12890 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12892 (eval $ac_try) 2>&5
12893 ac_status=$?
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); }; } &&
12896 { ac_try='test -s conftest.$ac_objext'
12897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12898 (eval $ac_try) 2>&5
12899 ac_status=$?
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); }; }; then
12902 ac_lo=$ac_mid; break
12903else
12904 echo "$as_me: failed program was:" >&5
12905sed 's/^/| /' conftest.$ac_ext >&5
12906
12907ac_hi=`expr '(' $ac_mid ')' - 1`
12908 if test $ac_mid -le $ac_hi; then
12909 ac_lo= ac_hi=
12910 break
12911 fi
12912 ac_mid=`expr 2 '*' $ac_mid`
12913fi
12914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12915 done
12916else
12917 echo "$as_me: failed program was:" >&5
12918sed 's/^/| /' conftest.$ac_ext >&5
12919
12920ac_lo= ac_hi=
12921fi
12922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12923fi
12924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12925# Binary search between lo and hi bounds.
12926while test "x$ac_lo" != "x$ac_hi"; do
12927 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12928 cat >conftest.$ac_ext <<_ACEOF
12929/* confdefs.h. */
12930_ACEOF
12931cat confdefs.h >>conftest.$ac_ext
12932cat >>conftest.$ac_ext <<_ACEOF
12933/* end confdefs.h. */
12934$ac_includes_default
12935int
12936main ()
12937{
12938static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12939test_array [0] = 0
12940
12941 ;
12942 return 0;
12943}
12944_ACEOF
12945rm -f conftest.$ac_objext
12946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12947 (eval $ac_compile) 2>conftest.er1
12948 ac_status=$?
12949 grep -v '^ *+' conftest.er1 >conftest.err
12950 rm -f conftest.er1
12951 cat conftest.err >&5
12952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); } &&
12954 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12956 (eval $ac_try) 2>&5
12957 ac_status=$?
12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); }; } &&
12960 { ac_try='test -s conftest.$ac_objext'
12961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12962 (eval $ac_try) 2>&5
12963 ac_status=$?
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); }; }; then
12966 ac_hi=$ac_mid
12967else
12968 echo "$as_me: failed program was:" >&5
12969sed 's/^/| /' conftest.$ac_ext >&5
12970
12971ac_lo=`expr '(' $ac_mid ')' + 1`
12972fi
12973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12974done
12975case $ac_lo in
12976?*) ac_cv_sizeof_long=$ac_lo;;
12977'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12978See \`config.log' for more details." >&5
12979echo "$as_me: error: cannot compute sizeof (long), 77
12980See \`config.log' for more details." >&2;}
12981 { (exit 1); exit 1; }; } ;;
12982esac
12983else
12984 if test "$cross_compiling" = yes; then
12985 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12986echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12987 { (exit 1); exit 1; }; }
12988else
12989 cat >conftest.$ac_ext <<_ACEOF
12990/* confdefs.h. */
12991_ACEOF
12992cat confdefs.h >>conftest.$ac_ext
12993cat >>conftest.$ac_ext <<_ACEOF
12994/* end confdefs.h. */
12995$ac_includes_default
12996long longval () { return (long) (sizeof (long)); }
12997unsigned long ulongval () { return (long) (sizeof (long)); }
12998#include <stdio.h>
12999#include <stdlib.h>
13000int
13001main ()
13002{
13003
13004 FILE *f = fopen ("conftest.val", "w");
13005 if (! f)
13006 exit (1);
13007 if (((long) (sizeof (long))) < 0)
13008 {
13009 long i = longval ();
13010 if (i != ((long) (sizeof (long))))
13011 exit (1);
13012 fprintf (f, "%ld\n", i);
13013 }
13014 else
13015 {
13016 unsigned long i = ulongval ();
13017 if (i != ((long) (sizeof (long))))
13018 exit (1);
13019 fprintf (f, "%lu\n", i);
13020 }
13021 exit (ferror (f) || fclose (f) != 0);
13022
13023 ;
13024 return 0;
13025}
13026_ACEOF
13027rm -f conftest$ac_exeext
13028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13029 (eval $ac_link) 2>&5
13030 ac_status=$?
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13034 (eval $ac_try) 2>&5
13035 ac_status=$?
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); }; }; then
13038 ac_cv_sizeof_long=`cat conftest.val`
13039else
13040 echo "$as_me: program exited with status $ac_status" >&5
13041echo "$as_me: failed program was:" >&5
13042sed 's/^/| /' conftest.$ac_ext >&5
13043
13044( exit $ac_status )
13045{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13046See \`config.log' for more details." >&5
13047echo "$as_me: error: cannot compute sizeof (long), 77
13048See \`config.log' for more details." >&2;}
13049 { (exit 1); exit 1; }; }
13050fi
13051rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13052fi
13053fi
13054rm -f conftest.val
13055else
13056 ac_cv_sizeof_long=0
13057fi
13058fi
13059echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13060echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13061cat >>confdefs.h <<_ACEOF
13062#define SIZEOF_LONG $ac_cv_sizeof_long
13063_ACEOF
13064
13065
13066echo "$as_me:$LINENO: checking for long long" >&5 8489echo "$as_me:$LINENO: checking for long long" >&5
13067echo $ECHO_N "checking for long long... $ECHO_C" >&6 8490echo $ECHO_N "checking for long long... $ECHO_C" >&6
13068if test "${ac_cv_type_long_long+set}" = set; then 8491if test "${ac_cv_type_long_long+set}" = set; then
13069 echo $ECHO_N "(cached) $ECHO_C" >&6 8492 echo $ECHO_N "(cached) $ECHO_C" >&6
13070else 8493else
13093 grep -v '^ *+' conftest.er1 >conftest.err 8516 grep -v '^ *+' conftest.er1 >conftest.err
13094 rm -f conftest.er1 8517 rm -f conftest.er1
13095 cat conftest.err >&5 8518 cat conftest.err >&5
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); } && 8520 (exit $ac_status); } &&
13098 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8521 { ac_try='test -z "$ac_cxx_werror_flag"
8522 || test ! -s conftest.err'
13099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13100 (eval $ac_try) 2>&5 8524 (eval $ac_try) 2>&5
13101 ac_status=$? 8525 ac_status=$?
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); }; } && 8527 (exit $ac_status); }; } &&
13155 grep -v '^ *+' conftest.er1 >conftest.err 8579 grep -v '^ *+' conftest.er1 >conftest.err
13156 rm -f conftest.er1 8580 rm -f conftest.er1
13157 cat conftest.err >&5 8581 cat conftest.err >&5
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); } && 8583 (exit $ac_status); } &&
13160 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8584 { ac_try='test -z "$ac_cxx_werror_flag"
8585 || test ! -s conftest.err'
13161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13162 (eval $ac_try) 2>&5 8587 (eval $ac_try) 2>&5
13163 ac_status=$? 8588 ac_status=$?
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); }; } && 8590 (exit $ac_status); }; } &&
13195 grep -v '^ *+' conftest.er1 >conftest.err 8620 grep -v '^ *+' conftest.er1 >conftest.err
13196 rm -f conftest.er1 8621 rm -f conftest.er1
13197 cat conftest.err >&5 8622 cat conftest.err >&5
13198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); } && 8624 (exit $ac_status); } &&
13200 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8625 { ac_try='test -z "$ac_cxx_werror_flag"
8626 || test ! -s conftest.err'
13201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13202 (eval $ac_try) 2>&5 8628 (eval $ac_try) 2>&5
13203 ac_status=$? 8629 ac_status=$?
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); }; } && 8631 (exit $ac_status); }; } &&
13251 grep -v '^ *+' conftest.er1 >conftest.err 8677 grep -v '^ *+' conftest.er1 >conftest.err
13252 rm -f conftest.er1 8678 rm -f conftest.er1
13253 cat conftest.err >&5 8679 cat conftest.err >&5
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); } && 8681 (exit $ac_status); } &&
13256 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8682 { ac_try='test -z "$ac_cxx_werror_flag"
8683 || test ! -s conftest.err'
13257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13258 (eval $ac_try) 2>&5 8685 (eval $ac_try) 2>&5
13259 ac_status=$? 8686 ac_status=$?
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); }; } && 8688 (exit $ac_status); }; } &&
13291 grep -v '^ *+' conftest.er1 >conftest.err 8718 grep -v '^ *+' conftest.er1 >conftest.err
13292 rm -f conftest.er1 8719 rm -f conftest.er1
13293 cat conftest.err >&5 8720 cat conftest.err >&5
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); } && 8722 (exit $ac_status); } &&
13296 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8723 { ac_try='test -z "$ac_cxx_werror_flag"
8724 || test ! -s conftest.err'
13297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13298 (eval $ac_try) 2>&5 8726 (eval $ac_try) 2>&5
13299 ac_status=$? 8727 ac_status=$?
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); }; } && 8729 (exit $ac_status); }; } &&
13355 grep -v '^ *+' conftest.er1 >conftest.err 8783 grep -v '^ *+' conftest.er1 >conftest.err
13356 rm -f conftest.er1 8784 rm -f conftest.er1
13357 cat conftest.err >&5 8785 cat conftest.err >&5
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); } && 8787 (exit $ac_status); } &&
13360 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8788 { ac_try='test -z "$ac_cxx_werror_flag"
8789 || test ! -s conftest.err'
13361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13362 (eval $ac_try) 2>&5 8791 (eval $ac_try) 2>&5
13363 ac_status=$? 8792 ac_status=$?
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 (exit $ac_status); }; } && 8794 (exit $ac_status); }; } &&
13386See \`config.log' for more details." >&2;} 8815See \`config.log' for more details." >&2;}
13387 { (exit 1); exit 1; }; } ;; 8816 { (exit 1); exit 1; }; } ;;
13388esac 8817esac
13389else 8818else
13390 if test "$cross_compiling" = yes; then 8819 if test "$cross_compiling" = yes; then
13391 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 8820 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13392echo "$as_me: error: internal error: not reached in cross-compile" >&2;} 8821See \`config.log' for more details." >&5
8822echo "$as_me: error: cannot run test program while cross compiling
8823See \`config.log' for more details." >&2;}
13393 { (exit 1); exit 1; }; } 8824 { (exit 1); exit 1; }; }
13394else 8825else
13395 cat >conftest.$ac_ext <<_ACEOF 8826 cat >conftest.$ac_ext <<_ACEOF
13396/* confdefs.h. */ 8827/* confdefs.h. */
13397_ACEOF 8828_ACEOF
13499 grep -v '^ *+' conftest.er1 >conftest.err 8930 grep -v '^ *+' conftest.er1 >conftest.err
13500 rm -f conftest.er1 8931 rm -f conftest.er1
13501 cat conftest.err >&5 8932 cat conftest.err >&5
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); } && 8934 (exit $ac_status); } &&
13504 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8935 { ac_try='test -z "$ac_cxx_werror_flag"
8936 || test ! -s conftest.err'
13505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13506 (eval $ac_try) 2>&5 8938 (eval $ac_try) 2>&5
13507 ac_status=$? 8939 ac_status=$?
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); }; } && 8941 (exit $ac_status); }; } &&
13561 grep -v '^ *+' conftest.er1 >conftest.err 8993 grep -v '^ *+' conftest.er1 >conftest.err
13562 rm -f conftest.er1 8994 rm -f conftest.er1
13563 cat conftest.err >&5 8995 cat conftest.err >&5
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); } && 8997 (exit $ac_status); } &&
13566 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8998 { ac_try='test -z "$ac_cxx_werror_flag"
8999 || test ! -s conftest.err'
13567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13568 (eval $ac_try) 2>&5 9001 (eval $ac_try) 2>&5
13569 ac_status=$? 9002 ac_status=$?
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); }; } && 9004 (exit $ac_status); }; } &&
13601 grep -v '^ *+' conftest.er1 >conftest.err 9034 grep -v '^ *+' conftest.er1 >conftest.err
13602 rm -f conftest.er1 9035 rm -f conftest.er1
13603 cat conftest.err >&5 9036 cat conftest.err >&5
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); } && 9038 (exit $ac_status); } &&
13606 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9039 { ac_try='test -z "$ac_cxx_werror_flag"
9040 || test ! -s conftest.err'
13607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13608 (eval $ac_try) 2>&5 9042 (eval $ac_try) 2>&5
13609 ac_status=$? 9043 ac_status=$?
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); }; } && 9045 (exit $ac_status); }; } &&
13657 grep -v '^ *+' conftest.er1 >conftest.err 9091 grep -v '^ *+' conftest.er1 >conftest.err
13658 rm -f conftest.er1 9092 rm -f conftest.er1
13659 cat conftest.err >&5 9093 cat conftest.err >&5
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); } && 9095 (exit $ac_status); } &&
13662 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9096 { ac_try='test -z "$ac_cxx_werror_flag"
9097 || test ! -s conftest.err'
13663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13664 (eval $ac_try) 2>&5 9099 (eval $ac_try) 2>&5
13665 ac_status=$? 9100 ac_status=$?
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); }; } && 9102 (exit $ac_status); }; } &&
13697 grep -v '^ *+' conftest.er1 >conftest.err 9132 grep -v '^ *+' conftest.er1 >conftest.err
13698 rm -f conftest.er1 9133 rm -f conftest.er1
13699 cat conftest.err >&5 9134 cat conftest.err >&5
13700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701 (exit $ac_status); } && 9136 (exit $ac_status); } &&
13702 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9137 { ac_try='test -z "$ac_cxx_werror_flag"
9138 || test ! -s conftest.err'
13703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13704 (eval $ac_try) 2>&5 9140 (eval $ac_try) 2>&5
13705 ac_status=$? 9141 ac_status=$?
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); }; } && 9143 (exit $ac_status); }; } &&
13761 grep -v '^ *+' conftest.er1 >conftest.err 9197 grep -v '^ *+' conftest.er1 >conftest.err
13762 rm -f conftest.er1 9198 rm -f conftest.er1
13763 cat conftest.err >&5 9199 cat conftest.err >&5
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); } && 9201 (exit $ac_status); } &&
13766 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9202 { ac_try='test -z "$ac_cxx_werror_flag"
9203 || test ! -s conftest.err'
13767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13768 (eval $ac_try) 2>&5 9205 (eval $ac_try) 2>&5
13769 ac_status=$? 9206 ac_status=$?
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); }; } && 9208 (exit $ac_status); }; } &&
13792See \`config.log' for more details." >&2;} 9229See \`config.log' for more details." >&2;}
13793 { (exit 1); exit 1; }; } ;; 9230 { (exit 1); exit 1; }; } ;;
13794esac 9231esac
13795else 9232else
13796 if test "$cross_compiling" = yes; then 9233 if test "$cross_compiling" = yes; then
13797 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 9234 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13798echo "$as_me: error: internal error: not reached in cross-compile" >&2;} 9235See \`config.log' for more details." >&5
9236echo "$as_me: error: cannot run test program while cross compiling
9237See \`config.log' for more details." >&2;}
13799 { (exit 1); exit 1; }; } 9238 { (exit 1); exit 1; }; }
13800else 9239else
13801 cat >conftest.$ac_ext <<_ACEOF 9240 cat >conftest.$ac_ext <<_ACEOF
13802/* confdefs.h. */ 9241/* confdefs.h. */
13803_ACEOF 9242_ACEOF
13904 grep -v '^ *+' conftest.er1 >conftest.err 9343 grep -v '^ *+' conftest.er1 >conftest.err
13905 rm -f conftest.er1 9344 rm -f conftest.er1
13906 cat conftest.err >&5 9345 cat conftest.err >&5
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); } && 9347 (exit $ac_status); } &&
13909 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9348 { ac_try='test -z "$ac_cxx_werror_flag"
9349 || test ! -s conftest.err'
13910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13911 (eval $ac_try) 2>&5 9351 (eval $ac_try) 2>&5
13912 ac_status=$? 9352 ac_status=$?
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); }; } && 9354 (exit $ac_status); }; } &&
13921 rxvt_cv_int16_t=yes 9361 rxvt_cv_int16_t=yes
13922else 9362else
13923 echo "$as_me: failed program was:" >&5 9363 echo "$as_me: failed program was:" >&5
13924sed 's/^/| /' conftest.$ac_ext >&5 9364sed 's/^/| /' conftest.$ac_ext >&5
13925 9365
13926if test $ac_cv_sizeof_char -ge 2; then 9366if test "$ac_cv_sizeof_char" -ge 2; then
13927 rxvt_cv_int16_t=" char" 9367 rxvt_cv_int16_t=" char"
13928else 9368else
13929 if test $ac_cv_sizeof_short -ge 2; then 9369 if test "$ac_cv_sizeof_short" -ge 2; then
13930 rxvt_cv_int16_t=" short" 9370 rxvt_cv_int16_t=" short"
13931 else 9371 else
13932 if test $ac_cv_sizeof_int -ge 2; then 9372 if test "$ac_cv_sizeof_int" -ge 2; then
13933 rxvt_cv_int16_t=" int" 9373 rxvt_cv_int16_t=" int"
13934 else 9374 else
13935 if test $ac_cv_sizeof_long -ge 2; then 9375 if test "$ac_cv_sizeof_long" -ge 2; then
13936 rxvt_cv_int16_t=" long" 9376 rxvt_cv_int16_t=" long"
13937 else 9377 else
13938 if test $ac_cv_sizeof_long_long -ge 2; then 9378 if test "$ac_cv_sizeof_long_long" -ge 2; then
13939 rxvt_cv_int16_t=" long long" 9379 rxvt_cv_int16_t=" long long"
13940 else 9380 else
13941 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default 9381 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
13942 fi 9382 fi
13943 fi 9383 fi
13986 grep -v '^ *+' conftest.er1 >conftest.err 9426 grep -v '^ *+' conftest.er1 >conftest.err
13987 rm -f conftest.er1 9427 rm -f conftest.er1
13988 cat conftest.err >&5 9428 cat conftest.err >&5
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); } && 9430 (exit $ac_status); } &&
13991 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9431 { ac_try='test -z "$ac_cxx_werror_flag"
9432 || test ! -s conftest.err'
13992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13993 (eval $ac_try) 2>&5 9434 (eval $ac_try) 2>&5
13994 ac_status=$? 9435 ac_status=$?
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); }; } && 9437 (exit $ac_status); }; } &&
14003 rxvt_cv_uint16_t=yes 9444 rxvt_cv_uint16_t=yes
14004else 9445else
14005 echo "$as_me: failed program was:" >&5 9446 echo "$as_me: failed program was:" >&5
14006sed 's/^/| /' conftest.$ac_ext >&5 9447sed 's/^/| /' conftest.$ac_ext >&5
14007 9448
14008if test $ac_cv_sizeof_char -ge 2; then 9449if test "$ac_cv_sizeof_char" -ge 2; then
14009 rxvt_cv_uint16_t="unsigned char" 9450 rxvt_cv_uint16_t="unsigned char"
14010else 9451else
14011 if test $ac_cv_sizeof_short -ge 2; then 9452 if test "$ac_cv_sizeof_short" -ge 2; then
14012 rxvt_cv_uint16_t="unsigned short" 9453 rxvt_cv_uint16_t="unsigned short"
14013 else 9454 else
14014 if test $ac_cv_sizeof_int -ge 2; then 9455 if test "$ac_cv_sizeof_int" -ge 2; then
14015 rxvt_cv_uint16_t="unsigned int" 9456 rxvt_cv_uint16_t="unsigned int"
14016 else 9457 else
14017 if test $ac_cv_sizeof_long -ge 2; then 9458 if test "$ac_cv_sizeof_long" -ge 2; then
14018 rxvt_cv_uint16_t="unsigned long" 9459 rxvt_cv_uint16_t="unsigned long"
14019 else 9460 else
14020 if test $ac_cv_sizeof_long_long -ge 2; then 9461 if test "$ac_cv_sizeof_long_long" -ge 2; then
14021 rxvt_cv_uint16_t="unsigned long long" 9462 rxvt_cv_uint16_t="unsigned long long"
14022 else 9463 else
14023 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default 9464 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
14024 fi 9465 fi
14025 fi 9466 fi
14068 grep -v '^ *+' conftest.er1 >conftest.err 9509 grep -v '^ *+' conftest.er1 >conftest.err
14069 rm -f conftest.er1 9510 rm -f conftest.er1
14070 cat conftest.err >&5 9511 cat conftest.err >&5
14071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072 (exit $ac_status); } && 9513 (exit $ac_status); } &&
14073 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9514 { ac_try='test -z "$ac_cxx_werror_flag"
9515 || test ! -s conftest.err'
14074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14075 (eval $ac_try) 2>&5 9517 (eval $ac_try) 2>&5
14076 ac_status=$? 9518 ac_status=$?
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); }; } && 9520 (exit $ac_status); }; } &&
14085 rxvt_cv_int32_t=yes 9527 rxvt_cv_int32_t=yes
14086else 9528else
14087 echo "$as_me: failed program was:" >&5 9529 echo "$as_me: failed program was:" >&5
14088sed 's/^/| /' conftest.$ac_ext >&5 9530sed 's/^/| /' conftest.$ac_ext >&5
14089 9531
14090if test $ac_cv_sizeof_char -ge 4; then 9532if test "$ac_cv_sizeof_char" -ge 4; then
14091 rxvt_cv_int32_t=" char" 9533 rxvt_cv_int32_t=" char"
14092else 9534else
14093 if test $ac_cv_sizeof_short -ge 4; then 9535 if test "$ac_cv_sizeof_short" -ge 4; then
14094 rxvt_cv_int32_t=" short" 9536 rxvt_cv_int32_t=" short"
14095 else 9537 else
14096 if test $ac_cv_sizeof_int -ge 4; then 9538 if test "$ac_cv_sizeof_int" -ge 4; then
14097 rxvt_cv_int32_t=" int" 9539 rxvt_cv_int32_t=" int"
14098 else 9540 else
14099 if test $ac_cv_sizeof_long -ge 4; then 9541 if test "$ac_cv_sizeof_long" -ge 4; then
14100 rxvt_cv_int32_t=" long" 9542 rxvt_cv_int32_t=" long"
14101 else 9543 else
14102 if test $ac_cv_sizeof_long_long -ge 4; then 9544 if test "$ac_cv_sizeof_long_long" -ge 4; then
14103 rxvt_cv_int32_t=" long long" 9545 rxvt_cv_int32_t=" long long"
14104 else 9546 else
14105 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default 9547 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
14106 fi 9548 fi
14107 fi 9549 fi
14150 grep -v '^ *+' conftest.er1 >conftest.err 9592 grep -v '^ *+' conftest.er1 >conftest.err
14151 rm -f conftest.er1 9593 rm -f conftest.er1
14152 cat conftest.err >&5 9594 cat conftest.err >&5
14153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); } && 9596 (exit $ac_status); } &&
14155 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9597 { ac_try='test -z "$ac_cxx_werror_flag"
9598 || test ! -s conftest.err'
14156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14157 (eval $ac_try) 2>&5 9600 (eval $ac_try) 2>&5
14158 ac_status=$? 9601 ac_status=$?
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); }; } && 9603 (exit $ac_status); }; } &&
14167 rxvt_cv_uint32_t=yes 9610 rxvt_cv_uint32_t=yes
14168else 9611else
14169 echo "$as_me: failed program was:" >&5 9612 echo "$as_me: failed program was:" >&5
14170sed 's/^/| /' conftest.$ac_ext >&5 9613sed 's/^/| /' conftest.$ac_ext >&5
14171 9614
14172if test $ac_cv_sizeof_char -ge 4; then 9615if test "$ac_cv_sizeof_char" -ge 4; then
14173 rxvt_cv_uint32_t="unsigned char" 9616 rxvt_cv_uint32_t="unsigned char"
14174else 9617else
14175 if test $ac_cv_sizeof_short -ge 4; then 9618 if test "$ac_cv_sizeof_short" -ge 4; then
14176 rxvt_cv_uint32_t="unsigned short" 9619 rxvt_cv_uint32_t="unsigned short"
14177 else 9620 else
14178 if test $ac_cv_sizeof_int -ge 4; then 9621 if test "$ac_cv_sizeof_int" -ge 4; then
14179 rxvt_cv_uint32_t="unsigned int" 9622 rxvt_cv_uint32_t="unsigned int"
14180 else 9623 else
14181 if test $ac_cv_sizeof_long -ge 4; then 9624 if test "$ac_cv_sizeof_long" -ge 4; then
14182 rxvt_cv_uint32_t="unsigned long" 9625 rxvt_cv_uint32_t="unsigned long"
14183 else 9626 else
14184 if test $ac_cv_sizeof_long_long -ge 4; then 9627 if test "$ac_cv_sizeof_long_long" -ge 4; then
14185 rxvt_cv_uint32_t="unsigned long long" 9628 rxvt_cv_uint32_t="unsigned long long"
14186 else 9629 else
14187 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default 9630 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
14188 fi 9631 fi
14189 fi 9632 fi
14203 else 9646 else
14204 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" 9647 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
14205 fi 9648 fi
14206fi 9649fi
14207 9650
14208if test $ac_cv_sizeof_int_p -eq 8; then 9651if test "$ac_cv_sizeof_int_p" -eq 8; then
14209 rxvt_intp_define="#define intp_t int64_t" 9652 rxvt_intp_define="#define intp_t int64_t"
14210 rxvt_u_intp_define="#define u_intp_t u_int64_t" 9653 rxvt_u_intp_define="#define u_intp_t u_int64_t"
14211else 9654else
14212 if test $ac_cv_sizeof_int_p -eq 4; then 9655 if test "$ac_cv_sizeof_int_p" -eq 4; then
14213 rxvt_intp_define="#define intp_t int32_t" 9656 rxvt_intp_define="#define intp_t int32_t"
14214 rxvt_u_intp_define="#define u_intp_t u_int32_t" 9657 rxvt_u_intp_define="#define u_intp_t u_int32_t"
14215 else 9658 else
14216 if test $ac_cv_sizeof_int_p -eq 2; then 9659 if test "$ac_cv_sizeof_int_p" -eq 2; then
14217 rxvt_intp_define="#define intp_t int16_t" 9660 rxvt_intp_define="#define intp_t int16_t"
14218 rxvt_u_intp_define="#define u_intp_t u_int16_t" 9661 rxvt_u_intp_define="#define u_intp_t u_int16_t"
14219 else 9662 else
14220 rxvt_intp_define="#error set intp_t" 9663 rxvt_intp_define="#error set intp_t"
14221 rxvt_u_intp_define="#error set u_intp_t" 9664 rxvt_u_intp_define="#error set u_intp_t"
14262 grep -v '^ *+' conftest.er1 >conftest.err 9705 grep -v '^ *+' conftest.er1 >conftest.err
14263 rm -f conftest.er1 9706 rm -f conftest.er1
14264 cat conftest.err >&5 9707 cat conftest.err >&5
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); } && 9709 (exit $ac_status); } &&
14267 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9710 { ac_try='test -z "$ac_cxx_werror_flag"
9711 || test ! -s conftest.err'
14268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14269 (eval $ac_try) 2>&5 9713 (eval $ac_try) 2>&5
14270 ac_status=$? 9714 ac_status=$?
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); }; } && 9716 (exit $ac_status); }; } &&
14292#define RETSIGTYPE $ac_cv_type_signal 9736#define RETSIGTYPE $ac_cv_type_signal
14293_ACEOF 9737_ACEOF
14294 9738
14295 9739
14296 9740
14297case "$host_alias" in
14298 *ultrix) ac_cv_func_setsid='no' ;;
14299 *) break;;
14300esac
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317 9741
14318 9742
14319 9743
14320for ac_func in \ 9744for ac_func in \
14321 atexit \
14322 revoke \
14323 unsetenv \ 9745 unsetenv \
14324 setutent \ 9746 setutent \
14325 seteuid \
14326 setreuid \
14327 setsid \
14328 setpgrp \
14329 setpgid \
14330 openpty \
14331 _getpty \
14332 grantpt \
14333 unlockpt \
14334 isastream \
14335 on_exit \ 9747 on_exit \
14336 nanosleep \
14337 updwtmp \
14338 ttyslot \
14339 9748
14340do 9749do
14341as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9750as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14342echo "$as_me:$LINENO: checking for $ac_func" >&5 9751echo "$as_me:$LINENO: checking for $ac_func" >&5
14343echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9752echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14402 grep -v '^ *+' conftest.er1 >conftest.err 9811 grep -v '^ *+' conftest.er1 >conftest.err
14403 rm -f conftest.er1 9812 rm -f conftest.er1
14404 cat conftest.err >&5 9813 cat conftest.err >&5
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); } && 9815 (exit $ac_status); } &&
14407 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9816 { ac_try='test -z "$ac_cxx_werror_flag"
9817 || test ! -s conftest.err'
14408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14409 (eval $ac_try) 2>&5 9819 (eval $ac_try) 2>&5
14410 ac_status=$? 9820 ac_status=$?
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); }; } && 9822 (exit $ac_status); }; } &&
14436fi 9846fi
14437done 9847done
14438 9848
14439 9849
14440 9850
9851support_utmp=yes
9852support_wtmp=yes
9853support_lastlog=yes
9854
9855# Check whether --enable-utmp or --disable-utmp was given.
9856if test "${enable_utmp+set}" = set; then
9857 enableval="$enable_utmp"
9858 if test x$enableval = xyes -o x$enableval = xno; then
9859 support_utmp=$enableval
9860 fi
9861fi;
9862
9863# Check whether --enable-wtmp or --disable-wtmp was given.
9864if test "${enable_wtmp+set}" = set; then
9865 enableval="$enable_wtmp"
9866 if test x$enableval = xyes -o x$enableval = xno; then
9867 support_wtmp=$enableval
9868 fi
9869fi;
9870
9871# Check whether --enable-lastlog or --disable-lastlog was given.
9872if test "${enable_lastlog+set}" = set; then
9873 enableval="$enable_lastlog"
9874 if test x$enableval = xyes -o x$enableval = xno; then
9875 support_lastlog=$enableval
9876 fi
9877fi;
9878
9879if test x$support_utmp = xyes; then
9880
9881cat >>confdefs.h <<\_ACEOF
9882#define UTMP_SUPPORT 1
9883_ACEOF
9884
9885fi
9886if test x$support_wtmp = xyes; then
9887
9888cat >>confdefs.h <<\_ACEOF
9889#define WTMP_SUPPORT 1
9890_ACEOF
9891
9892fi
9893if test x$support_lastlog = xyes; then
9894
9895cat >>confdefs.h <<\_ACEOF
9896#define LASTLOG_SUPPORT 1
9897_ACEOF
9898
9899fi
9900
9901
9902
9903
9904for ac_func in \
9905 ttyslot \
9906 updwtmp \
9907 updwtmpx \
9908
9909do
9910as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9911echo "$as_me:$LINENO: checking for $ac_func" >&5
9912echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9913if eval "test \"\${$as_ac_var+set}\" = set"; then
9914 echo $ECHO_N "(cached) $ECHO_C" >&6
9915else
9916 cat >conftest.$ac_ext <<_ACEOF
9917/* confdefs.h. */
9918_ACEOF
9919cat confdefs.h >>conftest.$ac_ext
9920cat >>conftest.$ac_ext <<_ACEOF
9921/* end confdefs.h. */
9922/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9924#define $ac_func innocuous_$ac_func
9925
9926/* System header to define __stub macros and hopefully few prototypes,
9927 which can conflict with char $ac_func (); below.
9928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9929 <limits.h> exists even on freestanding compilers. */
9930
9931#ifdef __STDC__
9932# include <limits.h>
9933#else
9934# include <assert.h>
9935#endif
9936
9937#undef $ac_func
9938
9939/* Override any gcc2 internal prototype to avoid an error. */
9940#ifdef __cplusplus
9941extern "C"
9942{
9943#endif
9944/* We use char because int might match the return type of a gcc2
9945 builtin and then its argument prototype would still apply. */
9946char $ac_func ();
9947/* The GNU C library defines this for functions which it implements
9948 to always fail with ENOSYS. Some functions are actually named
9949 something starting with __ and the normal name is an alias. */
9950#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9951choke me
9952#else
9953char (*f) () = $ac_func;
9954#endif
9955#ifdef __cplusplus
9956}
9957#endif
9958
9959int
9960main ()
9961{
9962return f != $ac_func;
9963 ;
9964 return 0;
9965}
9966_ACEOF
9967rm -f conftest.$ac_objext conftest$ac_exeext
9968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9969 (eval $ac_link) 2>conftest.er1
9970 ac_status=$?
9971 grep -v '^ *+' conftest.er1 >conftest.err
9972 rm -f conftest.er1
9973 cat conftest.err >&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); } &&
9976 { ac_try='test -z "$ac_cxx_werror_flag"
9977 || test ! -s conftest.err'
9978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9979 (eval $ac_try) 2>&5
9980 ac_status=$?
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); }; } &&
9983 { ac_try='test -s conftest$ac_exeext'
9984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985 (eval $ac_try) 2>&5
9986 ac_status=$?
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; }; then
9989 eval "$as_ac_var=yes"
9990else
9991 echo "$as_me: failed program was:" >&5
9992sed 's/^/| /' conftest.$ac_ext >&5
9993
9994eval "$as_ac_var=no"
9995fi
9996rm -f conftest.err conftest.$ac_objext \
9997 conftest$ac_exeext conftest.$ac_ext
9998fi
9999echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10000echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10001if test `eval echo '${'$as_ac_var'}'` = yes; then
10002 cat >>confdefs.h <<_ACEOF
10003#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10004_ACEOF
10005
10006fi
10007done
10008
10009
10010
10011
10012
10013for ac_header in \
10014 utmp.h \
10015 utmpx.h \
10016 lastlog.h \
10017
10018do
10019as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10020if eval "test \"\${$as_ac_Header+set}\" = set"; then
10021 echo "$as_me:$LINENO: checking for $ac_header" >&5
10022echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10023if eval "test \"\${$as_ac_Header+set}\" = set"; then
10024 echo $ECHO_N "(cached) $ECHO_C" >&6
10025fi
10026echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10027echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10028else
10029 # Is the header compilable?
10030echo "$as_me:$LINENO: checking $ac_header usability" >&5
10031echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10032cat >conftest.$ac_ext <<_ACEOF
10033/* confdefs.h. */
10034_ACEOF
10035cat confdefs.h >>conftest.$ac_ext
10036cat >>conftest.$ac_ext <<_ACEOF
10037/* end confdefs.h. */
10038$ac_includes_default
10039#include <$ac_header>
10040_ACEOF
10041rm -f conftest.$ac_objext
10042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10043 (eval $ac_compile) 2>conftest.er1
10044 ac_status=$?
10045 grep -v '^ *+' conftest.er1 >conftest.err
10046 rm -f conftest.er1
10047 cat conftest.err >&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); } &&
10050 { ac_try='test -z "$ac_cxx_werror_flag"
10051 || test ! -s conftest.err'
10052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10053 (eval $ac_try) 2>&5
10054 ac_status=$?
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); }; } &&
10057 { ac_try='test -s conftest.$ac_objext'
10058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10059 (eval $ac_try) 2>&5
10060 ac_status=$?
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); }; }; then
10063 ac_header_compiler=yes
10064else
10065 echo "$as_me: failed program was:" >&5
10066sed 's/^/| /' conftest.$ac_ext >&5
10067
10068ac_header_compiler=no
10069fi
10070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10071echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10072echo "${ECHO_T}$ac_header_compiler" >&6
10073
10074# Is the header present?
10075echo "$as_me:$LINENO: checking $ac_header presence" >&5
10076echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10077cat >conftest.$ac_ext <<_ACEOF
10078/* confdefs.h. */
10079_ACEOF
10080cat confdefs.h >>conftest.$ac_ext
10081cat >>conftest.$ac_ext <<_ACEOF
10082/* end confdefs.h. */
10083#include <$ac_header>
10084_ACEOF
10085if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10087 ac_status=$?
10088 grep -v '^ *+' conftest.er1 >conftest.err
10089 rm -f conftest.er1
10090 cat conftest.err >&5
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); } >/dev/null; then
10093 if test -s conftest.err; then
10094 ac_cpp_err=$ac_cxx_preproc_warn_flag
10095 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10096 else
10097 ac_cpp_err=
10098 fi
10099else
10100 ac_cpp_err=yes
10101fi
10102if test -z "$ac_cpp_err"; then
10103 ac_header_preproc=yes
10104else
10105 echo "$as_me: failed program was:" >&5
10106sed 's/^/| /' conftest.$ac_ext >&5
10107
10108 ac_header_preproc=no
10109fi
10110rm -f conftest.err conftest.$ac_ext
10111echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10112echo "${ECHO_T}$ac_header_preproc" >&6
10113
10114# So? What about this header?
10115case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10116 yes:no: )
10117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10118echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10120echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10121 ac_header_preproc=yes
10122 ;;
10123 no:yes:* )
10124 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10125echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10126 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10127echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10128 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10129echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10130 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10131echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10133echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10134 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10135echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10136 (
10137 cat <<\_ASBOX
10138## ------------------------------------------ ##
10139## Report this to the AC_PACKAGE_NAME lists. ##
10140## ------------------------------------------ ##
10141_ASBOX
10142 ) |
10143 sed "s/^/$as_me: WARNING: /" >&2
10144 ;;
10145esac
10146echo "$as_me:$LINENO: checking for $ac_header" >&5
10147echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10148if eval "test \"\${$as_ac_Header+set}\" = set"; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10150else
10151 eval "$as_ac_Header=\$ac_header_preproc"
10152fi
10153echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10154echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10155
10156fi
10157if test `eval echo '${'$as_ac_Header'}'` = yes; then
10158 cat >>confdefs.h <<_ACEOF
10159#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10160_ACEOF
10161
10162fi
10163
10164done
10165
10166
10167
14441if test "${ac_cv_header_utmp_h+set}" = set; then 10168if test "${ac_cv_header_utmp_h+set}" = set; then
14442 echo "$as_me:$LINENO: checking for utmp.h" >&5 10169 echo "$as_me:$LINENO: checking for utmp.h" >&5
14443echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6 10170echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
14444if test "${ac_cv_header_utmp_h+set}" = set; then 10171if test "${ac_cv_header_utmp_h+set}" = set; then
14445 echo $ECHO_N "(cached) $ECHO_C" >&6 10172 echo $ECHO_N "(cached) $ECHO_C" >&6
14466 grep -v '^ *+' conftest.er1 >conftest.err 10193 grep -v '^ *+' conftest.er1 >conftest.err
14467 rm -f conftest.er1 10194 rm -f conftest.er1
14468 cat conftest.err >&5 10195 cat conftest.err >&5
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); } && 10197 (exit $ac_status); } &&
14471 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10198 { ac_try='test -z "$ac_cxx_werror_flag"
10199 || test ! -s conftest.err'
14472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14473 (eval $ac_try) 2>&5 10201 (eval $ac_try) 2>&5
14474 ac_status=$? 10202 ac_status=$?
14475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 (exit $ac_status); }; } && 10204 (exit $ac_status); }; } &&
14575 10303
14576fi 10304fi
14577if test $ac_cv_header_utmp_h = yes; then 10305if test $ac_cv_header_utmp_h = yes; then
14578 echo "$as_me:$LINENO: checking for struct utmp" >&5 10306 echo "$as_me:$LINENO: checking for struct utmp" >&5
14579echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6 10307echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6
14580if test "${rxvt_cv_struct_utmp+set}" = set; then 10308if test "${struct_utmp+set}" = set; then
14581 echo $ECHO_N "(cached) $ECHO_C" >&6 10309 echo $ECHO_N "(cached) $ECHO_C" >&6
14582else 10310else
14583 cat >conftest.$ac_ext <<_ACEOF 10311 cat >conftest.$ac_ext <<_ACEOF
14584/* confdefs.h. */ 10312/* confdefs.h. */
14585_ACEOF 10313_ACEOF
14586cat confdefs.h >>conftest.$ac_ext 10314cat confdefs.h >>conftest.$ac_ext
14587cat >>conftest.$ac_ext <<_ACEOF 10315cat >>conftest.$ac_ext <<_ACEOF
14588/* end confdefs.h. */ 10316/* end confdefs.h. */
14589#include <sys/types.h> 10317#include <sys/types.h>
14590#include <stdint.h>
14591#include <utmp.h> 10318#include <utmp.h>
14592int 10319int
14593main () 10320main ()
14594{ 10321{
14595struct utmp ut; 10322struct utmp ut;
14604 grep -v '^ *+' conftest.er1 >conftest.err 10331 grep -v '^ *+' conftest.er1 >conftest.err
14605 rm -f conftest.er1 10332 rm -f conftest.er1
14606 cat conftest.err >&5 10333 cat conftest.err >&5
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); } && 10335 (exit $ac_status); } &&
14609 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10336 { ac_try='test -z "$ac_cxx_werror_flag"
10337 || test ! -s conftest.err'
14610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14611 (eval $ac_try) 2>&5 10339 (eval $ac_try) 2>&5
14612 ac_status=$? 10340 ac_status=$?
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); }; } && 10342 (exit $ac_status); }; } &&
14616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14617 (eval $ac_try) 2>&5 10345 (eval $ac_try) 2>&5
14618 ac_status=$? 10346 ac_status=$?
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); }; }; then 10348 (exit $ac_status); }; }; then
14621 rxvt_cv_struct_utmp=yes 10349 struct_utmp=yes
14622else 10350else
14623 echo "$as_me: failed program was:" >&5 10351 echo "$as_me: failed program was:" >&5
14624sed 's/^/| /' conftest.$ac_ext >&5 10352sed 's/^/| /' conftest.$ac_ext >&5
14625 10353
14626rxvt_cv_struct_utmp=no 10354struct_utmp=no
14627fi 10355fi
14628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14629fi 10357fi
14630echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5 10358echo "$as_me:$LINENO: result: $struct_utmp" >&5
14631echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6 10359echo "${ECHO_T}$struct_utmp" >&6
14632if test x$rxvt_cv_struct_utmp = xyes; then 10360if test x$struct_utmp = xyes; then
14633 10361
14634cat >>confdefs.h <<\_ACEOF 10362cat >>confdefs.h <<\_ACEOF
14635#define HAVE_STRUCT_UTMP 1 10363#define HAVE_STRUCT_UTMP 1
14636_ACEOF 10364_ACEOF
14637 10365
14638fi 10366fi
14639 10367
14640 10368
14641echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5 10369echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
14642echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6 10370echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6
14643if test "${rxvt_cv_struct_utmp_host+set}" = set; then 10371if test "${struct_utmp_host+set}" = set; then
14644 echo $ECHO_N "(cached) $ECHO_C" >&6 10372 echo $ECHO_N "(cached) $ECHO_C" >&6
14645else 10373else
14646 cat >conftest.$ac_ext <<_ACEOF 10374 cat >conftest.$ac_ext <<_ACEOF
14647/* confdefs.h. */ 10375/* confdefs.h. */
14648_ACEOF 10376_ACEOF
14666 grep -v '^ *+' conftest.er1 >conftest.err 10394 grep -v '^ *+' conftest.er1 >conftest.err
14667 rm -f conftest.er1 10395 rm -f conftest.er1
14668 cat conftest.err >&5 10396 cat conftest.err >&5
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); } && 10398 (exit $ac_status); } &&
14671 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10399 { ac_try='test -z "$ac_cxx_werror_flag"
10400 || test ! -s conftest.err'
14672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14673 (eval $ac_try) 2>&5 10402 (eval $ac_try) 2>&5
14674 ac_status=$? 10403 ac_status=$?
14675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676 (exit $ac_status); }; } && 10405 (exit $ac_status); }; } &&
14678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14679 (eval $ac_try) 2>&5 10408 (eval $ac_try) 2>&5
14680 ac_status=$? 10409 ac_status=$?
14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682 (exit $ac_status); }; }; then 10411 (exit $ac_status); }; }; then
14683 rxvt_cv_struct_utmp_host=yes 10412 struct_utmp_host=yes
14684else 10413else
14685 echo "$as_me: failed program was:" >&5 10414 echo "$as_me: failed program was:" >&5
14686sed 's/^/| /' conftest.$ac_ext >&5 10415sed 's/^/| /' conftest.$ac_ext >&5
14687 10416
14688rxvt_cv_struct_utmp_host=no 10417struct_utmp_host=no
14689fi 10418fi
14690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14691fi 10420fi
14692echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5 10421echo "$as_me:$LINENO: result: $struct_utmp_host" >&5
14693echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6 10422echo "${ECHO_T}$struct_utmp_host" >&6
14694if test x$rxvt_cv_struct_utmp_host = xyes; then 10423if test x$struct_utmp_host = xyes; then
14695 10424
14696cat >>confdefs.h <<\_ACEOF 10425cat >>confdefs.h <<\_ACEOF
14697#define HAVE_UTMP_HOST 1 10426#define HAVE_UTMP_HOST 1
14698_ACEOF 10427_ACEOF
14699 10428
14700fi 10429fi
14701 10430
14702echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5 10431echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
14703echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6 10432echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6
14704if test "${rxvt_cv_struct_utmp_pid+set}" = set; then 10433if test "${struct_utmp_pid+set}" = set; then
14705 echo $ECHO_N "(cached) $ECHO_C" >&6 10434 echo $ECHO_N "(cached) $ECHO_C" >&6
14706else 10435else
14707 cat >conftest.$ac_ext <<_ACEOF 10436 cat >conftest.$ac_ext <<_ACEOF
14708/* confdefs.h. */ 10437/* confdefs.h. */
14709_ACEOF 10438_ACEOF
14727 grep -v '^ *+' conftest.er1 >conftest.err 10456 grep -v '^ *+' conftest.er1 >conftest.err
14728 rm -f conftest.er1 10457 rm -f conftest.er1
14729 cat conftest.err >&5 10458 cat conftest.err >&5
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); } && 10460 (exit $ac_status); } &&
14732 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10461 { ac_try='test -z "$ac_cxx_werror_flag"
10462 || test ! -s conftest.err'
14733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734 (eval $ac_try) 2>&5 10464 (eval $ac_try) 2>&5
14735 ac_status=$? 10465 ac_status=$?
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); }; } && 10467 (exit $ac_status); }; } &&
14739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14740 (eval $ac_try) 2>&5 10470 (eval $ac_try) 2>&5
14741 ac_status=$? 10471 ac_status=$?
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); }; }; then 10473 (exit $ac_status); }; }; then
14744 rxvt_cv_struct_utmp_pid=yes 10474 struct_utmp_pid=yes
14745else 10475else
14746 echo "$as_me: failed program was:" >&5 10476 echo "$as_me: failed program was:" >&5
14747sed 's/^/| /' conftest.$ac_ext >&5 10477sed 's/^/| /' conftest.$ac_ext >&5
14748 10478
14749rxvt_cv_struct_utmp_pid=no 10479struct_utmp_pid=no
14750fi 10480fi
14751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14752fi 10482fi
14753echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5 10483echo "$as_me:$LINENO: result: $struct_utmp_pid" >&5
14754echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6 10484echo "${ECHO_T}$struct_utmp_pid" >&6
14755if test x$rxvt_cv_struct_utmp_pid = xyes; then 10485if test x$struct_utmp_pid = xyes; then
14756 10486
14757cat >>confdefs.h <<\_ACEOF 10487cat >>confdefs.h <<\_ACEOF
14758#define HAVE_UTMP_PID 1 10488#define HAVE_UTMP_PID 1
14759_ACEOF 10489_ACEOF
14760 10490
14792 grep -v '^ *+' conftest.er1 >conftest.err 10522 grep -v '^ *+' conftest.er1 >conftest.err
14793 rm -f conftest.er1 10523 rm -f conftest.er1
14794 cat conftest.err >&5 10524 cat conftest.err >&5
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); } && 10526 (exit $ac_status); } &&
14797 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10527 { ac_try='test -z "$ac_cxx_werror_flag"
10528 || test ! -s conftest.err'
14798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14799 (eval $ac_try) 2>&5 10530 (eval $ac_try) 2>&5
14800 ac_status=$? 10531 ac_status=$?
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); }; } && 10533 (exit $ac_status); }; } &&
14901 10632
14902fi 10633fi
14903if test $ac_cv_header_utmpx_h = yes; then 10634if test $ac_cv_header_utmpx_h = yes; then
14904 echo "$as_me:$LINENO: checking for struct utmpx" >&5 10635 echo "$as_me:$LINENO: checking for struct utmpx" >&5
14905echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6 10636echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6
14906if test "${rxvt_cv_struct_utmpx+set}" = set; then 10637if test "${struct_utmpx+set}" = set; then
14907 echo $ECHO_N "(cached) $ECHO_C" >&6 10638 echo $ECHO_N "(cached) $ECHO_C" >&6
14908else 10639else
14909 cat >conftest.$ac_ext <<_ACEOF 10640 cat >conftest.$ac_ext <<_ACEOF
14910/* confdefs.h. */ 10641/* confdefs.h. */
14911_ACEOF 10642_ACEOF
14929 grep -v '^ *+' conftest.er1 >conftest.err 10660 grep -v '^ *+' conftest.er1 >conftest.err
14930 rm -f conftest.er1 10661 rm -f conftest.er1
14931 cat conftest.err >&5 10662 cat conftest.err >&5
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); } && 10664 (exit $ac_status); } &&
14934 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10665 { ac_try='test -z "$ac_cxx_werror_flag"
10666 || test ! -s conftest.err'
14935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14936 (eval $ac_try) 2>&5 10668 (eval $ac_try) 2>&5
14937 ac_status=$? 10669 ac_status=$?
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); }; } && 10671 (exit $ac_status); }; } &&
14941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14942 (eval $ac_try) 2>&5 10674 (eval $ac_try) 2>&5
14943 ac_status=$? 10675 ac_status=$?
14944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945 (exit $ac_status); }; }; then 10677 (exit $ac_status); }; }; then
14946 rxvt_cv_struct_utmpx=yes 10678 struct_utmpx=yes
14947else 10679else
14948 echo "$as_me: failed program was:" >&5 10680 echo "$as_me: failed program was:" >&5
14949sed 's/^/| /' conftest.$ac_ext >&5 10681sed 's/^/| /' conftest.$ac_ext >&5
14950 10682
14951rxvt_cv_struct_utmpx=no 10683struct_utmpx=no
14952fi 10684fi
14953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14954fi 10686fi
14955echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5 10687echo "$as_me:$LINENO: result: $struct_utmpx" >&5
14956echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6 10688echo "${ECHO_T}$struct_utmpx" >&6
14957if test x$rxvt_cv_struct_utmpx = xyes; then 10689if test x$struct_utmpx = xyes; then
14958 10690
14959cat >>confdefs.h <<\_ACEOF 10691cat >>confdefs.h <<\_ACEOF
14960#define HAVE_STRUCT_UTMPX 1 10692#define HAVE_STRUCT_UTMPX 1
14961_ACEOF 10693_ACEOF
14962 10694
14963fi 10695fi
14964 10696
14965 10697
14966echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 10698echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
14967echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6 10699echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6
14968if test "${rxvt_cv_struct_utmpx_host+set}" = set; then 10700if test "${struct_utmpx_host+set}" = set; then
14969 echo $ECHO_N "(cached) $ECHO_C" >&6 10701 echo $ECHO_N "(cached) $ECHO_C" >&6
14970else 10702else
14971 cat >conftest.$ac_ext <<_ACEOF 10703 cat >conftest.$ac_ext <<_ACEOF
14972/* confdefs.h. */ 10704/* confdefs.h. */
14973_ACEOF 10705_ACEOF
14991 grep -v '^ *+' conftest.er1 >conftest.err 10723 grep -v '^ *+' conftest.er1 >conftest.err
14992 rm -f conftest.er1 10724 rm -f conftest.er1
14993 cat conftest.err >&5 10725 cat conftest.err >&5
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); } && 10727 (exit $ac_status); } &&
14996 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10728 { ac_try='test -z "$ac_cxx_werror_flag"
10729 || test ! -s conftest.err'
14997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14998 (eval $ac_try) 2>&5 10731 (eval $ac_try) 2>&5
14999 ac_status=$? 10732 ac_status=$?
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); }; } && 10734 (exit $ac_status); }; } &&
15003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15004 (eval $ac_try) 2>&5 10737 (eval $ac_try) 2>&5
15005 ac_status=$? 10738 ac_status=$?
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); }; }; then 10740 (exit $ac_status); }; }; then
15008 rxvt_cv_struct_utmpx_host=yes 10741 struct_utmpx_host=yes
15009else 10742else
15010 echo "$as_me: failed program was:" >&5 10743 echo "$as_me: failed program was:" >&5
15011sed 's/^/| /' conftest.$ac_ext >&5 10744sed 's/^/| /' conftest.$ac_ext >&5
15012 10745
15013rxvt_cv_struct_utmpx_host=no 10746struct_utmpx_host=no
15014fi 10747fi
15015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15016fi 10749fi
15017echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5 10750echo "$as_me:$LINENO: result: $struct_utmpx_host" >&5
15018echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6 10751echo "${ECHO_T}$struct_utmpx_host" >&6
15019if test x$rxvt_cv_struct_utmpx_host = xyes; then 10752if test x$struct_utmpx_host = xyes; then
15020 10753
15021cat >>confdefs.h <<\_ACEOF 10754cat >>confdefs.h <<\_ACEOF
15022#define HAVE_UTMPX_HOST 1 10755#define HAVE_UTMPX_HOST 1
15023_ACEOF 10756_ACEOF
15024 10757
15025fi 10758fi
15026 10759
15027fi 10760echo "$as_me:$LINENO: checking for session in utmpx struct" >&5
10761echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6
10762if test "${struct_utmpx_session+set}" = set; then
10763 echo $ECHO_N "(cached) $ECHO_C" >&6
10764else
10765 cat >conftest.$ac_ext <<_ACEOF
10766/* confdefs.h. */
10767_ACEOF
10768cat confdefs.h >>conftest.$ac_ext
10769cat >>conftest.$ac_ext <<_ACEOF
10770/* end confdefs.h. */
10771#include <sys/types.h>
10772#include <utmpx.h>
10773int
10774main ()
10775{
10776struct utmpx utx; utx.ut_session;
10777 ;
10778 return 0;
10779}
10780_ACEOF
10781rm -f conftest.$ac_objext
10782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10783 (eval $ac_compile) 2>conftest.er1
10784 ac_status=$?
10785 grep -v '^ *+' conftest.er1 >conftest.err
10786 rm -f conftest.er1
10787 cat conftest.err >&5
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); } &&
10790 { ac_try='test -z "$ac_cxx_werror_flag"
10791 || test ! -s conftest.err'
10792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10793 (eval $ac_try) 2>&5
10794 ac_status=$?
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); }; } &&
10797 { ac_try='test -s conftest.$ac_objext'
10798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10799 (eval $ac_try) 2>&5
10800 ac_status=$?
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); }; }; then
10803 struct_utmpx_session=yes
10804else
10805 echo "$as_me: failed program was:" >&5
10806sed 's/^/| /' conftest.$ac_ext >&5
15028 10807
10808struct_utmpx_session=no
10809fi
10810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10811fi
10812echo "$as_me:$LINENO: result: $struct_utmpx_session" >&5
10813echo "${ECHO_T}$struct_utmpx_session" >&6
10814if test x$struct_utmpx_session = xyes; then
10815
10816cat >>confdefs.h <<\_ACEOF
10817#define HAVE_UTMPX_SESSION 1
10818_ACEOF
10819
10820fi
10821
10822fi
15029 10823
15030 10824
15031echo "$as_me:$LINENO: checking for struct lastlog" >&5 10825echo "$as_me:$LINENO: checking for struct lastlog" >&5
15032echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 10826echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
15033if test "${rxvt_cv_struct_lastlog+set}" = set; then 10827if test "${struct_lastlog+set}" = set; then
15034 echo $ECHO_N "(cached) $ECHO_C" >&6 10828 echo $ECHO_N "(cached) $ECHO_C" >&6
15035else 10829else
15036 cat >conftest.$ac_ext <<_ACEOF 10830 cat >conftest.$ac_ext <<_ACEOF
15037/* confdefs.h. */ 10831/* confdefs.h. */
15038_ACEOF 10832_ACEOF
15060 grep -v '^ *+' conftest.er1 >conftest.err 10854 grep -v '^ *+' conftest.er1 >conftest.err
15061 rm -f conftest.er1 10855 rm -f conftest.er1
15062 cat conftest.err >&5 10856 cat conftest.err >&5
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); } && 10858 (exit $ac_status); } &&
15065 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10859 { ac_try='test -z "$ac_cxx_werror_flag"
10860 || test ! -s conftest.err'
15066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15067 (eval $ac_try) 2>&5 10862 (eval $ac_try) 2>&5
15068 ac_status=$? 10863 ac_status=$?
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); }; } && 10865 (exit $ac_status); }; } &&
15072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15073 (eval $ac_try) 2>&5 10868 (eval $ac_try) 2>&5
15074 ac_status=$? 10869 ac_status=$?
15075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); }; }; then 10871 (exit $ac_status); }; }; then
15077 rxvt_cv_struct_lastlog=yes 10872 struct_lastlog=yes
15078else 10873else
15079 echo "$as_me: failed program was:" >&5 10874 echo "$as_me: failed program was:" >&5
15080sed 's/^/| /' conftest.$ac_ext >&5 10875sed 's/^/| /' conftest.$ac_ext >&5
15081 10876
15082rxvt_cv_struct_lastlog=no 10877struct_lastlog=no
15083fi 10878fi
15084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15085fi 10880fi
15086echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5 10881echo "$as_me:$LINENO: result: $struct_lastlog" >&5
15087echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6 10882echo "${ECHO_T}$struct_lastlog" >&6
15088if test x$rxvt_cv_struct_lastlog = xyes; then 10883if test x$struct_lastlog = xyes; then
15089 10884
15090cat >>confdefs.h <<\_ACEOF 10885cat >>confdefs.h <<\_ACEOF
15091#define HAVE_STRUCT_LASTLOG 1 10886#define HAVE_STRUCT_LASTLOG 1
15092_ACEOF 10887_ACEOF
15093 10888
15094fi 10889fi
15095 10890
15096echo "$as_me:$LINENO: checking for struct lastlogx" >&5 10891echo "$as_me:$LINENO: checking for struct lastlogx" >&5
15097echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6 10892echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6
15098if test "${rxvt_cv_struct_lastlogx+set}" = set; then 10893if test "${struct_lastlogx+set}" = set; then
15099 echo $ECHO_N "(cached) $ECHO_C" >&6 10894 echo $ECHO_N "(cached) $ECHO_C" >&6
15100else 10895else
15101 cat >conftest.$ac_ext <<_ACEOF 10896 cat >conftest.$ac_ext <<_ACEOF
15102/* confdefs.h. */ 10897/* confdefs.h. */
15103_ACEOF 10898_ACEOF
15125 grep -v '^ *+' conftest.er1 >conftest.err 10920 grep -v '^ *+' conftest.er1 >conftest.err
15126 rm -f conftest.er1 10921 rm -f conftest.er1
15127 cat conftest.err >&5 10922 cat conftest.err >&5
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); } && 10924 (exit $ac_status); } &&
15130 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10925 { ac_try='test -z "$ac_cxx_werror_flag"
10926 || test ! -s conftest.err'
15131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15132 (eval $ac_try) 2>&5 10928 (eval $ac_try) 2>&5
15133 ac_status=$? 10929 ac_status=$?
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); }; } && 10931 (exit $ac_status); }; } &&
15137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15138 (eval $ac_try) 2>&5 10934 (eval $ac_try) 2>&5
15139 ac_status=$? 10935 ac_status=$?
15140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); }; }; then 10937 (exit $ac_status); }; }; then
15142 rxvt_cv_struct_lastlogx=yes 10938 struct_lastlogx=yes
15143else 10939else
15144 echo "$as_me: failed program was:" >&5 10940 echo "$as_me: failed program was:" >&5
15145sed 's/^/| /' conftest.$ac_ext >&5 10941sed 's/^/| /' conftest.$ac_ext >&5
15146 10942
15147rxvt_cv_struct_lastlogx=no 10943struct_lastlogx=no
15148fi 10944fi
15149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15150fi 10946fi
15151echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5 10947echo "$as_me:$LINENO: result: $struct_lastlogx" >&5
15152echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6 10948echo "${ECHO_T}$struct_lastlogx" >&6
15153if test x$rxvt_cv_struct_lastlogx = xyes; then 10949if test x$struct_lastlogx = xyes; then
15154 10950
15155cat >>confdefs.h <<\_ACEOF 10951cat >>confdefs.h <<\_ACEOF
15156#define HAVE_STRUCT_LASTLOGX 1 10952#define HAVE_STRUCT_LASTLOGX 1
15157_ACEOF 10953_ACEOF
15158 10954
15159fi 10955fi
15160 10956
15161 10957
15162echo "$as_me:$LINENO: checking where utmp is located" >&5 10958echo "$as_me:$LINENO: checking where utmp is located" >&5
15163echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6 10959echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6
15164if test "${rxvt_cv_path_utmp+set}" = set; then 10960if test "${path_utmp+set}" = set; then
15165 echo $ECHO_N "(cached) $ECHO_C" >&6 10961 echo $ECHO_N "(cached) $ECHO_C" >&6
15166else 10962else
15167 if test "$cross_compiling" = yes; then 10963 if test "$cross_compiling" = yes; then
15168 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5 10964 { echo "$as_me:$LINENO: WARNING: Define UTMP_FILE in config.h manually" >&5
15169echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;} 10965echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;}
15170else 10966else
15171 cat >conftest.$ac_ext <<_ACEOF 10967 cat >conftest.$ac_ext <<_ACEOF
15172/* confdefs.h. */ 10968/* confdefs.h. */
15173_ACEOF 10969_ACEOF
15174cat confdefs.h >>conftest.$ac_ext 10970cat confdefs.h >>conftest.$ac_ext
15175cat >>conftest.$ac_ext <<_ACEOF 10971cat >>conftest.$ac_ext <<_ACEOF
15176/* end confdefs.h. */ 10972/* end confdefs.h. */
15177#include <stdio.h> 10973#include <stdio.h>
10974#include <stdlib.h>
15178#include <sys/types.h> 10975#include <sys/types.h>
15179#include <utmp.h> 10976#include <utmp.h>
15180#include <errno.h> 10977#include <errno.h>
15181main() 10978main()
15182{ 10979{
15210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15211 (eval $ac_try) 2>&5 11008 (eval $ac_try) 2>&5
15212 ac_status=$? 11009 ac_status=$?
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); }; }; then 11011 (exit $ac_status); }; }; then
15215 rxvt_cv_path_utmp=`cat conftestval` 11012 path_utmp=`cat conftestval`
15216else 11013else
15217 echo "$as_me: program exited with status $ac_status" >&5 11014 echo "$as_me: program exited with status $ac_status" >&5
15218echo "$as_me: failed program was:" >&5 11015echo "$as_me: failed program was:" >&5
15219sed 's/^/| /' conftest.$ac_ext >&5 11016sed 's/^/| /' conftest.$ac_ext >&5
15220 11017
15221( exit $ac_status ) 11018( exit $ac_status )
15222rxvt_cv_path_utmp= 11019path_utmp=
15223fi 11020fi
15224rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11021rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15225fi 11022fi
15226fi 11023fi
15227echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5 11024echo "$as_me:$LINENO: result: $path_utmp" >&5
15228echo "${ECHO_T}$rxvt_cv_path_utmp" >&6 11025echo "${ECHO_T}$path_utmp" >&6
15229if test x$rxvt_cv_path_utmp != x; then 11026if test x$path_utmp != x; then
15230 11027
15231cat >>confdefs.h <<_ACEOF 11028cat >>confdefs.h <<_ACEOF
15232#define RXVT_UTMP_FILE "$rxvt_cv_path_utmp" 11029#define UTMP_FILE "$path_utmp"
15233_ACEOF 11030_ACEOF
15234 11031
15235fi 11032fi
15236 11033
15237 11034
15238echo "$as_me:$LINENO: checking where utmpx is located" >&5 11035echo "$as_me:$LINENO: checking where utmpx is located" >&5
15239echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6 11036echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6
15240if test "${rxvt_cv_path_utmpx+set}" = set; then 11037if test "${path_utmpx+set}" = set; then
15241 echo $ECHO_N "(cached) $ECHO_C" >&6 11038 echo $ECHO_N "(cached) $ECHO_C" >&6
15242else 11039else
15243 if test "$cross_compiling" = yes; then 11040 if test "$cross_compiling" = yes; then
15244 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&5 11041 { echo "$as_me:$LINENO: WARNING: Define UTMPX_FILE in config.h manually" >&5
15245echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;} 11042echo "$as_me: WARNING: Define UTMPX_FILE in config.h manually" >&2;}
15246else 11043else
15247 cat >conftest.$ac_ext <<_ACEOF 11044 cat >conftest.$ac_ext <<_ACEOF
15248/* confdefs.h. */ 11045/* confdefs.h. */
15249_ACEOF 11046_ACEOF
15250cat confdefs.h >>conftest.$ac_ext 11047cat confdefs.h >>conftest.$ac_ext
15251cat >>conftest.$ac_ext <<_ACEOF 11048cat >>conftest.$ac_ext <<_ACEOF
15252/* end confdefs.h. */ 11049/* end confdefs.h. */
15253#include <stdio.h> 11050#include <stdio.h>
11051#include <stdlib.h>
15254#include <sys/types.h> 11052#include <sys/types.h>
15255#include <utmpx.h> 11053#include <utmpx.h>
15256#include <errno.h> 11054#include <errno.h>
15257#include <sys/stat.h> 11055#include <sys/stat.h>
15258#ifdef HAVE_STRING_H 11056#ifdef HAVE_STRING_H
15296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15297 (eval $ac_try) 2>&5 11095 (eval $ac_try) 2>&5
15298 ac_status=$? 11096 ac_status=$?
15299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 (exit $ac_status); }; }; then 11098 (exit $ac_status); }; }; then
15301 rxvt_cv_path_utmpx=`cat conftestval` 11099 path_utmpx=`cat conftestval`
15302else 11100else
15303 echo "$as_me: program exited with status $ac_status" >&5 11101 echo "$as_me: program exited with status $ac_status" >&5
15304echo "$as_me: failed program was:" >&5 11102echo "$as_me: failed program was:" >&5
15305sed 's/^/| /' conftest.$ac_ext >&5 11103sed 's/^/| /' conftest.$ac_ext >&5
15306 11104
15307( exit $ac_status ) 11105( exit $ac_status )
15308rxvt_cv_path_utmpx= 11106path_utmpx=
15309fi 11107fi
15310rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11108rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15311fi 11109fi
15312fi 11110fi
15313echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5 11111echo "$as_me:$LINENO: result: $path_utmpx" >&5
15314echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6 11112echo "${ECHO_T}$path_utmpx" >&6
15315if test x$rxvt_cv_path_utmpx != x; then 11113if test x$path_utmpx != x; then
15316 11114
15317cat >>confdefs.h <<_ACEOF 11115cat >>confdefs.h <<_ACEOF
15318#define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx" 11116#define UTMPX_FILE "$path_utmpx"
15319_ACEOF 11117_ACEOF
15320 11118
15321fi 11119fi
15322 11120
15323 11121
15324echo "$as_me:$LINENO: checking where wtmp is located" >&5 11122echo "$as_me:$LINENO: checking where wtmp is located" >&5
15325echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6 11123echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6
15326if test "${rxvt_cv_path_wtmp+set}" = set; then 11124if test "${path_wtmp+set}" = set; then
15327 echo $ECHO_N "(cached) $ECHO_C" >&6 11125 echo $ECHO_N "(cached) $ECHO_C" >&6
15328else 11126else
15329 if test "$cross_compiling" = yes; then 11127 if test "$cross_compiling" = yes; then
15330 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&5 11128 { echo "$as_me:$LINENO: WARNING: Define WTMP_FILE in config.h manually" >&5
15331echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;} 11129echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;}
15332else 11130else
15333 cat >conftest.$ac_ext <<_ACEOF 11131 cat >conftest.$ac_ext <<_ACEOF
15334/* confdefs.h. */ 11132/* confdefs.h. */
15335_ACEOF 11133_ACEOF
15336cat confdefs.h >>conftest.$ac_ext 11134cat confdefs.h >>conftest.$ac_ext
15337cat >>conftest.$ac_ext <<_ACEOF 11135cat >>conftest.$ac_ext <<_ACEOF
15338/* end confdefs.h. */ 11136/* end confdefs.h. */
15339#include <stdio.h> 11137#include <stdio.h>
11138#include <stdlib.h>
15340#include <sys/types.h> 11139#include <sys/types.h>
15341#ifdef HAVE_UTMP_H 11140#ifdef HAVE_UTMP_H
15342#include <utmp.h> 11141#include <utmp.h>
15343#endif 11142#endif
15344#include <errno.h> 11143#include <errno.h>
15374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15375 (eval $ac_try) 2>&5 11174 (eval $ac_try) 2>&5
15376 ac_status=$? 11175 ac_status=$?
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); }; }; then 11177 (exit $ac_status); }; }; then
15379 rxvt_cv_path_wtmp=`cat conftestval` 11178 path_wtmp=`cat conftestval`
15380else 11179else
15381 echo "$as_me: program exited with status $ac_status" >&5 11180 echo "$as_me: program exited with status $ac_status" >&5
15382echo "$as_me: failed program was:" >&5 11181echo "$as_me: failed program was:" >&5
15383sed 's/^/| /' conftest.$ac_ext >&5 11182sed 's/^/| /' conftest.$ac_ext >&5
15384 11183
15385( exit $ac_status ) 11184( exit $ac_status )
15386rxvt_cv_path_wtmp= 11185path_wtmp=
15387fi 11186fi
15388rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11187rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15389fi 11188fi
15390fi 11189fi
15391echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5 11190echo "$as_me:$LINENO: result: $path_wtmp" >&5
15392echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6 11191echo "${ECHO_T}$path_wtmp" >&6
15393if test x$rxvt_cv_path_wtmp != x; then 11192if test x$path_wtmp != x; then
15394 11193
15395cat >>confdefs.h <<_ACEOF 11194cat >>confdefs.h <<_ACEOF
15396#define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp" 11195#define WTMP_FILE "$path_wtmp"
15397_ACEOF 11196_ACEOF
15398 11197
15399fi 11198fi
15400 11199
15401echo "$as_me:$LINENO: checking where wtmpx is located" >&5 11200echo "$as_me:$LINENO: checking where wtmpx is located" >&5
15402echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6 11201echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6
15403if test "${rxvt_cv_path_wtmpx+set}" = set; then 11202if test "${path_wtmpx+set}" = set; then
15404 echo $ECHO_N "(cached) $ECHO_C" >&6 11203 echo $ECHO_N "(cached) $ECHO_C" >&6
15405else 11204else
15406 if test "$cross_compiling" = yes; then 11205 if test "$cross_compiling" = yes; then
15407 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&5 11206 { echo "$as_me:$LINENO: WARNING: Define WTMPX_FILE in config.h manually" >&5
15408echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;} 11207echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;}
15409else 11208else
15410 cat >conftest.$ac_ext <<_ACEOF 11209 cat >conftest.$ac_ext <<_ACEOF
15411/* confdefs.h. */ 11210/* confdefs.h. */
15412_ACEOF 11211_ACEOF
15413cat confdefs.h >>conftest.$ac_ext 11212cat confdefs.h >>conftest.$ac_ext
15414cat >>conftest.$ac_ext <<_ACEOF 11213cat >>conftest.$ac_ext <<_ACEOF
15415/* end confdefs.h. */ 11214/* end confdefs.h. */
15416#include <stdio.h> 11215#include <stdio.h>
11216#include <stdlib.h>
15417#ifdef HAVE_UTMPX_H 11217#ifdef HAVE_UTMPX_H
15418#include <utmpx.h> 11218#include <utmpx.h>
15419#endif 11219#endif
15420#include <errno.h> 11220#include <errno.h>
15421main() 11221main()
15450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15451 (eval $ac_try) 2>&5 11251 (eval $ac_try) 2>&5
15452 ac_status=$? 11252 ac_status=$?
15453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454 (exit $ac_status); }; }; then 11254 (exit $ac_status); }; }; then
15455 rxvt_cv_path_wtmpx=`cat conftestval` 11255 path_wtmpx=`cat conftestval`
15456else 11256else
15457 echo "$as_me: program exited with status $ac_status" >&5 11257 echo "$as_me: program exited with status $ac_status" >&5
15458echo "$as_me: failed program was:" >&5 11258echo "$as_me: failed program was:" >&5
15459sed 's/^/| /' conftest.$ac_ext >&5 11259sed 's/^/| /' conftest.$ac_ext >&5
15460 11260
15461( exit $ac_status ) 11261( exit $ac_status )
15462rxvt_cv_path_wtmpx= 11262path_wtmpx=
15463fi 11263fi
15464rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11264rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15465fi 11265fi
15466fi 11266fi
15467echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5 11267echo "$as_me:$LINENO: result: $path_wtmpx" >&5
15468echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6 11268echo "${ECHO_T}$path_wtmpx" >&6
15469if test x$rxvt_cv_path_wtmpx != x; then 11269if test x$path_wtmpx != x; then
15470 11270
15471cat >>confdefs.h <<_ACEOF 11271cat >>confdefs.h <<_ACEOF
15472#define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx" 11272#define WTMPX_FILE "$path_wtmpx"
15473_ACEOF 11273_ACEOF
15474 11274
15475fi 11275fi
15476 11276
15477echo "$as_me:$LINENO: checking where lastlog is located" >&5 11277echo "$as_me:$LINENO: checking where lastlog is located" >&5
15478echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6 11278echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6
15479if test "${rxvt_cv_path_lastlog+set}" = set; then 11279if test "${path_lastlog+set}" = set; then
15480 echo $ECHO_N "(cached) $ECHO_C" >&6 11280 echo $ECHO_N "(cached) $ECHO_C" >&6
15481else 11281else
15482 if test "$cross_compiling" = yes; then 11282 if test "$cross_compiling" = yes; then
15483 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&5 11283 { echo "$as_me:$LINENO: WARNING: Define LASTLOG_FILE in config.h manually" >&5
15484echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;} 11284echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;}
15485else 11285else
15486 cat >conftest.$ac_ext <<_ACEOF 11286 cat >conftest.$ac_ext <<_ACEOF
15487/* confdefs.h. */ 11287/* confdefs.h. */
15488_ACEOF 11288_ACEOF
15489cat confdefs.h >>conftest.$ac_ext 11289cat confdefs.h >>conftest.$ac_ext
15490cat >>conftest.$ac_ext <<_ACEOF 11290cat >>conftest.$ac_ext <<_ACEOF
15491/* end confdefs.h. */ 11291/* end confdefs.h. */
15492#include <stdio.h> 11292#include <stdio.h>
11293#include <stdlib.h>
15493#include <sys/types.h> 11294#include <sys/types.h>
15494#ifdef HAVE_UTMPX_H 11295#ifdef HAVE_UTMPX_H
15495#include <utmpx.h> 11296#include <utmpx.h>
15496#elif defined(HAVE_UTMP_H) 11297#elif defined(HAVE_UTMP_H)
15497#include <utmp.h> 11298#include <utmp.h>
15531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15532 (eval $ac_try) 2>&5 11333 (eval $ac_try) 2>&5
15533 ac_status=$? 11334 ac_status=$?
15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); }; }; then 11336 (exit $ac_status); }; }; then
15536 rxvt_cv_path_lastlog=`cat conftestval` 11337 path_lastlog=`cat conftestval`
15537else 11338else
15538 echo "$as_me: program exited with status $ac_status" >&5 11339 echo "$as_me: program exited with status $ac_status" >&5
15539echo "$as_me: failed program was:" >&5 11340echo "$as_me: failed program was:" >&5
15540sed 's/^/| /' conftest.$ac_ext >&5 11341sed 's/^/| /' conftest.$ac_ext >&5
15541 11342
15542( exit $ac_status ) 11343( exit $ac_status )
15543rxvt_cv_path_lastlog= 11344path_lastlog=
15544fi 11345fi
15545rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11346rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15546fi 11347fi
15547fi 11348fi
15548echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5 11349echo "$as_me:$LINENO: result: $path_lastlog" >&5
15549echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6 11350echo "${ECHO_T}$path_lastlog" >&6
15550if test x$rxvt_cv_path_lastlog != x; then 11351if test x$path_lastlog != x; then
15551 11352
15552cat >>confdefs.h <<_ACEOF 11353cat >>confdefs.h <<_ACEOF
15553#define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog" 11354#define LASTLOG_FILE "$path_lastlog"
15554_ACEOF 11355_ACEOF
15555 11356
15556 if test -d "$rxvt_cv_path_lastlog"; then 11357 if test -d "$path_lastlog"; then
15557 11358
15558cat >>confdefs.h <<\_ACEOF 11359cat >>confdefs.h <<\_ACEOF
15559#define LASTLOG_IS_DIR 1 11360#define LASTLOG_IS_DIR 1
15560_ACEOF 11361_ACEOF
15561 11362
15562 fi 11363 fi
15563fi 11364fi
15564 11365
15565echo "$as_me:$LINENO: checking where lastlogx is located" >&5 11366echo "$as_me:$LINENO: checking where lastlogx is located" >&5
15566echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6 11367echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6
15567if test "${rxvt_cv_path_lastlogx+set}" = set; then 11368if test "${path_lastlogx+set}" = set; then
15568 echo $ECHO_N "(cached) $ECHO_C" >&6 11369 echo $ECHO_N "(cached) $ECHO_C" >&6
15569else 11370else
15570 if test "$cross_compiling" = yes; then 11371 if test "$cross_compiling" = yes; then
15571 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&5 11372 { echo "$as_me:$LINENO: WARNING: Define LASTLOGX_FILE in config.h manually" >&5
15572echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;} 11373echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;}
15573else 11374else
15574 cat >conftest.$ac_ext <<_ACEOF 11375 cat >conftest.$ac_ext <<_ACEOF
15575/* confdefs.h. */ 11376/* confdefs.h. */
15576_ACEOF 11377_ACEOF
15577cat confdefs.h >>conftest.$ac_ext 11378cat confdefs.h >>conftest.$ac_ext
15578cat >>conftest.$ac_ext <<_ACEOF 11379cat >>conftest.$ac_ext <<_ACEOF
15579/* end confdefs.h. */ 11380/* end confdefs.h. */
15580#include <stdio.h> 11381#include <stdio.h>
11382#include <stdlib.h>
15581#ifdef HAVE_UTMPX_H 11383#ifdef HAVE_UTMPX_H
15582#include <utmpx.h> 11384#include <utmpx.h>
15583#endif 11385#endif
15584#include <errno.h> 11386#include <errno.h>
15585main() 11387main()
15613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15614 (eval $ac_try) 2>&5 11416 (eval $ac_try) 2>&5
15615 ac_status=$? 11417 ac_status=$?
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); }; }; then 11419 (exit $ac_status); }; }; then
15618 rxvt_cv_path_lastlogx=`cat conftestval` 11420 path_lastlogx=`cat conftestval`
15619else 11421else
15620 echo "$as_me: program exited with status $ac_status" >&5 11422 echo "$as_me: program exited with status $ac_status" >&5
15621echo "$as_me: failed program was:" >&5 11423echo "$as_me: failed program was:" >&5
15622sed 's/^/| /' conftest.$ac_ext >&5 11424sed 's/^/| /' conftest.$ac_ext >&5
15623 11425
15624( exit $ac_status ) 11426( exit $ac_status )
15625rxvt_cv_path_lastlogx= 11427path_lastlogx=
15626fi 11428fi
15627rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11429rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15628fi 11430fi
15629fi 11431fi
15630echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5 11432echo "$as_me:$LINENO: result: $path_lastlogx" >&5
15631echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6 11433echo "${ECHO_T}$path_lastlogx" >&6
15632if test x$rxvt_cv_path_lastlogx != x; then 11434if test x$path_lastlogx != x; then
15633 11435
15634cat >>confdefs.h <<_ACEOF 11436cat >>confdefs.h <<_ACEOF
15635#define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx" 11437#define LASTLOGX_FILE "$path_lastlogx"
15636_ACEOF 11438_ACEOF
15637 11439
15638fi 11440fi
11441
15639 11442
15640 11443
15641echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 11444echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
15642echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 11445echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6
15643if test "${rxvt_cv_path_ttytab+set}" = set; then 11446if test "${rxvt_cv_path_ttytab+set}" = set; then
15684_ACEOF 11487_ACEOF
15685cat confdefs.h >>conftest.$ac_ext 11488cat confdefs.h >>conftest.$ac_ext
15686cat >>conftest.$ac_ext <<_ACEOF 11489cat >>conftest.$ac_ext <<_ACEOF
15687/* end confdefs.h. */ 11490/* end confdefs.h. */
15688#include <X11/Xlib.h> 11491#include <X11/Xlib.h>
11492#include <stdlib.h>
15689main() { 11493main() {
15690char *p; 11494char *p;
15691if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) 11495if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
15692exit (XSupportsLocale() ? 0 : 1); 11496exit (XSupportsLocale() ? 0 : 1);
15693else 11497else
15754 grep -v '^ *+' conftest.er1 >conftest.err 11558 grep -v '^ *+' conftest.er1 >conftest.err
15755 rm -f conftest.er1 11559 rm -f conftest.er1
15756 cat conftest.err >&5 11560 cat conftest.err >&5
15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); } && 11562 (exit $ac_status); } &&
15759 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11563 { ac_try='test -z "$ac_cxx_werror_flag"
11564 || test ! -s conftest.err'
15760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15761 (eval $ac_try) 2>&5 11566 (eval $ac_try) 2>&5
15762 ac_status=$? 11567 ac_status=$?
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); }; } && 11569 (exit $ac_status); }; } &&
15799/* confdefs.h. */ 11604/* confdefs.h. */
15800_ACEOF 11605_ACEOF
15801cat confdefs.h >>conftest.$ac_ext 11606cat confdefs.h >>conftest.$ac_ext
15802cat >>conftest.$ac_ext <<_ACEOF 11607cat >>conftest.$ac_ext <<_ACEOF
15803/* end confdefs.h. */ 11608/* end confdefs.h. */
15804#include <locale.h> 11609#include <clocale>
15805int 11610int
15806main () 11611main ()
15807{ 11612{
15808setlocale(LC_CTYPE, ""); 11613setlocale(LC_CTYPE, "");
15809 ; 11614 ;
15817 grep -v '^ *+' conftest.er1 >conftest.err 11622 grep -v '^ *+' conftest.er1 >conftest.err
15818 rm -f conftest.er1 11623 rm -f conftest.er1
15819 cat conftest.err >&5 11624 cat conftest.err >&5
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); } && 11626 (exit $ac_status); } &&
15822 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11627 { ac_try='test -z "$ac_cxx_werror_flag"
11628 || test ! -s conftest.err'
15823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15824 (eval $ac_try) 2>&5 11630 (eval $ac_try) 2>&5
15825 ac_status=$? 11631 ac_status=$?
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); }; } && 11633 (exit $ac_status); }; } &&
15878 grep -v '^ *+' conftest.er1 >conftest.err 11684 grep -v '^ *+' conftest.er1 >conftest.err
15879 rm -f conftest.er1 11685 rm -f conftest.er1
15880 cat conftest.err >&5 11686 cat conftest.err >&5
15881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882 (exit $ac_status); } && 11688 (exit $ac_status); } &&
15883 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11689 { ac_try='test -z "$ac_cxx_werror_flag"
11690 || test ! -s conftest.err'
15884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15885 (eval $ac_try) 2>&5 11692 (eval $ac_try) 2>&5
15886 ac_status=$? 11693 ac_status=$?
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); }; } && 11695 (exit $ac_status); }; } &&
15910#define HAVE_NL_LANGINFO 1 11717#define HAVE_NL_LANGINFO 1
15911_ACEOF 11718_ACEOF
15912 11719
15913fi 11720fi
15914 11721
15915echo "$as_me:$LINENO: checking for getpt" >&5 11722
15916echo $ECHO_N "checking for getpt... $ECHO_C" >&6 11723echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5
15917if test "${rxvt_cv_func_getpt+set}" = set; then 11724echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6
11725if test "${can_pass_fds+set}" = set; then
15918 echo $ECHO_N "(cached) $ECHO_C" >&6 11726 echo $ECHO_N "(cached) $ECHO_C" >&6
15919else 11727else
15920 cat >conftest.$ac_ext <<_ACEOF 11728 cat >conftest.$ac_ext <<_ACEOF
15921/* confdefs.h. */ 11729/* confdefs.h. */
15922_ACEOF 11730_ACEOF
15923cat confdefs.h >>conftest.$ac_ext 11731cat confdefs.h >>conftest.$ac_ext
15924cat >>conftest.$ac_ext <<_ACEOF 11732cat >>conftest.$ac_ext <<_ACEOF
15925/* end confdefs.h. */ 11733/* end confdefs.h. */
15926#define _GNU_SOURCE 11734
15927#ifdef HAVE_STDLIB_H 11735#include <cstddef> // broken bsds (is that redundant?) need this
11736#include <sys/types.h>
11737#include <sys/socket.h>
15928# include <stdlib.h> 11738#include <sys/uio.h>
15929#endif 11739
15930int 11740int
15931main () 11741main ()
15932{ 11742{
15933(void)getpt(); 11743
11744{
11745 msghdr msg;
11746 iovec iov;
11747 char buf [100];
11748 char data = 0;
11749
11750 iov.iov_base = &data;
11751 iov.iov_len = 1;
11752
11753 msg.msg_iov = &iov;
11754 msg.msg_iovlen = 1;
11755 msg.msg_control = buf;
11756 msg.msg_controllen = sizeof buf;
11757
11758 cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
11759 cmsg->cmsg_level = SOL_SOCKET;
11760 cmsg->cmsg_type = SCM_RIGHTS;
11761 cmsg->cmsg_len = 100;
11762
11763 *(int *)CMSG_DATA (cmsg) = 5;
11764
11765 return sendmsg (3, &msg, 0);
11766}
11767
15934 ; 11768 ;
15935 return 0; 11769 return 0;
15936} 11770}
15937_ACEOF 11771_ACEOF
15938rm -f conftest.$ac_objext conftest$ac_exeext 11772rm -f conftest.$ac_objext conftest$ac_exeext
15942 grep -v '^ *+' conftest.er1 >conftest.err 11776 grep -v '^ *+' conftest.er1 >conftest.err
15943 rm -f conftest.er1 11777 rm -f conftest.er1
15944 cat conftest.err >&5 11778 cat conftest.err >&5
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); } && 11780 (exit $ac_status); } &&
15947 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11781 { ac_try='test -z "$ac_cxx_werror_flag"
11782 || test ! -s conftest.err'
15948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15949 (eval $ac_try) 2>&5 11784 (eval $ac_try) 2>&5
15950 ac_status=$? 11785 ac_status=$?
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); }; } && 11787 (exit $ac_status); }; } &&
15954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15955 (eval $ac_try) 2>&5 11790 (eval $ac_try) 2>&5
15956 ac_status=$? 11791 ac_status=$?
15957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958 (exit $ac_status); }; }; then 11793 (exit $ac_status); }; }; then
15959 rxvt_cv_func_getpt=yes 11794 can_pass_fds=yes
15960else 11795else
15961 echo "$as_me: failed program was:" >&5 11796 echo "$as_me: failed program was:" >&5
15962sed 's/^/| /' conftest.$ac_ext >&5 11797sed 's/^/| /' conftest.$ac_ext >&5
15963 11798
15964rxvt_cv_func_getpt=no 11799can_pass_fds=no
15965fi 11800fi
15966rm -f conftest.err conftest.$ac_objext \ 11801rm -f conftest.err conftest.$ac_objext \
15967 conftest$ac_exeext conftest.$ac_ext 11802 conftest$ac_exeext conftest.$ac_ext
15968fi 11803fi
15969echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5 11804echo "$as_me:$LINENO: result: $can_pass_fds" >&5
15970echo "${ECHO_T}$rxvt_cv_func_getpt" >&6 11805echo "${ECHO_T}$can_pass_fds" >&6
15971if test x$rxvt_cv_func_getpt = xyes; then 11806if test x$can_pass_fds = xyes; then
15972 11807
15973cat >>confdefs.h <<\_ACEOF 11808cat >>confdefs.h <<\_ACEOF
15974#define HAVE_GETPT 1 11809#define HAVE_UNIX_FDPASS 1
15975_ACEOF 11810_ACEOF
15976 11811
11812else
11813 { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5
11814echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;}
11815 { (exit 1); exit 1; }; }
15977fi 11816fi
15978 11817
15979echo "$as_me:$LINENO: checking for pty/tty type" >&5 11818
11819echo "$as_me:$LINENO: checking for broken XIM callback" >&5
15980echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6 11820echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6
15981if test "${rxvt_cv_ptys+set}" = set; then 11821if test "${rxvt_broken_ximcb+set}" = set; then
15982 echo $ECHO_N "(cached) $ECHO_C" >&6 11822 echo $ECHO_N "(cached) $ECHO_C" >&6
15983else 11823else
15984 if test x$ac_cv_func_openpty = xyes; then
15985 rxvt_cv_ptys=OPENPTY
15986 else if test x$ac_cv_func__getpty = xyes; then
15987 rxvt_cv_ptys=SGI4
15988 else if test -c /dev/ttyp20; then
15989 rxvt_cv_ptys=SCO
15990 else if test -c /dev/ptym/clone; then
15991 rxvt_cv_ptys=HPUX
15992 else if test x$rxvt_cv_func_getpt = xyes; then
15993 rxvt_cv_ptys=GLIBC
15994 else if test -c /dev/ptc -a -c /dev/pts; then
15995 rxvt_cv_ptys=PTC
15996 else if test -c /dev/ptc -a -d /dev/pts; then
15997 rxvt_cv_ptys=PTC
15998 else if test -c /dev/ptmx -a -c /dev/pts/0; then
15999 rxvt_cv_ptys=STREAMS
16000 else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then
16001 rxvt_cv_ptys=STREAMS
16002 else
16003 rxvt_cv_ptys=BSD
16004fi
16005fi
16006fi
16007fi
16008fi
16009fi
16010fi
16011fi
16012fi
16013
16014fi
16015echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
16016echo "${ECHO_T}$rxvt_cv_ptys" >&6
16017
16018if test x$rxvt_cv_ptys = xOPENPTY; then
16019
16020cat >>confdefs.h <<\_ACEOF
16021#define PTYS_ARE_OPENPTY 1
16022_ACEOF
16023
16024fi
16025if test x$rxvt_cv_ptys = xSCO; then
16026
16027cat >>confdefs.h <<\_ACEOF
16028#define PTYS_ARE_NUMERIC 1
16029_ACEOF
16030
16031fi
16032if test x$rxvt_cv_ptys = xSTREAMS; then
16033
16034cat >>confdefs.h <<\_ACEOF
16035#define PTYS_ARE_PTMX 1
16036_ACEOF
16037
16038fi
16039if test x$rxvt_cv_ptys = xPTC; then
16040
16041cat >>confdefs.h <<\_ACEOF
16042#define PTYS_ARE_PTC 1
16043_ACEOF
16044
16045fi
16046if test x$rxvt_cv_ptys = xSGI4; then
16047
16048cat >>confdefs.h <<\_ACEOF
16049#define PTYS_ARE__GETPTY 1
16050_ACEOF
16051
16052fi
16053if test x$rxvt_cv_ptys = xCONVEX; then
16054
16055cat >>confdefs.h <<\_ACEOF
16056#define PTYS_ARE_GETPTY 1
16057_ACEOF
16058
16059fi
16060if test x$rxvt_cv_ptys = xGLIBC; then
16061
16062cat >>confdefs.h <<\_ACEOF
16063#define PTYS_ARE_GETPT 1
16064_ACEOF
16065
16066fi
16067if test x$rxvt_cv_ptys = xHPUX; then
16068
16069cat >>confdefs.h <<\_ACEOF
16070#define PTYS_ARE_CLONE 1
16071_ACEOF
16072
16073fi
16074if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then
16075
16076cat >>confdefs.h <<\_ACEOF
16077#define PTYS_ARE_SEARCHED 1
16078_ACEOF
16079
16080fi
16081
16082
16083{ echo "$as_me:$LINENO: checking for pty ranges..." >&5
16084echo "$as_me: checking for pty ranges..." >&6;}
16085ptys=`echo /dev/pty??`
16086pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
16087pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
16088if test x$pch1 != x; then
16089
16090cat >>confdefs.h <<_ACEOF
16091#define PTYCHAR1 "$pch1"
16092_ACEOF
16093
16094fi
16095if test x$pch2 != x; then
16096
16097cat >>confdefs.h <<_ACEOF
16098#define PTYCHAR2 "$pch2"
16099_ACEOF
16100
16101fi
16102
16103echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
16104echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
16105if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
16106 echo $ECHO_N "(cached) $ECHO_C" >&6
16107else
16108 ac_check_lib_save_LIBS=$LIBS
16109LIBS="-lxpg4 $LIBS"
16110cat >conftest.$ac_ext <<_ACEOF 11824 cat >conftest.$ac_ext <<_ACEOF
16111/* confdefs.h. */
16112_ACEOF
16113cat confdefs.h >>conftest.$ac_ext
16114cat >>conftest.$ac_ext <<_ACEOF
16115/* end confdefs.h. */
16116 11825
16117/* Override any gcc2 internal prototype to avoid an error. */ 11826#include <X11/Xlib.h>
16118#ifdef __cplusplus 11827
16119extern "C" 11828void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
16120#endif 11829
16121/* We use char because int might match the return type of a gcc2 11830void f() {
16122 builtin and then its argument prototype would still apply. */ 11831 XIMCallback cb;
16123char setlocale (); 11832 cb.callback = im_destroy_cb;
16124int
16125main ()
16126{
16127setlocale ();
16128 ;
16129 return 0;
16130} 11833}
11834
16131_ACEOF 11835_ACEOF
16132rm -f conftest.$ac_objext conftest$ac_exeext 11836rm -f conftest.$ac_objext
16133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16134 (eval $ac_link) 2>conftest.er1 11838 (eval $ac_compile) 2>conftest.er1
16135 ac_status=$? 11839 ac_status=$?
16136 grep -v '^ *+' conftest.er1 >conftest.err 11840 grep -v '^ *+' conftest.er1 >conftest.err
16137 rm -f conftest.er1 11841 rm -f conftest.er1
16138 cat conftest.err >&5 11842 cat conftest.err >&5
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); } && 11844 (exit $ac_status); } &&
16141 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11845 { ac_try='test -z "$ac_cxx_werror_flag"
11846 || test ! -s conftest.err'
16142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16143 (eval $ac_try) 2>&5 11848 (eval $ac_try) 2>&5
16144 ac_status=$? 11849 ac_status=$?
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); }; } && 11851 (exit $ac_status); }; } &&
16147 { ac_try='test -s conftest$ac_exeext' 11852 { ac_try='test -s conftest.$ac_objext'
16148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16149 (eval $ac_try) 2>&5 11854 (eval $ac_try) 2>&5
16150 ac_status=$? 11855 ac_status=$?
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); }; }; then 11857 (exit $ac_status); }; }; then
16153 ac_cv_lib_xpg4_setlocale=yes 11858 rxvt_broken_ximcb=yes
16154else 11859else
16155 echo "$as_me: failed program was:" >&5 11860 echo "$as_me: failed program was:" >&5
16156sed 's/^/| /' conftest.$ac_ext >&5 11861sed 's/^/| /' conftest.$ac_ext >&5
16157 11862
16158ac_cv_lib_xpg4_setlocale=no 11863rxvt_broken_ximcb=no
16159fi 11864fi
16160rm -f conftest.err conftest.$ac_objext \ 11865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16161 conftest$ac_exeext conftest.$ac_ext
16162LIBS=$ac_check_lib_save_LIBS
16163fi 11866fi
16164echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5 11867echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
16165echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6 11868echo "${ECHO_T}$rxvt_broken_ximcb" >&6
16166if test $ac_cv_lib_xpg4_setlocale = yes; then
16167 LIBS="$LIBS -lxpg4"
16168fi
16169 11869
16170 11870if test x$rxvt_broken_ximcb = xyes; then
16171if test x$support_inheritpixmap = xyes; then
16172 11871
16173cat >>confdefs.h <<\_ACEOF 11872cat >>confdefs.h <<\_ACEOF
16174#define TRANSPARENT 1 11873#define XIMCB_PROTO_BROKEN 1
16175_ACEOF 11874_ACEOF
16176 11875
16177fi 11876fi
16178if test x$support_keepscrolling = xno; then
16179 11877
16180cat >>confdefs.h <<\_ACEOF
16181#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
16182_ACEOF
16183 11878
16184fi
16185if test x$support_selectionscrolling = xyes; then
16186 11879
16187cat >>confdefs.h <<\_ACEOF
16188#define SELECTION_SCROLLING 1
16189_ACEOF
16190 11880
16191fi
16192if test x$support_menubar = xyes; then
16193 11881
16194cat >>confdefs.h <<\_ACEOF
16195#define MENUBAR 1
16196_ACEOF
16197 11882
16198fi
16199if test x$support_frills = xno; then
16200 11883
16201cat >>confdefs.h <<\_ACEOF 11884for ac_header in \
16202#define NO_FRILLS 1 11885 pty.h \
16203_ACEOF 11886 util.h \
11887 libutil.h \
11888 sys/ioctl.h \
11889 sys/stropts.h \
16204 11890
16205fi
16206if test x$support_linespace = xno; then
16207
16208cat >>confdefs.h <<\_ACEOF
16209#define NO_LINESPACE 1
16210_ACEOF
16211
16212fi
16213if test x$support_24bit = xyes; then
16214
16215cat >>confdefs.h <<\_ACEOF
16216#define PREFER_24BIT 1
16217_ACEOF
16218
16219fi
16220if test x$support_mousewheel = xyes; then
16221
16222cat >>confdefs.h <<\_ACEOF
16223#define MOUSE_WHEEL 1
16224_ACEOF
16225
16226fi
16227if test x$support_mouseslipwheel = xyes; then
16228
16229cat >>confdefs.h <<\_ACEOF
16230#define MOUSE_SLIP_WHEELING 1
16231_ACEOF
16232
16233fi
16234if test x$support_oldselection = xno; then
16235
16236cat >>confdefs.h <<\_ACEOF
16237#define NO_OLD_SELECTION 1
16238_ACEOF
16239
16240fi
16241if test x$support_utmp = xyes; then
16242
16243cat >>confdefs.h <<\_ACEOF
16244#define UTMP_SUPPORT 1
16245_ACEOF
16246
16247fi
16248if test x$support_wtmp = xyes; then
16249
16250cat >>confdefs.h <<\_ACEOF
16251#define WTMP_SUPPORT 1
16252_ACEOF
16253
16254fi
16255if test x$support_lastlog = xyes; then
16256
16257cat >>confdefs.h <<\_ACEOF
16258#define LASTLOG_SUPPORT 1
16259_ACEOF
16260
16261fi
16262if test x$support_xim = xyes -o x$multichar_set = xyes; then
16263 if test x$rxvt_cv_func_xlocale = xyes; then
16264
16265cat >>confdefs.h <<\_ACEOF
16266#define USE_XIM 1
16267_ACEOF
16268
16269 fi
16270fi
16271if test x$support_xpm = xyes; then
16272
16273cat >>confdefs.h <<\_ACEOF
16274#define XPM_BACKGROUND 1
16275_ACEOF
16276
16277fi
16278if test x$support_scroll_rxvt = xyes; then
16279
16280cat >>confdefs.h <<\_ACEOF
16281#define RXVT_SCROLLBAR 1
16282_ACEOF
16283
16284 scrolltypes="rxvt"
16285fi
16286if test x$support_scroll_next = xyes; then
16287
16288cat >>confdefs.h <<\_ACEOF
16289#define NEXT_SCROLLBAR 1
16290_ACEOF
16291
16292 scrolltypes="$scrolltypes next"
16293fi
16294if test x$support_scroll_xterm = xyes; then
16295
16296cat >>confdefs.h <<\_ACEOF
16297#define XTERM_SCROLLBAR 1
16298_ACEOF
16299
16300 scrolltypes="$scrolltypes xterm"
16301fi
16302if test x$support_scroll_plain = xyes; then
16303
16304cat >>confdefs.h <<\_ACEOF
16305#define PLAIN_SCROLLBAR 1
16306_ACEOF
16307
16308 scrolltypes="$scrolltypes plain"
16309fi
16310if test x$support_pointer_blank = xyes; then
16311
16312cat >>confdefs.h <<\_ACEOF
16313#define POINTER_BLANK 1
16314_ACEOF
16315
16316fi
16317if test x$support_cursor_blink = xyes; then
16318
16319cat >>confdefs.h <<\_ACEOF
16320#define CURSOR_BLINK 1
16321_ACEOF
16322
16323fi
16324if test x$support_text_blink = xyes; then
16325
16326cat >>confdefs.h <<\_ACEOF
16327#define TEXT_BLINK 1
16328_ACEOF
16329
16330fi
16331if test x$support_unicode3 = xyes; then
16332
16333cat >>confdefs.h <<\_ACEOF
16334#define UNICODE_3 1
16335_ACEOF
16336
16337fi
16338if test x$codesets = xall; then
16339 codesets=jp,jp-ext,kr,cn,cn-ext,vn
16340fi
16341for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
16342
16343cat >>confdefs.h <<\_ACEOF
16344#define ENCODING_EU 1
16345_ACEOF
16346
16347
16348cat >>confdefs.h <<\_ACEOF
16349#define ENCODING_VN 1
16350_ACEOF
16351
16352 case "$codeset" in
16353 JP )
16354cat >>confdefs.h <<\_ACEOF
16355#define ENCODING_JP 1
16356_ACEOF
16357 ;;
16358 JP_EXT )
16359cat >>confdefs.h <<\_ACEOF
16360#define ENCODING_JP_EXT 1
16361_ACEOF
16362 ;;
16363 KR )
16364cat >>confdefs.h <<\_ACEOF
16365#define ENCODING_KR 1
16366_ACEOF
16367 ;;
16368 CN )
16369cat >>confdefs.h <<\_ACEOF
16370#define ENCODING_CN 1
16371_ACEOF
16372 ;;
16373 CN_EXT )
16374cat >>confdefs.h <<\_ACEOF
16375#define ENCODING_CN_EXT 1
16376_ACEOF
16377 ;;
16378 esac
16379done
16380
16381
16382CFLAGS=${CFLAGS--O}
16383LDFLAGS=${LDFLAGS--O}
16384
16385CPPFLAGS="$CPPFLAGS"
16386
16387
16388
16389
16390
16391
16392
16393if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
16394 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
16395 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
16396 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
16397 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
16398 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
16399fi
16400
16401
16402
16403
16404
16405if test x$support_addstrings = xno; then
16406
16407cat >>confdefs.h <<\_ACEOF
16408#define NO_STRINGS 1
16409_ACEOF
16410
16411fi
16412
16413MCOMMON=./autoconf/Make.common
16414
16415
16416test "$program_prefix" != NONE &&
16417 program_transform_name="s,^,$program_prefix,;$program_transform_name"
16418# Use a double $ so make ignores it.
16419test "$program_suffix" != NONE &&
16420 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
16421# Double any \ or $. echo might interpret backslashes.
16422# By default was `s,x,x', remove it if useless.
16423cat <<\_ACEOF >conftest.sed
16424s/[\\$]/&&/g;s/;s,x,x,$//
16425_ACEOF
16426program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
16427rm conftest.sed
16428
16429
16430RXVTNAME=`echo rxvt|sed "$program_transform_name"`
16431
16432
16433
16434
16435
16436if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
16437 include_stdint_h="#include <stdint.h>"
16438else
16439 include_stdint_h="/* #include <stdint.h> */"
16440fi
16441if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
16442 include_stdarg_h="#include <stdarg.h>"
16443else
16444 include_stdarg_h="/* #include <stdarg.h> */"
16445fi
16446if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
16447 include_stdlib_h="#include <stdlib.h>"
16448else
16449 include_stdlib_h="/* #include <stdlib.h> */"
16450fi
16451if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
16452 include_unistd_h="#include <unistd.h>"
16453else
16454 include_unistd_h="/* #include <unistd.h> */"
16455fi
16456if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
16457 include_string_h="#include <string.h>"
16458else
16459 include_string_h="/* #include <string.h> */"
16460fi
16461if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
16462 include_fcntl_h="#include <fcntl.h>"
16463else
16464 include_fcntl_h="/* #include <fcntl.h> */"
16465fi
16466if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
16467 include_util_h="#include <util.h>"
16468else
16469 include_util_h="/* #include <util.h> */"
16470fi
16471if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
16472 include_assert_h="#include <assert.h>"
16473else
16474 include_assert_h="/* #include <assert.h> */"
16475fi
16476if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
16477 include_sys_ioctl_h="#include <sys/ioctl.h>"
16478else
16479 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
16480fi
16481if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
16482 include_sys_select_h="#include <sys/select.h>"
16483else
16484 include_sys_select_h="/* #include <sys/select.h> */"
16485fi
16486if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
16487 include_sys_strredir_h="#include <sys/strredir.h>"
16488else
16489 include_sys_strredir_h="/* #include <sys/strredir.h> */"
16490fi
16491if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
16492 include_sys_time_h="#include <sys/time.h>"
16493else
16494 include_sys_time_h="/* #include <sys/time.h> */"
16495fi
16496if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
16497 include_time_h="#include <time.h>"
16498else
16499 include_time_h="/* #include <time.h> */"
16500fi
16501
16502if test x$support_xft = xyes; then
16503 LIBS="$LIBS `pkg-config xft --libs`"
16504 CFLAGS="$CFLAGS `pkg-config xft --cflags`"
16505 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
16506
16507
16508for ac_header in X11/Xft/Xft.h
16509do 11891do
16510as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11892as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16511if eval "test \"\${$as_ac_Header+set}\" = set"; then 11893if eval "test \"\${$as_ac_Header+set}\" = set"; then
16512 echo "$as_me:$LINENO: checking for $ac_header" >&5 11894 echo "$as_me:$LINENO: checking for $ac_header" >&5
16513echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11895echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16536 grep -v '^ *+' conftest.er1 >conftest.err 11918 grep -v '^ *+' conftest.er1 >conftest.err
16537 rm -f conftest.er1 11919 rm -f conftest.er1
16538 cat conftest.err >&5 11920 cat conftest.err >&5
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); } && 11922 (exit $ac_status); } &&
16541 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11923 { ac_try='test -z "$ac_cxx_werror_flag"
11924 || test ! -s conftest.err'
16542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16543 (eval $ac_try) 2>&5 11926 (eval $ac_try) 2>&5
16544 ac_status=$? 11927 ac_status=$?
16545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546 (exit $ac_status); }; } && 11929 (exit $ac_status); }; } &&
16647if test `eval echo '${'$as_ac_Header'}'` = yes; then 12030if test `eval echo '${'$as_ac_Header'}'` = yes; then
16648 cat >>confdefs.h <<_ACEOF 12031 cat >>confdefs.h <<_ACEOF
16649#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12032#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16650_ACEOF 12033_ACEOF
16651 12034
12035fi
12036
12037done
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049for ac_func in \
12050 revoke \
12051 _getpty \
12052 getpt \
12053 posix_openpt \
12054 isastream \
12055 setuid \
12056 seteuid \
12057 setreuid \
12058 setresuid \
12059
12060do
12061as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12062echo "$as_me:$LINENO: checking for $ac_func" >&5
12063echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12064if eval "test \"\${$as_ac_var+set}\" = set"; then
12065 echo $ECHO_N "(cached) $ECHO_C" >&6
12066else
12067 cat >conftest.$ac_ext <<_ACEOF
12068/* confdefs.h. */
12069_ACEOF
12070cat confdefs.h >>conftest.$ac_ext
12071cat >>conftest.$ac_ext <<_ACEOF
12072/* end confdefs.h. */
12073/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12075#define $ac_func innocuous_$ac_func
12076
12077/* System header to define __stub macros and hopefully few prototypes,
12078 which can conflict with char $ac_func (); below.
12079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12080 <limits.h> exists even on freestanding compilers. */
12081
12082#ifdef __STDC__
12083# include <limits.h>
12084#else
12085# include <assert.h>
12086#endif
12087
12088#undef $ac_func
12089
12090/* Override any gcc2 internal prototype to avoid an error. */
12091#ifdef __cplusplus
12092extern "C"
12093{
12094#endif
12095/* We use char because int might match the return type of a gcc2
12096 builtin and then its argument prototype would still apply. */
12097char $ac_func ();
12098/* The GNU C library defines this for functions which it implements
12099 to always fail with ENOSYS. Some functions are actually named
12100 something starting with __ and the normal name is an alias. */
12101#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12102choke me
12103#else
12104char (*f) () = $ac_func;
12105#endif
12106#ifdef __cplusplus
12107}
12108#endif
12109
12110int
12111main ()
12112{
12113return f != $ac_func;
12114 ;
12115 return 0;
12116}
12117_ACEOF
12118rm -f conftest.$ac_objext conftest$ac_exeext
12119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12120 (eval $ac_link) 2>conftest.er1
12121 ac_status=$?
12122 grep -v '^ *+' conftest.er1 >conftest.err
12123 rm -f conftest.er1
12124 cat conftest.err >&5
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); } &&
12127 { ac_try='test -z "$ac_cxx_werror_flag"
12128 || test ! -s conftest.err'
12129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12130 (eval $ac_try) 2>&5
12131 ac_status=$?
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); }; } &&
12134 { ac_try='test -s conftest$ac_exeext'
12135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136 (eval $ac_try) 2>&5
12137 ac_status=$?
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); }; }; then
12140 eval "$as_ac_var=yes"
12141else
12142 echo "$as_me: failed program was:" >&5
12143sed 's/^/| /' conftest.$ac_ext >&5
12144
12145eval "$as_ac_var=no"
12146fi
12147rm -f conftest.err conftest.$ac_objext \
12148 conftest$ac_exeext conftest.$ac_ext
12149fi
12150echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12151echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12152if test `eval echo '${'$as_ac_var'}'` = yes; then
12153 cat >>confdefs.h <<_ACEOF
12154#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12155_ACEOF
12156
12157fi
12158done
12159
12160
12161have_clone=no
12162
12163echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5
12164echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6
12165if test -e /dev/ptym/clone; then
12166 echo "$as_me:$LINENO: result: yes" >&5
12167echo "${ECHO_T}yes" >&6
12168
12169cat >>confdefs.h <<\_ACEOF
12170#define HAVE_DEV_CLONE 1
12171_ACEOF
12172
12173
12174cat >>confdefs.h <<\_ACEOF
12175#define CLONE_DEVICE "/dev/ptym/clone"
12176_ACEOF
12177
12178 have_clone=yes
12179else
12180 echo "$as_me:$LINENO: result: no" >&5
12181echo "${ECHO_T}no" >&6
12182fi
12183
12184echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12185echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
12186if test -e /dev/ptc; then
12187 echo "$as_me:$LINENO: result: yes" >&5
12188echo "${ECHO_T}yes" >&6
12189
12190cat >>confdefs.h <<\_ACEOF
12191#define HAVE_DEV_PTC 1
12192_ACEOF
12193
12194
12195cat >>confdefs.h <<\_ACEOF
12196#define CLONE_DEVICE "/dev/ptc"
12197_ACEOF
12198
12199 have_clone=yes
12200else
12201 echo "$as_me:$LINENO: result: no" >&5
12202echo "${ECHO_T}no" >&6
12203fi
12204
12205case $host in
12206 *-*-cygwin*)
12207 have_clone=yes
12208
12209cat >>confdefs.h <<\_ACEOF
12210#define CLONE_DEVICE "/dev/ptmx"
12211_ACEOF
12212
12213 ;;
12214 *)
12215 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
12216echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
12217 if test -e /dev/ptmx; then
12218 echo "$as_me:$LINENO: result: yes" >&5
12219echo "${ECHO_T}yes" >&6
12220
12221cat >>confdefs.h <<\_ACEOF
12222#define HAVE_DEV_PTMX 1
12223_ACEOF
12224
12225
12226cat >>confdefs.h <<\_ACEOF
12227#define CLONE_DEVICE "/dev/ptmx"
12228_ACEOF
12229
12230 have_clone=yes
12231 else
12232 echo "$as_me:$LINENO: result: no" >&5
12233echo "${ECHO_T}no" >&6
12234 fi
12235 ;;
12236esac
12237
12238if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then
12239 echo "$as_me:$LINENO: checking for UNIX98 ptys" >&5
12240echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6
12241 cat >conftest.$ac_ext <<_ACEOF
12242/* confdefs.h. */
12243_ACEOF
12244cat confdefs.h >>conftest.$ac_ext
12245cat >>conftest.$ac_ext <<_ACEOF
12246/* end confdefs.h. */
12247#include <stdlib.h>
12248int
12249main ()
12250{
12251grantpt(0);unlockpt(0);ptsname(0);
12252 ;
12253 return 0;
12254}
12255_ACEOF
12256rm -f conftest.$ac_objext conftest$ac_exeext
12257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12258 (eval $ac_link) 2>conftest.er1
12259 ac_status=$?
12260 grep -v '^ *+' conftest.er1 >conftest.err
12261 rm -f conftest.er1
12262 cat conftest.err >&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); } &&
12265 { ac_try='test -z "$ac_cxx_werror_flag"
12266 || test ! -s conftest.err'
12267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12268 (eval $ac_try) 2>&5
12269 ac_status=$?
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); }; } &&
12272 { ac_try='test -s conftest$ac_exeext'
12273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12274 (eval $ac_try) 2>&5
12275 ac_status=$?
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); }; }; then
12278 unix98_pty=yes
12279
12280cat >>confdefs.h <<\_ACEOF
12281#define UNIX98_PTY 1
12282_ACEOF
12283
12284 echo "$as_me:$LINENO: result: yes" >&5
12285echo "${ECHO_T}yes" >&6
12286else
12287 echo "$as_me: failed program was:" >&5
12288sed 's/^/| /' conftest.$ac_ext >&5
12289
12290echo "$as_me:$LINENO: result: no" >&5
12291echo "${ECHO_T}no" >&6
12292fi
12293rm -f conftest.err conftest.$ac_objext \
12294 conftest$ac_exeext conftest.$ac_ext
12295fi
12296
12297if test -z "$unix98_pty"; then
12298
12299for ac_func in openpty
12300do
12301as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12302echo "$as_me:$LINENO: checking for $ac_func" >&5
12303echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12304if eval "test \"\${$as_ac_var+set}\" = set"; then
12305 echo $ECHO_N "(cached) $ECHO_C" >&6
12306else
12307 cat >conftest.$ac_ext <<_ACEOF
12308/* confdefs.h. */
12309_ACEOF
12310cat confdefs.h >>conftest.$ac_ext
12311cat >>conftest.$ac_ext <<_ACEOF
12312/* end confdefs.h. */
12313/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12315#define $ac_func innocuous_$ac_func
12316
12317/* System header to define __stub macros and hopefully few prototypes,
12318 which can conflict with char $ac_func (); below.
12319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12320 <limits.h> exists even on freestanding compilers. */
12321
12322#ifdef __STDC__
12323# include <limits.h>
12324#else
12325# include <assert.h>
12326#endif
12327
12328#undef $ac_func
12329
12330/* Override any gcc2 internal prototype to avoid an error. */
12331#ifdef __cplusplus
12332extern "C"
12333{
12334#endif
12335/* We use char because int might match the return type of a gcc2
12336 builtin and then its argument prototype would still apply. */
12337char $ac_func ();
12338/* The GNU C library defines this for functions which it implements
12339 to always fail with ENOSYS. Some functions are actually named
12340 something starting with __ and the normal name is an alias. */
12341#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12342choke me
12343#else
12344char (*f) () = $ac_func;
12345#endif
12346#ifdef __cplusplus
12347}
12348#endif
12349
12350int
12351main ()
12352{
12353return f != $ac_func;
12354 ;
12355 return 0;
12356}
12357_ACEOF
12358rm -f conftest.$ac_objext conftest$ac_exeext
12359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12360 (eval $ac_link) 2>conftest.er1
12361 ac_status=$?
12362 grep -v '^ *+' conftest.er1 >conftest.err
12363 rm -f conftest.er1
12364 cat conftest.err >&5
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); } &&
12367 { ac_try='test -z "$ac_cxx_werror_flag"
12368 || test ! -s conftest.err'
12369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370 (eval $ac_try) 2>&5
12371 ac_status=$?
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; } &&
12374 { ac_try='test -s conftest$ac_exeext'
12375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12376 (eval $ac_try) 2>&5
12377 ac_status=$?
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); }; }; then
12380 eval "$as_ac_var=yes"
12381else
12382 echo "$as_me: failed program was:" >&5
12383sed 's/^/| /' conftest.$ac_ext >&5
12384
12385eval "$as_ac_var=no"
12386fi
12387rm -f conftest.err conftest.$ac_objext \
12388 conftest$ac_exeext conftest.$ac_ext
12389fi
12390echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12391echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12392if test `eval echo '${'$as_ac_var'}'` = yes; then
12393 cat >>confdefs.h <<_ACEOF
12394#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12395_ACEOF
12396
12397else
12398 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
12399echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
12400if test "${ac_cv_lib_util_openpty+set}" = set; then
12401 echo $ECHO_N "(cached) $ECHO_C" >&6
12402else
12403 ac_check_lib_save_LIBS=$LIBS
12404LIBS="-lutil $LIBS"
12405cat >conftest.$ac_ext <<_ACEOF
12406/* confdefs.h. */
12407_ACEOF
12408cat confdefs.h >>conftest.$ac_ext
12409cat >>conftest.$ac_ext <<_ACEOF
12410/* end confdefs.h. */
12411
12412/* Override any gcc2 internal prototype to avoid an error. */
12413#ifdef __cplusplus
12414extern "C"
12415#endif
12416/* We use char because int might match the return type of a gcc2
12417 builtin and then its argument prototype would still apply. */
12418char openpty ();
12419int
12420main ()
12421{
12422openpty ();
12423 ;
12424 return 0;
12425}
12426_ACEOF
12427rm -f conftest.$ac_objext conftest$ac_exeext
12428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12429 (eval $ac_link) 2>conftest.er1
12430 ac_status=$?
12431 grep -v '^ *+' conftest.er1 >conftest.err
12432 rm -f conftest.er1
12433 cat conftest.err >&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); } &&
12436 { ac_try='test -z "$ac_cxx_werror_flag"
12437 || test ! -s conftest.err'
12438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12439 (eval $ac_try) 2>&5
12440 ac_status=$?
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); }; } &&
12443 { ac_try='test -s conftest$ac_exeext'
12444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12445 (eval $ac_try) 2>&5
12446 ac_status=$?
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); }; }; then
12449 ac_cv_lib_util_openpty=yes
12450else
12451 echo "$as_me: failed program was:" >&5
12452sed 's/^/| /' conftest.$ac_ext >&5
12453
12454ac_cv_lib_util_openpty=no
12455fi
12456rm -f conftest.err conftest.$ac_objext \
12457 conftest$ac_exeext conftest.$ac_ext
12458LIBS=$ac_check_lib_save_LIBS
12459fi
12460echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
12461echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
12462if test $ac_cv_lib_util_openpty = yes; then
12463 cat >>confdefs.h <<\_ACEOF
12464#define HAVE_OPENPTY 1
12465_ACEOF
12466 LIBS="$LIBS -lutil"
12467fi
12468
12469fi
12470done
12471
12472fi
12473
12474
12475
12476echo "$as_me:$LINENO: checking for tty group" >&5
12477echo $ECHO_N "checking for tty group... $ECHO_C" >&6
12478if test "${tty_group+set}" = set; then
12479 echo $ECHO_N "(cached) $ECHO_C" >&6
12480else
12481 if test "$cross_compiling" = yes; then
12482 tty_group=no
12483else
12484 cat >conftest.$ac_ext <<_ACEOF
12485/* confdefs.h. */
12486_ACEOF
12487cat confdefs.h >>conftest.$ac_ext
12488cat >>conftest.$ac_ext <<_ACEOF
12489/* end confdefs.h. */
12490
12491#include <sys/types.h>
12492#include <sys/stat.h>
12493#include <unistd.h>
12494#include <grp.h>
12495
12496main()
12497{
12498 struct stat st;
12499 struct group *gr;
12500 char *tty;
12501 gr = getgrnam("tty");
12502 tty = ttyname(0);
12503 if (gr != 0
12504 && tty != 0
12505 && (stat(tty, &st)) == 0
12506 && st.st_gid == gr->gr_gid)
12507 return 0;
12508 else
12509 return 1;
12510}
12511_ACEOF
12512rm -f conftest$ac_exeext
12513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12514 (eval $ac_link) 2>&5
12515 ac_status=$?
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12519 (eval $ac_try) 2>&5
12520 ac_status=$?
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); }; }; then
12523 tty_group=yes
12524else
12525 echo "$as_me: program exited with status $ac_status" >&5
12526echo "$as_me: failed program was:" >&5
12527sed 's/^/| /' conftest.$ac_ext >&5
12528
12529( exit $ac_status )
12530tty_group=no
12531fi
12532rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12533fi
12534fi
12535echo "$as_me:$LINENO: result: $tty_group" >&5
12536echo "${ECHO_T}$tty_group" >&6
12537if test x$tty_group = xyes; then
12538
12539cat >>confdefs.h <<\_ACEOF
12540#define TTY_GID_SUPPORT 1
12541_ACEOF
12542
12543fi
12544
12545if test x$support_xft = xyes; then
12546 # Extract the first word of "pkg-config", so it can be a program name with args.
12547set dummy pkg-config; ac_word=$2
12548echo "$as_me:$LINENO: checking for $ac_word" >&5
12549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12550if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12551 echo $ECHO_N "(cached) $ECHO_C" >&6
12552else
12553 case $PKG_CONFIG in
12554 [\\/]* | ?:[\\/]*)
12555 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12556 ;;
12557 *)
12558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12559for as_dir in $PATH
12560do
12561 IFS=$as_save_IFS
12562 test -z "$as_dir" && as_dir=.
12563 for ac_exec_ext in '' $ac_executable_extensions; do
12564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12565 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12567 break 2
12568 fi
12569done
12570done
12571
12572 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12573 ;;
12574esac
12575fi
12576PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12577
12578if test -n "$PKG_CONFIG"; then
12579 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12580echo "${ECHO_T}$PKG_CONFIG" >&6
12581else
12582 echo "$as_me:$LINENO: result: no" >&5
12583echo "${ECHO_T}no" >&6
12584fi
12585
12586 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
12587 LIBS="$LIBS `$PKG_CONFIG xft --libs`"
12588 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
12589 else
12590 # Extract the first word of "xft-config", so it can be a program name with args.
12591set dummy xft-config; ac_word=$2
12592echo "$as_me:$LINENO: checking for $ac_word" >&5
12593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12594if test "${ac_cv_path_XFT_CONFIG+set}" = set; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12596else
12597 case $XFT_CONFIG in
12598 [\\/]* | ?:[\\/]*)
12599 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
12600 ;;
12601 *)
12602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12603for as_dir in $PATH
12604do
12605 IFS=$as_save_IFS
12606 test -z "$as_dir" && as_dir=.
12607 for ac_exec_ext in '' $ac_executable_extensions; do
12608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12609 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12611 break 2
12612 fi
12613done
12614done
12615
12616 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
12617 ;;
12618esac
12619fi
12620XFT_CONFIG=$ac_cv_path_XFT_CONFIG
12621
12622if test -n "$XFT_CONFIG"; then
12623 echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5
12624echo "${ECHO_T}$XFT_CONFIG" >&6
12625else
12626 echo "$as_me:$LINENO: result: no" >&5
12627echo "${ECHO_T}no" >&6
12628fi
12629
12630 if test $XFT_CONFIG != no; then
12631 LIBS="$LIBS `$XFT_CONFIG --libs`"
12632 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
12633 fi
12634 fi
12635
12636
12637for ac_header in X11/Xft/Xft.h
12638do
12639as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12640if eval "test \"\${$as_ac_Header+set}\" = set"; then
12641 echo "$as_me:$LINENO: checking for $ac_header" >&5
12642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12643if eval "test \"\${$as_ac_Header+set}\" = set"; then
12644 echo $ECHO_N "(cached) $ECHO_C" >&6
12645fi
12646echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12647echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12648else
12649 # Is the header compilable?
12650echo "$as_me:$LINENO: checking $ac_header usability" >&5
12651echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12652cat >conftest.$ac_ext <<_ACEOF
12653/* confdefs.h. */
12654_ACEOF
12655cat confdefs.h >>conftest.$ac_ext
12656cat >>conftest.$ac_ext <<_ACEOF
12657/* end confdefs.h. */
12658$ac_includes_default
12659#include <$ac_header>
12660_ACEOF
12661rm -f conftest.$ac_objext
12662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12663 (eval $ac_compile) 2>conftest.er1
12664 ac_status=$?
12665 grep -v '^ *+' conftest.er1 >conftest.err
12666 rm -f conftest.er1
12667 cat conftest.err >&5
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); } &&
12670 { ac_try='test -z "$ac_cxx_werror_flag"
12671 || test ! -s conftest.err'
12672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12673 (eval $ac_try) 2>&5
12674 ac_status=$?
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); }; } &&
12677 { ac_try='test -s conftest.$ac_objext'
12678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12679 (eval $ac_try) 2>&5
12680 ac_status=$?
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); }; }; then
12683 ac_header_compiler=yes
12684else
12685 echo "$as_me: failed program was:" >&5
12686sed 's/^/| /' conftest.$ac_ext >&5
12687
12688ac_header_compiler=no
12689fi
12690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12691echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12692echo "${ECHO_T}$ac_header_compiler" >&6
12693
12694# Is the header present?
12695echo "$as_me:$LINENO: checking $ac_header presence" >&5
12696echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12697cat >conftest.$ac_ext <<_ACEOF
12698/* confdefs.h. */
12699_ACEOF
12700cat confdefs.h >>conftest.$ac_ext
12701cat >>conftest.$ac_ext <<_ACEOF
12702/* end confdefs.h. */
12703#include <$ac_header>
12704_ACEOF
12705if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12707 ac_status=$?
12708 grep -v '^ *+' conftest.er1 >conftest.err
12709 rm -f conftest.er1
12710 cat conftest.err >&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); } >/dev/null; then
12713 if test -s conftest.err; then
12714 ac_cpp_err=$ac_cxx_preproc_warn_flag
12715 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12716 else
12717 ac_cpp_err=
12718 fi
12719else
12720 ac_cpp_err=yes
12721fi
12722if test -z "$ac_cpp_err"; then
12723 ac_header_preproc=yes
12724else
12725 echo "$as_me: failed program was:" >&5
12726sed 's/^/| /' conftest.$ac_ext >&5
12727
12728 ac_header_preproc=no
12729fi
12730rm -f conftest.err conftest.$ac_ext
12731echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12732echo "${ECHO_T}$ac_header_preproc" >&6
12733
12734# So? What about this header?
12735case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12736 yes:no: )
12737 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12738echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12740echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12741 ac_header_preproc=yes
12742 ;;
12743 no:yes:* )
12744 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12745echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12746 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12747echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12748 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12749echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12750 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12751echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12753echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12754 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12755echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12756 (
12757 cat <<\_ASBOX
12758## ------------------------------------------ ##
12759## Report this to the AC_PACKAGE_NAME lists. ##
12760## ------------------------------------------ ##
12761_ASBOX
12762 ) |
12763 sed "s/^/$as_me: WARNING: /" >&2
12764 ;;
12765esac
12766echo "$as_me:$LINENO: checking for $ac_header" >&5
12767echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12768if eval "test \"\${$as_ac_Header+set}\" = set"; then
12769 echo $ECHO_N "(cached) $ECHO_C" >&6
12770else
12771 eval "$as_ac_Header=\$ac_header_preproc"
12772fi
12773echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12774echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12775
12776fi
12777if test `eval echo '${'$as_ac_Header'}'` = yes; then
12778 cat >>confdefs.h <<_ACEOF
12779#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12780_ACEOF
12781
16652else 12782else
16653 support_xft=no 12783 support_xft=no
16654fi 12784fi
16655 12785
16656done 12786done
16692 grep -v '^ *+' conftest.er1 >conftest.err 12822 grep -v '^ *+' conftest.er1 >conftest.err
16693 rm -f conftest.er1 12823 rm -f conftest.er1
16694 cat conftest.err >&5 12824 cat conftest.err >&5
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); } && 12826 (exit $ac_status); } &&
16697 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 12827 { ac_try='test -z "$ac_cxx_werror_flag"
12828 || test ! -s conftest.err'
16698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16699 (eval $ac_try) 2>&5 12830 (eval $ac_try) 2>&5
16700 ac_status=$? 12831 ac_status=$?
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); }; } && 12833 (exit $ac_status); }; } &&
16737#define XFT 1 12868#define XFT 1
16738_ACEOF 12869_ACEOF
16739 12870
16740 fi 12871 fi
16741fi 12872fi
12873if test x$support_styles = xyes; then
16742 12874
12875cat >>confdefs.h <<\_ACEOF
12876#define ENABLE_STYLES 1
12877_ACEOF
12878
12879fi
12880if test x$support_iso14755 = xyes; then
12881
12882cat >>confdefs.h <<\_ACEOF
12883#define ISO_14755 1
12884_ACEOF
12885
12886fi
12887if test x$support_8bitctrls = xyes; then
12888
12889cat >>confdefs.h <<\_ACEOF
12890#define EIGHT_BIT_CONTROLS 1
12891_ACEOF
12892
12893fi
12894if test x$support_fading = xyes; then
12895
12896cat >>confdefs.h <<\_ACEOF
12897#define OFF_FOCUS_FADING 1
12898_ACEOF
12899
12900fi
12901if test x$support_tinting = xyes; then
12902
12903cat >>confdefs.h <<\_ACEOF
12904#define TINTING 1
12905_ACEOF
12906
12907fi
12908if test x$support_inheritpixmap = xyes; then
12909
12910cat >>confdefs.h <<\_ACEOF
12911#define TRANSPARENT 1
12912_ACEOF
12913
12914fi
12915if test x$support_keepscrolling = xno; then
12916
12917cat >>confdefs.h <<\_ACEOF
12918#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
12919_ACEOF
12920
12921fi
12922if test x$support_selectionscrolling = xyes; then
12923
12924cat >>confdefs.h <<\_ACEOF
12925#define SELECTION_SCROLLING 1
12926_ACEOF
12927
12928fi
12929if test x$support_frills = xyes; then
12930
12931cat >>confdefs.h <<\_ACEOF
12932#define ENABLE_FRILLS 1
12933_ACEOF
12934
12935fi
12936if test x$support_mousewheel = xyes; then
12937
12938cat >>confdefs.h <<\_ACEOF
12939#define MOUSE_WHEEL 1
12940_ACEOF
12941
12942fi
12943if test x$support_mouseslipwheel = xyes; then
12944
12945cat >>confdefs.h <<\_ACEOF
12946#define MOUSE_SLIP_WHEELING 1
12947_ACEOF
12948
12949fi
12950if test x$support_xim = xyes -o x$multichar_set = xyes; then
12951 if test x$rxvt_cv_func_xlocale = xyes; then
12952
12953cat >>confdefs.h <<\_ACEOF
12954#define USE_XIM 1
12955_ACEOF
12956
12957 fi
12958fi
12959if test x$support_xpm = xyes -o x$support_afterimage = xyes ; then
12960
12961cat >>confdefs.h <<\_ACEOF
12962#define XPM_BACKGROUND 1
12963_ACEOF
12964
12965fi
12966
12967if test x$support_afterimage = xyes; then
12968
12969cat >>confdefs.h <<\_ACEOF
12970#define HAVE_AFTERIMAGE 1
12971_ACEOF
12972
12973fi
12974
12975if test x$support_afterstep = xyes; then
12976
12977cat >>confdefs.h <<\_ACEOF
12978#define AFTERSTEP_INTEGRATION 1
12979_ACEOF
12980
12981fi
12982
12983if test x$support_scroll_rxvt = xyes; then
12984
12985cat >>confdefs.h <<\_ACEOF
12986#define RXVT_SCROLLBAR 1
12987_ACEOF
12988
12989 scrolltypes="rxvt"
12990fi
12991if test x$support_scroll_next = xyes; then
12992
12993cat >>confdefs.h <<\_ACEOF
12994#define NEXT_SCROLLBAR 1
12995_ACEOF
12996
12997 scrolltypes="$scrolltypes next"
12998fi
12999if test x$support_scroll_xterm = xyes; then
13000
13001cat >>confdefs.h <<\_ACEOF
13002#define XTERM_SCROLLBAR 1
13003_ACEOF
13004
13005 scrolltypes="$scrolltypes xterm"
13006fi
13007if test x$support_scroll_plain = xyes; then
13008
13009cat >>confdefs.h <<\_ACEOF
13010#define PLAIN_SCROLLBAR 1
13011_ACEOF
13012
13013 scrolltypes="$scrolltypes plain"
13014fi
13015if test x$support_pointer_blank = xyes; then
13016
13017cat >>confdefs.h <<\_ACEOF
13018#define POINTER_BLANK 1
13019_ACEOF
13020
13021fi
13022if test x$support_text_blink = xyes; then
13023
13024cat >>confdefs.h <<\_ACEOF
13025#define TEXT_BLINK 1
13026_ACEOF
13027
13028fi
13029if test x$support_unicode3 = xyes; then
13030
13031cat >>confdefs.h <<\_ACEOF
13032#define UNICODE_3 1
13033_ACEOF
13034
13035fi
13036if test x$support_combining = xyes; then
13037
13038cat >>confdefs.h <<\_ACEOF
13039#define ENABLE_COMBINING 1
13040_ACEOF
13041
13042fi
13043if test x$codesets = xall; then
13044 codesets=jp,jp-ext,kr,zh,zh-ext
13045fi
13046
13047cat >>confdefs.h <<\_ACEOF
13048#define ENCODING_EU 1
13049_ACEOF
13050
13051
13052cat >>confdefs.h <<\_ACEOF
13053#define ENCODING_VN 1
13054_ACEOF
13055
13056for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
13057 case "$codeset" in
13058 JP )
13059cat >>confdefs.h <<\_ACEOF
13060#define ENCODING_JP 1
13061_ACEOF
13062 ;;
13063 JP_EXT )
13064cat >>confdefs.h <<\_ACEOF
13065#define ENCODING_JP_EXT 1
13066_ACEOF
13067 ;;
13068 KR )
13069cat >>confdefs.h <<\_ACEOF
13070#define ENCODING_KR 1
13071_ACEOF
13072 ;;
13073 ZH )
13074cat >>confdefs.h <<\_ACEOF
13075#define ENCODING_ZH 1
13076_ACEOF
13077 ;;
13078 ZH_EXT )
13079cat >>confdefs.h <<\_ACEOF
13080#define ENCODING_ZH_EXT 1
13081_ACEOF
13082 ;;
13083 esac
13084done
13085
13086IF_PERL=\#
13087if test x$support_perl = xyes; then
13088 # Extract the first word of "perl5", so it can be a program name with args.
13089set dummy perl5; ac_word=$2
13090echo "$as_me:$LINENO: checking for $ac_word" >&5
13091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13092if test "${ac_cv_path_PERL+set}" = set; then
13093 echo $ECHO_N "(cached) $ECHO_C" >&6
13094else
13095 case $PERL in
13096 [\\/]* | ?:[\\/]*)
13097 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13098 ;;
13099 *)
13100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13101for as_dir in $PATH
13102do
13103 IFS=$as_save_IFS
13104 test -z "$as_dir" && as_dir=.
13105 for ac_exec_ext in '' $ac_executable_extensions; do
13106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13107 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13109 break 2
13110 fi
13111done
13112done
13113
13114 ;;
13115esac
13116fi
13117PERL=$ac_cv_path_PERL
13118
13119if test -n "$PERL"; then
13120 echo "$as_me:$LINENO: result: $PERL" >&5
13121echo "${ECHO_T}$PERL" >&6
13122else
13123 echo "$as_me:$LINENO: result: no" >&5
13124echo "${ECHO_T}no" >&6
13125fi
13126
13127 # Extract the first word of "perl", so it can be a program name with args.
13128set dummy perl; ac_word=$2
13129echo "$as_me:$LINENO: checking for $ac_word" >&5
13130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13131if test "${ac_cv_path_PERL+set}" = set; then
13132 echo $ECHO_N "(cached) $ECHO_C" >&6
13133else
13134 case $PERL in
13135 [\\/]* | ?:[\\/]*)
13136 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13137 ;;
13138 *)
13139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13140for as_dir in $PATH
13141do
13142 IFS=$as_save_IFS
13143 test -z "$as_dir" && as_dir=.
13144 for ac_exec_ext in '' $ac_executable_extensions; do
13145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13146 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13148 break 2
13149 fi
13150done
13151done
13152
13153 ;;
13154esac
13155fi
13156PERL=$ac_cv_path_PERL
13157
13158if test -n "$PERL"; then
13159 echo "$as_me:$LINENO: result: $PERL" >&5
13160echo "${ECHO_T}$PERL" >&6
13161else
13162 echo "$as_me:$LINENO: result: no" >&5
13163echo "${ECHO_T}no" >&6
13164fi
13165
13166
13167 echo "$as_me:$LINENO: checking for $PERL suitability" >&5
13168echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6
13169 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
13170
13171 save_CXXFLAGS="$CXXFLAGS"
13172 save_LIBS="$LIBS"
13173 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
13174 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
13175 cat >conftest.$ac_ext <<_ACEOF
13176/* confdefs.h. */
13177_ACEOF
13178cat confdefs.h >>conftest.$ac_ext
13179cat >>conftest.$ac_ext <<_ACEOF
13180/* end confdefs.h. */
13181
13182#include <EXTERN.h>
13183#include <perl.h>
13184#include <XSUB.h>
13185
13186int
13187main ()
13188{
13189
13190 PerlInterpreter *perl = perl_alloc ();
13191
13192 ;
13193 return 0;
13194}
13195_ACEOF
13196rm -f conftest.$ac_objext conftest$ac_exeext
13197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13198 (eval $ac_link) 2>conftest.er1
13199 ac_status=$?
13200 grep -v '^ *+' conftest.er1 >conftest.err
13201 rm -f conftest.er1
13202 cat conftest.err >&5
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); } &&
13205 { ac_try='test -z "$ac_cxx_werror_flag"
13206 || 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_exeext'
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 rxvt_perl_link=yes
13219else
13220 echo "$as_me: failed program was:" >&5
13221sed 's/^/| /' conftest.$ac_ext >&5
13222
13223rxvt_perl_link=no
13224fi
13225rm -f conftest.err conftest.$ac_objext \
13226 conftest$ac_exeext conftest.$ac_ext
13227 CXXFLAGS="$save_CXXFLAGS"
13228 LIBS="$save_LIBS"
13229
13230 if test x$rxvt_perl_link = xyes; then
13231 echo "$as_me:$LINENO: result: ok" >&5
13232echo "${ECHO_T}ok" >&6
13233
13234cat >>confdefs.h <<\_ACEOF
13235#define ENABLE_PERL 1
13236_ACEOF
13237
13238 IF_PERL=
13239 PERL_O=rxvtperl.o
13240 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
13241 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
13242 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
13243 else
13244 { { echo "$as_me:$LINENO: error: no, unable to link" >&5
13245echo "$as_me: error: no, unable to link" >&2;}
13246 { (exit 1); exit 1; }; }
13247 fi
13248 else
13249 { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5
13250echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;}
13251 { (exit 1); exit 1; }; }
13252 fi
13253fi
13254
13255
13256
13257
13258
13259
13260
13261if test x$support_perl = xyes; then
13262 support_frills=yes
13263fi
13264
13265
13266
13267
13268
13269
13270if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
13271 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
13272 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
13273 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
13274 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
13275fi
13276
13277
13278
13279
13280
13281
13282
13283test "$program_prefix" != NONE &&
13284 program_transform_name="s,^,$program_prefix,;$program_transform_name"
13285# Use a double $ so make ignores it.
13286test "$program_suffix" != NONE &&
13287 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
13288# Double any \ or $. echo might interpret backslashes.
13289# By default was `s,x,x', remove it if useless.
13290cat <<\_ACEOF >conftest.sed
13291s/[\\$]/&&/g;s/;s,x,x,$//
13292_ACEOF
13293program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
13294rm conftest.sed
13295
13296
13297
13298
13299
13300if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
13301 include_stdint_h="#include <stdint.h>"
13302else
13303 include_stdint_h="/* #include <stdint.h> */"
13304fi
13305if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
13306 include_stdarg_h="#include <cstdarg>"
13307else
13308 include_stdarg_h="/* #include <cstdarg> */"
13309fi
13310if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
13311 include_stdlib_h="#include <cstdlib>"
13312else
13313 include_stdlib_h="/* #include <cstdlib> */"
13314fi
13315if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
13316 include_unistd_h="#include <unistd.h>"
13317else
13318 include_unistd_h="/* #include <unistd.h> */"
13319fi
13320if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
13321 include_string_h="#include <cstring>"
13322else
13323 include_string_h="/* #include <cstring> */"
13324fi
13325if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
13326 include_fcntl_h="#include <fcntl.h>"
13327else
13328 include_fcntl_h="/* #include <fcntl.h> */"
13329fi
13330if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
13331 include_util_h="#include <util.h>"
13332else
13333 include_util_h="/* #include <util.h> */"
13334fi
13335if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
13336 include_assert_h="#include <assert.h>"
13337else
13338 include_assert_h="/* #include <assert.h> */"
13339fi
13340if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
13341 include_sys_ioctl_h="#include <sys/ioctl.h>"
13342else
13343 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
13344fi
13345if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
13346 include_sys_select_h="#include <sys/select.h>"
13347else
13348 include_sys_select_h="/* #include <sys/select.h> */"
13349fi
13350if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
13351 include_sys_strredir_h="#include <sys/strredir.h>"
13352else
13353 include_sys_strredir_h="/* #include <sys/strredir.h> */"
13354fi
13355if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
13356 include_sys_time_h="#include <sys/time.h>"
13357else
13358 include_sys_time_h="/* #include <sys/time.h> */"
13359fi
13360if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
13361 include_time_h="#include <time.h>"
13362else
13363 include_time_h="/* #include <time.h> */"
13364fi
13365
16743 ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/test/Makefile src/rxvtlib.h W11/Makefile" 13366 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h"
13367
16744cat >confcache <<\_ACEOF 13368cat >confcache <<\_ACEOF
16745# This file is a shell script that caches the results of configure 13369# This file is a shell script that caches the results of configure
16746# tests run on this system so they can be shared between configure 13370# tests run on this system so they can be shared between configure
16747# scripts and configure runs, see configure's option --config-cache. 13371# scripts and configure runs, see configure's option --config-cache.
16748# It is not useful on other systems. If it contains results you don't 13372# It is not useful on other systems. If it contains results you don't
17264cat >>$CONFIG_STATUS <<\_ACEOF 13888cat >>$CONFIG_STATUS <<\_ACEOF
17265for ac_config_target in $ac_config_targets 13889for ac_config_target in $ac_config_targets
17266do 13890do
17267 case "$ac_config_target" in 13891 case "$ac_config_target" in
17268 # Handling of arguments. 13892 # Handling of arguments.
17269 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
17270 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13893 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17271 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 13894 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17272 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 13895 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17273 "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
17274 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; 13896 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
17275 "W11/Makefile" ) CONFIG_FILES="$CONFIG_FILES W11/Makefile" ;;
17276 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;; 13897 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
17277 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 13898 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17278echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 13899echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17279 { (exit 1); exit 1; }; };; 13900 { (exit 1); exit 1; }; };;
17280 esac 13901 esac
17281done 13902done
17356s,@DEFS@,$DEFS,;t t 13977s,@DEFS@,$DEFS,;t t
17357s,@ECHO_C@,$ECHO_C,;t t 13978s,@ECHO_C@,$ECHO_C,;t t
17358s,@ECHO_N@,$ECHO_N,;t t 13979s,@ECHO_N@,$ECHO_N,;t t
17359s,@ECHO_T@,$ECHO_T,;t t 13980s,@ECHO_T@,$ECHO_T,;t t
17360s,@LIBS@,$LIBS,;t t 13981s,@LIBS@,$LIBS,;t t
13982s,@build@,$build,;t t
13983s,@build_cpu@,$build_cpu,;t t
13984s,@build_vendor@,$build_vendor,;t t
13985s,@build_os@,$build_os,;t t
13986s,@host@,$host,;t t
13987s,@host_cpu@,$host_cpu,;t t
13988s,@host_vendor@,$host_vendor,;t t
13989s,@host_os@,$host_os,;t t
17361s,@VERSION@,$VERSION,;t t 13990s,@VERSION@,$VERSION,;t t
17362s,@DATE@,$DATE,;t t 13991s,@DATE@,$DATE,;t t
17363s,@LSMDATE@,$LSMDATE,;t t 13992s,@LSMDATE@,$LSMDATE,;t t
17364s,@LIBVERSION@,$LIBVERSION,;t t 13993s,@LIBVERSION@,$LIBVERSION,;t t
17365s,@CC@,$CC,;t t 13994s,@CC@,$CC,;t t
17374s,@ac_ct_CXX@,$ac_ct_CXX,;t t 14003s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17375s,@CPP@,$CPP,;t t 14004s,@CPP@,$CPP,;t t
17376s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 14005s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17377s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 14006s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17378s,@INSTALL_DATA@,$INSTALL_DATA,;t t 14007s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17379s,@AWK@,$AWK,;t t 14008s,@EGREP@,$EGREP,;t t
17380s,@LINKER@,$LINKER,;t t 14009s,@LINKER@,$LINKER,;t t
14010s,@CXXLIB@,$CXXLIB,;t t
14011s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
14012s,@RXVTNAME@,$RXVTNAME,;t t
14013s,@TIC@,$TIC,;t t
17381s,@CXXCPP@,$CXXCPP,;t t 14014s,@CXXCPP@,$CXXCPP,;t t
17382s,@EGREP@,$EGREP,;t t
17383s,@build@,$build,;t t
17384s,@build_cpu@,$build_cpu,;t t
17385s,@build_vendor@,$build_vendor,;t t
17386s,@build_os@,$build_os,;t t
17387s,@host@,$host,;t t
17388s,@host_cpu@,$host_cpu,;t t
17389s,@host_vendor@,$host_vendor,;t t
17390s,@host_os@,$host_os,;t t
17391s,@LN_S@,$LN_S,;t t
17392s,@ECHO@,$ECHO,;t t
17393s,@RANLIB@,$RANLIB,;t t
17394s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17395s,@STRIP@,$STRIP,;t t
17396s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17397s,@LIBTOOL@,$LIBTOOL,;t t
17398s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
17399s,@MV@,$MV,;t t
17400s,@RM@,$RM,;t t
17401s,@CP@,$CP,;t t
17402s,@LN@,$LN,;t t
17403s,@SED@,$SED,;t t
17404s,@CMP@,$CMP,;t t
17405s,@TBL@,$TBL,;t t
17406s,@X_CFLAGS@,$X_CFLAGS,;t t 14015s,@X_CFLAGS@,$X_CFLAGS,;t t
17407s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 14016s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17408s,@X_LIBS@,$X_LIBS,;t t 14017s,@X_LIBS@,$X_LIBS,;t t
17409s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 14018s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
14019s,@afterimage_config@,$afterimage_config,;t t
17410s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t 14020s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
17411s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t 14021s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t
17412s,@XPM_LIBS@,$XPM_LIBS,;t t 14022s,@XPM_LIBS@,$XPM_LIBS,;t t
17413s,@rxvt_int16_typedef@,$rxvt_int16_typedef,;t t 14023s,@rxvt_int16_typedef@,$rxvt_int16_typedef,;t t
17414s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t 14024s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
17415s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t 14025s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
17416s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t 14026s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
17417s,@rxvt_intp_define@,$rxvt_intp_define,;t t 14027s,@rxvt_intp_define@,$rxvt_intp_define,;t t
17418s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t 14028s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
17419s,@DEBUG@,$DEBUG,;t t 14029s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17420s,@DINCLUDE@,$DINCLUDE,;t t 14030s,@XFT_CONFIG@,$XFT_CONFIG,;t t
14031s,@PERL@,$PERL,;t t
17421s,@DLIB@,$DLIB,;t t 14032s,@PERLLIB@,$PERLLIB,;t t
17422s,@RXVTNAME@,$RXVTNAME,;t t 14033s,@PERLFLAGS@,$PERLFLAGS,;t t
14034s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t
14035s,@IF_PERL@,$IF_PERL,;t t
14036s,@PERL_O@,$PERL_O,;t t
14037s,@LIBAFTERIMAGE_CFLAGS@,$LIBAFTERIMAGE_CFLAGS,;t t
14038s,@AFTERIMAGE_LIBS@,$AFTERIMAGE_LIBS,;t t
17423s,@include_stdint_h@,$include_stdint_h,;t t 14039s,@include_stdint_h@,$include_stdint_h,;t t
17424s,@include_stdarg_h@,$include_stdarg_h,;t t 14040s,@include_stdarg_h@,$include_stdarg_h,;t t
17425s,@include_stdlib_h@,$include_stdlib_h,;t t 14041s,@include_stdlib_h@,$include_stdlib_h,;t t
17426s,@include_unistd_h@,$include_unistd_h,;t t 14042s,@include_unistd_h@,$include_unistd_h,;t t
17427s,@include_string_h@,$include_string_h,;t t 14043s,@include_string_h@,$include_string_h,;t t
17433s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t 14049s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t
17434s,@include_sys_time_h@,$include_sys_time_h,;t t 14050s,@include_sys_time_h@,$include_sys_time_h,;t t
17435s,@include_time_h@,$include_time_h,;t t 14051s,@include_time_h@,$include_time_h,;t t
17436s,@LIBOBJS@,$LIBOBJS,;t t 14052s,@LIBOBJS@,$LIBOBJS,;t t
17437s,@LTLIBOBJS@,$LTLIBOBJS,;t t 14053s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17438/@MCOMMON@/r $MCOMMON
17439s,@MCOMMON@,,;t t
17440CEOF 14054CEOF
17441 14055
17442_ACEOF 14056_ACEOF
17443 14057
17444 cat >>$CONFIG_STATUS <<\_ACEOF 14058 cat >>$CONFIG_STATUS <<\_ACEOF
17601 case $INSTALL in 14215 case $INSTALL in
17602 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14216 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17603 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 14217 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17604 esac 14218 esac
17605 14219
14220 if test x"$ac_file" != x-; then
14221 { echo "$as_me:$LINENO: creating $ac_file" >&5
14222echo "$as_me: creating $ac_file" >&6;}
14223 rm -f "$ac_file"
14224 fi
17606 # Let's still pretend it is `configure' which instantiates (i.e., don't 14225 # Let's still pretend it is `configure' which instantiates (i.e., don't
17607 # use $as_me), people would be surprised to read: 14226 # use $as_me), people would be surprised to read:
17608 # /* config.h. Generated by config.status. */ 14227 # /* config.h. Generated by config.status. */
17609 if test x"$ac_file" = x-; then 14228 if test x"$ac_file" = x-; then
17610 configure_input= 14229 configure_input=
17639echo "$as_me: error: cannot find input file: $f" >&2;} 14258echo "$as_me: error: cannot find input file: $f" >&2;}
17640 { (exit 1); exit 1; }; } 14259 { (exit 1); exit 1; }; }
17641 fi;; 14260 fi;;
17642 esac 14261 esac
17643 done` || { (exit 1); exit 1; } 14262 done` || { (exit 1); exit 1; }
17644
17645 if test x"$ac_file" != x-; then
17646 { echo "$as_me:$LINENO: creating $ac_file" >&5
17647echo "$as_me: creating $ac_file" >&6;}
17648 rm -f "$ac_file"
17649 fi
17650_ACEOF 14263_ACEOF
17651cat >>$CONFIG_STATUS <<_ACEOF 14264cat >>$CONFIG_STATUS <<_ACEOF
17652 sed "$ac_vpsub 14265 sed "$ac_vpsub
17653$extrasub 14266$extrasub
17654_ACEOF 14267_ACEOF
17934 14547
17935 Rxvt version: $VERSION : $DATE 14548 Rxvt version: $VERSION : $DATE
17936 Source code location: $srcdir 14549 Source code location: $srcdir
17937 Install path: ${prefix}/bin 14550 Install path: ${prefix}/bin
17938 Compiler: $CXX 14551 Compiler: $CXX
17939 Compiler flags: $CFLAGS 14552 Compiler flags: $CXXFLAGS
17940 Linker: $LINKER" 14553 Linker: $LINKER"
17941
17942if test "$MALLOC_TYPE" = S; then
17943 echo " malloc support: system default"
17944fi
17945if test "$MALLOC_TYPE" = G; then
17946 echo " malloc support: Gray Watson's dmalloc"
17947fi
17948if test "$MALLOC_TYPE" = D; then
17949 echo " malloc support: Doug Lea's malloc"
17950fi
17951 14554
17952if test x$support_xpm = xyes; then 14555if test x$support_xpm = xyes; then
17953 echo " Xpm library: $XPM_LIBS" 14556 echo " Xpm library: $XPM_LIBS"
17954fi 14557fi
17955 14558
17956echo " 14559if test x$support_afterimage = xyes; then
17957The following are set in config.h 14560 echo " AfterImage support: yes"
17958" 14561fi
17959echo " pty/tty type: "$rxvt_cv_ptys 14562
17960if test x$support_utmp != xyes; then 14563if test x$support_afterstep = xyes; then
17961 echo " utmp support: disabled 14564 echo " AfterStep integration: yes"
17962"
17963else
17964 echo " utmp support: enabled
17965 utmp file: $rxvt_cv_path_utmp
17966 utmpx file: $rxvt_cv_path_utmpx
17967 wtmp file: $rxvt_cv_path_wtmp
17968 wtmpx file: $rxvt_cv_path_wtmpx
17969 lastlog file: $rxvt_cv_path_lastlog
17970 ttys/ttytab file: $rxvt_cv_path_ttytab
17971"
17972fi 14565fi
14566
17973if test x$term != x; then 14567if test x$term != x; then
17974 echo " set TERM to: $term 14568 echo " set TERM to: $term"
17975"
17976fi 14569fi
17977if test x$terminfo != x; then 14570if test x$terminfo != x; then
17978 echo " set TERMINFO to: $terminfo 14571 echo " set TERMINFO to: $terminfo"
17979"
17980fi 14572fi
17981if test x$rxvt_cv_ptys = xUNKNOWN; then 14573echo " default resource name: $RESNAME"
17982 echo ".----------------------------------------------------------------." 14574echo " resource class: $RESCLASS"
17983 echo ". WARNING: could not determine pty/tty type. Do not build until ." 14575if test x$RESFALLBACK != x; then
17984 echo ". the appropriate PTYS_ARE_* is defined in config.h ." 14576 echo " resource class fallback: $RESFALLBACK"
17985 echo ".----------------------------------------------------------------."
17986fi 14577fi
14578echo
14579echo " embedded perl: $support_perl"
14580echo
17987if test x$support_xpm = xneedsmanualspecification; then 14581if test x$support_xpm = xneedsmanualspecification; then
17988 echo ".----------------------------------------------------------------." 14582 echo ".----------------------------------------------------------------."
17989 echo ". WARNING: --enable-xpm-background was specified however the ." 14583 echo ". WARNING: --enable-xpm-background was specified however the ."
17990 echo ". XPM includes files and libraries could not be found. ." 14584 echo ". XPM includes files and libraries could not be found. ."
17991 echo ". XPM backgrounds are now being DISABLED! If you want ." 14585 echo ". XPM backgrounds are now being DISABLED! If you want ."
17999 echo ". WARNING: --enable-xim was specified however the locale support ." 14593 echo ". WARNING: --enable-xim was specified however the locale support ."
18000 echo ". functions could not be found. ." 14594 echo ". functions could not be found. ."
18001 echo ". XIM is now being DISABLED! ." 14595 echo ". XIM is now being DISABLED! ."
18002 echo ".----------------------------------------------------------------." 14596 echo ".----------------------------------------------------------------."
18003fi 14597fi
14598
18004echo " *** Please check src/feature.h for further options *** 14599echo "*** Optionally check src/feature.h for further, rarely used options ***"
18005" 14600echo
14601

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines