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

Comparing rxvt-unicode/configure (file contents):
Revision 1.34 by root, Sun Aug 15 04:42:45 2004 UTC vs.
Revision 1.106 by ayin, Tue Jun 26 22:08:16 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 RXVTNAME MV RM CP LN SED CMP TBL X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define DEBUG DINCLUDE DLIB include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS' 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 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
1034 --enable-combining enable composition of base and combining characters 872 --enable-combining enable composition of base and combining characters
1035 --enable-xft enable xft support on systems that have it 873 --enable-xft enable xft support on systems that have it
1036 --enable-utmp enable utmp (utmpx) support 874 --enable-font-styles enable bold and italic support
1037 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1038 --enable-lastlog enable lastlog support (requires --enable-utmp)
1039 --enable-xpm-background enable XPM background pixmaps 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
1040 --enable-transparency enable transparent backgrounds 878 --enable-transparency enable transparent backgrounds
1041 --enable-tinting enable tinting of transparent bg 879 --enable-tinting enable tinting of transparent bg
1042 --enable-fading enable colors fading when off focus 880 --enable-fading enable colors fading when off focus
1043 --enable-menubar enable menubar
1044 --enable-rxvt-scroll enable rxvt style scrollbar 881 --enable-rxvt-scroll enable rxvt style scrollbar
1045 --enable-next-scroll enable NeXT style scrollbar 882 --enable-next-scroll enable NeXT style scrollbar
1046 --enable-xterm-scroll enable Xterm style scrollbar 883 --enable-xterm-scroll enable Xterm style scrollbar
884 --enable-perl enable embedded perl interpreter
1047 --enable-plain-scroll enable plain style scrollbar 885 --enable-plain-scroll enable plain style scrollbar
1048 --enable-half-shadow use half width/height shadow on rxvt scrollbar
1049 --enable-xim XIM (X Input Method) protocol support 886 --enable-xim XIM (X Input Method) protocol support
1050 --enable-ttygid enable tty setting to group named "tty"
1051 --disable-backspace-key disable handling of the backspace key 887 --disable-backspace-key disable handling of the backspace key
1052 --disable-delete-key disable handling of the delete key 888 --disable-delete-key disable handling of the delete key
1053 --disable-resources disable all resource checking 889 --disable-resources disable all resource checking
1054 --enable-xgetdefault enable resources via X instead of our small version
1055 --enable-8bitctrls enable 8 bit control sequences (not recommended) 890 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1056 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) 891 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
1057 --enable-strings enable some replacement system functions
1058 --disable-swapscreen disable swap screen support 892 --disable-swapscreen disable swap screen support
1059 --enable-iso14755 enable support for extended ISO 14755 modes 893 --enable-iso14755 enable support for extended ISO 14755 modes
1060 --enable-frills enable support for rarely used features 894 --enable-frills enable support for rarely used features
1061 --enable-linespace enable support for linespace
1062 --enable-24bit enable support for using 24bit visuals if available
1063 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 895 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1064 --enable-selectionscrolling enable scrolling during selections 896 --enable-selectionscrolling enable scrolling during selections
1065 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 897 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1066 --enable-slipwheeling enable slip wheel scrolling (requires previous) 898 --enable-slipwheeling enable slip wheel scrolling (requires previous)
1067 --enable-dmalloc enable Gray Watson's malloc - for debugging use
1068 --enable-dlmalloc enable Doug Lea's malloc - for production use
1069 NOTE: enable only one malloc package
1070 --enable-smart-resize enable smart growth/shrink behaviour 899 --enable-smart-resize enable smart growth/shrink behaviour
1071 --enable-256-color enable 256-color support
1072 --enable-cursor-blink enable blinking cursor
1073 --enable-text-blink enable blinking text 900 --enable-text-blink enable blinking text
1074 --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)
1075 905
1076Optional Packages: 906Optional Packages:
1077 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 907 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1078 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 908 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1079 --with-gnu-ld assume the C compiler uses GNU ld default=no 909 --with-afterimage-config=DIR use libAfterImage config script in DIR
1080 --with-pic try to use only PIC/non-PIC objects default=use both
1081 --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)
1082 --with-res-name=NAME use this as default resource name (default: urxvt) 911 --with-res-name=NAME use this as default resource name (default: urxvt)
1083 --with-res-class=CLASS use this as the resource class (default: URxvt) 912 --with-res-class=CLASS use this as the resource class (default: URxvt)
1084 --with-name=NAME set the basename for the installed binaries (default: urxvt) 913 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1085 --with-term=NAME set the terminal to NAME (default: rxvt) 914 --with-term=NAME set the terminal to NAME (default: rxvt)
1086 --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
1190 echo 1019 echo
1191 $ac_configure --help 1020 $ac_configure --help
1192 else 1021 else
1193 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
1194 fi 1023 fi
1195 cd "$ac_popdir" 1024 cd $ac_popdir
1196 done 1025 done
1197fi 1026fi
1198 1027
1199test -n "$ac_init_help" && exit 0 1028test -n "$ac_init_help" && exit 0
1200if $ac_init_version; then 1029if $ac_init_version; then
1538 1367
1539 1368
1540 1369
1541 1370
1542 1371
1372
1373 ac_config_headers="$ac_config_headers config.h:config.h.in"
1374
1375
1543ac_aux_dir= 1376ac_aux_dir=
1544for ac_dir in autoconf $srcdir/autoconf; do 1377for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1545 if test -f $ac_dir/install-sh; then 1378 if test -f $ac_dir/install-sh; then
1546 ac_aux_dir=$ac_dir 1379 ac_aux_dir=$ac_dir
1547 ac_install_sh="$ac_aux_dir/install-sh -c" 1380 ac_install_sh="$ac_aux_dir/install-sh -c"
1548 break 1381 break
1549 elif test -f $ac_dir/install.sh; then 1382 elif test -f $ac_dir/install.sh; then
1555 ac_install_sh="$ac_aux_dir/shtool install -c" 1388 ac_install_sh="$ac_aux_dir/shtool install -c"
1556 break 1389 break
1557 fi 1390 fi
1558done 1391done
1559if test -z "$ac_aux_dir"; then 1392if test -z "$ac_aux_dir"; then
1560 { { 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
1561echo "$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;}
1562 { (exit 1); exit 1; }; } 1395 { (exit 1); exit 1; }; }
1563fi 1396fi
1564ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1397ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1565ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1398ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1566ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1399ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1567 1400
1568 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
1569 1454
1570 1455
1571VERSION=`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`
1572DATE=`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`
1573LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1574LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1575echo "" 1458echo ""
1576echo "configuring for rxvt $VERSION" 1459echo "configuring for rxvt $VERSION"
1577echo "" 1460echo ""
1461
1462orig_CXXFLAGS="$CXXFLAGS"
1578 1463
1579 1464
1580ac_ext=c 1465ac_ext=c
1581ac_cpp='$CPP $CPPFLAGS' 1466ac_cpp='$CPP $CPPFLAGS'
1582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2143 grep -v '^ *+' conftest.er1 >conftest.err 2028 grep -v '^ *+' conftest.er1 >conftest.err
2144 rm -f conftest.er1 2029 rm -f conftest.er1
2145 cat conftest.err >&5 2030 cat conftest.err >&5
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); } && 2032 (exit $ac_status); } &&
2148 { 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'
2149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2150 (eval $ac_try) 2>&5 2036 (eval $ac_try) 2>&5
2151 ac_status=$? 2037 ac_status=$?
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }; } && 2039 (exit $ac_status); }; } &&
2201 grep -v '^ *+' conftest.er1 >conftest.err 2087 grep -v '^ *+' conftest.er1 >conftest.err
2202 rm -f conftest.er1 2088 rm -f conftest.er1
2203 cat conftest.err >&5 2089 cat conftest.err >&5
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); } && 2091 (exit $ac_status); } &&
2206 { 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'
2207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2208 (eval $ac_try) 2>&5 2095 (eval $ac_try) 2>&5
2209 ac_status=$? 2096 ac_status=$?
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); }; } && 2098 (exit $ac_status); }; } &&
2317 grep -v '^ *+' conftest.er1 >conftest.err 2204 grep -v '^ *+' conftest.er1 >conftest.err
2318 rm -f conftest.er1 2205 rm -f conftest.er1
2319 cat conftest.err >&5 2206 cat conftest.err >&5
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); } && 2208 (exit $ac_status); } &&
2322 { 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'
2323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324 (eval $ac_try) 2>&5 2212 (eval $ac_try) 2>&5
2325 ac_status=$? 2213 ac_status=$?
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); }; } && 2215 (exit $ac_status); }; } &&
2371 grep -v '^ *+' conftest.er1 >conftest.err 2259 grep -v '^ *+' conftest.er1 >conftest.err
2372 rm -f conftest.er1 2260 rm -f conftest.er1
2373 cat conftest.err >&5 2261 cat conftest.err >&5
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); } && 2263 (exit $ac_status); } &&
2376 { 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'
2377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2378 (eval $ac_try) 2>&5 2267 (eval $ac_try) 2>&5
2379 ac_status=$? 2268 ac_status=$?
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }; } && 2270 (exit $ac_status); }; } &&
2416 grep -v '^ *+' conftest.er1 >conftest.err 2305 grep -v '^ *+' conftest.er1 >conftest.err
2417 rm -f conftest.er1 2306 rm -f conftest.er1
2418 cat conftest.err >&5 2307 cat conftest.err >&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); } && 2309 (exit $ac_status); } &&
2421 { 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'
2422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2423 (eval $ac_try) 2>&5 2313 (eval $ac_try) 2>&5
2424 ac_status=$? 2314 ac_status=$?
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); }; } && 2316 (exit $ac_status); }; } &&
2460 grep -v '^ *+' conftest.er1 >conftest.err 2350 grep -v '^ *+' conftest.er1 >conftest.err
2461 rm -f conftest.er1 2351 rm -f conftest.er1
2462 cat conftest.err >&5 2352 cat conftest.err >&5
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); } && 2354 (exit $ac_status); } &&
2465 { 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'
2466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467 (eval $ac_try) 2>&5 2358 (eval $ac_try) 2>&5
2468 ac_status=$? 2359 ac_status=$?
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; } && 2361 (exit $ac_status); }; } &&
2644 grep -v '^ *+' conftest.er1 >conftest.err 2535 grep -v '^ *+' conftest.er1 >conftest.err
2645 rm -f conftest.er1 2536 rm -f conftest.er1
2646 cat conftest.err >&5 2537 cat conftest.err >&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); } && 2539 (exit $ac_status); } &&
2649 { 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'
2650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651 (eval $ac_try) 2>&5 2543 (eval $ac_try) 2>&5
2652 ac_status=$? 2544 ac_status=$?
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }; } && 2546 (exit $ac_status); }; } &&
2702 grep -v '^ *+' conftest.er1 >conftest.err 2594 grep -v '^ *+' conftest.er1 >conftest.err
2703 rm -f conftest.er1 2595 rm -f conftest.er1
2704 cat conftest.err >&5 2596 cat conftest.err >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); } && 2598 (exit $ac_status); } &&
2707 { 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'
2708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709 (eval $ac_try) 2>&5 2602 (eval $ac_try) 2>&5
2710 ac_status=$? 2603 ac_status=$?
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }; } && 2605 (exit $ac_status); }; } &&
2773 grep -v '^ *+' conftest.er1 >conftest.err 2666 grep -v '^ *+' conftest.er1 >conftest.err
2774 rm -f conftest.er1 2667 rm -f conftest.er1
2775 cat conftest.err >&5 2668 cat conftest.err >&5
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); } && 2670 (exit $ac_status); } &&
2778 { 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'
2779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780 (eval $ac_try) 2>&5 2674 (eval $ac_try) 2>&5
2781 ac_status=$? 2675 ac_status=$?
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; } && 2677 (exit $ac_status); }; } &&
2817 grep -v '^ *+' conftest.er1 >conftest.err 2711 grep -v '^ *+' conftest.er1 >conftest.err
2818 rm -f conftest.er1 2712 rm -f conftest.er1
2819 cat conftest.err >&5 2713 cat conftest.err >&5
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); } && 2715 (exit $ac_status); } &&
2822 { 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'
2823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2824 (eval $ac_try) 2>&5 2719 (eval $ac_try) 2>&5
2825 ac_status=$? 2720 ac_status=$?
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); }; } && 2722 (exit $ac_status); }; } &&
3163 3058
3164test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3059test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3165 3060
3166test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3061test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3167 3062
3168for ac_prog in gawk mawk nawk awk 3063
3169do 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 echo "$as_me:$LINENO: result: ok" >&5
3290echo "${ECHO_T}ok" >&6
3291else
3292 echo "$as_me: failed program was:" >&5
3293sed 's/^/| /' conftest.$ac_ext >&5
3294
3295
3296 echo "$as_me:$LINENO: result: no, making everything bigger and slower" >&5
3297echo "${ECHO_T}no, making everything bigger and slower" >&6
3298 LIBS="$save_LIBS"
3299 LINKER="$save_CXX"
3300
3301
3302fi
3303rm -f conftest.err conftest.$ac_objext \
3304 conftest$ac_exeext conftest.$ac_ext
3305 CXX="$save_CXX"
3306fi
3307LINKER=$LINKER
3308
3309
3310if test -z "$orig_CXXFLAGS"; then
3311 if test x$GCC = xyes && test "x$GXX" = xyes; then
3312 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs"
3313 cat >conftest.$ac_ext <<_ACEOF
3314/* confdefs.h. */
3315_ACEOF
3316cat confdefs.h >>conftest.$ac_ext
3317cat >>conftest.$ac_ext <<_ACEOF
3318/* end confdefs.h. */
3319
3320int
3321main ()
3322{
3323
3324 ;
3325 return 0;
3326}
3327_ACEOF
3328rm -f conftest.$ac_objext
3329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3330 (eval $ac_compile) 2>conftest.er1
3331 ac_status=$?
3332 grep -v '^ *+' conftest.er1 >conftest.err
3333 rm -f conftest.er1
3334 cat conftest.err >&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); } &&
3337 { ac_try='test -z "$ac_cxx_werror_flag"
3338 || test ! -s conftest.err'
3339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3340 (eval $ac_try) 2>&5
3341 ac_status=$?
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); }; } &&
3344 { ac_try='test -s conftest.$ac_objext'
3345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3346 (eval $ac_try) 2>&5
3347 ac_status=$?
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }; }; then
3350 :
3351else
3352 echo "$as_me: failed program was:" >&5
3353sed 's/^/| /' conftest.$ac_ext >&5
3354
3355CXXFLAGS="-g -O3"
3356fi
3357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3358 else
3359 CXXFLAGS="-O"
3360 fi
3361 CFLAGS="$CXXFLAGS"
3362fi
3363
3364
3365cat >>confdefs.h <<\_ACEOF
3366#define _GNU_SOURCE 1
3367_ACEOF
3368
3369
3370case $host in
3371 *-*-solaris* )
3372
3373cat >>confdefs.h <<\_ACEOF
3374#define _XOPEN_SOURCE 500
3375_ACEOF
3376
3377 ;;
3378esac
3379
3380
3381echo "$as_me:$LINENO: checking for setlocale" >&5
3382echo $ECHO_N "checking for setlocale... $ECHO_C" >&6
3383if test "${ac_cv_func_setlocale+set}" = set; then
3384 echo $ECHO_N "(cached) $ECHO_C" >&6
3385else
3386 cat >conftest.$ac_ext <<_ACEOF
3387/* confdefs.h. */
3388_ACEOF
3389cat confdefs.h >>conftest.$ac_ext
3390cat >>conftest.$ac_ext <<_ACEOF
3391/* end confdefs.h. */
3392/* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale.
3393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3394#define setlocale innocuous_setlocale
3395
3396/* System header to define __stub macros and hopefully few prototypes,
3397 which can conflict with char setlocale (); below.
3398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3399 <limits.h> exists even on freestanding compilers. */
3400
3401#ifdef __STDC__
3402# include <limits.h>
3403#else
3404# include <assert.h>
3405#endif
3406
3407#undef setlocale
3408
3409/* Override any gcc2 internal prototype to avoid an error. */
3410#ifdef __cplusplus
3411extern "C"
3412{
3413#endif
3414/* We use char because int might match the return type of a gcc2
3415 builtin and then its argument prototype would still apply. */
3416char setlocale ();
3417/* The GNU C library defines this for functions which it implements
3418 to always fail with ENOSYS. Some functions are actually named
3419 something starting with __ and the normal name is an alias. */
3420#if defined (__stub_setlocale) || defined (__stub___setlocale)
3421choke me
3422#else
3423char (*f) () = setlocale;
3424#endif
3425#ifdef __cplusplus
3426}
3427#endif
3428
3429int
3430main ()
3431{
3432return f != setlocale;
3433 ;
3434 return 0;
3435}
3436_ACEOF
3437rm -f conftest.$ac_objext conftest$ac_exeext
3438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3439 (eval $ac_link) 2>conftest.er1
3440 ac_status=$?
3441 grep -v '^ *+' conftest.er1 >conftest.err
3442 rm -f conftest.er1
3443 cat conftest.err >&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); } &&
3446 { ac_try='test -z "$ac_cxx_werror_flag"
3447 || test ! -s conftest.err'
3448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3449 (eval $ac_try) 2>&5
3450 ac_status=$?
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); }; } &&
3453 { ac_try='test -s conftest$ac_exeext'
3454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455 (eval $ac_try) 2>&5
3456 ac_status=$?
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); }; }; then
3459 ac_cv_func_setlocale=yes
3460else
3461 echo "$as_me: failed program was:" >&5
3462sed 's/^/| /' conftest.$ac_ext >&5
3463
3464ac_cv_func_setlocale=no
3465fi
3466rm -f conftest.err conftest.$ac_objext \
3467 conftest$ac_exeext conftest.$ac_ext
3468fi
3469echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5
3470echo "${ECHO_T}$ac_cv_func_setlocale" >&6
3471if test $ac_cv_func_setlocale = yes; then
3472 :
3473else
3474 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
3475echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
3476if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
3477 echo $ECHO_N "(cached) $ECHO_C" >&6
3478else
3479 ac_check_lib_save_LIBS=$LIBS
3480LIBS="-lxpg4 $LIBS"
3481cat >conftest.$ac_ext <<_ACEOF
3482/* confdefs.h. */
3483_ACEOF
3484cat confdefs.h >>conftest.$ac_ext
3485cat >>conftest.$ac_ext <<_ACEOF
3486/* end confdefs.h. */
3487
3488/* Override any gcc2 internal prototype to avoid an error. */
3489#ifdef __cplusplus
3490extern "C"
3491#endif
3492/* We use char because int might match the return type of a gcc2
3493 builtin and then its argument prototype would still apply. */
3494char setlocale ();
3495int
3496main ()
3497{
3498setlocale ();
3499 ;
3500 return 0;
3501}
3502_ACEOF
3503rm -f conftest.$ac_objext conftest$ac_exeext
3504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3505 (eval $ac_link) 2>conftest.er1
3506 ac_status=$?
3507 grep -v '^ *+' conftest.er1 >conftest.err
3508 rm -f conftest.er1
3509 cat conftest.err >&5
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); } &&
3512 { ac_try='test -z "$ac_cxx_werror_flag"
3513 || test ! -s conftest.err'
3514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3515 (eval $ac_try) 2>&5
3516 ac_status=$?
3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); }; } &&
3519 { ac_try='test -s conftest$ac_exeext'
3520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521 (eval $ac_try) 2>&5
3522 ac_status=$?
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); }; }; then
3525 ac_cv_lib_xpg4_setlocale=yes
3526else
3527 echo "$as_me: failed program was:" >&5
3528sed 's/^/| /' conftest.$ac_ext >&5
3529
3530ac_cv_lib_xpg4_setlocale=no
3531fi
3532rm -f conftest.err conftest.$ac_objext \
3533 conftest$ac_exeext conftest.$ac_ext
3534LIBS=$ac_check_lib_save_LIBS
3535fi
3536echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
3537echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
3538if test $ac_cv_lib_xpg4_setlocale = yes; then
3539 LIBS="$LIBS -lxpg4"
3540fi
3541
3542fi
3543
3544
3545echo "$as_me:$LINENO: checking for gethostbyname" >&5
3546echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3547if test "${ac_cv_func_gethostbyname+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3549else
3550 cat >conftest.$ac_ext <<_ACEOF
3551/* confdefs.h. */
3552_ACEOF
3553cat confdefs.h >>conftest.$ac_ext
3554cat >>conftest.$ac_ext <<_ACEOF
3555/* end confdefs.h. */
3556/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3558#define gethostbyname innocuous_gethostbyname
3559
3560/* System header to define __stub macros and hopefully few prototypes,
3561 which can conflict with char gethostbyname (); below.
3562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3563 <limits.h> exists even on freestanding compilers. */
3564
3565#ifdef __STDC__
3566# include <limits.h>
3567#else
3568# include <assert.h>
3569#endif
3570
3571#undef gethostbyname
3572
3573/* Override any gcc2 internal prototype to avoid an error. */
3574#ifdef __cplusplus
3575extern "C"
3576{
3577#endif
3578/* We use char because int might match the return type of a gcc2
3579 builtin and then its argument prototype would still apply. */
3580char gethostbyname ();
3581/* The GNU C library defines this for functions which it implements
3582 to always fail with ENOSYS. Some functions are actually named
3583 something starting with __ and the normal name is an alias. */
3584#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3585choke me
3586#else
3587char (*f) () = gethostbyname;
3588#endif
3589#ifdef __cplusplus
3590}
3591#endif
3592
3593int
3594main ()
3595{
3596return f != gethostbyname;
3597 ;
3598 return 0;
3599}
3600_ACEOF
3601rm -f conftest.$ac_objext conftest$ac_exeext
3602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3603 (eval $ac_link) 2>conftest.er1
3604 ac_status=$?
3605 grep -v '^ *+' conftest.er1 >conftest.err
3606 rm -f conftest.er1
3607 cat conftest.err >&5
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); } &&
3610 { ac_try='test -z "$ac_cxx_werror_flag"
3611 || test ! -s conftest.err'
3612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613 (eval $ac_try) 2>&5
3614 ac_status=$?
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); }; } &&
3617 { ac_try='test -s conftest$ac_exeext'
3618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619 (eval $ac_try) 2>&5
3620 ac_status=$?
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); }; }; then
3623 ac_cv_func_gethostbyname=yes
3624else
3625 echo "$as_me: failed program was:" >&5
3626sed 's/^/| /' conftest.$ac_ext >&5
3627
3628ac_cv_func_gethostbyname=no
3629fi
3630rm -f conftest.err conftest.$ac_objext \
3631 conftest$ac_exeext conftest.$ac_ext
3632fi
3633echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3634echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3635if test $ac_cv_func_gethostbyname = yes; then
3636 :
3637else
3638 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3639echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3640if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3641 echo $ECHO_N "(cached) $ECHO_C" >&6
3642else
3643 ac_check_lib_save_LIBS=$LIBS
3644LIBS="-lnsl $LIBS"
3645cat >conftest.$ac_ext <<_ACEOF
3646/* confdefs.h. */
3647_ACEOF
3648cat confdefs.h >>conftest.$ac_ext
3649cat >>conftest.$ac_ext <<_ACEOF
3650/* end confdefs.h. */
3651
3652/* Override any gcc2 internal prototype to avoid an error. */
3653#ifdef __cplusplus
3654extern "C"
3655#endif
3656/* We use char because int might match the return type of a gcc2
3657 builtin and then its argument prototype would still apply. */
3658char gethostbyname ();
3659int
3660main ()
3661{
3662gethostbyname ();
3663 ;
3664 return 0;
3665}
3666_ACEOF
3667rm -f conftest.$ac_objext conftest$ac_exeext
3668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3669 (eval $ac_link) 2>conftest.er1
3670 ac_status=$?
3671 grep -v '^ *+' conftest.er1 >conftest.err
3672 rm -f conftest.er1
3673 cat conftest.err >&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); } &&
3676 { ac_try='test -z "$ac_cxx_werror_flag"
3677 || test ! -s conftest.err'
3678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3679 (eval $ac_try) 2>&5
3680 ac_status=$?
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); }; } &&
3683 { ac_try='test -s conftest$ac_exeext'
3684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3685 (eval $ac_try) 2>&5
3686 ac_status=$?
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); }; }; then
3689 ac_cv_lib_nsl_gethostbyname=yes
3690else
3691 echo "$as_me: failed program was:" >&5
3692sed 's/^/| /' conftest.$ac_ext >&5
3693
3694ac_cv_lib_nsl_gethostbyname=no
3695fi
3696rm -f conftest.err conftest.$ac_objext \
3697 conftest$ac_exeext conftest.$ac_ext
3698LIBS=$ac_check_lib_save_LIBS
3699fi
3700echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3701echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3702if test $ac_cv_lib_nsl_gethostbyname = yes; then
3703 LIBS="$LIBS -lnsl"
3704fi
3705
3706fi
3707
3708echo "$as_me:$LINENO: checking for socket" >&5
3709echo $ECHO_N "checking for socket... $ECHO_C" >&6
3710if test "${ac_cv_func_socket+set}" = set; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
3712else
3713 cat >conftest.$ac_ext <<_ACEOF
3714/* confdefs.h. */
3715_ACEOF
3716cat confdefs.h >>conftest.$ac_ext
3717cat >>conftest.$ac_ext <<_ACEOF
3718/* end confdefs.h. */
3719/* Define socket to an innocuous variant, in case <limits.h> declares socket.
3720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3721#define socket innocuous_socket
3722
3723/* System header to define __stub macros and hopefully few prototypes,
3724 which can conflict with char socket (); below.
3725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3726 <limits.h> exists even on freestanding compilers. */
3727
3728#ifdef __STDC__
3729# include <limits.h>
3730#else
3731# include <assert.h>
3732#endif
3733
3734#undef socket
3735
3736/* Override any gcc2 internal prototype to avoid an error. */
3737#ifdef __cplusplus
3738extern "C"
3739{
3740#endif
3741/* We use char because int might match the return type of a gcc2
3742 builtin and then its argument prototype would still apply. */
3743char socket ();
3744/* The GNU C library defines this for functions which it implements
3745 to always fail with ENOSYS. Some functions are actually named
3746 something starting with __ and the normal name is an alias. */
3747#if defined (__stub_socket) || defined (__stub___socket)
3748choke me
3749#else
3750char (*f) () = socket;
3751#endif
3752#ifdef __cplusplus
3753}
3754#endif
3755
3756int
3757main ()
3758{
3759return f != socket;
3760 ;
3761 return 0;
3762}
3763_ACEOF
3764rm -f conftest.$ac_objext conftest$ac_exeext
3765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3766 (eval $ac_link) 2>conftest.er1
3767 ac_status=$?
3768 grep -v '^ *+' conftest.er1 >conftest.err
3769 rm -f conftest.er1
3770 cat conftest.err >&5
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); } &&
3773 { ac_try='test -z "$ac_cxx_werror_flag"
3774 || test ! -s conftest.err'
3775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3776 (eval $ac_try) 2>&5
3777 ac_status=$?
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); }; } &&
3780 { ac_try='test -s conftest$ac_exeext'
3781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3782 (eval $ac_try) 2>&5
3783 ac_status=$?
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); }; }; then
3786 ac_cv_func_socket=yes
3787else
3788 echo "$as_me: failed program was:" >&5
3789sed 's/^/| /' conftest.$ac_ext >&5
3790
3791ac_cv_func_socket=no
3792fi
3793rm -f conftest.err conftest.$ac_objext \
3794 conftest$ac_exeext conftest.$ac_ext
3795fi
3796echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3797echo "${ECHO_T}$ac_cv_func_socket" >&6
3798if test $ac_cv_func_socket = yes; then
3799 :
3800else
3801 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3802echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3803if test "${ac_cv_lib_socket_socket+set}" = set; then
3804 echo $ECHO_N "(cached) $ECHO_C" >&6
3805else
3806 ac_check_lib_save_LIBS=$LIBS
3807LIBS="-lsocket $LIBS"
3808cat >conftest.$ac_ext <<_ACEOF
3809/* confdefs.h. */
3810_ACEOF
3811cat confdefs.h >>conftest.$ac_ext
3812cat >>conftest.$ac_ext <<_ACEOF
3813/* end confdefs.h. */
3814
3815/* Override any gcc2 internal prototype to avoid an error. */
3816#ifdef __cplusplus
3817extern "C"
3818#endif
3819/* We use char because int might match the return type of a gcc2
3820 builtin and then its argument prototype would still apply. */
3821char socket ();
3822int
3823main ()
3824{
3825socket ();
3826 ;
3827 return 0;
3828}
3829_ACEOF
3830rm -f conftest.$ac_objext conftest$ac_exeext
3831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3832 (eval $ac_link) 2>conftest.er1
3833 ac_status=$?
3834 grep -v '^ *+' conftest.er1 >conftest.err
3835 rm -f conftest.er1
3836 cat conftest.err >&5
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); } &&
3839 { ac_try='test -z "$ac_cxx_werror_flag"
3840 || test ! -s conftest.err'
3841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842 (eval $ac_try) 2>&5
3843 ac_status=$?
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); }; } &&
3846 { ac_try='test -s conftest$ac_exeext'
3847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3848 (eval $ac_try) 2>&5
3849 ac_status=$?
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); }; }; then
3852 ac_cv_lib_socket_socket=yes
3853else
3854 echo "$as_me: failed program was:" >&5
3855sed 's/^/| /' conftest.$ac_ext >&5
3856
3857ac_cv_lib_socket_socket=no
3858fi
3859rm -f conftest.err conftest.$ac_objext \
3860 conftest$ac_exeext conftest.$ac_ext
3861LIBS=$ac_check_lib_save_LIBS
3862fi
3863echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3864echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3865if test $ac_cv_lib_socket_socket = yes; then
3866 LIBS="$LIBS -lsocket"
3867fi
3868
3869fi
3870
3871
3872
3873support_frills=yes
3874support_inheritpixmap=yes
3875support_tinting=yes
3876support_fading=yes
3877support_keepscrolling=yes
3878support_selectionscrolling=yes
3879support_mousewheel=yes
3880support_mouseslipwheel=yes
3881support_text_blink=yes
3882support_pointer_blank=yes
3883support_scroll_rxvt=yes
3884support_scroll_next=yes
3885support_scroll_xterm=yes
3886support_scroll_plain=yes
3887support_xim=yes
3888support_xpm=yes
3889support_afterimage=yes
3890support_afterstep=yes
3891support_xft=yes
3892support_unicode3=no
3893support_combining=yes
3894support_8bitctrls=no
3895support_iso14755=yes
3896support_styles=yes
3897support_perl=yes
3898codesets=all
3899
3900
3901if test "x$enable_shared" = xyes; then
3902
3903cat >>confdefs.h <<\_ACEOF
3904#define LIBRXVT 1
3905_ACEOF
3906
3907 INSTALL_LIBRXVT=yes
3908fi
3909
3910
3911# Check whether --enable-everything or --disable-everything was given.
3912if test "${enable_everything+set}" = set; then
3913 enableval="$enable_everything"
3914
3915 if test x$enableval = xno; then
3916 support_frills=no
3917 support_inheritpixmap=no
3918 support_tinting=no
3919 support_fading=no
3920 support_keepscrolling=no
3921 support_selectionscrolling=no
3922 support_lastlog=no
3923 support_mousewheel=no
3924 support_mouseslipwheel=no
3925 support_text_blink=no
3926 support_pointer_blank=no
3927 support_scroll_rxvt=no
3928 support_scroll_next=no
3929 support_scroll_xterm=no
3930 support_scroll_plain=no
3931 support_utmp=no
3932 support_wtmp=no
3933 support_xim=no
3934 support_xpm=no
3935 support_afterimage=no
3936 support_afterstep=no
3937 support_xft=no
3938 support_unicode3=no
3939 support_combining=no
3940 support_8bitctrls=no
3941 support_iso14755=no
3942 support_styles=no
3943 support_perl=no
3944 codesets=
3945 fi
3946 if test x$enableval = xyes; then
3947 support_frills=yes
3948 support_inheritpixmap=yes
3949 support_tinting=yes
3950 support_fading=yes
3951 support_keepscrolling=yes
3952 support_selectionscrolling=yes
3953 support_lastlog=yes
3954 support_mousewheel=yes
3955 support_mouseslipwheel=yes
3956 support_text_blink=yes
3957 support_pointer_blank=yes
3958 support_scroll_rxvt=yes
3959 support_scroll_next=yes
3960 support_scroll_xterm=yes
3961 support_scroll_plain=yes
3962 support_utmp=yes
3963 support_wtmp=yes
3964 support_xim=yes
3965 support_xpm=yes
3966 support_afterimage=yes
3967 support_afterstep=yes
3968 support_xft=yes
3969 support_unicode3=yes
3970 support_combining=yes
3971 #support_8bitctrls=yes
3972 support_iso14755=yes
3973 support_styles=yes
3974 support_perl=yes
3975 codesets=all
3976 fi
3977
3978fi;
3979
3980# Check whether --enable-unicode3 or --disable-unicode3 was given.
3981if test "${enable_unicode3+set}" = set; then
3982 enableval="$enable_unicode3"
3983 if test x$enableval = xyes -o x$enableval = xno; then
3984 support_unicode3=$enableval
3985 fi
3986fi;
3987
3988# Check whether --enable-combining or --disable-combining was given.
3989if test "${enable_combining+set}" = set; then
3990 enableval="$enable_combining"
3991 if test x$enableval = xyes -o x$enableval = xno; then
3992 support_combining=$enableval
3993 fi
3994fi;
3995
3996# Check whether --enable-xft or --disable-xft was given.
3997if test "${enable_xft+set}" = set; then
3998 enableval="$enable_xft"
3999 if test x$enableval = xyes -o x$enableval = xno; then
4000 support_xft=$enableval
4001 fi
4002fi;
4003
4004# Check whether --enable-font-styles or --disable-font-styles was given.
4005if test "${enable_font_styles+set}" = set; then
4006 enableval="$enable_font_styles"
4007 if test x$enableval = xyes -o x$enableval = xno; then
4008 support_styles=$enableval
4009 fi
4010fi;
4011
4012# Check whether --enable-xpm-background or --disable-xpm-background was given.
4013if test "${enable_xpm_background+set}" = set; then
4014 enableval="$enable_xpm_background"
4015 if test x$enableval = xyes -o x$enableval = xno; then
4016 support_xpm=$enableval
4017 fi
4018fi;
4019
4020# Check whether --enable-afterimage or --disable-afterimage was given.
4021if test "${enable_afterimage+set}" = set; then
4022 enableval="$enable_afterimage"
4023 if test x$enableval = xyes -o x$enableval = xno; then
4024 support_afterimage=$enableval
4025 fi
4026fi;
4027
4028
4029# Check whether --with-afterimage_config or --without-afterimage_config was given.
4030if test "${with_afterimage_config+set}" = set; then
4031 withval="$with_afterimage_config"
4032 if test "x$withval" != x; then
4033 afterimage_config=$withval/afterimage-config
4034 fi
4035fi;
4036
4037# Check whether --enable-afterstep or --disable-afterstep was given.
4038if test "${enable_afterstep+set}" = set; then
4039 enableval="$enable_afterstep"
4040 if test x$enableval = xyes -o x$enableval = xno; then
4041 support_afterstep=$enableval
4042 fi
4043fi;
4044
4045# Check whether --enable-transparency or --disable-transparency was given.
4046if test "${enable_transparency+set}" = set; then
4047 enableval="$enable_transparency"
4048 if test x$enableval = xyes -o x$enableval = xno; then
4049 support_inheritpixmap=$enableval
4050 fi
4051fi;
4052
4053# Check whether --enable-tinting or --disable-tinting was given.
4054if test "${enable_tinting+set}" = set; then
4055 enableval="$enable_tinting"
4056 if test x$enableval = xyes -o x$enableval = xno; then
4057 support_tinting=$enableval
4058 fi
4059fi;
4060
4061# Check whether --enable-fading or --disable-fading was given.
4062if test "${enable_fading+set}" = set; then
4063 enableval="$enable_fading"
4064 if test x$enableval = xyes -o x$enableval = xno; then
4065 support_fading=$enableval
4066 fi
4067fi;
4068
4069# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
4070if test "${enable_rxvt_scroll+set}" = set; then
4071 enableval="$enable_rxvt_scroll"
4072 if test x$enableval = xyes -o x$enableval = xno; then
4073 support_scroll_rxvt=$enableval
4074 fi
4075fi;
4076
4077# Check whether --enable-next-scroll or --disable-next-scroll was given.
4078if test "${enable_next_scroll+set}" = set; then
4079 enableval="$enable_next_scroll"
4080 if test x$enableval = xyes -o x$enableval = xno; then
4081 support_scroll_next=$enableval
4082 fi
4083fi;
4084
4085# Check whether --enable-xterm-scroll or --disable-xterm-scroll was given.
4086if test "${enable_xterm_scroll+set}" = set; then
4087 enableval="$enable_xterm_scroll"
4088 if test x$enableval = xyes -o x$enableval = xno; then
4089 support_scroll_xterm=$enableval
4090 fi
4091fi;
4092
4093# Check whether --enable-perl or --disable-perl was given.
4094if test "${enable_perl+set}" = set; then
4095 enableval="$enable_perl"
4096 if test x$enableval = xyes -o x$enableval = xno; then
4097 support_perl=$enableval
4098 fi
4099fi;
4100
4101# Check whether --enable-plain-scroll or --disable-plain-scroll was given.
4102if test "${enable_plain_scroll+set}" = set; then
4103 enableval="$enable_plain_scroll"
4104 if test x$enableval = xyes -o x$enableval = xno; then
4105 support_scroll_plain=$enableval
4106 fi
4107fi;
4108
4109
4110# Check whether --with-codesets or --without-codesets was given.
4111if test "${with_codesets+set}" = set; then
4112 withval="$with_codesets"
4113 codesets="$withval"
4114fi;
4115
4116# Check whether --enable-xim or --disable-xim was given.
4117if test "${enable_xim+set}" = set; then
4118 enableval="$enable_xim"
4119 if test x$enableval = xyes -o x$enableval = xno; then
4120 support_xim=$enableval
4121 fi
4122fi;
4123
4124# Check whether --enable-backspace-key or --disable-backspace-key was given.
4125if test "${enable_backspace_key+set}" = set; then
4126 enableval="$enable_backspace_key"
4127 if test x$enableval = xno; then
4128
4129cat >>confdefs.h <<\_ACEOF
4130#define NO_BACKSPACE_KEY 1
4131_ACEOF
4132
4133 fi
4134fi;
4135
4136# Check whether --enable-delete-key or --disable-delete-key was given.
4137if test "${enable_delete_key+set}" = set; then
4138 enableval="$enable_delete_key"
4139 if test x$enableval = xno; then
4140
4141cat >>confdefs.h <<\_ACEOF
4142#define NO_DELETE_KEY 1
4143_ACEOF
4144
4145 fi
4146fi;
4147
4148# Check whether --enable-resources or --disable-resources was given.
4149if test "${enable_resources+set}" = set; then
4150 enableval="$enable_resources"
4151 if test x$enableval = xno; then
4152
4153cat >>confdefs.h <<\_ACEOF
4154#define NO_RESOURCES 1
4155_ACEOF
4156
4157 fi
4158fi;
4159
4160# Check whether --enable-8bitctrls or --disable-8bitctrls was given.
4161if test "${enable_8bitctrls+set}" = set; then
4162 enableval="$enable_8bitctrls"
4163 if test x$enableval = xyes -o x$enableval = xno; then
4164 support_8bitctrls=$enableval
4165 fi
4166fi;
4167
4168RESFALLBACK=Rxvt
4169# Check whether --enable-fallback or --disable-fallback was given.
4170if test "${enable_fallback+set}" = set; then
4171 enableval="$enable_fallback"
4172
4173 test x$enableval = xyes && enableval=Rxvt
4174 test x$enableval = xno && enableval=
4175 RESFALLBACK="$enableval"
4176
4177fi;
4178
4179if test x$RESFALLBACK != x; then
4180
4181cat >>confdefs.h <<_ACEOF
4182#define RESFALLBACK "$RESFALLBACK"
4183_ACEOF
4184
4185fi
4186
4187RESNAME=urxvt
4188
4189# Check whether --with-res-name or --without-res-name was given.
4190if test "${with_res_name+set}" = set; then
4191 withval="$with_res_name"
4192 RESNAME="$withval"
4193fi;
4194
4195cat >>confdefs.h <<_ACEOF
4196#define RESNAME "$RESNAME"
4197_ACEOF
4198
4199
4200RESCLASS=URxvt
4201
4202# Check whether --with-res-class or --without-res-class was given.
4203if test "${with_res_class+set}" = set; then
4204 withval="$with_res_class"
4205 RESCLASS="$withval"
4206fi;
4207
4208cat >>confdefs.h <<_ACEOF
4209#define RESCLASS "$RESCLASS"
4210_ACEOF
4211
4212
4213RXVTNAME=urxvt
4214
4215# Check whether --with-name or --without-name was given.
4216if test "${with_name+set}" = set; then
4217 withval="$with_name"
4218 RXVTNAME="$withval"
4219fi;
4220
4221cat >>confdefs.h <<_ACEOF
4222#define RXVTNAME "$RXVTNAME"
4223_ACEOF
4224
4225
4226RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
4227
4228
4229# Check whether --enable-swapscreen or --disable-swapscreen was given.
4230if test "${enable_swapscreen+set}" = set; then
4231 enableval="$enable_swapscreen"
4232 if test x$enableval = xno; then
4233
4234cat >>confdefs.h <<\_ACEOF
4235#define NO_SECONDARY_SCREEN 1
4236_ACEOF
4237
4238 fi
4239fi;
4240
4241# Check whether --enable-iso14755 or --disable-iso14755 was given.
4242if test "${enable_iso14755+set}" = set; then
4243 enableval="$enable_iso14755"
4244 if test x$enableval = xyes -o x$enableval = xno; then
4245 support_iso14755=$enableval
4246 fi
4247fi;
4248
4249# Check whether --enable-frills or --disable-frills was given.
4250if test "${enable_frills+set}" = set; then
4251 enableval="$enable_frills"
4252 if test x$enableval = xyes -o x$enableval = xno; then
4253 support_frills=$enableval
4254 fi
4255fi;
4256
4257# Check whether --enable-keepscrolling or --disable-keepscrolling was given.
4258if test "${enable_keepscrolling+set}" = set; then
4259 enableval="$enable_keepscrolling"
4260 if test x$enableval = xyes -o x$enableval = xno; then
4261 support_keepscrolling=$enableval
4262 fi
4263fi;
4264
4265# Check whether --enable-selectionscrolling or --disable-selectionscrolling was given.
4266if test "${enable_selectionscrolling+set}" = set; then
4267 enableval="$enable_selectionscrolling"
4268 if test x$enableval = xyes -o x$enableval = xno; then
4269 support_selectionscrolling=$enableval
4270 fi
4271fi;
4272
4273# Check whether --enable-mousewheel or --disable-mousewheel was given.
4274if test "${enable_mousewheel+set}" = set; then
4275 enableval="$enable_mousewheel"
4276 if test x$enableval = xyes -o x$enableval = xno; then
4277 support_mousewheel=$enableval
4278 fi
4279fi;
4280
4281# Check whether --enable-slipwheeling or --disable-slipwheeling was given.
4282if test "${enable_slipwheeling+set}" = set; then
4283 enableval="$enable_slipwheeling"
4284 if test x$enableval = xyes -o x$enableval = xno; then
4285 support_mouseslipwheel=$enableval
4286 fi
4287fi;
4288
4289# Check whether --enable-smart-resize or --disable-smart-resize was given.
4290if test "${enable_smart_resize+set}" = set; then
4291 enableval="$enable_smart_resize"
4292 if test x$enableval = xyes; then
4293
4294cat >>confdefs.h <<\_ACEOF
4295#define SMART_RESIZE 1
4296_ACEOF
4297
4298 fi
4299fi;
4300
4301# Check whether --enable-text-blink or --disable-text-blink was given.
4302if test "${enable_text_blink+set}" = set; then
4303 enableval="$enable_text_blink"
4304 if test x$enableval = xyes -o x$enableval = xno; then
4305 support_text_blink=$enableval
4306 fi
4307fi;
4308
4309# Check whether --enable-pointer-blank or --disable-pointer-blank was given.
4310if test "${enable_pointer_blank+set}" = set; then
4311 enableval="$enable_pointer_blank"
4312 if test x$enableval = xyes -o x$enableval = xno; then
4313 support_pointer_blank=$enableval
4314 fi
4315fi;
4316
4317
4318# Check whether --with-term or --without-term was given.
4319if test "${with_term+set}" = set; then
4320 withval="$with_term"
4321 if test x$withval != x; then
4322
4323cat >>confdefs.h <<_ACEOF
4324#define TERMENV "$withval"
4325_ACEOF
4326 term="$withval"
4327 fi
4328fi;
4329
4330
4331# Check whether --with-terminfo or --without-terminfo was given.
4332if test "${with_terminfo+set}" = set; then
4333 withval="$with_terminfo"
4334 if test x$withval != x; then
4335
4336cat >>confdefs.h <<_ACEOF
4337#define RXVT_TERMINFO "$withval"
4338_ACEOF
4339 terminfo="$withval"
4340 fi
4341fi;
4342
4343
3170 # Extract the first word of "$ac_prog", so it can be a program name with args. 4344# Extract the first word of "tic", so it can be a program name with args.
3171set dummy $ac_prog; ac_word=$2 4345set dummy tic; ac_word=$2
3172echo "$as_me:$LINENO: checking for $ac_word" >&5 4346echo "$as_me:$LINENO: checking for $ac_word" >&5
3173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3174if test "${ac_cv_prog_AWK+set}" = set; then 4348if test "${ac_cv_path_TIC+set}" = set; then
3175 echo $ECHO_N "(cached) $ECHO_C" >&6 4349 echo $ECHO_N "(cached) $ECHO_C" >&6
3176else 4350else
3177 if test -n "$AWK"; then 4351 case $TIC in
4352 [\\/]* | ?:[\\/]*)
3178 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4353 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
3179else 4354 ;;
4355 *)
3180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181for as_dir in $PATH 4357for as_dir in $PATH
3182do 4358do
3183 IFS=$as_save_IFS 4359 IFS=$as_save_IFS
3184 test -z "$as_dir" && as_dir=. 4360 test -z "$as_dir" && as_dir=.
3185 for ac_exec_ext in '' $ac_executable_extensions; do 4361 for ac_exec_ext in '' $ac_executable_extensions; do
3186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3187 ac_cv_prog_AWK="$ac_prog" 4363 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
3188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3189 break 2 4365 break 2
3190 fi 4366 fi
3191done 4367done
3192done 4368done
3193 4369
4370 ;;
4371esac
3194fi 4372fi
3195fi 4373TIC=$ac_cv_path_TIC
3196AWK=$ac_cv_prog_AWK 4374
3197if test -n "$AWK"; then 4375if test -n "$TIC"; then
3198 echo "$as_me:$LINENO: result: $AWK" >&5 4376 echo "$as_me:$LINENO: result: $TIC" >&5
3199echo "${ECHO_T}$AWK" >&6 4377echo "${ECHO_T}$TIC" >&6
3200else 4378else
3201 echo "$as_me:$LINENO: result: no" >&5 4379 echo "$as_me:$LINENO: result: no" >&5
3202echo "${ECHO_T}no" >&6 4380echo "${ECHO_T}no" >&6
3203fi 4381fi
3204 4382
3205 test -n "$AWK" && break
3206done
3207
3208
3209ac_ext=c
3210ac_cpp='$CPP $CPPFLAGS'
3211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3213ac_compiler_gnu=$ac_cv_c_compiler_gnu
3214
3215
3216LINKER="$CXX"
3217if test x$GCC = xyes && test x$GXX = xyes; then
3218
3219echo "$as_me:$LINENO: checking for main in -lsupc++" >&5
3220echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6
3221if test "${ac_cv_lib_supcpp_main+set}" = set; then
3222 echo $ECHO_N "(cached) $ECHO_C" >&6
3223else
3224 ac_check_lib_save_LIBS=$LIBS
3225LIBS="-lsupc++ $LIBS"
3226cat >conftest.$ac_ext <<_ACEOF
3227/* confdefs.h. */
3228_ACEOF
3229cat confdefs.h >>conftest.$ac_ext
3230cat >>conftest.$ac_ext <<_ACEOF
3231/* end confdefs.h. */
3232
3233
3234int
3235main ()
3236{
3237main ();
3238 ;
3239 return 0;
3240}
3241_ACEOF
3242rm -f conftest.$ac_objext conftest$ac_exeext
3243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3244 (eval $ac_link) 2>conftest.er1
3245 ac_status=$?
3246 grep -v '^ *+' conftest.er1 >conftest.err
3247 rm -f conftest.er1
3248 cat conftest.err >&5
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); } &&
3251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3253 (eval $ac_try) 2>&5
3254 ac_status=$?
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); }; } &&
3257 { ac_try='test -s conftest$ac_exeext'
3258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3259 (eval $ac_try) 2>&5
3260 ac_status=$?
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }; }; then
3263 ac_cv_lib_supcpp_main=yes
3264else
3265 echo "$as_me: failed program was:" >&5
3266sed 's/^/| /' conftest.$ac_ext >&5
3267
3268ac_cv_lib_supcpp_main=no
3269fi
3270rm -f conftest.err conftest.$ac_objext \
3271 conftest$ac_exeext conftest.$ac_ext
3272LIBS=$ac_check_lib_save_LIBS
3273fi
3274echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5
3275echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6
3276if test $ac_cv_lib_supcpp_main = yes; then
3277
3278 LINKER="$CC"
3279 LIBS="$LIBS -lsupc++"
3280
3281fi
3282
3283fi
3284LINKER=$LINKER
3285
3286
3287CPPFLAGS="-D_GNU_SOURCE -D_XOPEN_SOURCE"
3288
3289
3290ac_ext=cc
3291ac_cpp='$CXXCPP $CPPFLAGS'
3292ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3293ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3294ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3295 4383
3296 4384
3297 4385
3298ac_ext=cc 4386ac_ext=cc
3299ac_cpp='$CXXCPP $CPPFLAGS' 4387ac_cpp='$CXXCPP $CPPFLAGS'
3524ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4612ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3525ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4613ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3526ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4614ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3527 4615
3528 4616
3529echo "$as_me:$LINENO: checking for egrep" >&5
3530echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3531if test "${ac_cv_prog_egrep+set}" = set; then
3532 echo $ECHO_N "(cached) $ECHO_C" >&6
3533else
3534 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3535 then ac_cv_prog_egrep='grep -E'
3536 else ac_cv_prog_egrep='egrep'
3537 fi
3538fi
3539echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3540echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3541 EGREP=$ac_cv_prog_egrep
3542
3543
3544
3545echo "$as_me:$LINENO: checking for AIX" >&5 4617echo "$as_me:$LINENO: checking for X" >&5
3546echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3547cat >conftest.$ac_ext <<_ACEOF
3548/* confdefs.h. */
3549_ACEOF
3550cat confdefs.h >>conftest.$ac_ext
3551cat >>conftest.$ac_ext <<_ACEOF
3552/* end confdefs.h. */
3553#ifdef _AIX
3554 yes
3555#endif
3556
3557_ACEOF
3558if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3559 $EGREP "yes" >/dev/null 2>&1; then
3560 echo "$as_me:$LINENO: result: yes" >&5
3561echo "${ECHO_T}yes" >&6
3562cat >>confdefs.h <<\_ACEOF
3563#define _ALL_SOURCE 1
3564_ACEOF
3565
3566else
3567 echo "$as_me:$LINENO: result: no" >&5
3568echo "${ECHO_T}no" >&6
3569fi
3570rm -f conftest*
3571
3572
3573echo "$as_me:$LINENO: checking for library containing strerror" >&5
3574echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3575if test "${ac_cv_search_strerror+set}" = set; then
3576 echo $ECHO_N "(cached) $ECHO_C" >&6
3577else
3578 ac_func_search_save_LIBS=$LIBS
3579ac_cv_search_strerror=no
3580cat >conftest.$ac_ext <<_ACEOF
3581/* confdefs.h. */
3582_ACEOF
3583cat confdefs.h >>conftest.$ac_ext
3584cat >>conftest.$ac_ext <<_ACEOF
3585/* end confdefs.h. */
3586
3587/* Override any gcc2 internal prototype to avoid an error. */
3588#ifdef __cplusplus
3589extern "C"
3590#endif
3591/* We use char because int might match the return type of a gcc2
3592 builtin and then its argument prototype would still apply. */
3593char strerror ();
3594int
3595main ()
3596{
3597strerror ();
3598 ;
3599 return 0;
3600}
3601_ACEOF
3602rm -f conftest.$ac_objext conftest$ac_exeext
3603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3604 (eval $ac_link) 2>conftest.er1
3605 ac_status=$?
3606 grep -v '^ *+' conftest.er1 >conftest.err
3607 rm -f conftest.er1
3608 cat conftest.err >&5
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); } &&
3611 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613 (eval $ac_try) 2>&5
3614 ac_status=$?
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); }; } &&
3617 { ac_try='test -s conftest$ac_exeext'
3618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619 (eval $ac_try) 2>&5
3620 ac_status=$?
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); }; }; then
3623 ac_cv_search_strerror="none required"
3624else
3625 echo "$as_me: failed program was:" >&5
3626sed 's/^/| /' conftest.$ac_ext >&5
3627
3628fi
3629rm -f conftest.err conftest.$ac_objext \
3630 conftest$ac_exeext conftest.$ac_ext
3631if test "$ac_cv_search_strerror" = no; then
3632 for ac_lib in cposix; do
3633 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3634 cat >conftest.$ac_ext <<_ACEOF
3635/* confdefs.h. */
3636_ACEOF
3637cat confdefs.h >>conftest.$ac_ext
3638cat >>conftest.$ac_ext <<_ACEOF
3639/* end confdefs.h. */
3640
3641/* Override any gcc2 internal prototype to avoid an error. */
3642#ifdef __cplusplus
3643extern "C"
3644#endif
3645/* We use char because int might match the return type of a gcc2
3646 builtin and then its argument prototype would still apply. */
3647char strerror ();
3648int
3649main ()
3650{
3651strerror ();
3652 ;
3653 return 0;
3654}
3655_ACEOF
3656rm -f conftest.$ac_objext conftest$ac_exeext
3657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3658 (eval $ac_link) 2>conftest.er1
3659 ac_status=$?
3660 grep -v '^ *+' conftest.er1 >conftest.err
3661 rm -f conftest.er1
3662 cat conftest.err >&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); } &&
3665 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3667 (eval $ac_try) 2>&5
3668 ac_status=$?
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); }; } &&
3671 { ac_try='test -s conftest$ac_exeext'
3672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673 (eval $ac_try) 2>&5
3674 ac_status=$?
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; }; then
3677 ac_cv_search_strerror="-l$ac_lib"
3678break
3679else
3680 echo "$as_me: failed program was:" >&5
3681sed 's/^/| /' conftest.$ac_ext >&5
3682
3683fi
3684rm -f conftest.err conftest.$ac_objext \
3685 conftest$ac_exeext conftest.$ac_ext
3686 done
3687fi
3688LIBS=$ac_func_search_save_LIBS
3689fi
3690echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3691echo "${ECHO_T}$ac_cv_search_strerror" >&6
3692if test "$ac_cv_search_strerror" != no; then
3693 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3694
3695fi
3696
3697
3698echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
3699echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
3700if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
3702else
3703 ac_check_lib_save_LIBS=$LIBS
3704LIBS="-lxpg4 $LIBS"
3705cat >conftest.$ac_ext <<_ACEOF
3706/* confdefs.h. */
3707_ACEOF
3708cat confdefs.h >>conftest.$ac_ext
3709cat >>conftest.$ac_ext <<_ACEOF
3710/* end confdefs.h. */
3711
3712/* Override any gcc2 internal prototype to avoid an error. */
3713#ifdef __cplusplus
3714extern "C"
3715#endif
3716/* We use char because int might match the return type of a gcc2
3717 builtin and then its argument prototype would still apply. */
3718char setlocale ();
3719int
3720main ()
3721{
3722setlocale ();
3723 ;
3724 return 0;
3725}
3726_ACEOF
3727rm -f conftest.$ac_objext conftest$ac_exeext
3728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3729 (eval $ac_link) 2>conftest.er1
3730 ac_status=$?
3731 grep -v '^ *+' conftest.er1 >conftest.err
3732 rm -f conftest.er1
3733 cat conftest.err >&5
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); } &&
3736 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3738 (eval $ac_try) 2>&5
3739 ac_status=$?
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); }; } &&
3742 { ac_try='test -s conftest$ac_exeext'
3743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3744 (eval $ac_try) 2>&5
3745 ac_status=$?
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); }; }; then
3748 ac_cv_lib_xpg4_setlocale=yes
3749else
3750 echo "$as_me: failed program was:" >&5
3751sed 's/^/| /' conftest.$ac_ext >&5
3752
3753ac_cv_lib_xpg4_setlocale=no
3754fi
3755rm -f conftest.err conftest.$ac_objext \
3756 conftest$ac_exeext conftest.$ac_ext
3757LIBS=$ac_check_lib_save_LIBS
3758fi
3759echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
3760echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
3761if test $ac_cv_lib_xpg4_setlocale = yes; then
3762 LIBS="$LIBS -lxpg4"
3763fi
3764
3765
3766echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3767echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3768if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3769 echo $ECHO_N "(cached) $ECHO_C" >&6
3770else
3771 ac_check_lib_save_LIBS=$LIBS
3772LIBS="-lnsl $LIBS"
3773cat >conftest.$ac_ext <<_ACEOF
3774/* confdefs.h. */
3775_ACEOF
3776cat confdefs.h >>conftest.$ac_ext
3777cat >>conftest.$ac_ext <<_ACEOF
3778/* end confdefs.h. */
3779
3780/* Override any gcc2 internal prototype to avoid an error. */
3781#ifdef __cplusplus
3782extern "C"
3783#endif
3784/* We use char because int might match the return type of a gcc2
3785 builtin and then its argument prototype would still apply. */
3786char gethostbyname ();
3787int
3788main ()
3789{
3790gethostbyname ();
3791 ;
3792 return 0;
3793}
3794_ACEOF
3795rm -f conftest.$ac_objext conftest$ac_exeext
3796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3797 (eval $ac_link) 2>conftest.er1
3798 ac_status=$?
3799 grep -v '^ *+' conftest.er1 >conftest.err
3800 rm -f conftest.er1
3801 cat conftest.err >&5
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); } &&
3804 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806 (eval $ac_try) 2>&5
3807 ac_status=$?
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); }; } &&
3810 { ac_try='test -s conftest$ac_exeext'
3811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812 (eval $ac_try) 2>&5
3813 ac_status=$?
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); }; }; then
3816 ac_cv_lib_nsl_gethostbyname=yes
3817else
3818 echo "$as_me: failed program was:" >&5
3819sed 's/^/| /' conftest.$ac_ext >&5
3820
3821ac_cv_lib_nsl_gethostbyname=no
3822fi
3823rm -f conftest.err conftest.$ac_objext \
3824 conftest$ac_exeext conftest.$ac_ext
3825LIBS=$ac_check_lib_save_LIBS
3826fi
3827echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3828echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3829if test $ac_cv_lib_nsl_gethostbyname = yes; then
3830 LIBS="$LIBS -lnsl"
3831fi
3832
3833echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3834echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3835if test "${ac_cv_lib_socket_socket+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
3837else
3838 ac_check_lib_save_LIBS=$LIBS
3839LIBS="-lsocket $LIBS"
3840cat >conftest.$ac_ext <<_ACEOF
3841/* confdefs.h. */
3842_ACEOF
3843cat confdefs.h >>conftest.$ac_ext
3844cat >>conftest.$ac_ext <<_ACEOF
3845/* end confdefs.h. */
3846
3847/* Override any gcc2 internal prototype to avoid an error. */
3848#ifdef __cplusplus
3849extern "C"
3850#endif
3851/* We use char because int might match the return type of a gcc2
3852 builtin and then its argument prototype would still apply. */
3853char socket ();
3854int
3855main ()
3856{
3857socket ();
3858 ;
3859 return 0;
3860}
3861_ACEOF
3862rm -f conftest.$ac_objext conftest$ac_exeext
3863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3864 (eval $ac_link) 2>conftest.er1
3865 ac_status=$?
3866 grep -v '^ *+' conftest.er1 >conftest.err
3867 rm -f conftest.er1
3868 cat conftest.err >&5
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); } &&
3871 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3873 (eval $ac_try) 2>&5
3874 ac_status=$?
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }; } &&
3877 { ac_try='test -s conftest$ac_exeext'
3878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3879 (eval $ac_try) 2>&5
3880 ac_status=$?
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); }; }; then
3883 ac_cv_lib_socket_socket=yes
3884else
3885 echo "$as_me: failed program was:" >&5
3886sed 's/^/| /' conftest.$ac_ext >&5
3887
3888ac_cv_lib_socket_socket=no
3889fi
3890rm -f conftest.err conftest.$ac_objext \
3891 conftest$ac_exeext conftest.$ac_ext
3892LIBS=$ac_check_lib_save_LIBS
3893fi
3894echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3895echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3896if test $ac_cv_lib_socket_socket = yes; then
3897 LIBS="$LIBS -lsocket"
3898fi
3899
3900
3901# Check whether --enable-shared or --disable-shared was given.
3902if test "${enable_shared+set}" = set; then
3903 enableval="$enable_shared"
3904 p=${PACKAGE-default}
3905case "$enableval" in
3906yes) enable_shared=yes ;;
3907no) enable_shared=no ;;
3908*)
3909 enable_shared=no
3910 # Look at the argument we got. We use all the common list separators.
3911 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3912 for pkg in $enableval; do
3913 if test "X$pkg" = "X$p"; then
3914 enable_shared=yes
3915 fi
3916 done
3917 IFS="$ac_save_ifs"
3918 ;;
3919esac
3920else
3921 enable_shared=no
3922fi; # Check whether --enable-static or --disable-static was given.
3923if test "${enable_static+set}" = set; then
3924 enableval="$enable_static"
3925 p=${PACKAGE-default}
3926case "$enableval" in
3927yes) enable_static=yes ;;
3928no) enable_static=no ;;
3929*)
3930 enable_static=no
3931 # Look at the argument we got. We use all the common list separators.
3932 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3933 for pkg in $enableval; do
3934 if test "X$pkg" = "X$p"; then
3935 enable_static=yes
3936 fi
3937 done
3938 IFS="$ac_save_ifs"
3939 ;;
3940esac
3941else
3942 enable_static=yes
3943fi; # Check whether --enable-fast-install or --disable-fast-install was given.
3944if test "${enable_fast_install+set}" = set; then
3945 enableval="$enable_fast_install"
3946 p=${PACKAGE-default}
3947case "$enableval" in
3948yes) enable_fast_install=yes ;;
3949no) enable_fast_install=no ;;
3950*)
3951 enable_fast_install=no
3952 # Look at the argument we got. We use all the common list separators.
3953 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3954 for pkg in $enableval; do
3955 if test "X$pkg" = "X$p"; then
3956 enable_fast_install=yes
3957 fi
3958 done
3959 IFS="$ac_save_ifs"
3960 ;;
3961esac
3962else
3963 enable_fast_install=yes
3964fi;
3965# Make sure we can run config.sub.
3966$ac_config_sub sun4 >/dev/null 2>&1 ||
3967 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3968echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3969 { (exit 1); exit 1; }; }
3970
3971echo "$as_me:$LINENO: checking build system type" >&5
3972echo $ECHO_N "checking build system type... $ECHO_C" >&6
3973if test "${ac_cv_build+set}" = set; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3975else
3976 ac_cv_build_alias=$build_alias
3977test -z "$ac_cv_build_alias" &&
3978 ac_cv_build_alias=`$ac_config_guess`
3979test -z "$ac_cv_build_alias" &&
3980 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3981echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3982 { (exit 1); exit 1; }; }
3983ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3984 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3985echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3986 { (exit 1); exit 1; }; }
3987
3988fi
3989echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3990echo "${ECHO_T}$ac_cv_build" >&6
3991build=$ac_cv_build
3992build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3993build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3994build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3995
3996
3997echo "$as_me:$LINENO: checking host system type" >&5
3998echo $ECHO_N "checking host system type... $ECHO_C" >&6
3999if test "${ac_cv_host+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4001else
4002 ac_cv_host_alias=$host_alias
4003test -z "$ac_cv_host_alias" &&
4004 ac_cv_host_alias=$ac_cv_build_alias
4005ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4006 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4007echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4008 { (exit 1); exit 1; }; }
4009
4010fi
4011echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4012echo "${ECHO_T}$ac_cv_host" >&6
4013host=$ac_cv_host
4014host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4015host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4016host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4017
4018
4019
4020# Check whether --with-gnu-ld or --without-gnu-ld was given.
4021if test "${with_gnu_ld+set}" = set; then
4022 withval="$with_gnu_ld"
4023 test "$withval" = no || with_gnu_ld=yes
4024else
4025 with_gnu_ld=no
4026fi;
4027ac_prog=ld
4028if test "$GCC" = yes; then
4029 # Check if gcc -print-prog-name=ld gives a path.
4030 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4031echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4032 case $host in
4033 *-*-mingw*)
4034 # gcc leaves a trailing carriage return which upsets mingw
4035 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4036 *)
4037 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4038 esac
4039 case "$ac_prog" in
4040 # Accept absolute paths.
4041 [\\/]* | [A-Za-z]:[\\/]*)
4042 re_direlt='/[^/][^/]*/\.\./'
4043 # Canonicalize the path of ld
4044 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4045 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4046 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4047 done
4048 test -z "$LD" && LD="$ac_prog"
4049 ;;
4050 "")
4051 # If it fails, then pretend we aren't using GCC.
4052 ac_prog=ld
4053 ;;
4054 *)
4055 # If it is relative, then search for the first ld in PATH.
4056 with_gnu_ld=unknown
4057 ;;
4058 esac
4059elif test "$with_gnu_ld" = yes; then
4060 echo "$as_me:$LINENO: checking for GNU ld" >&5
4061echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4062else
4063 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4064echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4065fi
4066if test "${lt_cv_path_LD+set}" = set; then
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
4068else
4069 if test -z "$LD"; then
4070 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4071 for ac_dir in $PATH; do
4072 test -z "$ac_dir" && ac_dir=.
4073 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4074 lt_cv_path_LD="$ac_dir/$ac_prog"
4075 # Check to see if the program is GNU ld. I'd rather use --version,
4076 # but apparently some GNU ld's only accept -v.
4077 # Break only if it was the GNU/non-GNU ld that we prefer.
4078 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4079 test "$with_gnu_ld" != no && break
4080 else
4081 test "$with_gnu_ld" != yes && break
4082 fi
4083 fi
4084 done
4085 IFS="$ac_save_ifs"
4086else
4087 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4088fi
4089fi
4090
4091LD="$lt_cv_path_LD"
4092if test -n "$LD"; then
4093 echo "$as_me:$LINENO: result: $LD" >&5
4094echo "${ECHO_T}$LD" >&6
4095else
4096 echo "$as_me:$LINENO: result: no" >&5
4097echo "${ECHO_T}no" >&6
4098fi
4099test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4100echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4101 { (exit 1); exit 1; }; }
4102echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4103echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4104if test "${lt_cv_prog_gnu_ld+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4106else
4107 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4108if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4109 lt_cv_prog_gnu_ld=yes
4110else
4111 lt_cv_prog_gnu_ld=no
4112fi
4113fi
4114echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4115echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4116with_gnu_ld=$lt_cv_prog_gnu_ld
4117
4118
4119echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4120echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4121if test "${lt_cv_ld_reload_flag+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4123else
4124 lt_cv_ld_reload_flag='-r'
4125fi
4126echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4127echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4128reload_flag=$lt_cv_ld_reload_flag
4129test -n "$reload_flag" && reload_flag=" $reload_flag"
4130
4131echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4132echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4133if test "${lt_cv_path_NM+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4135else
4136 if test -n "$NM"; then
4137 # Let the user override the test.
4138 lt_cv_path_NM="$NM"
4139else
4140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4141 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4142 test -z "$ac_dir" && ac_dir=.
4143 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4144 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4145 # Check to see if the nm accepts a BSD-compat flag.
4146 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4147 # nm: unknown option "B" ignored
4148 # Tru64's nm complains that /dev/null is an invalid object file
4149 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4150 lt_cv_path_NM="$tmp_nm -B"
4151 break
4152 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4153 lt_cv_path_NM="$tmp_nm -p"
4154 break
4155 else
4156 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4157 continue # so that we can try to find one that supports BSD flags
4158 fi
4159 fi
4160 done
4161 IFS="$ac_save_ifs"
4162 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4163fi
4164fi
4165
4166NM="$lt_cv_path_NM"
4167echo "$as_me:$LINENO: result: $NM" >&5
4168echo "${ECHO_T}$NM" >&6
4169
4170echo "$as_me:$LINENO: checking whether ln -s works" >&5
4171echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4172LN_S=$as_ln_s
4173if test "$LN_S" = "ln -s"; then
4174 echo "$as_me:$LINENO: result: yes" >&5
4175echo "${ECHO_T}yes" >&6
4176else
4177 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4178echo "${ECHO_T}no, using $LN_S" >&6
4179fi
4180
4181echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4182echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4183if test "${lt_cv_deplibs_check_method+set}" = set; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4185else
4186 lt_cv_file_magic_cmd='$MAGIC_CMD'
4187lt_cv_file_magic_test_file=
4188lt_cv_deplibs_check_method='unknown'
4189# Need to set the preceding variable on all platforms that support
4190# interlibrary dependencies.
4191# 'none' -- dependencies not supported.
4192# `unknown' -- same as none, but documents that we really don't know.
4193# 'pass_all' -- all dependencies passed with no checks.
4194# 'test_compile' -- check by making test program.
4195# ['file_magic [regex]'] -- check by looking for files in library path
4196# which responds to the $file_magic_cmd with a given egrep regex.
4197# If you have `file' or equivalent on your system and you're not sure
4198# whether `pass_all' will *always* work, you probably want this one.
4199
4200case "$host_os" in
4201aix4*)
4202 lt_cv_deplibs_check_method=pass_all
4203 ;;
4204
4205beos*)
4206 lt_cv_deplibs_check_method=pass_all
4207 ;;
4208
4209bsdi4*)
4210 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4211 lt_cv_file_magic_cmd='/usr/bin/file -L'
4212 lt_cv_file_magic_test_file=/shlib/libc.so
4213 ;;
4214
4215cygwin* | mingw* | pw32*)
4216 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4217 lt_cv_file_magic_cmd='$OBJDUMP -f'
4218 ;;
4219
4220darwin*|rhapsody*)
4221 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4222 lt_cv_file_magiic_cmd=/usr/bin/file
4223 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4224 ;;
4225
4226freebsd*)
4227 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4228 case "$host_cpu" in
4229 i*86 )
4230 # Not sure whether the presence of OpenBSD here was a mistake.
4231 # Let's accept both of them until this is cleared up.
4232 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4233 lt_cv_file_magic_cmd=/usr/bin/file
4234 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4235 ;;
4236 esac
4237 else
4238 lt_cv_deplibs_check_method=pass_all
4239 fi
4240 ;;
4241
4242gnu*)
4243 lt_cv_deplibs_check_method=pass_all
4244 ;;
4245
4246hpux10.20*|hpux11*)
4247 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4248 lt_cv_file_magic_cmd=/usr/bin/file
4249 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4250 ;;
4251
4252irix5* | irix6*)
4253 case "$host_os" in
4254 irix5*)
4255 # this will be overridden with pass_all, but let us keep it just in case
4256 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4257 ;;
4258 *)
4259 case "$LD" in
4260 *-32|*"-32 ") libmagic=32-bit;;
4261 *-n32|*"-n32 ") libmagic=N32;;
4262 *-64|*"-64 ") libmagic=64-bit;;
4263 *) libmagic=never-match;;
4264 esac
4265 # this will be overridden with pass_all, but let us keep it just in case
4266 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4267 ;;
4268 esac
4269 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4270 lt_cv_deplibs_check_method=pass_all
4271 ;;
4272
4273# This must be Linux ELF.
4274linux-gnu*)
4275 case "$host_cpu" in
4276 alpha* | i*86 | powerpc* | sparc* | ia64* )
4277 lt_cv_deplibs_check_method=pass_all ;;
4278 *)
4279 # glibc up to 2.1.1 does not perform some relocations on ARM
4280 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4281 esac
4282 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4283 ;;
4284
4285netbsd*)
4286 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4287 lt_cv_deplibs_check_method='file_magic NetBSD/[a-z0-9]* demand paged shared library'
4288 else
4289 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4290 fi
4291 lt_cv_file_magic_cmd='/usr/bin/file -L'
4292 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4293 ;;
4294
4295newos6*)
4296 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4297 lt_cv_file_magic_cmd=/usr/bin/file
4298 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4299 ;;
4300
4301osf3* | osf4* | osf5*)
4302 # this will be overridden with pass_all, but let us keep it just in case
4303 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4304 lt_cv_file_magic_test_file=/shlib/libc.so
4305 lt_cv_deplibs_check_method=pass_all
4306 ;;
4307
4308sco3.2v5*)
4309 lt_cv_deplibs_check_method=pass_all
4310 ;;
4311
4312solaris*)
4313 lt_cv_deplibs_check_method=pass_all
4314 lt_cv_file_magic_test_file=/lib/libc.so
4315 ;;
4316
4317sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4318 case "$host_vendor" in
4319 motorola)
4320 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]'
4321 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4322 ;;
4323 ncr)
4324 lt_cv_deplibs_check_method=pass_all
4325 ;;
4326 sequent)
4327 lt_cv_file_magic_cmd='/bin/file'
4328 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4329 ;;
4330 sni)
4331 lt_cv_file_magic_cmd='/bin/file'
4332 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4333 lt_cv_file_magic_test_file=/lib/libc.so
4334 ;;
4335 esac
4336 ;;
4337esac
4338
4339fi
4340echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4341echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4342file_magic_cmd=$lt_cv_file_magic_cmd
4343deplibs_check_method=$lt_cv_deplibs_check_method
4344
4345
4346
4347
4348
4349
4350
4351# Check for command to grab the raw symbol name followed by C symbol from nm.
4352echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4353echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4354if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4356else
4357
4358# These are sane defaults that work on at least a few old systems.
4359# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4360
4361# Character class describing NM global symbol codes.
4362symcode='[BCDEGRST]'
4363
4364# Regexp to match symbols that can be accessed directly from C.
4365sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4366
4367# Transform the above into a raw symbol and a C symbol.
4368symxfrm='\1 \2\3 \3'
4369
4370# Transform an extracted symbol line into a proper C declaration
4371lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4372
4373# Define system-specific variables.
4374case "$host_os" in
4375aix*)
4376 symcode='[BCDT]'
4377 ;;
4378cygwin* | mingw* | pw32*)
4379 symcode='[ABCDGISTW]'
4380 ;;
4381hpux*) # Its linker distinguishes data from code symbols
4382 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
4383 ;;
4384irix*)
4385 symcode='[BCDEGRST]'
4386 ;;
4387solaris* | sysv5*)
4388 symcode='[BDT]'
4389 ;;
4390sysv4)
4391 symcode='[DFNSTU]'
4392 ;;
4393esac
4394
4395# Handle CRLF in mingw tool chain
4396opt_cr=
4397case "$host_os" in
4398mingw*)
4399 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4400 ;;
4401esac
4402
4403# If we're using GNU nm, then use its standard symbol codes.
4404if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4405 symcode='[ABCDGISTW]'
4406fi
4407
4408# Try without a prefix undercore, then with it.
4409for ac_symprfx in "" "_"; do
4410
4411 # Write the raw and C identifiers.
4412lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4413
4414 # Check to see that the pipe works correctly.
4415 pipe_works=no
4416 rm -f conftest*
4417 cat > conftest.$ac_ext <<EOF
4418#ifdef __cplusplus
4419extern "C" {
4420#endif
4421char nm_test_var;
4422void nm_test_func(){}
4423#ifdef __cplusplus
4424}
4425#endif
4426main(){nm_test_var='a';nm_test_func();return(0);}
4427EOF
4428
4429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4430 (eval $ac_compile) 2>&5
4431 ac_status=$?
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); }; then
4434 # Now try to grab the symbols.
4435 nlist=conftest.nm
4436 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4437 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4438 ac_status=$?
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); } && test -s "$nlist"; then
4441 # Try sorting and uniquifying the output.
4442 if sort "$nlist" | uniq > "$nlist"T; then
4443 mv -f "$nlist"T "$nlist"
4444 else
4445 rm -f "$nlist"T
4446 fi
4447
4448 # Make sure that we snagged all the symbols we need.
4449 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4450 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4451 cat <<EOF > conftest.$ac_ext
4452#ifdef __cplusplus
4453extern "C" {
4454#endif
4455
4456EOF
4457 # Now generate the symbol file.
4458 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4459
4460 cat <<EOF >> conftest.$ac_ext
4461#if defined (__STDC__) && __STDC__
4462# define lt_ptr_t void *
4463#else
4464# define lt_ptr_t char *
4465# define const
4466#endif
4467
4468/* The mapping between symbol names and symbols. */
4469const struct {
4470 const char *name;
4471 lt_ptr_t address;
4472}
4473lt_preloaded_symbols[] =
4474{
4475EOF
4476 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$nlist" >> conftest.$ac_ext
4477 cat <<\EOF >> conftest.$ac_ext
4478 {0, (lt_ptr_t) 0}
4479};
4480
4481#ifdef __cplusplus
4482}
4483#endif
4484EOF
4485 # Now try linking the two files.
4486 mv conftest.$ac_objext conftstm.$ac_objext
4487 save_LIBS="$LIBS"
4488 save_CFLAGS="$CFLAGS"
4489 LIBS="conftstm.$ac_objext"
4490 CFLAGS="$CFLAGS$no_builtin_flag"
4491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4492 (eval $ac_link) 2>&5
4493 ac_status=$?
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); } && test -s conftest; then
4496 pipe_works=yes
4497 fi
4498 LIBS="$save_LIBS"
4499 CFLAGS="$save_CFLAGS"
4500 else
4501 echo "cannot find nm_test_func in $nlist" >&5
4502 fi
4503 else
4504 echo "cannot find nm_test_var in $nlist" >&5
4505 fi
4506 else
4507 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4508 fi
4509 else
4510 echo "$progname: failed program was:" >&5
4511 cat conftest.$ac_ext >&5
4512 fi
4513 rm -f conftest* conftst*
4514
4515 # Do not use the global_symbol_pipe unless it works.
4516 if test "$pipe_works" = yes; then
4517 break
4518 else
4519 lt_cv_sys_global_symbol_pipe=
4520 fi
4521done
4522
4523fi
4524
4525global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4526if test -z "$lt_cv_sys_global_symbol_pipe"; then
4527 global_symbol_to_cdecl=
4528else
4529 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4530fi
4531if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
4532 echo "$as_me:$LINENO: result: failed" >&5
4533echo "${ECHO_T}failed" >&6
4534else
4535 echo "$as_me:$LINENO: result: ok" >&5
4536echo "${ECHO_T}ok" >&6
4537fi
4538
4539echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4540echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4541if test "${ac_cv_header_stdc+set}" = set; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6
4543else
4544 cat >conftest.$ac_ext <<_ACEOF
4545/* confdefs.h. */
4546_ACEOF
4547cat confdefs.h >>conftest.$ac_ext
4548cat >>conftest.$ac_ext <<_ACEOF
4549/* end confdefs.h. */
4550#include <stdlib.h>
4551#include <stdarg.h>
4552#include <string.h>
4553#include <float.h>
4554
4555int
4556main ()
4557{
4558
4559 ;
4560 return 0;
4561}
4562_ACEOF
4563rm -f conftest.$ac_objext
4564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4565 (eval $ac_compile) 2>conftest.er1
4566 ac_status=$?
4567 grep -v '^ *+' conftest.er1 >conftest.err
4568 rm -f conftest.er1
4569 cat conftest.err >&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); } &&
4572 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574 (eval $ac_try) 2>&5
4575 ac_status=$?
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; } &&
4578 { ac_try='test -s conftest.$ac_objext'
4579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4580 (eval $ac_try) 2>&5
4581 ac_status=$?
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); }; }; then
4584 ac_cv_header_stdc=yes
4585else
4586 echo "$as_me: failed program was:" >&5
4587sed 's/^/| /' conftest.$ac_ext >&5
4588
4589ac_cv_header_stdc=no
4590fi
4591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4592
4593if test $ac_cv_header_stdc = yes; then
4594 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4595 cat >conftest.$ac_ext <<_ACEOF
4596/* confdefs.h. */
4597_ACEOF
4598cat confdefs.h >>conftest.$ac_ext
4599cat >>conftest.$ac_ext <<_ACEOF
4600/* end confdefs.h. */
4601#include <string.h>
4602
4603_ACEOF
4604if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4605 $EGREP "memchr" >/dev/null 2>&1; then
4606 :
4607else
4608 ac_cv_header_stdc=no
4609fi
4610rm -f conftest*
4611
4612fi
4613
4614if test $ac_cv_header_stdc = yes; then
4615 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4616 cat >conftest.$ac_ext <<_ACEOF
4617/* confdefs.h. */
4618_ACEOF
4619cat confdefs.h >>conftest.$ac_ext
4620cat >>conftest.$ac_ext <<_ACEOF
4621/* end confdefs.h. */
4622#include <stdlib.h>
4623
4624_ACEOF
4625if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4626 $EGREP "free" >/dev/null 2>&1; then
4627 :
4628else
4629 ac_cv_header_stdc=no
4630fi
4631rm -f conftest*
4632
4633fi
4634
4635if test $ac_cv_header_stdc = yes; then
4636 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4637 if test "$cross_compiling" = yes; then
4638 :
4639else
4640 cat >conftest.$ac_ext <<_ACEOF
4641/* confdefs.h. */
4642_ACEOF
4643cat confdefs.h >>conftest.$ac_ext
4644cat >>conftest.$ac_ext <<_ACEOF
4645/* end confdefs.h. */
4646#include <ctype.h>
4647#if ((' ' & 0x0FF) == 0x020)
4648# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4649# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4650#else
4651# define ISLOWER(c) \
4652 (('a' <= (c) && (c) <= 'i') \
4653 || ('j' <= (c) && (c) <= 'r') \
4654 || ('s' <= (c) && (c) <= 'z'))
4655# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4656#endif
4657
4658#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4659int
4660main ()
4661{
4662 int i;
4663 for (i = 0; i < 256; i++)
4664 if (XOR (islower (i), ISLOWER (i))
4665 || toupper (i) != TOUPPER (i))
4666 exit(2);
4667 exit (0);
4668}
4669_ACEOF
4670rm -f conftest$ac_exeext
4671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4672 (eval $ac_link) 2>&5
4673 ac_status=$?
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4677 (eval $ac_try) 2>&5
4678 ac_status=$?
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }; }; then
4681 :
4682else
4683 echo "$as_me: program exited with status $ac_status" >&5
4684echo "$as_me: failed program was:" >&5
4685sed 's/^/| /' conftest.$ac_ext >&5
4686
4687( exit $ac_status )
4688ac_cv_header_stdc=no
4689fi
4690rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4691fi
4692fi
4693fi
4694echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4695echo "${ECHO_T}$ac_cv_header_stdc" >&6
4696if test $ac_cv_header_stdc = yes; then
4697
4698cat >>confdefs.h <<\_ACEOF
4699#define STDC_HEADERS 1
4700_ACEOF
4701
4702fi
4703
4704# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4715 inttypes.h stdint.h unistd.h
4716do
4717as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4718echo "$as_me:$LINENO: checking for $ac_header" >&5
4719echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4720if eval "test \"\${$as_ac_Header+set}\" = set"; then
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4722else
4723 cat >conftest.$ac_ext <<_ACEOF
4724/* confdefs.h. */
4725_ACEOF
4726cat confdefs.h >>conftest.$ac_ext
4727cat >>conftest.$ac_ext <<_ACEOF
4728/* end confdefs.h. */
4729$ac_includes_default
4730
4731#include <$ac_header>
4732_ACEOF
4733rm -f conftest.$ac_objext
4734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4735 (eval $ac_compile) 2>conftest.er1
4736 ac_status=$?
4737 grep -v '^ *+' conftest.er1 >conftest.err
4738 rm -f conftest.er1
4739 cat conftest.err >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } &&
4742 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744 (eval $ac_try) 2>&5
4745 ac_status=$?
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; } &&
4748 { ac_try='test -s conftest.$ac_objext'
4749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750 (eval $ac_try) 2>&5
4751 ac_status=$?
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; }; then
4754 eval "$as_ac_Header=yes"
4755else
4756 echo "$as_me: failed program was:" >&5
4757sed 's/^/| /' conftest.$ac_ext >&5
4758
4759eval "$as_ac_Header=no"
4760fi
4761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4762fi
4763echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4764echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4765if test `eval echo '${'$as_ac_Header'}'` = yes; then
4766 cat >>confdefs.h <<_ACEOF
4767#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4768_ACEOF
4769
4770fi
4771
4772done
4773
4774
4775
4776for ac_header in dlfcn.h
4777do
4778as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4779if eval "test \"\${$as_ac_Header+set}\" = set"; then
4780 echo "$as_me:$LINENO: checking for $ac_header" >&5
4781echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4782if eval "test \"\${$as_ac_Header+set}\" = set"; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4784fi
4785echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4786echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4787else
4788 # Is the header compilable?
4789echo "$as_me:$LINENO: checking $ac_header usability" >&5
4790echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4791cat >conftest.$ac_ext <<_ACEOF
4792/* confdefs.h. */
4793_ACEOF
4794cat confdefs.h >>conftest.$ac_ext
4795cat >>conftest.$ac_ext <<_ACEOF
4796/* end confdefs.h. */
4797$ac_includes_default
4798#include <$ac_header>
4799_ACEOF
4800rm -f conftest.$ac_objext
4801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4802 (eval $ac_compile) 2>conftest.er1
4803 ac_status=$?
4804 grep -v '^ *+' conftest.er1 >conftest.err
4805 rm -f conftest.er1
4806 cat conftest.err >&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); } &&
4809 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4811 (eval $ac_try) 2>&5
4812 ac_status=$?
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); }; } &&
4815 { ac_try='test -s conftest.$ac_objext'
4816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4817 (eval $ac_try) 2>&5
4818 ac_status=$?
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }; }; then
4821 ac_header_compiler=yes
4822else
4823 echo "$as_me: failed program was:" >&5
4824sed 's/^/| /' conftest.$ac_ext >&5
4825
4826ac_header_compiler=no
4827fi
4828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4829echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4830echo "${ECHO_T}$ac_header_compiler" >&6
4831
4832# Is the header present?
4833echo "$as_me:$LINENO: checking $ac_header presence" >&5
4834echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4835cat >conftest.$ac_ext <<_ACEOF
4836/* confdefs.h. */
4837_ACEOF
4838cat confdefs.h >>conftest.$ac_ext
4839cat >>conftest.$ac_ext <<_ACEOF
4840/* end confdefs.h. */
4841#include <$ac_header>
4842_ACEOF
4843if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4844 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4845 ac_status=$?
4846 grep -v '^ *+' conftest.er1 >conftest.err
4847 rm -f conftest.er1
4848 cat conftest.err >&5
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); } >/dev/null; then
4851 if test -s conftest.err; then
4852 ac_cpp_err=$ac_cxx_preproc_warn_flag
4853 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4854 else
4855 ac_cpp_err=
4856 fi
4857else
4858 ac_cpp_err=yes
4859fi
4860if test -z "$ac_cpp_err"; then
4861 ac_header_preproc=yes
4862else
4863 echo "$as_me: failed program was:" >&5
4864sed 's/^/| /' conftest.$ac_ext >&5
4865
4866 ac_header_preproc=no
4867fi
4868rm -f conftest.err conftest.$ac_ext
4869echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4870echo "${ECHO_T}$ac_header_preproc" >&6
4871
4872# So? What about this header?
4873case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4874 yes:no: )
4875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4876echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4878echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4879 ac_header_preproc=yes
4880 ;;
4881 no:yes:* )
4882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4883echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4885echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4887echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4889echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4891echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4893echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4894 (
4895 cat <<\_ASBOX
4896## ------------------------------------------ ##
4897## Report this to the AC_PACKAGE_NAME lists. ##
4898## ------------------------------------------ ##
4899_ASBOX
4900 ) |
4901 sed "s/^/$as_me: WARNING: /" >&2
4902 ;;
4903esac
4904echo "$as_me:$LINENO: checking for $ac_header" >&5
4905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4906if eval "test \"\${$as_ac_Header+set}\" = set"; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4908else
4909 eval "$as_ac_Header=\$ac_header_preproc"
4910fi
4911echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4912echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4913
4914fi
4915if test `eval echo '${'$as_ac_Header'}'` = yes; then
4916 cat >>confdefs.h <<_ACEOF
4917#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4918_ACEOF
4919
4920fi
4921
4922done
4923
4924
4925
4926
4927
4928# Only perform the check for file, if the check method requires it
4929case "$deplibs_check_method" in
4930file_magic*)
4931 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4932 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4933echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4934if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4935 echo $ECHO_N "(cached) $ECHO_C" >&6
4936else
4937 case "$MAGIC_CMD" in
4938 /*)
4939 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4940 ;;
4941 ?:/*)
4942 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4943 ;;
4944 *)
4945 ac_save_MAGIC_CMD="$MAGIC_CMD"
4946 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4947 ac_dummy="/usr/bin:$PATH"
4948 for ac_dir in $ac_dummy; do
4949 test -z "$ac_dir" && ac_dir=.
4950 if test -f $ac_dir/${ac_tool_prefix}file; then
4951 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4952 if test -n "$file_magic_test_file"; then
4953 case "$deplibs_check_method" in
4954 "file_magic "*)
4955 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4956 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4957 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4958 egrep "$file_magic_regex" > /dev/null; then
4959 :
4960 else
4961 cat <<EOF 1>&2
4962
4963*** Warning: the command libtool uses to detect shared libraries,
4964*** $file_magic_cmd, produces output that libtool cannot recognize.
4965*** The result is that libtool may fail to recognize shared libraries
4966*** as such. This will affect the creation of libtool libraries that
4967*** depend on shared libraries, but programs linked with such libtool
4968*** libraries will work regardless of this problem. Nevertheless, you
4969*** may want to report the problem to your system manager and/or to
4970*** bug-libtool@gnu.org
4971
4972EOF
4973 fi ;;
4974 esac
4975 fi
4976 break
4977 fi
4978 done
4979 IFS="$ac_save_ifs"
4980 MAGIC_CMD="$ac_save_MAGIC_CMD"
4981 ;;
4982esac
4983fi
4984
4985MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4986if test -n "$MAGIC_CMD"; then
4987 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4988echo "${ECHO_T}$MAGIC_CMD" >&6
4989else
4990 echo "$as_me:$LINENO: result: no" >&5
4991echo "${ECHO_T}no" >&6
4992fi
4993
4994if test -z "$lt_cv_path_MAGIC_CMD"; then
4995 if test -n "$ac_tool_prefix"; then
4996 echo "$as_me:$LINENO: checking for file" >&5
4997echo $ECHO_N "checking for file... $ECHO_C" >&6
4998if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4999 echo $ECHO_N "(cached) $ECHO_C" >&6
5000else
5001 case "$MAGIC_CMD" in
5002 /*)
5003 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5004 ;;
5005 ?:/*)
5006 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5007 ;;
5008 *)
5009 ac_save_MAGIC_CMD="$MAGIC_CMD"
5010 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5011 ac_dummy="/usr/bin:$PATH"
5012 for ac_dir in $ac_dummy; do
5013 test -z "$ac_dir" && ac_dir=.
5014 if test -f $ac_dir/file; then
5015 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5016 if test -n "$file_magic_test_file"; then
5017 case "$deplibs_check_method" in
5018 "file_magic "*)
5019 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5020 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5021 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5022 egrep "$file_magic_regex" > /dev/null; then
5023 :
5024 else
5025 cat <<EOF 1>&2
5026
5027*** Warning: the command libtool uses to detect shared libraries,
5028*** $file_magic_cmd, produces output that libtool cannot recognize.
5029*** The result is that libtool may fail to recognize shared libraries
5030*** as such. This will affect the creation of libtool libraries that
5031*** depend on shared libraries, but programs linked with such libtool
5032*** libraries will work regardless of this problem. Nevertheless, you
5033*** may want to report the problem to your system manager and/or to
5034*** bug-libtool@gnu.org
5035
5036EOF
5037 fi ;;
5038 esac
5039 fi
5040 break
5041 fi
5042 done
5043 IFS="$ac_save_ifs"
5044 MAGIC_CMD="$ac_save_MAGIC_CMD"
5045 ;;
5046esac
5047fi
5048
5049MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5050if test -n "$MAGIC_CMD"; then
5051 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5052echo "${ECHO_T}$MAGIC_CMD" >&6
5053else
5054 echo "$as_me:$LINENO: result: no" >&5
5055echo "${ECHO_T}no" >&6
5056fi
5057
5058 else
5059 MAGIC_CMD=:
5060 fi
5061fi
5062
5063 fi
5064 ;;
5065esac
5066
5067if test -n "$ac_tool_prefix"; then
5068 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5069set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5070echo "$as_me:$LINENO: checking for $ac_word" >&5
5071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5072if test "${ac_cv_prog_RANLIB+set}" = set; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5074else
5075 if test -n "$RANLIB"; then
5076 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5077else
5078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079for as_dir in $PATH
5080do
5081 IFS=$as_save_IFS
5082 test -z "$as_dir" && as_dir=.
5083 for ac_exec_ext in '' $ac_executable_extensions; do
5084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5085 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5087 break 2
5088 fi
5089done
5090done
5091
5092fi
5093fi
5094RANLIB=$ac_cv_prog_RANLIB
5095if test -n "$RANLIB"; then
5096 echo "$as_me:$LINENO: result: $RANLIB" >&5
5097echo "${ECHO_T}$RANLIB" >&6
5098else
5099 echo "$as_me:$LINENO: result: no" >&5
5100echo "${ECHO_T}no" >&6
5101fi
5102
5103fi
5104if test -z "$ac_cv_prog_RANLIB"; then
5105 ac_ct_RANLIB=$RANLIB
5106 # Extract the first word of "ranlib", so it can be a program name with args.
5107set dummy ranlib; ac_word=$2
5108echo "$as_me:$LINENO: checking for $ac_word" >&5
5109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5110if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5111 echo $ECHO_N "(cached) $ECHO_C" >&6
5112else
5113 if test -n "$ac_ct_RANLIB"; then
5114 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5115else
5116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117for as_dir in $PATH
5118do
5119 IFS=$as_save_IFS
5120 test -z "$as_dir" && as_dir=.
5121 for ac_exec_ext in '' $ac_executable_extensions; do
5122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5123 ac_cv_prog_ac_ct_RANLIB="ranlib"
5124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5125 break 2
5126 fi
5127done
5128done
5129
5130 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5131fi
5132fi
5133ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5134if test -n "$ac_ct_RANLIB"; then
5135 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5136echo "${ECHO_T}$ac_ct_RANLIB" >&6
5137else
5138 echo "$as_me:$LINENO: result: no" >&5
5139echo "${ECHO_T}no" >&6
5140fi
5141
5142 RANLIB=$ac_ct_RANLIB
5143else
5144 RANLIB="$ac_cv_prog_RANLIB"
5145fi
5146
5147if test -n "$ac_tool_prefix"; then
5148 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5149set dummy ${ac_tool_prefix}strip; ac_word=$2
5150echo "$as_me:$LINENO: checking for $ac_word" >&5
5151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5152if test "${ac_cv_prog_STRIP+set}" = set; then
5153 echo $ECHO_N "(cached) $ECHO_C" >&6
5154else
5155 if test -n "$STRIP"; then
5156 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5157else
5158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159for as_dir in $PATH
5160do
5161 IFS=$as_save_IFS
5162 test -z "$as_dir" && as_dir=.
5163 for ac_exec_ext in '' $ac_executable_extensions; do
5164 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5165 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5167 break 2
5168 fi
5169done
5170done
5171
5172fi
5173fi
5174STRIP=$ac_cv_prog_STRIP
5175if test -n "$STRIP"; then
5176 echo "$as_me:$LINENO: result: $STRIP" >&5
5177echo "${ECHO_T}$STRIP" >&6
5178else
5179 echo "$as_me:$LINENO: result: no" >&5
5180echo "${ECHO_T}no" >&6
5181fi
5182
5183fi
5184if test -z "$ac_cv_prog_STRIP"; then
5185 ac_ct_STRIP=$STRIP
5186 # Extract the first word of "strip", so it can be a program name with args.
5187set dummy strip; ac_word=$2
5188echo "$as_me:$LINENO: checking for $ac_word" >&5
5189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5190if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5191 echo $ECHO_N "(cached) $ECHO_C" >&6
5192else
5193 if test -n "$ac_ct_STRIP"; then
5194 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5195else
5196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197for as_dir in $PATH
5198do
5199 IFS=$as_save_IFS
5200 test -z "$as_dir" && as_dir=.
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5203 ac_cv_prog_ac_ct_STRIP="strip"
5204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 break 2
5206 fi
5207done
5208done
5209
5210 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5211fi
5212fi
5213ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5214if test -n "$ac_ct_STRIP"; then
5215 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5216echo "${ECHO_T}$ac_ct_STRIP" >&6
5217else
5218 echo "$as_me:$LINENO: result: no" >&5
5219echo "${ECHO_T}no" >&6
5220fi
5221
5222 STRIP=$ac_ct_STRIP
5223else
5224 STRIP="$ac_cv_prog_STRIP"
5225fi
5226
5227
5228enable_dlopen=no
5229enable_win32_dll=no
5230
5231# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5232if test "${enable_libtool_lock+set}" = set; then
5233 enableval="$enable_libtool_lock"
5234
5235fi;
5236test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5237
5238# Some flags need to be propagated to the compiler or linker for good
5239# libtool support.
5240case "$host" in
5241*-*-irix6*)
5242 # Find out which ABI we are using.
5243 echo '#line 5243 "configure"' > conftest.$ac_ext
5244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5245 (eval $ac_compile) 2>&5
5246 ac_status=$?
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); }; then
5249 case "`/usr/bin/file conftest.$ac_objext`" in
5250 *32-bit*)
5251 LD="${LD-ld} -32"
5252 ;;
5253 *N32*)
5254 LD="${LD-ld} -n32"
5255 ;;
5256 *64-bit*)
5257 LD="${LD-ld} -64"
5258 ;;
5259 esac
5260 fi
5261 rm -rf conftest*
5262 ;;
5263
5264*-*-sco3.2v5*)
5265 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5266 SAVE_CFLAGS="$CFLAGS"
5267 CFLAGS="$CFLAGS -belf"
5268 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5269echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5270if test "${lt_cv_cc_needs_belf+set}" = set; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5272else
5273
5274
5275 ac_ext=c
5276ac_cpp='$CPP $CPPFLAGS'
5277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5279ac_compiler_gnu=$ac_cv_c_compiler_gnu
5280
5281 cat >conftest.$ac_ext <<_ACEOF
5282/* confdefs.h. */
5283_ACEOF
5284cat confdefs.h >>conftest.$ac_ext
5285cat >>conftest.$ac_ext <<_ACEOF
5286/* end confdefs.h. */
5287
5288int
5289main ()
5290{
5291
5292 ;
5293 return 0;
5294}
5295_ACEOF
5296rm -f conftest.$ac_objext conftest$ac_exeext
5297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5298 (eval $ac_link) 2>conftest.er1
5299 ac_status=$?
5300 grep -v '^ *+' conftest.er1 >conftest.err
5301 rm -f conftest.er1
5302 cat conftest.err >&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); } &&
5305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307 (eval $ac_try) 2>&5
5308 ac_status=$?
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); }; } &&
5311 { ac_try='test -s conftest$ac_exeext'
5312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313 (eval $ac_try) 2>&5
5314 ac_status=$?
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); }; }; then
5317 lt_cv_cc_needs_belf=yes
5318else
5319 echo "$as_me: failed program was:" >&5
5320sed 's/^/| /' conftest.$ac_ext >&5
5321
5322lt_cv_cc_needs_belf=no
5323fi
5324rm -f conftest.err conftest.$ac_objext \
5325 conftest$ac_exeext conftest.$ac_ext
5326 ac_ext=cc
5327ac_cpp='$CXXCPP $CPPFLAGS'
5328ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5329ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5330ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5331
5332fi
5333echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5334echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5335 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5336 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5337 CFLAGS="$SAVE_CFLAGS"
5338 fi
5339 ;;
5340
5341
5342esac
5343
5344# Sed substitution that helps us do robust quoting. It backslashifies
5345# metacharacters that are still active within double-quoted strings.
5346Xsed='sed -e s/^X//'
5347sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5348
5349# Same as above, but do not quote variable references.
5350double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5351
5352# Sed substitution to delay expansion of an escaped shell variable in a
5353# double_quote_subst'ed string.
5354delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5355
5356# Constants:
5357rm="rm -f"
5358
5359# Global variables:
5360default_ofile=libtool
5361can_build_shared=yes
5362
5363# All known linkers require a `.a' archive for static linking (except M$VC,
5364# which needs '.lib').
5365libext=a
5366ltmain="$ac_aux_dir/ltmain.sh"
5367ofile="$default_ofile"
5368with_gnu_ld="$lt_cv_prog_gnu_ld"
5369need_locks="$enable_libtool_lock"
5370
5371old_CC="$CC"
5372old_CFLAGS="$CFLAGS"
5373
5374# Set sane defaults for various variables
5375test -z "$AR" && AR=ar
5376test -z "$AR_FLAGS" && AR_FLAGS=cru
5377test -z "$AS" && AS=as
5378test -z "$CC" && CC=cc
5379test -z "$DLLTOOL" && DLLTOOL=dlltool
5380test -z "$LD" && LD=ld
5381test -z "$LN_S" && LN_S="ln -s"
5382test -z "$MAGIC_CMD" && MAGIC_CMD=file
5383test -z "$NM" && NM=nm
5384test -z "$OBJDUMP" && OBJDUMP=objdump
5385test -z "$RANLIB" && RANLIB=:
5386test -z "$STRIP" && STRIP=:
5387test -z "$ac_objext" && ac_objext=o
5388
5389if test x"$host" != x"$build"; then
5390 ac_tool_prefix=${host_alias}-
5391else
5392 ac_tool_prefix=
5393fi
5394
5395# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5396case "$host_os" in
5397linux-gnu*) ;;
5398linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5399esac
5400
5401case "$host_os" in
5402aix3*)
5403 # AIX sometimes has problems with the GCC collect2 program. For some
5404 # reason, if we set the COLLECT_NAMES environment variable, the problems
5405 # vanish in a puff of smoke.
5406 if test "X${COLLECT_NAMES+set}" != Xset; then
5407 COLLECT_NAMES=
5408 export COLLECT_NAMES
5409 fi
5410 ;;
5411esac
5412
5413# Determine commands to create old-style static archives.
5414old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5415old_postinstall_cmds='chmod 644 $oldlib'
5416old_postuninstall_cmds=
5417
5418if test -n "$RANLIB"; then
5419 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5420 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5421fi
5422
5423# Allow CC to be a program name with arguments.
5424set dummy $CC
5425compiler="$2"
5426
5427## FIXME: this should be a separate macro
5428##
5429echo "$as_me:$LINENO: checking for objdir" >&5
5430echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5431rm -f .libs 2>/dev/null
5432mkdir .libs 2>/dev/null
5433if test -d .libs; then
5434 objdir=.libs
5435else
5436 # MS-DOS does not allow filenames that begin with a dot.
5437 objdir=_libs
5438fi
5439rmdir .libs 2>/dev/null
5440echo "$as_me:$LINENO: result: $objdir" >&5
5441echo "${ECHO_T}$objdir" >&6
5442##
5443## END FIXME
5444
5445
5446## FIXME: this should be a separate macro
5447##
5448
5449# Check whether --with-pic or --without-pic was given.
5450if test "${with_pic+set}" = set; then
5451 withval="$with_pic"
5452 pic_mode="$withval"
5453else
5454 pic_mode=default
5455fi;
5456test -z "$pic_mode" && pic_mode=default
5457
5458# We assume here that the value for lt_cv_prog_cc_pic will not be cached
5459# in isolation, and that seeing it set (from the cache) indicates that
5460# the associated values are set (in the cache) correctly too.
5461echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5462echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5463if test "${lt_cv_prog_cc_pic+set}" = set; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5465else
5466 lt_cv_prog_cc_pic=
5467 lt_cv_prog_cc_shlib=
5468 lt_cv_prog_cc_wl=
5469 lt_cv_prog_cc_static=
5470 lt_cv_prog_cc_no_builtin=
5471 lt_cv_prog_cc_can_build_shared=$can_build_shared
5472
5473 if test "$GCC" = yes; then
5474 lt_cv_prog_cc_wl='-Wl,'
5475 lt_cv_prog_cc_static='-static'
5476
5477 case "$host_os" in
5478 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
5479 # PIC is the default for these OSes.
5480 ;;
5481 aix*)
5482 # Below there is a dirty hack to force normal static linking with -ldl
5483 # The problem is because libdl dynamically linked with both libc and
5484 # libC (AIX C++ library), which obviously doesn't included in libraries
5485 # list by gcc. This cause undefined symbols with -static flags.
5486 # This hack allows C programs to be linked with "-static -ldl", but
5487 # we not sure about C++ programs.
5488 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5489 ;;
5490 cygwin* | mingw* | pw32* | os2*)
5491 # This hack is so that the source file can tell whether it is being
5492 # built for inclusion in a dll (and should export symbols for example).
5493 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5494 ;;
5495 amigaos*)
5496 # FIXME: we need at least 68020 code to build shared libraries, but
5497 # adding the `-m68020' flag to GCC prevents building anything better,
5498 # like `-m68040'.
5499 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5500 ;;
5501 sysv4*MP*)
5502 if test -d /usr/nec; then
5503 lt_cv_prog_cc_pic=-Kconform_pic
5504 fi
5505 ;;
5506 *)
5507 lt_cv_prog_cc_pic='-fPIC'
5508 ;;
5509 esac
5510 else
5511 # PORTME Check for PIC flags for the system compiler.
5512 case "$host_os" in
5513 aix3* | aix4*)
5514 # All AIX code is PIC.
5515 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5516 ;;
5517
5518 hpux9* | hpux10* | hpux11*)
5519 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5520 lt_cv_prog_cc_wl='-Wl,'
5521 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5522 lt_cv_prog_cc_pic='+Z'
5523 ;;
5524
5525 irix5* | irix6*)
5526 lt_cv_prog_cc_wl='-Wl,'
5527 lt_cv_prog_cc_static='-non_shared'
5528 # PIC (with -KPIC) is the default.
5529 ;;
5530
5531 cygwin* | mingw* | pw32* | os2*)
5532 # This hack is so that the source file can tell whether it is being
5533 # built for inclusion in a dll (and should export symbols for example).
5534 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5535 ;;
5536
5537 newsos6)
5538 lt_cv_prog_cc_pic='-KPIC'
5539 lt_cv_prog_cc_static='-Bstatic'
5540 ;;
5541
5542 osf3* | osf4* | osf5*)
5543 # All OSF/1 code is PIC.
5544 lt_cv_prog_cc_wl='-Wl,'
5545 lt_cv_prog_cc_static='-non_shared'
5546 ;;
5547
5548 sco3.2v5*)
5549 lt_cv_prog_cc_pic='-Kpic'
5550 lt_cv_prog_cc_static='-dn'
5551 lt_cv_prog_cc_shlib='-belf'
5552 ;;
5553
5554 solaris*)
5555 lt_cv_prog_cc_pic='-KPIC'
5556 lt_cv_prog_cc_static='-Bstatic'
5557 lt_cv_prog_cc_wl='-Wl,'
5558 ;;
5559
5560 sunos4*)
5561 lt_cv_prog_cc_pic='-PIC'
5562 lt_cv_prog_cc_static='-Bstatic'
5563 lt_cv_prog_cc_wl='-Qoption ld '
5564 ;;
5565
5566 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5567 lt_cv_prog_cc_pic='-KPIC'
5568 lt_cv_prog_cc_static='-Bstatic'
5569 if test "x$host_vendor" = xsni; then
5570 lt_cv_prog_cc_wl='-LD'
5571 else
5572 lt_cv_prog_cc_wl='-Wl,'
5573 fi
5574 ;;
5575
5576 uts4*)
5577 lt_cv_prog_cc_pic='-pic'
5578 lt_cv_prog_cc_static='-Bstatic'
5579 ;;
5580
5581 sysv4*MP*)
5582 if test -d /usr/nec ;then
5583 lt_cv_prog_cc_pic='-Kconform_pic'
5584 lt_cv_prog_cc_static='-Bstatic'
5585 fi
5586 ;;
5587
5588 *)
5589 lt_cv_prog_cc_can_build_shared=no
5590 ;;
5591 esac
5592 fi
5593
5594fi
5595
5596if test -z "$lt_cv_prog_cc_pic"; then
5597 echo "$as_me:$LINENO: result: none" >&5
5598echo "${ECHO_T}none" >&6
5599else
5600 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5601echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5602
5603 # Check to make sure the pic_flag actually works.
5604 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5605echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5606 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5607 echo $ECHO_N "(cached) $ECHO_C" >&6
5608else
5609 save_CFLAGS="$CFLAGS"
5610 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5611 cat >conftest.$ac_ext <<_ACEOF
5612/* confdefs.h. */
5613_ACEOF
5614cat confdefs.h >>conftest.$ac_ext
5615cat >>conftest.$ac_ext <<_ACEOF
5616/* end confdefs.h. */
5617
5618int
5619main ()
5620{
5621
5622 ;
5623 return 0;
5624}
5625_ACEOF
5626rm -f conftest.$ac_objext
5627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5628 (eval $ac_compile) 2>conftest.er1
5629 ac_status=$?
5630 grep -v '^ *+' conftest.er1 >conftest.err
5631 rm -f conftest.er1
5632 cat conftest.err >&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } &&
5635 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637 (eval $ac_try) 2>&5
5638 ac_status=$?
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); }; } &&
5641 { ac_try='test -s conftest.$ac_objext'
5642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643 (eval $ac_try) 2>&5
5644 ac_status=$?
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); }; }; then
5647 case "$host_os" in
5648 hpux9* | hpux10* | hpux11*)
5649 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5650 # they create non-PIC objects. So, if there were any warnings, we
5651 # assume that PIC is not supported.
5652 if test -s conftest.err; then
5653 lt_cv_prog_cc_pic_works=no
5654 else
5655 lt_cv_prog_cc_pic_works=yes
5656 fi
5657 ;;
5658 *)
5659 lt_cv_prog_cc_pic_works=yes
5660 ;;
5661 esac
5662
5663else
5664 echo "$as_me: failed program was:" >&5
5665sed 's/^/| /' conftest.$ac_ext >&5
5666
5667 lt_cv_prog_cc_pic_works=no
5668
5669fi
5670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5671 CFLAGS="$save_CFLAGS"
5672
5673fi
5674
5675
5676 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5677 lt_cv_prog_cc_pic=
5678 lt_cv_prog_cc_can_build_shared=no
5679 else
5680 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5681 fi
5682
5683 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5684echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5685fi
5686##
5687## END FIXME
5688
5689# Check for any special shared library compilation flags.
5690if test -n "$lt_cv_prog_cc_shlib"; then
5691 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5692echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5693 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5694 else
5695 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5696echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5697 lt_cv_prog_cc_can_build_shared=no
5698 fi
5699fi
5700
5701## FIXME: this should be a separate macro
5702##
5703echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5704echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5705if test "${lt_cv_prog_cc_static_works+set}" = set; then
5706 echo $ECHO_N "(cached) $ECHO_C" >&6
5707else
5708 lt_cv_prog_cc_static_works=no
5709 save_LDFLAGS="$LDFLAGS"
5710 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5711 cat >conftest.$ac_ext <<_ACEOF
5712/* confdefs.h. */
5713_ACEOF
5714cat confdefs.h >>conftest.$ac_ext
5715cat >>conftest.$ac_ext <<_ACEOF
5716/* end confdefs.h. */
5717
5718int
5719main ()
5720{
5721
5722 ;
5723 return 0;
5724}
5725_ACEOF
5726rm -f conftest.$ac_objext conftest$ac_exeext
5727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5728 (eval $ac_link) 2>conftest.er1
5729 ac_status=$?
5730 grep -v '^ *+' conftest.er1 >conftest.err
5731 rm -f conftest.er1
5732 cat conftest.err >&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } &&
5735 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5737 (eval $ac_try) 2>&5
5738 ac_status=$?
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); }; } &&
5741 { ac_try='test -s conftest$ac_exeext'
5742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5743 (eval $ac_try) 2>&5
5744 ac_status=$?
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); }; }; then
5747 lt_cv_prog_cc_static_works=yes
5748else
5749 echo "$as_me: failed program was:" >&5
5750sed 's/^/| /' conftest.$ac_ext >&5
5751
5752fi
5753rm -f conftest.err conftest.$ac_objext \
5754 conftest$ac_exeext conftest.$ac_ext
5755 LDFLAGS="$save_LDFLAGS"
5756
5757fi
5758
5759
5760# Belt *and* braces to stop my trousers falling down:
5761test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5762echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5763echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5764
5765pic_flag="$lt_cv_prog_cc_pic"
5766special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5767wl="$lt_cv_prog_cc_wl"
5768link_static_flag="$lt_cv_prog_cc_static"
5769no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5770can_build_shared="$lt_cv_prog_cc_can_build_shared"
5771##
5772## END FIXME
5773
5774
5775## FIXME: this should be a separate macro
5776##
5777# Check to see if options -o and -c are simultaneously supported by compiler
5778echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5779echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5780$rm -r conftest 2>/dev/null
5781mkdir conftest
5782cd conftest
5783echo "int some_variable = 0;" > conftest.$ac_ext
5784mkdir out
5785# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5786# that will create temporary files in the current directory regardless of
5787# the output directory. Thus, making CWD read-only will cause this test
5788# to fail, enabling locking or at least warning the user not to do parallel
5789# builds.
5790chmod -w .
5791save_CFLAGS="$CFLAGS"
5792CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5793compiler_c_o=no
5794if { (eval echo configure:5794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5795 # The compiler can only warn and ignore the option if not recognized
5796 # So say no if there are warnings
5797 if test -s out/conftest.err; then
5798 compiler_c_o=no
5799 else
5800 compiler_c_o=yes
5801 fi
5802else
5803 # Append any errors to the config.log.
5804 cat out/conftest.err 1>&5
5805 compiler_c_o=no
5806fi
5807echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5808echo "${ECHO_T}$compiler_c_o" >&6
5809CFLAGS="$save_CFLAGS"
5810chmod u+w .
5811$rm conftest* out/*
5812rmdir out
5813cd ..
5814rmdir conftest
5815$rm -r conftest 2>/dev/null
5816
5817if test x"$compiler_c_o" = x"yes"; then
5818 # Check to see if we can write to a .lo
5819 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5820echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5821 compiler_o_lo=no
5822 save_CFLAGS="$CFLAGS"
5823 CFLAGS="$CFLAGS -c -o conftest.lo"
5824 cat >conftest.$ac_ext <<_ACEOF
5825/* confdefs.h. */
5826_ACEOF
5827cat confdefs.h >>conftest.$ac_ext
5828cat >>conftest.$ac_ext <<_ACEOF
5829/* end confdefs.h. */
5830
5831int
5832main ()
5833{
5834int some_variable = 0;
5835 ;
5836 return 0;
5837}
5838_ACEOF
5839rm -f conftest.$ac_objext
5840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5841 (eval $ac_compile) 2>conftest.er1
5842 ac_status=$?
5843 grep -v '^ *+' conftest.er1 >conftest.err
5844 rm -f conftest.er1
5845 cat conftest.err >&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); } &&
5848 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850 (eval $ac_try) 2>&5
5851 ac_status=$?
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); }; } &&
5854 { ac_try='test -s conftest.$ac_objext'
5855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856 (eval $ac_try) 2>&5
5857 ac_status=$?
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }; }; then
5860 # The compiler can only warn and ignore the option if not recognized
5861 # So say no if there are warnings
5862 if test -s conftest.err; then
5863 compiler_o_lo=no
5864 else
5865 compiler_o_lo=yes
5866 fi
5867
5868else
5869 echo "$as_me: failed program was:" >&5
5870sed 's/^/| /' conftest.$ac_ext >&5
5871
5872fi
5873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5874 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5875echo "${ECHO_T}$compiler_c_o" >&6
5876 CFLAGS="$save_CFLAGS"
5877else
5878 compiler_o_lo=no
5879fi
5880##
5881## END FIXME
5882
5883## FIXME: this should be a separate macro
5884##
5885# Check to see if we can do hard links to lock some files if needed
5886hard_links="nottested"
5887if test "$compiler_c_o" = no && test "$need_locks" != no; then
5888 # do not overwrite the value of need_locks provided by the user
5889 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5890echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5891 hard_links=yes
5892 $rm conftest*
5893 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5894 touch conftest.a
5895 ln conftest.a conftest.b 2>&5 || hard_links=no
5896 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5897 echo "$as_me:$LINENO: result: $hard_links" >&5
5898echo "${ECHO_T}$hard_links" >&6
5899 if test "$hard_links" = no; then
5900 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5901echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5902 need_locks=warn
5903 fi
5904else
5905 need_locks=no
5906fi
5907##
5908## END FIXME
5909
5910## FIXME: this should be a separate macro
5911##
5912if test "$GCC" = yes; then
5913 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5914 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5915echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5916 echo "int some_variable = 0;" > conftest.$ac_ext
5917 save_CFLAGS="$CFLAGS"
5918 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5919 compiler_rtti_exceptions=no
5920 cat >conftest.$ac_ext <<_ACEOF
5921/* confdefs.h. */
5922_ACEOF
5923cat confdefs.h >>conftest.$ac_ext
5924cat >>conftest.$ac_ext <<_ACEOF
5925/* end confdefs.h. */
5926
5927int
5928main ()
5929{
5930int some_variable = 0;
5931 ;
5932 return 0;
5933}
5934_ACEOF
5935rm -f conftest.$ac_objext
5936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5937 (eval $ac_compile) 2>conftest.er1
5938 ac_status=$?
5939 grep -v '^ *+' conftest.er1 >conftest.err
5940 rm -f conftest.er1
5941 cat conftest.err >&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); } &&
5944 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 (eval $ac_try) 2>&5
5947 ac_status=$?
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; } &&
5950 { ac_try='test -s conftest.$ac_objext'
5951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5952 (eval $ac_try) 2>&5
5953 ac_status=$?
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); }; }; then
5956 # The compiler can only warn and ignore the option if not recognized
5957 # So say no if there are warnings
5958 if test -s conftest.err; then
5959 compiler_rtti_exceptions=no
5960 else
5961 compiler_rtti_exceptions=yes
5962 fi
5963
5964else
5965 echo "$as_me: failed program was:" >&5
5966sed 's/^/| /' conftest.$ac_ext >&5
5967
5968fi
5969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5970 CFLAGS="$save_CFLAGS"
5971 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5972echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5973
5974 if test "$compiler_rtti_exceptions" = "yes"; then
5975 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5976 else
5977 no_builtin_flag=' -fno-builtin'
5978 fi
5979fi
5980##
5981## END FIXME
5982
5983## FIXME: this should be a separate macro
5984##
5985# See if the linker supports building shared libraries.
5986echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5987echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5988
5989allow_undefined_flag=
5990no_undefined_flag=
5991need_lib_prefix=unknown
5992need_version=unknown
5993# when you set need_version to no, make sure it does not cause -set_version
5994# flags to be left without arguments
5995archive_cmds=
5996archive_expsym_cmds=
5997old_archive_from_new_cmds=
5998old_archive_from_expsyms_cmds=
5999export_dynamic_flag_spec=
6000whole_archive_flag_spec=
6001thread_safe_flag_spec=
6002hardcode_into_libs=no
6003hardcode_libdir_flag_spec=
6004hardcode_libdir_separator=
6005hardcode_direct=no
6006hardcode_minus_L=no
6007hardcode_shlibpath_var=unsupported
6008runpath_var=
6009link_all_deplibs=unknown
6010always_export_symbols=no
6011export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6012# include_expsyms should be a list of space-separated symbols to be *always*
6013# included in the symbol list
6014include_expsyms=
6015# exclude_expsyms can be an egrep regular expression of symbols to exclude
6016# it will be wrapped by ` (' and `)$', so one must not match beginning or
6017# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6018# as well as any symbol that contains `d'.
6019exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6020# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6021# platforms (ab)use it in PIC code, but their linkers get confused if
6022# the symbol is explicitly referenced. Since portable code cannot
6023# rely on this symbol name, it's probably fine to never include it in
6024# preloaded symbol tables.
6025extract_expsyms_cmds=
6026
6027case "$host_os" in
6028cygwin* | mingw* | pw32* )
6029 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6030 # When not using gcc, we currently assume that we are using
6031 # Microsoft Visual C++.
6032 if test "$GCC" != yes; then
6033 with_gnu_ld=no
6034 fi
6035 ;;
6036
6037esac
6038
6039ld_shlibs=yes
6040if test "$with_gnu_ld" = yes; then
6041 # If archive_cmds runs LD, not CC, wlarc should be empty
6042 wlarc='${wl}'
6043
6044 # See if GNU ld supports shared libraries.
6045 case "$host_os" in
6046 aix3* | aix4*)
6047 # On AIX, the GNU linker is very broken
6048 ld_shlibs=no
6049 cat <<EOF 1>&2
6050
6051*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6052*** to be unable to reliably create shared libraries on AIX.
6053*** Therefore, libtool is disabling shared libraries support. If you
6054*** really care for shared libraries, you may want to modify your PATH
6055*** so that a non-GNU linker is found, and then restart.
6056
6057EOF
6058 ;;
6059
6060 amigaos*)
6061 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)'
6062 hardcode_libdir_flag_spec='-L$libdir'
6063 hardcode_minus_L=yes
6064
6065 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6066 # that the semantics of dynamic libraries on AmigaOS, at least up
6067 # to version 4, is to share data among multiple programs linked
6068 # with the same dynamic library. Since this doesn't match the
6069 # behavior of shared libraries on other platforms, we can use
6070 # them.
6071 ld_shlibs=no
6072 ;;
6073
6074 beos*)
6075 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6076 allow_undefined_flag=unsupported
6077 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6078 # support --undefined. This deserves some investigation. FIXME
6079 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6080 else
6081 ld_shlibs=no
6082 fi
6083 ;;
6084
6085 cygwin* | mingw* | pw32*)
6086 # hardcode_libdir_flag_spec is actually meaningless, as there is
6087 # no search path for DLLs.
6088 hardcode_libdir_flag_spec='-L$libdir'
6089 allow_undefined_flag=unsupported
6090 always_export_symbols=yes
6091
6092 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6093 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6094 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6095 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6096 else $CC -o impgen impgen.c ; fi)~
6097 $output_objdir/impgen $dir/$soname > $output_objdir/$soname-def'
6098
6099 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6100
6101 # cygwin and mingw dlls have different entry points and sets of symbols
6102 # to exclude.
6103 # FIXME: what about values for MSVC?
6104 dll_entry=__cygwin_dll_entry@12
6105 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6106 case "$host_os" in
6107 mingw*)
6108 # mingw values
6109 dll_entry=_DllMainCRTStartup@12
6110 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6111 ;;
6112 esac
6113
6114 # mingw and cygwin differ, and it's simplest to just exclude the union
6115 # of the two symbol sets.
6116 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6117
6118 # recent cygwin and mingw systems supply a stub DllMain which the user
6119 # can override, but on older systems we have to supply one (in ltdll.c)
6120 if test "x$lt_cv_need_dllmain" = "xyes"; then
6121 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6122 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~
6123 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6124 else
6125 ltdll_obj=
6126 ltdll_cmds=
6127 fi
6128
6129 # Extract the symbol export list from an `--export-all' def file,
6130 # then regenerate the def file from the symbol export list, so that
6131 # the compiled dll only exports the symbol export list.
6132 # Be careful not to strip the DATA tag left be newer dlltools.
6133 export_symbols_cmds="$ltdll_cmds"'
6134 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6135 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6136
6137 # If DATA tags from a recent dlltool are present, honour them!
6138 archive_expsym_cmds='echo EXPORTS > $output_objdir/$soname-def~
6139 _lt_hint=1;
6140 cat $export_symbols | while read symbol; do
6141 set dummy \$symbol;
6142 case \$# in
6143 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6144 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6145 esac;
6146 _lt_hint=`expr 1 + \$_lt_hint`;
6147 done~
6148 '"$ltdll_cmds"'
6149 $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~
6150 $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~
6151 $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~
6152 $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~
6153 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6154 ;;
6155
6156 netbsd*)
6157 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6158 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6159 wlarc=
6160 else
6161 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6162 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6163 fi
6164 ;;
6165
6166 solaris* | sysv5*)
6167 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6168 ld_shlibs=no
6169 cat <<EOF 1>&2
6170
6171*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6172*** create shared libraries on Solaris systems. Therefore, libtool
6173*** is disabling shared libraries support. We urge you to upgrade GNU
6174*** binutils to release 2.9.1 or newer. Another option is to modify
6175*** your PATH or compiler configuration so that the native linker is
6176*** used, and then restart.
6177
6178EOF
6179 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6180 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6181 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6182 else
6183 ld_shlibs=no
6184 fi
6185 ;;
6186
6187 sunos4*)
6188 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6189 wlarc=
6190 hardcode_direct=yes
6191 hardcode_shlibpath_var=no
6192 ;;
6193
6194 *)
6195 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6196 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6197 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6198 else
6199 ld_shlibs=no
6200 fi
6201 ;;
6202 esac
6203
6204 if test "$ld_shlibs" = yes; then
6205 runpath_var=LD_RUN_PATH
6206 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6207 export_dynamic_flag_spec='${wl}--export-dynamic'
6208 case $host_os in
6209 cygwin* | mingw* | pw32*)
6210 # dlltool doesn't understand --whole-archive et. al.
6211 whole_archive_flag_spec=
6212 ;;
6213 *)
6214 # ancient GNU ld didn't support --whole-archive et. al.
6215 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6216 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6217 else
6218 whole_archive_flag_spec=
6219 fi
6220 ;;
6221 esac
6222 fi
6223else
6224 # PORTME fill in a description of your system's linker (not GNU ld)
6225 case "$host_os" in
6226 aix3*)
6227 allow_undefined_flag=unsupported
6228 always_export_symbols=yes
6229 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'
6230 # Note: this linker hardcodes the directories in LIBPATH if there
6231 # are no directories specified by -L.
6232 hardcode_minus_L=yes
6233 if test "$GCC" = yes && test -z "$link_static_flag"; then
6234 # Neither direct hardcoding nor static linking is supported with a
6235 # broken collect2.
6236 hardcode_direct=unsupported
6237 fi
6238 ;;
6239
6240 aix4*)
6241 hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib'
6242 hardcode_libdir_separator=':'
6243 if test "$GCC" = yes; then
6244 collect2name=`${CC} -print-prog-name=collect2`
6245 if test -f "$collect2name" && \
6246 strings "$collect2name" | grep resolve_lib_name >/dev/null
6247 then
6248 # We have reworked collect2
6249 hardcode_direct=yes
6250 else
6251 # We have old collect2
6252 hardcode_direct=unsupported
6253 # It fails to find uninstalled libraries when the uninstalled
6254 # path is not listed in the libpath. Setting hardcode_minus_L
6255 # to unsupported forces relinking
6256 hardcode_minus_L=yes
6257 hardcode_libdir_flag_spec='-L$libdir'
6258 hardcode_libdir_separator=
6259 fi
6260 shared_flag='-shared'
6261 else
6262 shared_flag='${wl}-bM:SRE'
6263 hardcode_direct=yes
6264 fi
6265 allow_undefined_flag=' ${wl}-berok'
6266 archive_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}'
6267 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}'
6268 case "$host_os" in aix4.[01]|aix4.[01].*)
6269 # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on
6270 always_export_symbols=yes ;;
6271 esac
6272
6273 # We don't want to build shared libraries on unknown CPU types.
6274 case $host_cpu in
6275 powerpc | rs6000) ;;
6276 *) ld_shlibs=no ;;
6277 esac
6278 ;;
6279
6280 amigaos*)
6281 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)'
6282 hardcode_libdir_flag_spec='-L$libdir'
6283 hardcode_minus_L=yes
6284 # see comment about different semantics on the GNU ld section
6285 ld_shlibs=no
6286 ;;
6287
6288 cygwin* | mingw* | pw32*)
6289 # When not using gcc, we currently assume that we are using
6290 # Microsoft Visual C++.
6291 # hardcode_libdir_flag_spec is actually meaningless, as there is
6292 # no search path for DLLs.
6293 hardcode_libdir_flag_spec=' '
6294 allow_undefined_flag=unsupported
6295 # Tell ltmain to make .lib files, not .a files.
6296 libext=lib
6297 # FIXME: Setting linknames here is a bad hack.
6298 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6299 # The linker will automatically build a .lib file if we build a DLL.
6300 old_archive_from_new_cmds='true'
6301 # FIXME: Should let the user specify the lib program.
6302 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6303 fix_srcfile_path='`cygpath -w "$srcfile"`'
6304 ;;
6305
6306 darwin* | rhapsody*)
6307 allow_undefined_flag='-undefined warning'
6308 archive_cmds='$CC `if test "$module" = "yes"; then echo -bundle; else
6309 echo -dynamiclib; fi` -o $lib $libobjs $deplibs $linkopts'
6310 archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6311 ## What we need is to hardcode the path to the library, not the search path
6312 #hardcode_direct=yes
6313 #hardcode_libdir_flag_spec='-install_name $libdir/$lib'
6314 hardcode_shlibpath_var=no
6315 whole_archive_flag_spec='-all_load'
6316 ;;
6317
6318 freebsd1*)
6319 ld_shlibs=no
6320 ;;
6321
6322 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6323 # support. Future versions do this automatically, but an explicit c++rt0.o
6324 # does not break anything, and helps significantly (at the cost of a little
6325 # extra space).
6326 freebsd2.2*)
6327 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6328 hardcode_libdir_flag_spec='-R$libdir'
6329 hardcode_direct=yes
6330 hardcode_shlibpath_var=no
6331 ;;
6332
6333 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6334 freebsd2*)
6335 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6336 hardcode_direct=yes
6337 hardcode_minus_L=yes
6338 hardcode_shlibpath_var=no
6339 ;;
6340
6341 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6342 freebsd*)
6343 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6344 hardcode_libdir_flag_spec='-R$libdir'
6345 hardcode_direct=yes
6346 hardcode_shlibpath_var=no
6347 ;;
6348
6349 hpux9* | hpux10* | hpux11*)
6350 case "$host_os" in
6351 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' ;;
6352 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6353 esac
6354 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6355 hardcode_libdir_separator=:
6356 hardcode_direct=yes
6357 hardcode_minus_L=yes # Not in the search PATH, but as the default
6358 # location of the library.
6359 export_dynamic_flag_spec='${wl}-E'
6360 ;;
6361
6362 irix5* | irix6*)
6363 if test "$GCC" = yes; then
6364 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'
6365 else
6366 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'
6367 fi
6368 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6369 hardcode_libdir_separator=:
6370 link_all_deplibs=yes
6371 ;;
6372
6373 netbsd*)
6374 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6375 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6376 else
6377 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6378 fi
6379 hardcode_libdir_flag_spec='-R$libdir'
6380 hardcode_direct=yes
6381 hardcode_shlibpath_var=no
6382 ;;
6383
6384 newsos6)
6385 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
6386 hardcode_direct=yes
6387 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6388 hardcode_libdir_separator=:
6389 hardcode_shlibpath_var=no
6390 ;;
6391
6392 openbsd*)
6393 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6394 hardcode_libdir_flag_spec='-R$libdir'
6395 hardcode_direct=yes
6396 hardcode_shlibpath_var=no
6397 ;;
6398
6399 os2*)
6400 hardcode_libdir_flag_spec='-L$libdir'
6401 hardcode_minus_L=yes
6402 allow_undefined_flag=unsupported
6403 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'
6404 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6405 ;;
6406
6407 osf3*)
6408 if test "$GCC" = yes; then
6409 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6410 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'
6411 else
6412 allow_undefined_flag=' -expect_unresolved \*'
6413 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'
6414 fi
6415 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6416 hardcode_libdir_separator=:
6417 ;;
6418
6419 osf4* | osf5*) # as osf3* with the addition of -msym flag
6420 if test "$GCC" = yes; then
6421 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6422 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'
6423 else
6424 allow_undefined_flag=' -expect_unresolved \*'
6425 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'
6426 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6427 $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'
6428 fi
6429#Both c and cxx compiler support -rpath directly
6430 hardcode_libdir_flag_spec='-rpath $libdir'
6431 hardcode_libdir_separator=:
6432 ;;
6433
6434 sco3.2v5*)
6435 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6436 hardcode_shlibpath_var=no
6437 runpath_var=LD_RUN_PATH
6438 hardcode_runpath_var=yes
6439 ;;
6440
6441 solaris*)
6442 no_undefined_flag=' -z text'
6443 # $CC -shared without GNU ld will not create a library from C++
6444 # object files and a static libstdc++, better avoid it by now
6445 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6446 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6447 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6448 hardcode_libdir_flag_spec='-R$libdir'
6449 hardcode_shlibpath_var=no
6450 case "$host_os" in
6451 solaris2.[0-5] | solaris2.[0-5].*) ;;
6452 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6453 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6454 esac
6455 link_all_deplibs=yes
6456 ;;
6457
6458 sunos4*)
6459 if test "x$host_vendor" = xsequent; then
6460 # Use $CC to link under sequent, because it throws in some extra .o
6461 # files that make .init and .fini sections work.
6462 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6463 else
6464 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6465 fi
6466 hardcode_libdir_flag_spec='-L$libdir'
6467 hardcode_direct=yes
6468 hardcode_minus_L=yes
6469 hardcode_shlibpath_var=no
6470 ;;
6471
6472 sysv4)
6473 if test "x$host_vendor" = xsno; then
6474 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
6475 hardcode_direct=yes # is this really true???
6476 else
6477 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6478 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6479 fi
6480 runpath_var='LD_RUN_PATH'
6481 hardcode_shlibpath_var=no
6482 ;;
6483
6484 sysv4.3*)
6485 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6486 hardcode_shlibpath_var=no
6487 export_dynamic_flag_spec='-Bexport'
6488 ;;
6489
6490 sysv5*)
6491 no_undefined_flag=' -z text'
6492 # $CC -shared without GNU ld will not create a library from C++
6493 # object files and a static libstdc++, better avoid it by now
6494 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6495 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6496 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6497 hardcode_libdir_flag_spec=
6498 hardcode_shlibpath_var=no
6499 runpath_var='LD_RUN_PATH'
6500 ;;
6501
6502 uts4*)
6503 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6504 hardcode_libdir_flag_spec='-L$libdir'
6505 hardcode_shlibpath_var=no
6506 ;;
6507
6508 dgux*)
6509 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6510 hardcode_libdir_flag_spec='-L$libdir'
6511 hardcode_shlibpath_var=no
6512 ;;
6513
6514 sysv4*MP*)
6515 if test -d /usr/nec; then
6516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6517 hardcode_shlibpath_var=no
6518 runpath_var=LD_RUN_PATH
6519 hardcode_runpath_var=yes
6520 ld_shlibs=yes
6521 fi
6522 ;;
6523
6524 sysv4.2uw2*)
6525 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6526 hardcode_direct=yes
6527 hardcode_minus_L=no
6528 hardcode_shlibpath_var=no
6529 hardcode_runpath_var=yes
6530 runpath_var=LD_RUN_PATH
6531 ;;
6532
6533 unixware7*)
6534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6535 runpath_var='LD_RUN_PATH'
6536 hardcode_shlibpath_var=no
6537 ;;
6538
6539 *)
6540 ld_shlibs=no
6541 ;;
6542 esac
6543fi
6544echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6545echo "${ECHO_T}$ld_shlibs" >&6
6546test "$ld_shlibs" = no && can_build_shared=no
6547##
6548## END FIXME
6549
6550## FIXME: this should be a separate macro
6551##
6552# Check hardcoding attributes.
6553echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6554echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6555hardcode_action=
6556if test -n "$hardcode_libdir_flag_spec" || \
6557 test -n "$runpath_var"; then
6558
6559 # We can hardcode non-existant directories.
6560 if test "$hardcode_direct" != no &&
6561 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6562 # have to relink, otherwise we might link with an installed library
6563 # when we should be linking with a yet-to-be-installed one
6564 ## test "$hardcode_shlibpath_var" != no &&
6565 test "$hardcode_minus_L" != no; then
6566 # Linking always hardcodes the temporary library directory.
6567 hardcode_action=relink
6568 else
6569 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6570 hardcode_action=immediate
6571 fi
6572else
6573 # We cannot hardcode anything, or else we can only hardcode existing
6574 # directories.
6575 hardcode_action=unsupported
6576fi
6577echo "$as_me:$LINENO: result: $hardcode_action" >&5
6578echo "${ECHO_T}$hardcode_action" >&6
6579##
6580## END FIXME
6581
6582## FIXME: this should be a separate macro
6583##
6584striplib=
6585old_striplib=
6586echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6587echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6588if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6589 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6590 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6591 echo "$as_me:$LINENO: result: yes" >&5
6592echo "${ECHO_T}yes" >&6
6593else
6594 echo "$as_me:$LINENO: result: no" >&5
6595echo "${ECHO_T}no" >&6
6596fi
6597##
6598## END FIXME
6599
6600reload_cmds='$LD$reload_flag -o $output$reload_objs'
6601test -z "$deplibs_check_method" && deplibs_check_method=unknown
6602
6603## FIXME: this should be a separate macro
6604##
6605# PORTME Fill in your ld.so characteristics
6606echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6607echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6608library_names_spec=
6609libname_spec='lib$name'
6610soname_spec=
6611postinstall_cmds=
6612postuninstall_cmds=
6613finish_cmds=
6614finish_eval=
6615shlibpath_var=
6616shlibpath_overrides_runpath=unknown
6617version_type=none
6618dynamic_linker="$host_os ld.so"
6619sys_lib_dlsearch_path_spec="/lib /usr/lib"
6620sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6621
6622case "$host_os" in
6623aix3*)
6624 version_type=linux
6625 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6626 shlibpath_var=LIBPATH
6627
6628 # AIX has no versioning support, so we append a major version to the name.
6629 soname_spec='${libname}${release}.so$major'
6630 ;;
6631
6632aix4*)
6633 version_type=linux
6634 # AIX has no versioning support, so currently we can not hardcode correct
6635 # soname into executable. Probably we can add versioning support to
6636 # collect2, so additional links can be useful in future.
6637 # We preserve .a as extension for shared libraries though AIX4.2
6638 # and later linker supports .so
6639 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.a'
6640 shlibpath_var=LIBPATH
6641 ;;
6642
6643amigaos*)
6644 library_names_spec='$libname.ixlibrary $libname.a'
6645 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6646 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'
6647 ;;
6648
6649beos*)
6650 library_names_spec='${libname}.so'
6651 dynamic_linker="$host_os ld.so"
6652 shlibpath_var=LIBRARY_PATH
6653 ;;
6654
6655bsdi4*)
6656 version_type=linux
6657 need_version=no
6658 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6659 soname_spec='${libname}${release}.so$major'
6660 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6661 shlibpath_var=LD_LIBRARY_PATH
6662 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6663 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6664 export_dynamic_flag_spec=-rdynamic
6665 # the default ld.so.conf also contains /usr/contrib/lib and
6666 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6667 # libtool to hard-code these into programs
6668 ;;
6669
6670cygwin* | mingw* | pw32*)
6671 version_type=windows
6672 need_version=no
6673 need_lib_prefix=no
6674 if test "$GCC" = yes; then
6675 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6676 else
6677 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6678 fi
6679 dynamic_linker='Win32 ld.exe'
6680 # FIXME: first we should search . and the directory the executable is in
6681 shlibpath_var=PATH
6682 ;;
6683
6684darwin* | rhapsody*)
6685 need_lib_prefix=no
6686 need_version=no
6687 library_names_spec='${libname}.`if test "$module" = "yes"; then echo so; else echo dylib; fi`'
6688 shlibpath_overrides_runpath=yes
6689 shlibpath_var=DYLD_LIBRARY_PATH
6690 postinstall_cmds='chmod +x $lib'
6691 ;;
6692
6693freebsd1*)
6694 dynamic_linker=no
6695 ;;
6696
6697freebsd*)
6698 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6699 version_type=freebsd-$objformat
6700 case "$version_type" in
6701 freebsd-elf*)
6702 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6703 need_version=no
6704 need_lib_prefix=no
6705 ;;
6706 freebsd-*)
6707 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6708 need_version=yes
6709 ;;
6710 esac
6711 shlibpath_var=LD_LIBRARY_PATH
6712 case "$host_os" in
6713 freebsd2*)
6714 shlibpath_overrides_runpath=yes
6715 ;;
6716 *)
6717 shlibpath_overrides_runpath=no
6718 hardcode_into_libs=yes
6719 ;;
6720 esac
6721 ;;
6722
6723gnu*)
6724 version_type=linux
6725 need_lib_prefix=no
6726 need_version=no
6727 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6728 soname_spec='${libname}${release}.so$major'
6729 shlibpath_var=LD_LIBRARY_PATH
6730 hardcode_into_libs=yes
6731 ;;
6732
6733hpux9* | hpux10* | hpux11*)
6734 # Give a soname corresponding to the major version so that dld.sl refuses to
6735 # link against other versions.
6736 dynamic_linker="$host_os dld.sl"
6737 version_type=sunos
6738 need_lib_prefix=no
6739 need_version=no
6740 shlibpath_var=SHLIB_PATH
6741 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6742 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6743 soname_spec='${libname}${release}.sl$major'
6744 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6745 postinstall_cmds='chmod 555 $lib'
6746 ;;
6747
6748irix5* | irix6*)
6749 version_type=irix
6750 need_lib_prefix=no
6751 need_version=no
6752 soname_spec='${libname}${release}.so$major'
6753 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6754 case "$host_os" in
6755 irix5*)
6756 libsuff= shlibsuff=
6757 ;;
6758 *)
6759 case "$LD" in # libtool.m4 will add one of these switches to LD
6760 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6761 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6762 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6763 *) libsuff= shlibsuff= libmagic=never-match;;
6764 esac
6765 ;;
6766 esac
6767 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6768 shlibpath_overrides_runpath=no
6769 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6770 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6771 ;;
6772
6773# No shared lib support for Linux oldld, aout, or coff.
6774linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6775 dynamic_linker=no
6776 ;;
6777
6778# This must be Linux ELF.
6779linux-gnu*)
6780 version_type=linux
6781 need_lib_prefix=no
6782 need_version=no
6783 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6784 soname_spec='${libname}${release}.so$major'
6785 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6786 shlibpath_var=LD_LIBRARY_PATH
6787 shlibpath_overrides_runpath=no
6788 # This implies no fast_install, which is unacceptable.
6789 # Some rework will be needed to allow for fast_install
6790 # before this can be enabled.
6791 hardcode_into_libs=yes
6792
6793 # We used to test for /lib/ld.so.1 and disable shared libraries on
6794 # powerpc, because MkLinux only supported shared libraries with the
6795 # GNU dynamic linker. Since this was broken with cross compilers,
6796 # most powerpc-linux boxes support dynamic linking these days and
6797 # people can always --disable-shared, the test was removed, and we
6798 # assume the GNU/Linux dynamic linker is in use.
6799 dynamic_linker='GNU/Linux ld.so'
6800 ;;
6801
6802netbsd*)
6803 version_type=sunos
6804 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6805 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6806 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6807 dynamic_linker='NetBSD (a.out) ld.so'
6808 else
6809 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6810 soname_spec='${libname}${release}.so$major'
6811 dynamic_linker='NetBSD ld.elf_so'
6812 fi
6813 shlibpath_var=LD_LIBRARY_PATH
6814 shlibpath_overrides_runpath=yes
6815 hardcode_into_libs=yes
6816 ;;
6817
6818newsos6)
6819 version_type=linux
6820 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6821 shlibpath_var=LD_LIBRARY_PATH
6822 shlibpath_overrides_runpath=yes
6823 ;;
6824
6825openbsd*)
6826 version_type=sunos
6827 if test "$with_gnu_ld" = yes; then
6828 need_lib_prefix=no
6829 need_version=no
6830 fi
6831 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6832 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6833 shlibpath_var=LD_LIBRARY_PATH
6834 ;;
6835
6836os2*)
6837 libname_spec='$name'
6838 need_lib_prefix=no
6839 library_names_spec='$libname.dll $libname.a'
6840 dynamic_linker='OS/2 ld.exe'
6841 shlibpath_var=LIBPATH
6842 ;;
6843
6844osf3* | osf4* | osf5*)
6845 version_type=osf
6846 need_version=no
6847 soname_spec='${libname}${release}.so'
6848 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6849 shlibpath_var=LD_LIBRARY_PATH
6850 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6851 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6852 ;;
6853
6854sco3.2v5*)
6855 version_type=osf
6856 soname_spec='${libname}${release}.so$major'
6857 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6858 shlibpath_var=LD_LIBRARY_PATH
6859 ;;
6860
6861solaris*)
6862 version_type=linux
6863 need_lib_prefix=no
6864 need_version=no
6865 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6866 soname_spec='${libname}${release}.so$major'
6867 shlibpath_var=LD_LIBRARY_PATH
6868 shlibpath_overrides_runpath=yes
6869 hardcode_into_libs=yes
6870 # ldd complains unless libraries are executable
6871 postinstall_cmds='chmod +x $lib'
6872 ;;
6873
6874sunos4*)
6875 version_type=sunos
6876 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6877 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6878 shlibpath_var=LD_LIBRARY_PATH
6879 shlibpath_overrides_runpath=yes
6880 if test "$with_gnu_ld" = yes; then
6881 need_lib_prefix=no
6882 fi
6883 need_version=yes
6884 ;;
6885
6886sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6887 version_type=linux
6888 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6889 soname_spec='${libname}${release}.so$major'
6890 shlibpath_var=LD_LIBRARY_PATH
6891 case "$host_vendor" in
6892 sni)
6893 shlibpath_overrides_runpath=no
6894 ;;
6895 motorola)
6896 need_lib_prefix=no
6897 need_version=no
6898 shlibpath_overrides_runpath=no
6899 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6900 ;;
6901 esac
6902 ;;
6903
6904uts4*)
6905 version_type=linux
6906 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6907 soname_spec='${libname}${release}.so$major'
6908 shlibpath_var=LD_LIBRARY_PATH
6909 ;;
6910
6911dgux*)
6912 version_type=linux
6913 need_lib_prefix=no
6914 need_version=no
6915 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6916 soname_spec='${libname}${release}.so$major'
6917 shlibpath_var=LD_LIBRARY_PATH
6918 ;;
6919
6920sysv4*MP*)
6921 if test -d /usr/nec ;then
6922 version_type=linux
6923 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6924 soname_spec='$libname.so.$major'
6925 shlibpath_var=LD_LIBRARY_PATH
6926 fi
6927 ;;
6928
6929*)
6930 dynamic_linker=no
6931 ;;
6932esac
6933echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6934echo "${ECHO_T}$dynamic_linker" >&6
6935test "$dynamic_linker" = no && can_build_shared=no
6936##
6937## END FIXME
6938
6939## FIXME: this should be a separate macro
6940##
6941# Report the final consequences.
6942echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6943echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6944echo "$as_me:$LINENO: result: $can_build_shared" >&5
6945echo "${ECHO_T}$can_build_shared" >&6
6946##
6947## END FIXME
6948
6949if test "$hardcode_action" = relink; then
6950 # Fast installation is not supported
6951 enable_fast_install=no
6952elif test "$shlibpath_overrides_runpath" = yes ||
6953 test "$enable_shared" = no; then
6954 # Fast installation is not necessary
6955 enable_fast_install=needless
6956fi
6957
6958variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6959if test "$GCC" = yes; then
6960 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6961fi
6962
6963if test "x$enable_dlopen" != xyes; then
6964 enable_dlopen=unknown
6965 enable_dlopen_self=unknown
6966 enable_dlopen_self_static=unknown
6967else
6968 lt_cv_dlopen=no
6969 lt_cv_dlopen_libs=
6970
6971 case "$host_os" in
6972 beos*)
6973 lt_cv_dlopen="load_add_on"
6974 lt_cv_dlopen_libs=
6975 lt_cv_dlopen_self=yes
6976 ;;
6977
6978 cygwin* | mingw* | pw32*)
6979 lt_cv_dlopen="LoadLibrary"
6980 lt_cv_dlopen_libs=
6981 ;;
6982
6983 *)
6984 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6985echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6986if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6988else
6989 ac_check_lib_save_LIBS=$LIBS
6990LIBS="-ldl $LIBS"
6991cat >conftest.$ac_ext <<_ACEOF
6992/* confdefs.h. */
6993_ACEOF
6994cat confdefs.h >>conftest.$ac_ext
6995cat >>conftest.$ac_ext <<_ACEOF
6996/* end confdefs.h. */
6997
6998/* Override any gcc2 internal prototype to avoid an error. */
6999#ifdef __cplusplus
7000extern "C"
7001#endif
7002/* We use char because int might match the return type of a gcc2
7003 builtin and then its argument prototype would still apply. */
7004char dlopen ();
7005int
7006main ()
7007{
7008dlopen ();
7009 ;
7010 return 0;
7011}
7012_ACEOF
7013rm -f conftest.$ac_objext conftest$ac_exeext
7014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7015 (eval $ac_link) 2>conftest.er1
7016 ac_status=$?
7017 grep -v '^ *+' conftest.er1 >conftest.err
7018 rm -f conftest.er1
7019 cat conftest.err >&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } &&
7022 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024 (eval $ac_try) 2>&5
7025 ac_status=$?
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); }; } &&
7028 { ac_try='test -s conftest$ac_exeext'
7029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030 (eval $ac_try) 2>&5
7031 ac_status=$?
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); }; }; then
7034 ac_cv_lib_dl_dlopen=yes
7035else
7036 echo "$as_me: failed program was:" >&5
7037sed 's/^/| /' conftest.$ac_ext >&5
7038
7039ac_cv_lib_dl_dlopen=no
7040fi
7041rm -f conftest.err conftest.$ac_objext \
7042 conftest$ac_exeext conftest.$ac_ext
7043LIBS=$ac_check_lib_save_LIBS
7044fi
7045echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7046echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7047if test $ac_cv_lib_dl_dlopen = yes; then
7048 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7049else
7050 echo "$as_me:$LINENO: checking for dlopen" >&5
7051echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7052if test "${ac_cv_func_dlopen+set}" = set; then
7053 echo $ECHO_N "(cached) $ECHO_C" >&6
7054else
7055 cat >conftest.$ac_ext <<_ACEOF
7056/* confdefs.h. */
7057_ACEOF
7058cat confdefs.h >>conftest.$ac_ext
7059cat >>conftest.$ac_ext <<_ACEOF
7060/* end confdefs.h. */
7061/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7063#define dlopen innocuous_dlopen
7064
7065/* System header to define __stub macros and hopefully few prototypes,
7066 which can conflict with char dlopen (); below.
7067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7068 <limits.h> exists even on freestanding compilers. */
7069
7070#ifdef __STDC__
7071# include <limits.h>
7072#else
7073# include <assert.h>
7074#endif
7075
7076#undef dlopen
7077
7078/* Override any gcc2 internal prototype to avoid an error. */
7079#ifdef __cplusplus
7080extern "C"
7081{
7082#endif
7083/* We use char because int might match the return type of a gcc2
7084 builtin and then its argument prototype would still apply. */
7085char dlopen ();
7086/* The GNU C library defines this for functions which it implements
7087 to always fail with ENOSYS. Some functions are actually named
7088 something starting with __ and the normal name is an alias. */
7089#if defined (__stub_dlopen) || defined (__stub___dlopen)
7090choke me
7091#else
7092char (*f) () = dlopen;
7093#endif
7094#ifdef __cplusplus
7095}
7096#endif
7097
7098int
7099main ()
7100{
7101return f != dlopen;
7102 ;
7103 return 0;
7104}
7105_ACEOF
7106rm -f conftest.$ac_objext conftest$ac_exeext
7107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7108 (eval $ac_link) 2>conftest.er1
7109 ac_status=$?
7110 grep -v '^ *+' conftest.er1 >conftest.err
7111 rm -f conftest.er1
7112 cat conftest.err >&5
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); } &&
7115 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117 (eval $ac_try) 2>&5
7118 ac_status=$?
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); }; } &&
7121 { ac_try='test -s conftest$ac_exeext'
7122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123 (eval $ac_try) 2>&5
7124 ac_status=$?
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); }; }; then
7127 ac_cv_func_dlopen=yes
7128else
7129 echo "$as_me: failed program was:" >&5
7130sed 's/^/| /' conftest.$ac_ext >&5
7131
7132ac_cv_func_dlopen=no
7133fi
7134rm -f conftest.err conftest.$ac_objext \
7135 conftest$ac_exeext conftest.$ac_ext
7136fi
7137echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7138echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7139if test $ac_cv_func_dlopen = yes; then
7140 lt_cv_dlopen="dlopen"
7141else
7142 echo "$as_me:$LINENO: checking for shl_load" >&5
7143echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7144if test "${ac_cv_func_shl_load+set}" = set; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
7146else
7147 cat >conftest.$ac_ext <<_ACEOF
7148/* confdefs.h. */
7149_ACEOF
7150cat confdefs.h >>conftest.$ac_ext
7151cat >>conftest.$ac_ext <<_ACEOF
7152/* end confdefs.h. */
7153/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7155#define shl_load innocuous_shl_load
7156
7157/* System header to define __stub macros and hopefully few prototypes,
7158 which can conflict with char shl_load (); below.
7159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7160 <limits.h> exists even on freestanding compilers. */
7161
7162#ifdef __STDC__
7163# include <limits.h>
7164#else
7165# include <assert.h>
7166#endif
7167
7168#undef shl_load
7169
7170/* Override any gcc2 internal prototype to avoid an error. */
7171#ifdef __cplusplus
7172extern "C"
7173{
7174#endif
7175/* We use char because int might match the return type of a gcc2
7176 builtin and then its argument prototype would still apply. */
7177char shl_load ();
7178/* The GNU C library defines this for functions which it implements
7179 to always fail with ENOSYS. Some functions are actually named
7180 something starting with __ and the normal name is an alias. */
7181#if defined (__stub_shl_load) || defined (__stub___shl_load)
7182choke me
7183#else
7184char (*f) () = shl_load;
7185#endif
7186#ifdef __cplusplus
7187}
7188#endif
7189
7190int
7191main ()
7192{
7193return f != shl_load;
7194 ;
7195 return 0;
7196}
7197_ACEOF
7198rm -f conftest.$ac_objext conftest$ac_exeext
7199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7200 (eval $ac_link) 2>conftest.er1
7201 ac_status=$?
7202 grep -v '^ *+' conftest.er1 >conftest.err
7203 rm -f conftest.er1
7204 cat conftest.err >&5
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); } &&
7207 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7209 (eval $ac_try) 2>&5
7210 ac_status=$?
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); }; } &&
7213 { ac_try='test -s conftest$ac_exeext'
7214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7215 (eval $ac_try) 2>&5
7216 ac_status=$?
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); }; }; then
7219 ac_cv_func_shl_load=yes
7220else
7221 echo "$as_me: failed program was:" >&5
7222sed 's/^/| /' conftest.$ac_ext >&5
7223
7224ac_cv_func_shl_load=no
7225fi
7226rm -f conftest.err conftest.$ac_objext \
7227 conftest$ac_exeext conftest.$ac_ext
7228fi
7229echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7230echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7231if test $ac_cv_func_shl_load = yes; then
7232 lt_cv_dlopen="shl_load"
7233else
7234 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7235echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7236if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7238else
7239 ac_check_lib_save_LIBS=$LIBS
7240LIBS="-lsvld $LIBS"
7241cat >conftest.$ac_ext <<_ACEOF
7242/* confdefs.h. */
7243_ACEOF
7244cat confdefs.h >>conftest.$ac_ext
7245cat >>conftest.$ac_ext <<_ACEOF
7246/* end confdefs.h. */
7247
7248/* Override any gcc2 internal prototype to avoid an error. */
7249#ifdef __cplusplus
7250extern "C"
7251#endif
7252/* We use char because int might match the return type of a gcc2
7253 builtin and then its argument prototype would still apply. */
7254char dlopen ();
7255int
7256main ()
7257{
7258dlopen ();
7259 ;
7260 return 0;
7261}
7262_ACEOF
7263rm -f conftest.$ac_objext conftest$ac_exeext
7264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7265 (eval $ac_link) 2>conftest.er1
7266 ac_status=$?
7267 grep -v '^ *+' conftest.er1 >conftest.err
7268 rm -f conftest.er1
7269 cat conftest.err >&5
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); } &&
7272 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7274 (eval $ac_try) 2>&5
7275 ac_status=$?
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); }; } &&
7278 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
7284 ac_cv_lib_svld_dlopen=yes
7285else
7286 echo "$as_me: failed program was:" >&5
7287sed 's/^/| /' conftest.$ac_ext >&5
7288
7289ac_cv_lib_svld_dlopen=no
7290fi
7291rm -f conftest.err conftest.$ac_objext \
7292 conftest$ac_exeext conftest.$ac_ext
7293LIBS=$ac_check_lib_save_LIBS
7294fi
7295echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7296echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7297if test $ac_cv_lib_svld_dlopen = yes; then
7298 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7299else
7300 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7301echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7302if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7303 echo $ECHO_N "(cached) $ECHO_C" >&6
7304else
7305 ac_check_lib_save_LIBS=$LIBS
7306LIBS="-ldld $LIBS"
7307cat >conftest.$ac_ext <<_ACEOF
7308/* confdefs.h. */
7309_ACEOF
7310cat confdefs.h >>conftest.$ac_ext
7311cat >>conftest.$ac_ext <<_ACEOF
7312/* end confdefs.h. */
7313
7314/* Override any gcc2 internal prototype to avoid an error. */
7315#ifdef __cplusplus
7316extern "C"
7317#endif
7318/* We use char because int might match the return type of a gcc2
7319 builtin and then its argument prototype would still apply. */
7320char shl_load ();
7321int
7322main ()
7323{
7324shl_load ();
7325 ;
7326 return 0;
7327}
7328_ACEOF
7329rm -f conftest.$ac_objext conftest$ac_exeext
7330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7331 (eval $ac_link) 2>conftest.er1
7332 ac_status=$?
7333 grep -v '^ *+' conftest.er1 >conftest.err
7334 rm -f conftest.er1
7335 cat conftest.err >&5
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); } &&
7338 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7340 (eval $ac_try) 2>&5
7341 ac_status=$?
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); }; } &&
7344 { ac_try='test -s conftest$ac_exeext'
7345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346 (eval $ac_try) 2>&5
7347 ac_status=$?
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); }; }; then
7350 ac_cv_lib_dld_shl_load=yes
7351else
7352 echo "$as_me: failed program was:" >&5
7353sed 's/^/| /' conftest.$ac_ext >&5
7354
7355ac_cv_lib_dld_shl_load=no
7356fi
7357rm -f conftest.err conftest.$ac_objext \
7358 conftest$ac_exeext conftest.$ac_ext
7359LIBS=$ac_check_lib_save_LIBS
7360fi
7361echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7362echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7363if test $ac_cv_lib_dld_shl_load = yes; then
7364 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7365fi
7366
7367
7368fi
7369
7370
7371fi
7372
7373
7374fi
7375
7376
7377fi
7378
7379 ;;
7380 esac
7381
7382 if test "x$lt_cv_dlopen" != xno; then
7383 enable_dlopen=yes
7384 else
7385 enable_dlopen=no
7386 fi
7387
7388 case "$lt_cv_dlopen" in
7389 dlopen)
7390 save_CPPFLAGS="$CPP_FLAGS"
7391 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7392
7393 save_LDFLAGS="$LDFLAGS"
7394 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7395
7396 save_LIBS="$LIBS"
7397 LIBS="$lt_cv_dlopen_libs $LIBS"
7398
7399 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7400echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7401if test "${lt_cv_dlopen_self+set}" = set; then
7402 echo $ECHO_N "(cached) $ECHO_C" >&6
7403else
7404 if test "$cross_compiling" = yes; then :
7405 lt_cv_dlopen_self=cross
7406else
7407 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7408 lt_status=$lt_dlunknown
7409 cat > conftest.$ac_ext <<EOF
7410#line 7410 "configure"
7411#include "confdefs.h"
7412
7413#if HAVE_DLFCN_H
7414#include <dlfcn.h>
7415#endif
7416
7417#include <stdio.h>
7418
7419#ifdef RTLD_GLOBAL
7420# define LT_DLGLOBAL RTLD_GLOBAL
7421#else
7422# ifdef DL_GLOBAL
7423# define LT_DLGLOBAL DL_GLOBAL
7424# else
7425# define LT_DLGLOBAL 0
7426# endif
7427#endif
7428
7429/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7430 find out it does not work in some platform. */
7431#ifndef LT_DLLAZY_OR_NOW
7432# ifdef RTLD_LAZY
7433# define LT_DLLAZY_OR_NOW RTLD_LAZY
7434# else
7435# ifdef DL_LAZY
7436# define LT_DLLAZY_OR_NOW DL_LAZY
7437# else
7438# ifdef RTLD_NOW
7439# define LT_DLLAZY_OR_NOW RTLD_NOW
7440# else
7441# ifdef DL_NOW
7442# define LT_DLLAZY_OR_NOW DL_NOW
7443# else
7444# define LT_DLLAZY_OR_NOW 0
7445# endif
7446# endif
7447# endif
7448# endif
7449#endif
7450
7451#ifdef __cplusplus
7452extern "C" void exit (int);
7453#endif
7454
7455fnord() { int i=42;}
7456main ()
7457{
7458 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7459 int status = $lt_dlunknown;
7460
7461 if (self)
7462 {
7463 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7464 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7465 /* dlclose (self); */
7466 }
7467
7468 exit (status);
7469}
7470EOF
7471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7472 (eval $ac_link) 2>&5
7473 ac_status=$?
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7476 (./conftest; exit; ) 2>/dev/null
7477 lt_status=$?
7478 case x$lt_status in
7479 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7480 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7481 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7482 esac
7483 else :
7484 # compilation failed
7485 lt_cv_dlopen_self=no
7486 fi
7487fi
7488rm -fr conftest*
7489
7490
7491fi
7492echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7493echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7494
7495 if test "x$lt_cv_dlopen_self" = xyes; then
7496 LDFLAGS="$LDFLAGS $link_static_flag"
7497 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7498echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7499if test "${lt_cv_dlopen_self_static+set}" = set; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7501else
7502 if test "$cross_compiling" = yes; then :
7503 lt_cv_dlopen_self_static=cross
7504else
7505 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7506 lt_status=$lt_dlunknown
7507 cat > conftest.$ac_ext <<EOF
7508#line 7508 "configure"
7509#include "confdefs.h"
7510
7511#if HAVE_DLFCN_H
7512#include <dlfcn.h>
7513#endif
7514
7515#include <stdio.h>
7516
7517#ifdef RTLD_GLOBAL
7518# define LT_DLGLOBAL RTLD_GLOBAL
7519#else
7520# ifdef DL_GLOBAL
7521# define LT_DLGLOBAL DL_GLOBAL
7522# else
7523# define LT_DLGLOBAL 0
7524# endif
7525#endif
7526
7527/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7528 find out it does not work in some platform. */
7529#ifndef LT_DLLAZY_OR_NOW
7530# ifdef RTLD_LAZY
7531# define LT_DLLAZY_OR_NOW RTLD_LAZY
7532# else
7533# ifdef DL_LAZY
7534# define LT_DLLAZY_OR_NOW DL_LAZY
7535# else
7536# ifdef RTLD_NOW
7537# define LT_DLLAZY_OR_NOW RTLD_NOW
7538# else
7539# ifdef DL_NOW
7540# define LT_DLLAZY_OR_NOW DL_NOW
7541# else
7542# define LT_DLLAZY_OR_NOW 0
7543# endif
7544# endif
7545# endif
7546# endif
7547#endif
7548
7549#ifdef __cplusplus
7550extern "C" void exit (int);
7551#endif
7552
7553fnord() { int i=42;}
7554main ()
7555{
7556 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7557 int status = $lt_dlunknown;
7558
7559 if (self)
7560 {
7561 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7562 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7563 /* dlclose (self); */
7564 }
7565
7566 exit (status);
7567}
7568EOF
7569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7570 (eval $ac_link) 2>&5
7571 ac_status=$?
7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7574 (./conftest; exit; ) 2>/dev/null
7575 lt_status=$?
7576 case x$lt_status in
7577 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7578 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7579 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7580 esac
7581 else :
7582 # compilation failed
7583 lt_cv_dlopen_self_static=no
7584 fi
7585fi
7586rm -fr conftest*
7587
7588
7589fi
7590echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7591echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7592 fi
7593
7594 CPPFLAGS="$save_CPPFLAGS"
7595 LDFLAGS="$save_LDFLAGS"
7596 LIBS="$save_LIBS"
7597 ;;
7598 esac
7599
7600 case "$lt_cv_dlopen_self" in
7601 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7602 *) enable_dlopen_self=unknown ;;
7603 esac
7604
7605 case "$lt_cv_dlopen_self_static" in
7606 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7607 *) enable_dlopen_self_static=unknown ;;
7608 esac
7609fi
7610
7611
7612## FIXME: this should be a separate macro
7613##
7614if test "$enable_shared" = yes && test "$GCC" = yes; then
7615 case "$archive_cmds" in
7616 *'~'*)
7617 # FIXME: we may have to deal with multi-command sequences.
7618 ;;
7619 '$CC '*)
7620 # Test whether the compiler implicitly links with -lc since on some
7621 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7622 # to ld, don't add -lc before -lgcc.
7623 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7624echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7625 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7626 echo $ECHO_N "(cached) $ECHO_C" >&6
7627else
7628 $rm conftest*
7629 echo 'static int dummy;' > conftest.$ac_ext
7630
7631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7632 (eval $ac_compile) 2>&5
7633 ac_status=$?
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); }; then
7636 soname=conftest
7637 lib=conftest
7638 libobjs=conftest.$ac_objext
7639 deplibs=
7640 wl=$lt_cv_prog_cc_wl
7641 compiler_flags=-v
7642 linker_flags=-v
7643 verstring=
7644 output_objdir=.
7645 libname=conftest
7646 save_allow_undefined_flag=$allow_undefined_flag
7647 allow_undefined_flag=
7648 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7649 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7650 ac_status=$?
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); }
7653 then
7654 lt_cv_archive_cmds_need_lc=no
7655 else
7656 lt_cv_archive_cmds_need_lc=yes
7657 fi
7658 allow_undefined_flag=$save_allow_undefined_flag
7659 else
7660 cat conftest.err 1>&5
7661 fi
7662fi
7663
7664 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7665echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7666 ;;
7667 esac
7668fi
7669need_lc=${lt_cv_archive_cmds_need_lc-yes}
7670##
7671## END FIXME
7672
7673## FIXME: this should be a separate macro
7674##
7675# The second clause should only fire when bootstrapping the
7676# libtool distribution, otherwise you forgot to ship ltmain.sh
7677# with your package, and you will get complaints that there are
7678# no rules to generate ltmain.sh.
7679if test -f "$ltmain"; then
7680 :
7681else
7682 # If there is no Makefile yet, we rely on a make rule to execute
7683 # `config.status --recheck' to rerun these tests and create the
7684 # libtool script then.
7685 test -f Makefile && make "$ltmain"
7686fi
7687
7688if test -f "$ltmain"; then
7689 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7690 $rm -f "${ofile}T"
7691
7692 echo creating $ofile
7693
7694 # Now quote all the things that may contain metacharacters while being
7695 # careful not to overquote the AC_SUBSTed values. We take copies of the
7696 # variables and quote the copies for generation of the libtool script.
7697 for var in echo old_CC old_CFLAGS \
7698 AR AR_FLAGS CC LD LN_S NM SHELL \
7699 reload_flag reload_cmds wl \
7700 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7701 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7702 library_names_spec soname_spec \
7703 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7704 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7705 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7706 old_striplib striplib file_magic_cmd export_symbols_cmds \
7707 deplibs_check_method allow_undefined_flag no_undefined_flag \
7708 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7709 hardcode_libdir_flag_spec hardcode_libdir_separator \
7710 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7711 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7712
7713 case "$var" in
7714 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7715 old_postinstall_cmds | old_postuninstall_cmds | \
7716 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7717 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7718 postinstall_cmds | postuninstall_cmds | \
7719 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7720 # Double-quote double-evaled strings.
7721 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7722 ;;
7723 *)
7724 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7725 ;;
7726 esac
7727 done
7728
7729 cat <<__EOF__ > "${ofile}T"
7730#! $SHELL
7731
7732# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7733# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7734# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7735#
7736# Copyright (C) 1996-2000 Free Software Foundation, Inc.
7737# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7738#
7739# This program is free software; you can redistribute it and/or modify
7740# it under the terms of the GNU General Public License as published by
7741# the Free Software Foundation; either version 2 of the License, or
7742# (at your option) any later version.
7743#
7744# This program is distributed in the hope that it will be useful, but
7745# WITHOUT ANY WARRANTY; without even the implied warranty of
7746# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7747# General Public License for more details.
7748#
7749# You should have received a copy of the GNU General Public License
7750# along with this program; if not, write to the Free Software
7751# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7752#
7753# As a special exception to the GNU General Public License, if you
7754# distribute this file as part of a program that contains a
7755# configuration script generated by Autoconf, you may include it under
7756# the same distribution terms that you use for the rest of that program.
7757
7758# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7759Xsed="sed -e s/^X//"
7760
7761# The HP-UX ksh and POSIX shell print the target directory to stdout
7762# if CDPATH is set.
7763if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7764
7765# ### BEGIN LIBTOOL CONFIG
7766
7767# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7768
7769# Shell to use when invoking shell scripts.
7770SHELL=$lt_SHELL
7771
7772# Whether or not to build shared libraries.
7773build_libtool_libs=$enable_shared
7774
7775# Whether or not to add -lc for building shared libraries.
7776build_libtool_need_lc=$need_lc
7777
7778# Whether or not to build static libraries.
7779build_old_libs=$enable_static
7780
7781# Whether or not to optimize for fast installation.
7782fast_install=$enable_fast_install
7783
7784# The host system.
7785host_alias=$host_alias
7786host=$host
7787
7788# An echo program that does not interpret backslashes.
7789echo=$lt_echo
7790
7791# The archiver.
7792AR=$lt_AR
7793AR_FLAGS=$lt_AR_FLAGS
7794
7795# The default C compiler.
7796CC=$lt_CC
7797
7798# Is the compiler the GNU C compiler?
7799with_gcc=$GCC
7800
7801# The linker used to build libraries.
7802LD=$lt_LD
7803
7804# Whether we need hard or soft links.
7805LN_S=$lt_LN_S
7806
7807# A BSD-compatible nm program.
7808NM=$lt_NM
7809
7810# A symbol stripping program
7811STRIP=$STRIP
7812
7813# Used to examine libraries when file_magic_cmd begins "file"
7814MAGIC_CMD=$MAGIC_CMD
7815
7816# Used on cygwin: DLL creation program.
7817DLLTOOL="$DLLTOOL"
7818
7819# Used on cygwin: object dumper.
7820OBJDUMP="$OBJDUMP"
7821
7822# Used on cygwin: assembler.
7823AS="$AS"
7824
7825# The name of the directory that contains temporary libtool files.
7826objdir=$objdir
7827
7828# How to create reloadable object files.
7829reload_flag=$lt_reload_flag
7830reload_cmds=$lt_reload_cmds
7831
7832# How to pass a linker flag through the compiler.
7833wl=$lt_wl
7834
7835# Object file suffix (normally "o").
7836objext="$ac_objext"
7837
7838# Old archive suffix (normally "a").
7839libext="$libext"
7840
7841# Executable file suffix (normally "").
7842exeext="$exeext"
7843
7844# Additional compiler flags for building library objects.
7845pic_flag=$lt_pic_flag
7846pic_mode=$pic_mode
7847
7848# Does compiler simultaneously support -c and -o options?
7849compiler_c_o=$lt_compiler_c_o
7850
7851# Can we write directly to a .lo ?
7852compiler_o_lo=$lt_compiler_o_lo
7853
7854# Must we lock files when doing compilation ?
7855need_locks=$lt_need_locks
7856
7857# Do we need the lib prefix for modules?
7858need_lib_prefix=$need_lib_prefix
7859
7860# Do we need a version for libraries?
7861need_version=$need_version
7862
7863# Whether dlopen is supported.
7864dlopen_support=$enable_dlopen
7865
7866# Whether dlopen of programs is supported.
7867dlopen_self=$enable_dlopen_self
7868
7869# Whether dlopen of statically linked programs is supported.
7870dlopen_self_static=$enable_dlopen_self_static
7871
7872# Compiler flag to prevent dynamic linking.
7873link_static_flag=$lt_link_static_flag
7874
7875# Compiler flag to turn off builtin functions.
7876no_builtin_flag=$lt_no_builtin_flag
7877
7878# Compiler flag to allow reflexive dlopens.
7879export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7880
7881# Compiler flag to generate shared objects directly from archives.
7882whole_archive_flag_spec=$lt_whole_archive_flag_spec
7883
7884# Compiler flag to generate thread-safe objects.
7885thread_safe_flag_spec=$lt_thread_safe_flag_spec
7886
7887# Library versioning type.
7888version_type=$version_type
7889
7890# Format of library name prefix.
7891libname_spec=$lt_libname_spec
7892
7893# List of archive names. First name is the real one, the rest are links.
7894# The last name is the one that the linker finds with -lNAME.
7895library_names_spec=$lt_library_names_spec
7896
7897# The coded name of the library, if different from the real name.
7898soname_spec=$lt_soname_spec
7899
7900# Commands used to build and install an old-style archive.
7901RANLIB=$lt_RANLIB
7902old_archive_cmds=$lt_old_archive_cmds
7903old_postinstall_cmds=$lt_old_postinstall_cmds
7904old_postuninstall_cmds=$lt_old_postuninstall_cmds
7905
7906# Create an old-style archive from a shared archive.
7907old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7908
7909# Create a temporary old-style archive to link instead of a shared archive.
7910old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7911
7912# Commands used to build and install a shared archive.
7913archive_cmds=$lt_archive_cmds
7914archive_expsym_cmds=$lt_archive_expsym_cmds
7915postinstall_cmds=$lt_postinstall_cmds
7916postuninstall_cmds=$lt_postuninstall_cmds
7917
7918# Commands to strip libraries.
7919old_striplib=$lt_old_striplib
7920striplib=$lt_striplib
7921
7922# Method to check whether dependent libraries are shared objects.
7923deplibs_check_method=$lt_deplibs_check_method
7924
7925# Command to use when deplibs_check_method == file_magic.
7926file_magic_cmd=$lt_file_magic_cmd
7927
7928# Flag that allows shared libraries with undefined symbols to be built.
7929allow_undefined_flag=$lt_allow_undefined_flag
7930
7931# Flag that forces no undefined symbols.
7932no_undefined_flag=$lt_no_undefined_flag
7933
7934# Commands used to finish a libtool library installation in a directory.
7935finish_cmds=$lt_finish_cmds
7936
7937# Same as above, but a single script fragment to be evaled but not shown.
7938finish_eval=$lt_finish_eval
7939
7940# Take the output of nm and produce a listing of raw symbols and C names.
7941global_symbol_pipe=$lt_global_symbol_pipe
7942
7943# Transform the output of nm in a proper C declaration
7944global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7945
7946# This is the shared library runtime path variable.
7947runpath_var=$runpath_var
7948
7949# This is the shared library path variable.
7950shlibpath_var=$shlibpath_var
7951
7952# Is shlibpath searched before the hard-coded library search path?
7953shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7954
7955# How to hardcode a shared library path into an executable.
7956hardcode_action=$hardcode_action
7957
7958# Whether we should hardcode library paths into libraries.
7959hardcode_into_libs=$hardcode_into_libs
7960
7961# Flag to hardcode \$libdir into a binary during linking.
7962# This must work even if \$libdir does not exist.
7963hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7964
7965# Whether we need a single -rpath flag with a separated argument.
7966hardcode_libdir_separator=$lt_hardcode_libdir_separator
7967
7968# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7969# resulting binary.
7970hardcode_direct=$hardcode_direct
7971
7972# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7973# resulting binary.
7974hardcode_minus_L=$hardcode_minus_L
7975
7976# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7977# the resulting binary.
7978hardcode_shlibpath_var=$hardcode_shlibpath_var
7979
7980# Variables whose values should be saved in libtool wrapper scripts and
7981# restored at relink time.
7982variables_saved_for_relink="$variables_saved_for_relink"
7983
7984# Whether libtool must link a program against all its dependency libraries.
7985link_all_deplibs=$link_all_deplibs
7986
7987# Compile-time system search path for libraries
7988sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7989
7990# Run-time system search path for libraries
7991sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7992
7993# Fix the shell variable \$srcfile for the compiler.
7994fix_srcfile_path="$fix_srcfile_path"
7995
7996# Set to yes if exported symbols are required.
7997always_export_symbols=$always_export_symbols
7998
7999# The commands to list exported symbols.
8000export_symbols_cmds=$lt_export_symbols_cmds
8001
8002# The commands to extract the exported symbol list from a shared archive.
8003extract_expsyms_cmds=$lt_extract_expsyms_cmds
8004
8005# Symbols that should not be listed in the preloaded symbols.
8006exclude_expsyms=$lt_exclude_expsyms
8007
8008# Symbols that must always be exported.
8009include_expsyms=$lt_include_expsyms
8010
8011# ### END LIBTOOL CONFIG
8012
8013__EOF__
8014
8015 case "$host_os" in
8016 aix3*)
8017 cat <<\EOF >> "${ofile}T"
8018
8019# AIX sometimes has problems with the GCC collect2 program. For some
8020# reason, if we set the COLLECT_NAMES environment variable, the problems
8021# vanish in a puff of smoke.
8022if test "X${COLLECT_NAMES+set}" != Xset; then
8023 COLLECT_NAMES=
8024 export COLLECT_NAMES
8025fi
8026EOF
8027 ;;
8028 esac
8029
8030 case "$host_os" in
8031 cygwin* | mingw* | pw32* | os2*)
8032 cat <<'EOF' >> "${ofile}T"
8033 # This is a source program that is used to create dlls on Windows
8034 # Don't remove nor modify the starting and closing comments
8035# /* ltdll.c starts here */
8036# #define WIN32_LEAN_AND_MEAN
8037# #include <windows.h>
8038# #undef WIN32_LEAN_AND_MEAN
8039# #include <stdio.h>
8040#
8041# #ifndef __CYGWIN__
8042# # ifdef __CYGWIN32__
8043# # define __CYGWIN__ __CYGWIN32__
8044# # endif
8045# #endif
8046#
8047# #ifdef __cplusplus
8048# extern "C" {
8049# #endif
8050# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8051# #ifdef __cplusplus
8052# }
8053# #endif
8054#
8055# #ifdef __CYGWIN__
8056# #include <cygwin/cygwin_dll.h>
8057# DECLARE_CYGWIN_DLL( DllMain );
8058# #endif
8059# HINSTANCE __hDllInstance_base;
8060#
8061# BOOL APIENTRY
8062# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8063# {
8064# __hDllInstance_base = hInst;
8065# return TRUE;
8066# }
8067# /* ltdll.c ends here */
8068 # This is a source program that is used to create import libraries
8069 # on Windows for dlls which lack them. Don't remove nor modify the
8070 # starting and closing comments
8071# /* impgen.c starts here */
8072# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8073#
8074# This file is part of GNU libtool.
8075#
8076# This program is free software; you can redistribute it and/or modify
8077# it under the terms of the GNU General Public License as published by
8078# the Free Software Foundation; either version 2 of the License, or
8079# (at your option) any later version.
8080#
8081# This program is distributed in the hope that it will be useful,
8082# but WITHOUT ANY WARRANTY; without even the implied warranty of
8083# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8084# GNU General Public License for more details.
8085#
8086# You should have received a copy of the GNU General Public License
8087# along with this program; if not, write to the Free Software
8088# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8089# */
8090#
8091# #include <stdio.h> /* for printf() */
8092# #include <unistd.h> /* for open(), lseek(), read() */
8093# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8094# #include <string.h> /* for strdup() */
8095#
8096# /* O_BINARY isn't required (or even defined sometimes) under Unix */
8097# #ifndef O_BINARY
8098# #define O_BINARY 0
8099# #endif
8100#
8101# static unsigned int
8102# pe_get16 (fd, offset)
8103# int fd;
8104# int offset;
8105# {
8106# unsigned char b[2];
8107# lseek (fd, offset, SEEK_SET);
8108# read (fd, b, 2);
8109# return b[0] + (b[1]<<8);
8110# }
8111#
8112# static unsigned int
8113# pe_get32 (fd, offset)
8114# int fd;
8115# int offset;
8116# {
8117# unsigned char b[4];
8118# lseek (fd, offset, SEEK_SET);
8119# read (fd, b, 4);
8120# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8121# }
8122#
8123# static unsigned int
8124# pe_as32 (ptr)
8125# void *ptr;
8126# {
8127# unsigned char *b = ptr;
8128# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8129# }
8130#
8131# int
8132# main (argc, argv)
8133# int argc;
8134# char *argv[];
8135# {
8136# int dll;
8137# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8138# unsigned long export_rva, export_size, nsections, secptr, expptr;
8139# unsigned long name_rvas, nexp;
8140# unsigned char *expdata, *erva;
8141# char *filename, *dll_name;
8142#
8143# filename = argv[1];
8144#
8145# dll = open(filename, O_RDONLY|O_BINARY);
8146# if (!dll)
8147# return 1;
8148#
8149# dll_name = filename;
8150#
8151# for (i=0; filename[i]; i++)
8152# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8153# dll_name = filename + i +1;
8154#
8155# pe_header_offset = pe_get32 (dll, 0x3c);
8156# opthdr_ofs = pe_header_offset + 4 + 20;
8157# num_entries = pe_get32 (dll, opthdr_ofs + 92);
8158#
8159# if (num_entries < 1) /* no exports */
8160# return 1;
8161#
8162# export_rva = pe_get32 (dll, opthdr_ofs + 96);
8163# export_size = pe_get32 (dll, opthdr_ofs + 100);
8164# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8165# secptr = (pe_header_offset + 4 + 20 +
8166# pe_get16 (dll, pe_header_offset + 4 + 16));
8167#
8168# expptr = 0;
8169# for (i = 0; i < nsections; i++)
8170# {
8171# char sname[8];
8172# unsigned long secptr1 = secptr + 40 * i;
8173# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8174# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8175# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8176# lseek(dll, secptr1, SEEK_SET);
8177# read(dll, sname, 8);
8178# if (vaddr <= export_rva && vaddr+vsize > export_rva)
8179# {
8180# expptr = fptr + (export_rva - vaddr);
8181# if (export_rva + export_size > vaddr + vsize)
8182# export_size = vsize - (export_rva - vaddr);
8183# break;
8184# }
8185# }
8186#
8187# expdata = (unsigned char*)malloc(export_size);
8188# lseek (dll, expptr, SEEK_SET);
8189# read (dll, expdata, export_size);
8190# erva = expdata - export_rva;
8191#
8192# nexp = pe_as32 (expdata+24);
8193# name_rvas = pe_as32 (expdata+32);
8194#
8195# printf ("EXPORTS\n");
8196# for (i = 0; i<nexp; i++)
8197# {
8198# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8199# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8200# }
8201#
8202# return 0;
8203# }
8204# /* impgen.c ends here */
8205
8206EOF
8207 ;;
8208 esac
8209
8210 # We use sed instead of cat because bash on DJGPP gets confused if
8211 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8212 # text mode, it properly converts lines to CR/LF. This bash problem
8213 # is reportedly fixed, but why not run on old versions too?
8214 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8215
8216 mv -f "${ofile}T" "$ofile" || \
8217 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8218 chmod +x "$ofile"
8219fi
8220##
8221## END FIXME
8222
8223
8224
8225
8226
8227# This can be used to rebuild libtool when needed
8228LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8229
8230# Always use our own libtool.
8231LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8232
8233# Prevent multiple expansion
8234
8235
8236MALLOC_TYPE=S
8237support_addstrings=no
8238support_frills=no
8239support_linespace=no
8240support_inheritpixmap=no
8241support_tinting=no
8242support_fading=no
8243support_keepscrolling=no
8244support_selectionscrolling=no
8245support_menubar=no
8246support_mousewheel=no
8247support_mouseslipwheel=no
8248support_utmp=no
8249support_wtmp=no
8250support_lastlog=no
8251support_cursor_blink=no
8252support_text_blink=no
8253support_pointer_blank=no
8254support_scroll_rxvt=no
8255support_scroll_next=no
8256support_scroll_xterm=no
8257support_scroll_plain=no
8258support_xim=no
8259support_xpm=no
8260support_xft=no
8261support_unicode3=no
8262support_combining=no
8263support_8bitctrls=no
8264support_iso14755=no
8265codesets=
8266
8267
8268if test "x$enable_shared" = xyes; then
8269
8270cat >>confdefs.h <<\_ACEOF
8271#define LIBRXVT 1
8272_ACEOF
8273
8274 INSTALL_LIBRXVT=yes
8275fi
8276
8277
8278# Check whether --enable-everything or --disable-everything was given.
8279if test "${enable_everything+set}" = set; then
8280 enableval="$enable_everything"
8281 if test x$enableval = xyes; then
8282 support_24bit=yes
8283 support_frills=yes
8284 support_linespace=yes
8285 support_inheritpixmap=yes
8286 support_tinting=yes
8287 support_fading=yes
8288 support_keepscrolling=yes
8289 support_selectionscrolling=yes
8290 support_lastlog=yes
8291 support_menubar=yes
8292 support_mousewheel=yes
8293 support_mouseslipwheel=yes
8294 support_cursor_blink=yes
8295 support_text_blink=yes
8296 support_pointer_blank=yes
8297 support_scroll_rxvt=yes
8298 support_scroll_next=yes
8299 support_scroll_xterm=yes
8300 support_scroll_plain=yes
8301 support_utmp=yes
8302 support_wtmp=yes
8303 support_xim=yes
8304 support_xpm=yes
8305 support_xft=yes
8306 support_unicode3=yes
8307 support_combining=yes
8308 #support_8bitctrls=yes
8309 support_iso14755=yes
8310 codesets=all
8311 fi
8312fi;
8313
8314# Check whether --enable-unicode3 or --disable-unicode3 was given.
8315if test "${enable_unicode3+set}" = set; then
8316 enableval="$enable_unicode3"
8317 if test x$enableval = xyes -o x$enableval = xno; then
8318 support_unicode3=yes
8319 fi
8320fi;
8321
8322# Check whether --enable-combining or --disable-combining was given.
8323if test "${enable_combining+set}" = set; then
8324 enableval="$enable_combining"
8325 if test x$enableval = xyes -o x$enableval = xno; then
8326 support_combining=yes
8327 fi
8328fi;
8329
8330# Check whether --enable-xft or --disable-xft was given.
8331if test "${enable_xft+set}" = set; then
8332 enableval="$enable_xft"
8333 if test x$enableval = xyes -o x$enableval = xno; then
8334 support_xft=yes
8335 fi
8336fi;
8337
8338# Check whether --enable-utmp or --disable-utmp was given.
8339if test "${enable_utmp+set}" = set; then
8340 enableval="$enable_utmp"
8341 if test x$enableval = xyes -o x$enableval = xno; then
8342 support_utmp=$enableval
8343 fi
8344fi;
8345
8346# Check whether --enable-wtmp or --disable-wtmp was given.
8347if test "${enable_wtmp+set}" = set; then
8348 enableval="$enable_wtmp"
8349 if test x$enableval = xyes -o x$enableval = xno; then
8350 support_wtmp=$enableval
8351 fi
8352fi;
8353
8354# Check whether --enable-lastlog or --disable-lastlog was given.
8355if test "${enable_lastlog+set}" = set; then
8356 enableval="$enable_lastlog"
8357 if test x$enableval = xyes -o x$enableval = xno; then
8358 support_lastlog=$enableval
8359 fi
8360fi;
8361
8362# Check whether --enable-xpm-background or --disable-xpm-background was given.
8363if test "${enable_xpm_background+set}" = set; then
8364 enableval="$enable_xpm_background"
8365 if test x$enableval = xyes -o x$enableval = xno; then
8366 support_xpm=$enableval
8367 fi
8368fi;
8369
8370# Check whether --enable-transparency or --disable-transparency was given.
8371if test "${enable_transparency+set}" = set; then
8372 enableval="$enable_transparency"
8373 if test x$enableval = xyes -o x$enableval = xno; then
8374 support_inheritpixmap=$enableval
8375 fi
8376fi;
8377
8378# Check whether --enable-tinting or --disable-tinting was given.
8379if test "${enable_tinting+set}" = set; then
8380 enableval="$enable_tinting"
8381 if test x$enableval = xyes -o x$enableval = xno; then
8382 support_tinting=$enableval
8383 fi
8384fi;
8385
8386# Check whether --enable-fading or --disable-fading was given.
8387if test "${enable_fading+set}" = set; then
8388 enableval="$enable_fading"
8389 if test x$enableval = xyes -o x$enableval = xno; then
8390 support_fading=$enableval
8391 fi
8392fi;
8393
8394# Check whether --enable-menubar or --disable-menubar was given.
8395if test "${enable_menubar+set}" = set; then
8396 enableval="$enable_menubar"
8397 if test x$enableval = xyes -o x$enableval = xno; then
8398 support_menubar=$enableval
8399 fi
8400fi;
8401
8402# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
8403if test "${enable_rxvt_scroll+set}" = set; then
8404 enableval="$enable_rxvt_scroll"
8405 if test x$enableval = xyes -o x$enableval = xno; then
8406 support_scroll_rxvt=$enableval
8407 fi
8408fi;
8409
8410# Check whether --enable-next-scroll or --disable-next-scroll was given.
8411if test "${enable_next_scroll+set}" = set; then
8412 enableval="$enable_next_scroll"
8413 if test x$enableval = xyes -o x$enableval = xno; then
8414 support_scroll_next=$enableval
8415 fi
8416fi;
8417
8418# Check whether --enable-xterm-scroll or --disable-xterm-scroll was given.
8419if test "${enable_xterm_scroll+set}" = set; then
8420 enableval="$enable_xterm_scroll"
8421 if test x$enableval = xyes -o x$enableval = xno; then
8422 support_scroll_xterm=$enableval
8423 fi
8424fi;
8425
8426# Check whether --enable-plain-scroll or --disable-plain-scroll was given.
8427if test "${enable_plain_scroll+set}" = set; then
8428 enableval="$enable_plain_scroll"
8429 if test x$enableval = xyes -o x$enableval = xno; then
8430 support_scroll_plain=$enableval
8431 fi
8432fi;
8433
8434# Check whether --enable-half-shadow or --disable-half-shadow was given.
8435if test "${enable_half_shadow+set}" = set; then
8436 enableval="$enable_half_shadow"
8437 if test x$enableval = xyes; then
8438
8439cat >>confdefs.h <<\_ACEOF
8440#define HALFSHADOW 1
8441_ACEOF
8442
8443 fi
8444fi;
8445
8446
8447# Check whether --with-codesets or --without-codesets was given.
8448if test "${with_codesets+set}" = set; then
8449 withval="$with_codesets"
8450 codesets="$withval"
8451fi;
8452
8453# Check whether --enable-xim or --disable-xim was given.
8454if test "${enable_xim+set}" = set; then
8455 enableval="$enable_xim"
8456 if test x$enableval = xyes -o x$enableval = xno; then
8457 support_xim=$enableval
8458 fi
8459fi;
8460
8461# Check whether --enable-ttygid or --disable-ttygid was given.
8462if test "${enable_ttygid+set}" = set; then
8463 enableval="$enable_ttygid"
8464 if test x$enableval = xyes; then
8465
8466cat >>confdefs.h <<\_ACEOF
8467#define TTY_GID_SUPPORT 1
8468_ACEOF
8469
8470 fi
8471fi;
8472
8473# Check whether --enable-backspace-key or --disable-backspace-key was given.
8474if test "${enable_backspace_key+set}" = set; then
8475 enableval="$enable_backspace_key"
8476 if test x$enableval = xno; then
8477
8478cat >>confdefs.h <<\_ACEOF
8479#define NO_BACKSPACE_KEY 1
8480_ACEOF
8481
8482 fi
8483fi;
8484
8485# Check whether --enable-delete-key or --disable-delete-key was given.
8486if test "${enable_delete_key+set}" = set; then
8487 enableval="$enable_delete_key"
8488 if test x$enableval = xno; then
8489
8490cat >>confdefs.h <<\_ACEOF
8491#define NO_DELETE_KEY 1
8492_ACEOF
8493
8494 fi
8495fi;
8496
8497# Check whether --enable-resources or --disable-resources was given.
8498if test "${enable_resources+set}" = set; then
8499 enableval="$enable_resources"
8500 if test x$enableval = xno; then
8501
8502cat >>confdefs.h <<\_ACEOF
8503#define NO_RESOURCES 1
8504_ACEOF
8505
8506 fi
8507fi;
8508
8509# Check whether --enable-xgetdefault or --disable-xgetdefault was given.
8510if test "${enable_xgetdefault+set}" = set; then
8511 enableval="$enable_xgetdefault"
8512 if test x$enableval = xyes; then
8513
8514cat >>confdefs.h <<\_ACEOF
8515#define USE_XGETDEFAULT 1
8516_ACEOF
8517
8518 fi
8519fi;
8520
8521# Check whether --enable-8bitctrls or --disable-8bitctrls was given.
8522if test "${enable_8bitctrls+set}" = set; then
8523 enableval="$enable_8bitctrls"
8524 if test x$enableval = xyes -o x$enableval = xno; then
8525 support_8bitctrls=yes
8526 fi
8527fi;
8528
8529RESFALLBACK=Rxvt
8530# Check whether --enable-fallback or --disable-fallback was given.
8531if test "${enable_fallback+set}" = set; then
8532 enableval="$enable_fallback"
8533
8534 test x$enableval = xyes && enableval=Rxvt
8535 test x$enableval = xno && enableval=
8536 RESFALLBACK="$enableval"
8537
8538fi;
8539
8540if test x$RESFALLBACK != x; then
8541
8542cat >>confdefs.h <<_ACEOF
8543#define RESFALLBACK "$RESFALLBACK"
8544_ACEOF
8545
8546fi
8547
8548RESNAME=urxvt
8549
8550# Check whether --with-res-name or --without-res-name was given.
8551if test "${with_res_name+set}" = set; then
8552 withval="$with_res_name"
8553 RESNAME="$withval"
8554fi;
8555
8556cat >>confdefs.h <<_ACEOF
8557#define RESNAME "$RESNAME"
8558_ACEOF
8559
8560
8561RESCLASS=URxvt
8562
8563# Check whether --with-res-class or --without-res-class was given.
8564if test "${with_res_class+set}" = set; then
8565 withval="$with_res_class"
8566 RESCLASS="$withval"
8567fi;
8568
8569cat >>confdefs.h <<_ACEOF
8570#define RESCLASS "$RESCLASS"
8571_ACEOF
8572
8573
8574RXVTNAME=urxvt
8575
8576# Check whether --with-name or --without-name was given.
8577if test "${with_name+set}" = set; then
8578 withval="$with_name"
8579 RXVTNAME="$withval"
8580fi;
8581
8582RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
8583
8584
8585# Check whether --enable-strings or --disable-strings was given.
8586if test "${enable_strings+set}" = set; then
8587 enableval="$enable_strings"
8588 if test x$enableval = xyes -o x$enableval = xno; then
8589 support_addstrings=$enableval
8590 fi
8591fi;
8592
8593# Check whether --enable-swapscreen or --disable-swapscreen was given.
8594if test "${enable_swapscreen+set}" = set; then
8595 enableval="$enable_swapscreen"
8596 if test x$enableval = xno; then
8597
8598cat >>confdefs.h <<\_ACEOF
8599#define NO_SECONDARY_SCREEN 1
8600_ACEOF
8601
8602 fi
8603fi;
8604
8605# Check whether --enable-iso14755 or --disable-iso14755 was given.
8606if test "${enable_iso14755+set}" = set; then
8607 enableval="$enable_iso14755"
8608 if test x$enableval = xyes -o x$enableval = xno; then
8609 support_iso14755=$enableval
8610 fi
8611fi;
8612
8613# Check whether --enable-frills or --disable-frills was given.
8614if test "${enable_frills+set}" = set; then
8615 enableval="$enable_frills"
8616 if test x$enableval = xyes -o x$enableval = xno; then
8617 support_frills=$enableval
8618 fi
8619fi;
8620
8621# Check whether --enable-linespace or --disable-linespace was given.
8622if test "${enable_linespace+set}" = set; then
8623 enableval="$enable_linespace"
8624 if test x$enableval = xyes -o x$enableval = xno; then
8625 support_linespace=$enableval
8626 fi
8627fi;
8628
8629# Check whether --enable-24bit or --disable-24bit was given.
8630if test "${enable_24bit+set}" = set; then
8631 enableval="$enable_24bit"
8632 if test x$enableval = xyes -o x$enableval = xno; then
8633 support_24bit=$enableval
8634 fi
8635fi;
8636
8637# Check whether --enable-keepscrolling or --disable-keepscrolling was given.
8638if test "${enable_keepscrolling+set}" = set; then
8639 enableval="$enable_keepscrolling"
8640 if test x$enableval = xyes -o x$enableval = xno; then
8641 support_keepscrolling=$enableval
8642 fi
8643fi;
8644
8645# Check whether --enable-selectionscrolling or --disable-selectionscrolling was given.
8646if test "${enable_selectionscrolling+set}" = set; then
8647 enableval="$enable_selectionscrolling"
8648 if test x$enableval = xyes -o x$enableval = xno; then
8649 support_selectionscrolling=$enableval
8650 fi
8651fi;
8652
8653# Check whether --enable-mousewheel or --disable-mousewheel was given.
8654if test "${enable_mousewheel+set}" = set; then
8655 enableval="$enable_mousewheel"
8656 if test x$enableval = xyes -o x$enableval = xno; then
8657 support_mousewheel=$enableval
8658 fi
8659fi;
8660
8661# Check whether --enable-slipwheeling or --disable-slipwheeling was given.
8662if test "${enable_slipwheeling+set}" = set; then
8663 enableval="$enable_slipwheeling"
8664 if test x$enableval = xyes -o x$enableval = xno; then
8665 support_mouseslipwheel=$enableval
8666 fi
8667fi;
8668
8669# Check whether --enable-dmalloc or --disable-dmalloc was given.
8670if test "${enable_dmalloc+set}" = set; then
8671 enableval="$enable_dmalloc"
8672 if test x$enableval = xyes; then
8673 MALLOC_TYPE=G
8674 DEBUG=-DDEBUG_MALLOC
8675 DLIB="-L/usr/local/lib -ldmalloc"
8676 DINCLUDE=-I/usr/local/include
8677 fi
8678fi;
8679
8680# Check whether --enable-dlmalloc or --disable-dlmalloc was given.
8681if test "${enable_dlmalloc+set}" = set; then
8682 enableval="$enable_dlmalloc"
8683 if test x$enableval = xyes; then
8684 MALLOC_TYPE=D
8685 DEBUG=
8686 DLIB="-L/usr/local/lib -ldlmalloc"
8687 DINCLUDE=
8688 fi
8689fi;
8690
8691# Check whether --enable-smart-resize or --disable-smart-resize was given.
8692if test "${enable_smart_resize+set}" = set; then
8693 enableval="$enable_smart_resize"
8694 if test x$enableval = xyes; then
8695
8696cat >>confdefs.h <<\_ACEOF
8697#define SMART_RESIZE 1
8698_ACEOF
8699
8700 fi
8701fi;
8702
8703# Check whether --enable-256-color or --disable-256-color was given.
8704if test "${enable_256_color+set}" = set; then
8705 enableval="$enable_256_color"
8706 if test x$enableval = xyes; then
8707
8708cat >>confdefs.h <<\_ACEOF
8709#define TTY_256COLOR 1
8710_ACEOF
8711
8712 fi
8713fi;
8714
8715# Check whether --enable-cursor-blink or --disable-cursor-blink was given.
8716if test "${enable_cursor_blink+set}" = set; then
8717 enableval="$enable_cursor_blink"
8718 if test x$enableval = xyes -o x$enableval = xno; then
8719 support_cursor_blink=$enableval
8720 fi
8721fi;
8722
8723# Check whether --enable-text-blink or --disable-text-blink was given.
8724if test "${enable_text_blink+set}" = set; then
8725 enableval="$enable_text_blink"
8726 if test x$enableval = xyes -o x$enableval = xno; then
8727 support_text_blink=$enableval
8728 fi
8729fi;
8730
8731# Check whether --enable-pointer-blank or --disable-pointer-blank was given.
8732if test "${enable_pointer_blank+set}" = set; then
8733 enableval="$enable_pointer_blank"
8734 if test x$enableval = xyes -o x$enableval = xno; then
8735 support_pointer_blank=$enableval
8736 fi
8737fi;
8738
8739
8740# Check whether --with-term or --without-term was given.
8741if test "${with_term+set}" = set; then
8742 withval="$with_term"
8743 if test x$withval != x; then
8744
8745cat >>confdefs.h <<_ACEOF
8746#define TERMENV "$withval"
8747_ACEOF
8748 term="$withval"
8749 fi
8750fi;
8751
8752
8753# Check whether --with-terminfo or --without-terminfo was given.
8754if test "${with_terminfo+set}" = set; then
8755 withval="$with_terminfo"
8756 if test x$withval != x; then
8757
8758cat >>confdefs.h <<_ACEOF
8759#define RXVT_TERMINFO "$withval"
8760_ACEOF
8761 terminfo="$withval"
8762 fi
8763fi;
8764
8765
8766
8767cat >>confdefs.h <<\_ACEOF
8768#define PROTOTYPES 1
8769_ACEOF
8770
8771
8772if test -z "$CFLAGS"; then
8773 if test -z "$CCOPTS"; then
8774 CCOPTS='-O'
8775 fi
8776 CFLAGS="$CCOPTS"
8777fi
8778
8779# Extract the first word of "mv", so it can be a program name with args.
8780set dummy mv; ac_word=$2
8781echo "$as_me:$LINENO: checking for $ac_word" >&5
8782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8783if test "${ac_cv_path_MV+set}" = set; then
8784 echo $ECHO_N "(cached) $ECHO_C" >&6
8785else
8786 case $MV in
8787 [\\/]* | ?:[\\/]*)
8788 ac_cv_path_MV="$MV" # Let the user override the test with a path.
8789 ;;
8790 *)
8791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8792for as_dir in $PATH
8793do
8794 IFS=$as_save_IFS
8795 test -z "$as_dir" && as_dir=.
8796 for ac_exec_ext in '' $ac_executable_extensions; do
8797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8798 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8800 break 2
8801 fi
8802done
8803done
8804
8805 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
8806 ;;
8807esac
8808fi
8809MV=$ac_cv_path_MV
8810
8811if test -n "$MV"; then
8812 echo "$as_me:$LINENO: result: $MV" >&5
8813echo "${ECHO_T}$MV" >&6
8814else
8815 echo "$as_me:$LINENO: result: no" >&5
8816echo "${ECHO_T}no" >&6
8817fi
8818
8819# Extract the first word of "rm", so it can be a program name with args.
8820set dummy rm; ac_word=$2
8821echo "$as_me:$LINENO: checking for $ac_word" >&5
8822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8823if test "${ac_cv_path_RM+set}" = set; then
8824 echo $ECHO_N "(cached) $ECHO_C" >&6
8825else
8826 case $RM in
8827 [\\/]* | ?:[\\/]*)
8828 ac_cv_path_RM="$RM" # Let the user override the test with a path.
8829 ;;
8830 *)
8831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8832for as_dir in $PATH
8833do
8834 IFS=$as_save_IFS
8835 test -z "$as_dir" && as_dir=.
8836 for ac_exec_ext in '' $ac_executable_extensions; do
8837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8838 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8840 break 2
8841 fi
8842done
8843done
8844
8845 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
8846 ;;
8847esac
8848fi
8849RM=$ac_cv_path_RM
8850
8851if test -n "$RM"; then
8852 echo "$as_me:$LINENO: result: $RM" >&5
8853echo "${ECHO_T}$RM" >&6
8854else
8855 echo "$as_me:$LINENO: result: no" >&5
8856echo "${ECHO_T}no" >&6
8857fi
8858
8859# Extract the first word of "cp", so it can be a program name with args.
8860set dummy cp; ac_word=$2
8861echo "$as_me:$LINENO: checking for $ac_word" >&5
8862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8863if test "${ac_cv_path_CP+set}" = set; then
8864 echo $ECHO_N "(cached) $ECHO_C" >&6
8865else
8866 case $CP in
8867 [\\/]* | ?:[\\/]*)
8868 ac_cv_path_CP="$CP" # Let the user override the test with a path.
8869 ;;
8870 *)
8871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8872for as_dir in $PATH
8873do
8874 IFS=$as_save_IFS
8875 test -z "$as_dir" && as_dir=.
8876 for ac_exec_ext in '' $ac_executable_extensions; do
8877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8878 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
8879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8880 break 2
8881 fi
8882done
8883done
8884
8885 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
8886 ;;
8887esac
8888fi
8889CP=$ac_cv_path_CP
8890
8891if test -n "$CP"; then
8892 echo "$as_me:$LINENO: result: $CP" >&5
8893echo "${ECHO_T}$CP" >&6
8894else
8895 echo "$as_me:$LINENO: result: no" >&5
8896echo "${ECHO_T}no" >&6
8897fi
8898
8899# Extract the first word of "ln", so it can be a program name with args.
8900set dummy ln; ac_word=$2
8901echo "$as_me:$LINENO: checking for $ac_word" >&5
8902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8903if test "${ac_cv_path_LN+set}" = set; then
8904 echo $ECHO_N "(cached) $ECHO_C" >&6
8905else
8906 case $LN in
8907 [\\/]* | ?:[\\/]*)
8908 ac_cv_path_LN="$LN" # Let the user override the test with a path.
8909 ;;
8910 *)
8911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8912for as_dir in $PATH
8913do
8914 IFS=$as_save_IFS
8915 test -z "$as_dir" && as_dir=.
8916 for ac_exec_ext in '' $ac_executable_extensions; do
8917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8918 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8920 break 2
8921 fi
8922done
8923done
8924
8925 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
8926 ;;
8927esac
8928fi
8929LN=$ac_cv_path_LN
8930
8931if test -n "$LN"; then
8932 echo "$as_me:$LINENO: result: $LN" >&5
8933echo "${ECHO_T}$LN" >&6
8934else
8935 echo "$as_me:$LINENO: result: no" >&5
8936echo "${ECHO_T}no" >&6
8937fi
8938
8939# Extract the first word of "sed", so it can be a program name with args.
8940set dummy sed; ac_word=$2
8941echo "$as_me:$LINENO: checking for $ac_word" >&5
8942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8943if test "${ac_cv_path_SED+set}" = set; then
8944 echo $ECHO_N "(cached) $ECHO_C" >&6
8945else
8946 case $SED in
8947 [\\/]* | ?:[\\/]*)
8948 ac_cv_path_SED="$SED" # Let the user override the test with a path.
8949 ;;
8950 *)
8951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8952for as_dir in $PATH
8953do
8954 IFS=$as_save_IFS
8955 test -z "$as_dir" && as_dir=.
8956 for ac_exec_ext in '' $ac_executable_extensions; do
8957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8958 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
8959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8960 break 2
8961 fi
8962done
8963done
8964
8965 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
8966 ;;
8967esac
8968fi
8969SED=$ac_cv_path_SED
8970
8971if test -n "$SED"; then
8972 echo "$as_me:$LINENO: result: $SED" >&5
8973echo "${ECHO_T}$SED" >&6
8974else
8975 echo "$as_me:$LINENO: result: no" >&5
8976echo "${ECHO_T}no" >&6
8977fi
8978
8979# Extract the first word of "echo", so it can be a program name with args.
8980set dummy echo; ac_word=$2
8981echo "$as_me:$LINENO: checking for $ac_word" >&5
8982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8983if test "${ac_cv_path_ECHO+set}" = set; then
8984 echo $ECHO_N "(cached) $ECHO_C" >&6
8985else
8986 case $ECHO in
8987 [\\/]* | ?:[\\/]*)
8988 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
8989 ;;
8990 *)
8991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8992for as_dir in $PATH
8993do
8994 IFS=$as_save_IFS
8995 test -z "$as_dir" && as_dir=.
8996 for ac_exec_ext in '' $ac_executable_extensions; do
8997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8998 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
8999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9000 break 2
9001 fi
9002done
9003done
9004
9005 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
9006 ;;
9007esac
9008fi
9009ECHO=$ac_cv_path_ECHO
9010
9011if test -n "$ECHO"; then
9012 echo "$as_me:$LINENO: result: $ECHO" >&5
9013echo "${ECHO_T}$ECHO" >&6
9014else
9015 echo "$as_me:$LINENO: result: no" >&5
9016echo "${ECHO_T}no" >&6
9017fi
9018
9019# Extract the first word of "cmp", so it can be a program name with args.
9020set dummy cmp; ac_word=$2
9021echo "$as_me:$LINENO: checking for $ac_word" >&5
9022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9023if test "${ac_cv_path_CMP+set}" = set; then
9024 echo $ECHO_N "(cached) $ECHO_C" >&6
9025else
9026 case $CMP in
9027 [\\/]* | ?:[\\/]*)
9028 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
9029 ;;
9030 *)
9031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9032for as_dir in $PATH
9033do
9034 IFS=$as_save_IFS
9035 test -z "$as_dir" && as_dir=.
9036 for ac_exec_ext in '' $ac_executable_extensions; do
9037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9038 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
9039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9040 break 2
9041 fi
9042done
9043done
9044
9045 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
9046 ;;
9047esac
9048fi
9049CMP=$ac_cv_path_CMP
9050
9051if test -n "$CMP"; then
9052 echo "$as_me:$LINENO: result: $CMP" >&5
9053echo "${ECHO_T}$CMP" >&6
9054else
9055 echo "$as_me:$LINENO: result: no" >&5
9056echo "${ECHO_T}no" >&6
9057fi
9058
9059# Extract the first word of "tbl", so it can be a program name with args.
9060set dummy tbl; ac_word=$2
9061echo "$as_me:$LINENO: checking for $ac_word" >&5
9062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9063if test "${ac_cv_path_TBL+set}" = set; then
9064 echo $ECHO_N "(cached) $ECHO_C" >&6
9065else
9066 case $TBL in
9067 [\\/]* | ?:[\\/]*)
9068 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
9069 ;;
9070 *)
9071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9072for as_dir in $PATH
9073do
9074 IFS=$as_save_IFS
9075 test -z "$as_dir" && as_dir=.
9076 for ac_exec_ext in '' $ac_executable_extensions; do
9077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9078 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
9079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9080 break 2
9081 fi
9082done
9083done
9084
9085 ;;
9086esac
9087fi
9088TBL=$ac_cv_path_TBL
9089
9090if test -n "$TBL"; then
9091 echo "$as_me:$LINENO: result: $TBL" >&5
9092echo "${ECHO_T}$TBL" >&6
9093else
9094 echo "$as_me:$LINENO: result: no" >&5
9095echo "${ECHO_T}no" >&6
9096fi
9097
9098
9099
9100
9101
9102if test "x$ac_path_x_has_been_run" != xyes; then
9103 echo "$as_me:$LINENO: checking for X" >&5
9104echo $ECHO_N "checking for X... $ECHO_C" >&6 4618echo $ECHO_N "checking for X... $ECHO_C" >&6
9105 4619
9106ac_path_x_has_been_run=yes
9107 4620
9108# Check whether --with-x or --without-x was given. 4621# Check whether --with-x or --without-x was given.
9109if test "${with_x+set}" = set; then 4622if test "${with_x+set}" = set; then
9110 withval="$with_x" 4623 withval="$with_x"
9111 4624
9194 4707
9195/usr/openwin/include 4708/usr/openwin/include
9196/usr/openwin/share/include' 4709/usr/openwin/share/include'
9197 4710
9198if test "$ac_x_includes" = no; then 4711if test "$ac_x_includes" = no; then
9199 # Guess where to find include files, by looking for a specified header file. 4712 # Guess where to find include files, by looking for Intrinsic.h.
9200 # First, try using that file with no special directory specified. 4713 # First, try using that file with no special directory specified.
9201 cat >conftest.$ac_ext <<_ACEOF 4714 cat >conftest.$ac_ext <<_ACEOF
9202/* confdefs.h. */ 4715/* confdefs.h. */
9203_ACEOF 4716_ACEOF
9204cat confdefs.h >>conftest.$ac_ext 4717cat confdefs.h >>conftest.$ac_ext
9268 grep -v '^ *+' conftest.er1 >conftest.err 4781 grep -v '^ *+' conftest.er1 >conftest.err
9269 rm -f conftest.er1 4782 rm -f conftest.er1
9270 cat conftest.err >&5 4783 cat conftest.err >&5
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); } && 4785 (exit $ac_status); } &&
9273 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4786 { ac_try='test -z "$ac_cxx_werror_flag"
4787 || test ! -s conftest.err'
9274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9275 (eval $ac_try) 2>&5 4789 (eval $ac_try) 2>&5
9276 ac_status=$? 4790 ac_status=$?
9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 (exit $ac_status); }; } && 4792 (exit $ac_status); }; } &&
9328 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 4842 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9329 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 4843 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9330 # Update the cache value to reflect the command line values. 4844 # Update the cache value to reflect the command line values.
9331 ac_cv_have_x="have_x=yes \ 4845 ac_cv_have_x="have_x=yes \
9332 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 4846 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9333 # It might be that x_includes is empty (headers are found in the
9334 # standard search path. Then output the corresponding message
9335 ac_out_x_includes=$x_includes
9336 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
9337 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5 4847 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9338echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6 4848echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9339fi 4849fi
9340 4850
9341fi
9342if test "$no_x" = yes; then 4851if test "$no_x" = yes; then
9343 # Not all programs may use this symbol, but it does not hurt to define it. 4852 # Not all programs may use this symbol, but it does not hurt to define it.
9344 4853
9345cat >>confdefs.h <<\_ACEOF 4854cat >>confdefs.h <<\_ACEOF
9346#define X_DISPLAY_MISSING 1 4855#define X_DISPLAY_MISSING 1
9384 grep -v '^ *+' conftest.er1 >conftest.err 4893 grep -v '^ *+' conftest.er1 >conftest.err
9385 rm -f conftest.er1 4894 rm -f conftest.er1
9386 cat conftest.err >&5 4895 cat conftest.err >&5
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); } && 4897 (exit $ac_status); } &&
9389 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4898 { ac_try='test -z "$ac_cxx_werror_flag"
4899 || test ! -s conftest.err'
9390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9391 (eval $ac_try) 2>&5 4901 (eval $ac_try) 2>&5
9392 ac_status=$? 4902 ac_status=$?
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); }; } && 4904 (exit $ac_status); }; } &&
9435 grep -v '^ *+' conftest.er1 >conftest.err 4945 grep -v '^ *+' conftest.er1 >conftest.err
9436 rm -f conftest.er1 4946 rm -f conftest.er1
9437 cat conftest.err >&5 4947 cat conftest.err >&5
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); } && 4949 (exit $ac_status); } &&
9440 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4950 { ac_try='test -z "$ac_cxx_werror_flag"
4951 || test ! -s conftest.err'
9441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9442 (eval $ac_try) 2>&5 4953 (eval $ac_try) 2>&5
9443 ac_status=$? 4954 ac_status=$?
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); }; } && 4956 (exit $ac_status); }; } &&
9511 grep -v '^ *+' conftest.er1 >conftest.err 5022 grep -v '^ *+' conftest.er1 >conftest.err
9512 rm -f conftest.er1 5023 rm -f conftest.er1
9513 cat conftest.err >&5 5024 cat conftest.err >&5
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); } && 5026 (exit $ac_status); } &&
9516 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5027 { ac_try='test -z "$ac_cxx_werror_flag"
5028 || test ! -s conftest.err'
9517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9518 (eval $ac_try) 2>&5 5030 (eval $ac_try) 2>&5
9519 ac_status=$? 5031 ac_status=$?
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); }; } && 5033 (exit $ac_status); }; } &&
9566 grep -v '^ *+' conftest.er1 >conftest.err 5078 grep -v '^ *+' conftest.er1 >conftest.err
9567 rm -f conftest.er1 5079 rm -f conftest.er1
9568 cat conftest.err >&5 5080 cat conftest.err >&5
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); } && 5082 (exit $ac_status); } &&
9571 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5083 { ac_try='test -z "$ac_cxx_werror_flag"
5084 || test ! -s conftest.err'
9572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9573 (eval $ac_try) 2>&5 5086 (eval $ac_try) 2>&5
9574 ac_status=$? 5087 ac_status=$?
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); }; } && 5089 (exit $ac_status); }; } &&
9634 grep -v '^ *+' conftest.er1 >conftest.err 5147 grep -v '^ *+' conftest.er1 >conftest.err
9635 rm -f conftest.er1 5148 rm -f conftest.er1
9636 cat conftest.err >&5 5149 cat conftest.err >&5
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); } && 5151 (exit $ac_status); } &&
9639 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5152 { ac_try='test -z "$ac_cxx_werror_flag"
5153 || test ! -s conftest.err'
9640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9641 (eval $ac_try) 2>&5 5155 (eval $ac_try) 2>&5
9642 ac_status=$? 5156 ac_status=$?
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); }; } && 5158 (exit $ac_status); }; } &&
9742 grep -v '^ *+' conftest.er1 >conftest.err 5256 grep -v '^ *+' conftest.er1 >conftest.err
9743 rm -f conftest.er1 5257 rm -f conftest.er1
9744 cat conftest.err >&5 5258 cat conftest.err >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); } && 5260 (exit $ac_status); } &&
9747 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5261 { ac_try='test -z "$ac_cxx_werror_flag"
5262 || test ! -s conftest.err'
9748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9749 (eval $ac_try) 2>&5 5264 (eval $ac_try) 2>&5
9750 ac_status=$? 5265 ac_status=$?
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); }; } && 5267 (exit $ac_status); }; } &&
9806 grep -v '^ *+' conftest.er1 >conftest.err 5321 grep -v '^ *+' conftest.er1 >conftest.err
9807 rm -f conftest.er1 5322 rm -f conftest.er1
9808 cat conftest.err >&5 5323 cat conftest.err >&5
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); } && 5325 (exit $ac_status); } &&
9811 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5326 { ac_try='test -z "$ac_cxx_werror_flag"
5327 || test ! -s conftest.err'
9812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9813 (eval $ac_try) 2>&5 5329 (eval $ac_try) 2>&5
9814 ac_status=$? 5330 ac_status=$?
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); }; } && 5332 (exit $ac_status); }; } &&
9874 grep -v '^ *+' conftest.er1 >conftest.err 5390 grep -v '^ *+' conftest.er1 >conftest.err
9875 rm -f conftest.er1 5391 rm -f conftest.er1
9876 cat conftest.err >&5 5392 cat conftest.err >&5
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); } && 5394 (exit $ac_status); } &&
9879 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5395 { ac_try='test -z "$ac_cxx_werror_flag"
5396 || test ! -s conftest.err'
9880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9881 (eval $ac_try) 2>&5 5398 (eval $ac_try) 2>&5
9882 ac_status=$? 5399 ac_status=$?
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); }; } && 5401 (exit $ac_status); }; } &&
9978 grep -v '^ *+' conftest.er1 >conftest.err 5495 grep -v '^ *+' conftest.er1 >conftest.err
9979 rm -f conftest.er1 5496 rm -f conftest.er1
9980 cat conftest.err >&5 5497 cat conftest.err >&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); } && 5499 (exit $ac_status); } &&
9983 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5500 { ac_try='test -z "$ac_cxx_werror_flag"
5501 || test ! -s conftest.err'
9984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985 (eval $ac_try) 2>&5 5503 (eval $ac_try) 2>&5
9986 ac_status=$? 5504 ac_status=$?
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; } && 5506 (exit $ac_status); }; } &&
10042 grep -v '^ *+' conftest.er1 >conftest.err 5560 grep -v '^ *+' conftest.er1 >conftest.err
10043 rm -f conftest.er1 5561 rm -f conftest.er1
10044 cat conftest.err >&5 5562 cat conftest.err >&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); } && 5564 (exit $ac_status); } &&
10047 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5565 { ac_try='test -z "$ac_cxx_werror_flag"
5566 || test ! -s conftest.err'
10048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10049 (eval $ac_try) 2>&5 5568 (eval $ac_try) 2>&5
10050 ac_status=$? 5569 ac_status=$?
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); }; } && 5571 (exit $ac_status); }; } &&
10139 grep -v '^ *+' conftest.er1 >conftest.err 5658 grep -v '^ *+' conftest.er1 >conftest.err
10140 rm -f conftest.er1 5659 rm -f conftest.er1
10141 cat conftest.err >&5 5660 cat conftest.err >&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); } && 5662 (exit $ac_status); } &&
10144 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5663 { ac_try='test -z "$ac_cxx_werror_flag"
5664 || test ! -s conftest.err'
10145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10146 (eval $ac_try) 2>&5 5666 (eval $ac_try) 2>&5
10147 ac_status=$? 5667 ac_status=$?
10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); }; } && 5669 (exit $ac_status); }; } &&
10203 grep -v '^ *+' conftest.er1 >conftest.err 5723 grep -v '^ *+' conftest.er1 >conftest.err
10204 rm -f conftest.er1 5724 rm -f conftest.er1
10205 cat conftest.err >&5 5725 cat conftest.err >&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); } && 5727 (exit $ac_status); } &&
10208 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5728 { ac_try='test -z "$ac_cxx_werror_flag"
5729 || test ! -s conftest.err'
10209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210 (eval $ac_try) 2>&5 5731 (eval $ac_try) 2>&5
10211 ac_status=$? 5732 ac_status=$?
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; } && 5734 (exit $ac_status); }; } &&
10300 grep -v '^ *+' conftest.er1 >conftest.err 5821 grep -v '^ *+' conftest.er1 >conftest.err
10301 rm -f conftest.er1 5822 rm -f conftest.er1
10302 cat conftest.err >&5 5823 cat conftest.err >&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); } && 5825 (exit $ac_status); } &&
10305 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5826 { ac_try='test -z "$ac_cxx_werror_flag"
5827 || test ! -s conftest.err'
10306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10307 (eval $ac_try) 2>&5 5829 (eval $ac_try) 2>&5
10308 ac_status=$? 5830 ac_status=$?
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); }; } && 5832 (exit $ac_status); }; } &&
10364 grep -v '^ *+' conftest.er1 >conftest.err 5886 grep -v '^ *+' conftest.er1 >conftest.err
10365 rm -f conftest.er1 5887 rm -f conftest.er1
10366 cat conftest.err >&5 5888 cat conftest.err >&5
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); } && 5890 (exit $ac_status); } &&
10369 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5891 { ac_try='test -z "$ac_cxx_werror_flag"
5892 || test ! -s conftest.err'
10370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10371 (eval $ac_try) 2>&5 5894 (eval $ac_try) 2>&5
10372 ac_status=$? 5895 ac_status=$?
10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); }; } && 5897 (exit $ac_status); }; } &&
10443 grep -v '^ *+' conftest.er1 >conftest.err 5966 grep -v '^ *+' conftest.er1 >conftest.err
10444 rm -f conftest.er1 5967 rm -f conftest.er1
10445 cat conftest.err >&5 5968 cat conftest.err >&5
10446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447 (exit $ac_status); } && 5970 (exit $ac_status); } &&
10448 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5971 { ac_try='test -z "$ac_cxx_werror_flag"
5972 || test ! -s conftest.err'
10449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10450 (eval $ac_try) 2>&5 5974 (eval $ac_try) 2>&5
10451 ac_status=$? 5975 ac_status=$?
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); }; } && 5977 (exit $ac_status); }; } &&
10478 6002
10479fi 6003fi
10480 6004
10481 6005
10482 6006
6007LIBAFTERIMAGE_CFLAGS=
6008AFTERIMAGE_LIBS=
6009have_afterimage=
6010
10483if test x$support_xpm = xyes; then 6011if test x$support_afterimage = xyes; then
6012 support_afterimage=no
6013
6014 if test "x$afterimage_config" = "x" ; then
6015 # Extract the first word of "afterimage-config", so it can be a program name with args.
6016set dummy afterimage-config; ac_word=$2
6017echo "$as_me:$LINENO: checking for $ac_word" >&5
6018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6019if test "${ac_cv_path_afterimage_config+set}" = set; then
6020 echo $ECHO_N "(cached) $ECHO_C" >&6
6021else
6022 case $afterimage_config in
6023 [\\/]* | ?:[\\/]*)
6024 ac_cv_path_afterimage_config="$afterimage_config" # Let the user override the test with a path.
6025 ;;
6026 *)
6027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028for as_dir in $PATH
6029do
6030 IFS=$as_save_IFS
6031 test -z "$as_dir" && as_dir=.
6032 for ac_exec_ext in '' $ac_executable_extensions; do
6033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6034 ac_cv_path_afterimage_config="$as_dir/$ac_word$ac_exec_ext"
6035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6036 break 2
6037 fi
6038done
6039done
6040
6041 test -z "$ac_cv_path_afterimage_config" && ac_cv_path_afterimage_config="no"
6042 ;;
6043esac
6044fi
6045afterimage_config=$ac_cv_path_afterimage_config
6046
6047if test -n "$afterimage_config"; then
6048 echo "$as_me:$LINENO: result: $afterimage_config" >&5
6049echo "${ECHO_T}$afterimage_config" >&6
6050else
6051 echo "$as_me:$LINENO: result: no" >&5
6052echo "${ECHO_T}no" >&6
6053fi
6054
6055 fi
6056
6057 echo "$as_me:$LINENO: checking for libAfterImage" >&5
6058echo $ECHO_N "checking for libAfterImage... $ECHO_C" >&6
6059 if $afterimage_config --version >/dev/null 2>&1 ; then
6060 LIBAFTERIMAGE_CFLAGS=`$afterimage_config --cflags`
6061 AFTERIMAGE_LIBS=`$afterimage_config --libs`
6062 if test "x$AFTERIMAGE_LIBS" != "x"; then
6063 support_afterimage=yes
6064 fi
6065 fi
6066
6067 if test "x$support_afterimage" = "xyes"; then
6068 echo "$as_me:$LINENO: result: $AFTERIMAGE_LIBS" >&5
6069echo "${ECHO_T}$AFTERIMAGE_LIBS" >&6
6070 else
6071 echo "$as_me:$LINENO: result: no" >&5
6072echo "${ECHO_T}no" >&6
6073 fi
6074fi
6075
6076if test x$support_afterimage != xyes -a x$support_xpm = xyes ; then
10484 6077
10485 6078
10486 6079
10487# Initialize some more variables set by options. 6080# Initialize some more variables set by options.
10488# The variables have the same names as the options, with 6081# The variables have the same names as the options, with
10659 grep -v '^ *+' conftest.er1 >conftest.err 6252 grep -v '^ *+' conftest.er1 >conftest.err
10660 rm -f conftest.er1 6253 rm -f conftest.er1
10661 cat conftest.err >&5 6254 cat conftest.err >&5
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); } && 6256 (exit $ac_status); } &&
10664 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6257 { ac_try='test -z "$ac_cxx_werror_flag"
6258 || test ! -s conftest.err'
10665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10666 (eval $ac_try) 2>&5 6260 (eval $ac_try) 2>&5
10667 ac_status=$? 6261 ac_status=$?
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); }; } && 6263 (exit $ac_status); }; } &&
10873 grep -v '^ *+' conftest.er1 >conftest.err 6467 grep -v '^ *+' conftest.er1 >conftest.err
10874 rm -f conftest.er1 6468 rm -f conftest.er1
10875 cat conftest.err >&5 6469 cat conftest.err >&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); } && 6471 (exit $ac_status); } &&
10878 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6472 { ac_try='test -z "$ac_cxx_werror_flag"
6473 || test ! -s conftest.err'
10879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10880 (eval $ac_try) 2>&5 6475 (eval $ac_try) 2>&5
10881 ac_status=$? 6476 ac_status=$?
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); }; } && 6478 (exit $ac_status); }; } &&
10904#define HAVE_SYS_WAIT_H 1 6499#define HAVE_SYS_WAIT_H 1
10905_ACEOF 6500_ACEOF
10906 6501
10907fi 6502fi
10908 6503
6504echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6505echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6506if test "${ac_cv_header_stdc+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6508else
6509 cat >conftest.$ac_ext <<_ACEOF
6510/* confdefs.h. */
6511_ACEOF
6512cat confdefs.h >>conftest.$ac_ext
6513cat >>conftest.$ac_ext <<_ACEOF
6514/* end confdefs.h. */
6515#include <stdlib.h>
6516#include <stdarg.h>
6517#include <string.h>
6518#include <float.h>
10909 6519
6520int
6521main ()
6522{
6523
6524 ;
6525 return 0;
6526}
6527_ACEOF
6528rm -f conftest.$ac_objext
6529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6530 (eval $ac_compile) 2>conftest.er1
6531 ac_status=$?
6532 grep -v '^ *+' conftest.er1 >conftest.err
6533 rm -f conftest.er1
6534 cat conftest.err >&5
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); } &&
6537 { ac_try='test -z "$ac_cxx_werror_flag"
6538 || test ! -s conftest.err'
6539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540 (eval $ac_try) 2>&5
6541 ac_status=$?
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); }; } &&
6544 { ac_try='test -s conftest.$ac_objext'
6545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6546 (eval $ac_try) 2>&5
6547 ac_status=$?
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); }; }; then
6550 ac_cv_header_stdc=yes
6551else
6552 echo "$as_me: failed program was:" >&5
6553sed 's/^/| /' conftest.$ac_ext >&5
6554
6555ac_cv_header_stdc=no
6556fi
6557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6558
6559if test $ac_cv_header_stdc = yes; then
6560 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6561 cat >conftest.$ac_ext <<_ACEOF
6562/* confdefs.h. */
6563_ACEOF
6564cat confdefs.h >>conftest.$ac_ext
6565cat >>conftest.$ac_ext <<_ACEOF
6566/* end confdefs.h. */
6567#include <string.h>
6568
6569_ACEOF
6570if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6571 $EGREP "memchr" >/dev/null 2>&1; then
6572 :
6573else
6574 ac_cv_header_stdc=no
6575fi
6576rm -f conftest*
6577
6578fi
6579
6580if test $ac_cv_header_stdc = yes; then
6581 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6582 cat >conftest.$ac_ext <<_ACEOF
6583/* confdefs.h. */
6584_ACEOF
6585cat confdefs.h >>conftest.$ac_ext
6586cat >>conftest.$ac_ext <<_ACEOF
6587/* end confdefs.h. */
6588#include <stdlib.h>
6589
6590_ACEOF
6591if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6592 $EGREP "free" >/dev/null 2>&1; then
6593 :
6594else
6595 ac_cv_header_stdc=no
6596fi
6597rm -f conftest*
6598
6599fi
6600
6601if test $ac_cv_header_stdc = yes; then
6602 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6603 if test "$cross_compiling" = yes; then
6604 :
6605else
6606 cat >conftest.$ac_ext <<_ACEOF
6607/* confdefs.h. */
6608_ACEOF
6609cat confdefs.h >>conftest.$ac_ext
6610cat >>conftest.$ac_ext <<_ACEOF
6611/* end confdefs.h. */
6612#include <ctype.h>
6613#if ((' ' & 0x0FF) == 0x020)
6614# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6615# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6616#else
6617# define ISLOWER(c) \
6618 (('a' <= (c) && (c) <= 'i') \
6619 || ('j' <= (c) && (c) <= 'r') \
6620 || ('s' <= (c) && (c) <= 'z'))
6621# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6622#endif
6623
6624#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6625int
6626main ()
6627{
6628 int i;
6629 for (i = 0; i < 256; i++)
6630 if (XOR (islower (i), ISLOWER (i))
6631 || toupper (i) != TOUPPER (i))
6632 exit(2);
6633 exit (0);
6634}
6635_ACEOF
6636rm -f conftest$ac_exeext
6637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6638 (eval $ac_link) 2>&5
6639 ac_status=$?
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6643 (eval $ac_try) 2>&5
6644 ac_status=$?
6645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); }; }; then
6647 :
6648else
6649 echo "$as_me: program exited with status $ac_status" >&5
6650echo "$as_me: failed program was:" >&5
6651sed 's/^/| /' conftest.$ac_ext >&5
6652
6653( exit $ac_status )
6654ac_cv_header_stdc=no
6655fi
6656rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6657fi
6658fi
6659fi
6660echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6661echo "${ECHO_T}$ac_cv_header_stdc" >&6
6662if test $ac_cv_header_stdc = yes; then
6663
6664cat >>confdefs.h <<\_ACEOF
6665#define STDC_HEADERS 1
6666_ACEOF
6667
6668fi
6669
6670# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6681 inttypes.h stdint.h unistd.h
6682do
6683as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6684echo "$as_me:$LINENO: checking for $ac_header" >&5
6685echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6686if eval "test \"\${$as_ac_Header+set}\" = set"; then
6687 echo $ECHO_N "(cached) $ECHO_C" >&6
6688else
6689 cat >conftest.$ac_ext <<_ACEOF
6690/* confdefs.h. */
6691_ACEOF
6692cat confdefs.h >>conftest.$ac_ext
6693cat >>conftest.$ac_ext <<_ACEOF
6694/* end confdefs.h. */
6695$ac_includes_default
6696
6697#include <$ac_header>
6698_ACEOF
6699rm -f conftest.$ac_objext
6700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6701 (eval $ac_compile) 2>conftest.er1
6702 ac_status=$?
6703 grep -v '^ *+' conftest.er1 >conftest.err
6704 rm -f conftest.er1
6705 cat conftest.err >&5
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); } &&
6708 { ac_try='test -z "$ac_cxx_werror_flag"
6709 || test ! -s conftest.err'
6710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711 (eval $ac_try) 2>&5
6712 ac_status=$?
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; } &&
6715 { ac_try='test -s conftest.$ac_objext'
6716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6717 (eval $ac_try) 2>&5
6718 ac_status=$?
6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); }; }; then
6721 eval "$as_ac_Header=yes"
6722else
6723 echo "$as_me: failed program was:" >&5
6724sed 's/^/| /' conftest.$ac_ext >&5
6725
6726eval "$as_ac_Header=no"
6727fi
6728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6729fi
6730echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6731echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6732if test `eval echo '${'$as_ac_Header'}'` = yes; then
6733 cat >>confdefs.h <<_ACEOF
6734#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6735_ACEOF
6736
6737fi
6738
6739done
10910 6740
10911 6741
10912 6742
10913 6743
10914 6744
10927 6757
10928 6758
10929for ac_header in \ 6759for ac_header in \
10930 assert.h \ 6760 assert.h \
10931 fcntl.h \ 6761 fcntl.h \
10932 grp.h \
10933 libc.h \
10934 lastlog.h \
10935 stdarg.h \ 6762 stdarg.h \
10936 stdlib.h \ 6763 stdlib.h \
10937 string.h \ 6764 string.h \
10938 termios.h \ 6765 termios.h \
10939 unistd.h \ 6766 unistd.h \
10940 sys/byteorder.h \ 6767 sys/byteorder.h \
10941 sys/ioctl.h \ 6768 sys/ioctl.h \
10942 sys/select.h \ 6769 sys/select.h \
10943 sys/sockio.h \ 6770 sys/sockio.h \
10944 sys/strredir.h \ 6771 sys/strredir.h \
10945 sys/stropts.h \
10946 sys/time.h \ 6772 sys/time.h \
10947 utmp.h \ 6773 stdint.h \
10948 utmpx.h \ 6774 wchar.h \
10949 stdint.h \ 6775 cwchar \
6776 clocale \
10950 6777
10951do 6778do
10952as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6779as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10953if eval "test \"\${$as_ac_Header+set}\" = set"; then 6780if eval "test \"\${$as_ac_Header+set}\" = set"; then
10954 echo "$as_me:$LINENO: checking for $ac_header" >&5 6781 echo "$as_me:$LINENO: checking for $ac_header" >&5
10978 grep -v '^ *+' conftest.er1 >conftest.err 6805 grep -v '^ *+' conftest.er1 >conftest.err
10979 rm -f conftest.er1 6806 rm -f conftest.er1
10980 cat conftest.err >&5 6807 cat conftest.err >&5
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); } && 6809 (exit $ac_status); } &&
10983 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6810 { ac_try='test -z "$ac_cxx_werror_flag"
6811 || test ! -s conftest.err'
10984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10985 (eval $ac_try) 2>&5 6813 (eval $ac_try) 2>&5
10986 ac_status=$? 6814 ac_status=$?
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); }; } && 6816 (exit $ac_status); }; } &&
11127 grep -v '^ *+' conftest.er1 >conftest.err 6955 grep -v '^ *+' conftest.er1 >conftest.err
11128 rm -f conftest.er1 6956 rm -f conftest.er1
11129 cat conftest.err >&5 6957 cat conftest.err >&5
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); } && 6959 (exit $ac_status); } &&
11132 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6960 { ac_try='test -z "$ac_cxx_werror_flag"
6961 || test ! -s conftest.err'
11133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11134 (eval $ac_try) 2>&5 6963 (eval $ac_try) 2>&5
11135 ac_status=$? 6964 ac_status=$?
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); }; } && 6966 (exit $ac_status); }; } &&
11192 grep -v '^ *+' conftest.er1 >conftest.err 7021 grep -v '^ *+' conftest.er1 >conftest.err
11193 rm -f conftest.er1 7022 rm -f conftest.er1
11194 cat conftest.err >&5 7023 cat conftest.err >&5
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); } && 7025 (exit $ac_status); } &&
11197 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7026 { ac_try='test -z "$ac_cxx_werror_flag"
7027 || test ! -s conftest.err'
11198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11199 (eval $ac_try) 2>&5 7029 (eval $ac_try) 2>&5
11200 ac_status=$? 7030 ac_status=$?
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); }; } && 7032 (exit $ac_status); }; } &&
11215fi 7045fi
11216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11217fi 7047fi
11218echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5 7048echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
11219echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6 7049echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6
11220
11221if test -n "$GCC"; then
11222 LDARG="-Wl,"
11223else
11224 LDARG=""
11225fi
11226R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-rpath '$LDARG'\1/g'
11227
11228ac_save_CFLAGS=$CFLAGS
11229ac_save_LIBS=$LIBS
11230CFLAGS="$CFLAGS $X_CFLAGS"
11231LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
11232echo "$as_me:$LINENO: checking for -rpath dynamic library path recording" >&5
11233echo $ECHO_N "checking for -rpath dynamic library path recording... $ECHO_C" >&6
11234if test "${rxvt_cv_rpath+set}" = set; then
11235 echo $ECHO_N "(cached) $ECHO_C" >&6
11236else
11237 if test "$cross_compiling" = yes; then
11238 { echo "$as_me:$LINENO: WARNING: You may need to check the LIBS line" >&5
11239echo "$as_me: WARNING: You may need to check the LIBS line" >&2;}
11240else
11241 cat >conftest.$ac_ext <<_ACEOF
11242/* confdefs.h. */
11243_ACEOF
11244cat confdefs.h >>conftest.$ac_ext
11245cat >>conftest.$ac_ext <<_ACEOF
11246/* end confdefs.h. */
11247
11248main()
11249{
11250 exit(0);
11251 (void) XOpenDisplay("foobar");
11252}
11253_ACEOF
11254rm -f conftest$ac_exeext
11255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11256 (eval $ac_link) 2>&5
11257 ac_status=$?
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11261 (eval $ac_try) 2>&5
11262 ac_status=$?
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); }; }; then
11265 rxvt_cv_rpath=yes
11266else
11267 echo "$as_me: program exited with status $ac_status" >&5
11268echo "$as_me: failed program was:" >&5
11269sed 's/^/| /' conftest.$ac_ext >&5
11270
11271( exit $ac_status )
11272rxvt_cv_rpath=no
11273fi
11274rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11275fi
11276fi
11277echo "$as_me:$LINENO: result: $rxvt_cv_rpath" >&5
11278echo "${ECHO_T}$rxvt_cv_rpath" >&6
11279if test x$rxvt_cv_rpath != xyes; then
11280 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g'
11281 LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
11282 echo "$as_me:$LINENO: checking for -R dynamic library path recording" >&5
11283echo $ECHO_N "checking for -R dynamic library path recording... $ECHO_C" >&6
11284if test "${rxvt_cv_R+set}" = set; then
11285 echo $ECHO_N "(cached) $ECHO_C" >&6
11286else
11287 if test "$cross_compiling" = yes; then
11288 rxvt_cv_R=no
11289else
11290 cat >conftest.$ac_ext <<_ACEOF
11291/* confdefs.h. */
11292_ACEOF
11293cat confdefs.h >>conftest.$ac_ext
11294cat >>conftest.$ac_ext <<_ACEOF
11295/* end confdefs.h. */
11296
11297main()
11298{
11299 exit(0);
11300 (void) XOpenDisplay("foobar");
11301}
11302_ACEOF
11303rm -f conftest$ac_exeext
11304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11305 (eval $ac_link) 2>&5
11306 ac_status=$?
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11310 (eval $ac_try) 2>&5
11311 ac_status=$?
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); }; }; then
11314 rxvt_cv_R=yes
11315else
11316 echo "$as_me: program exited with status $ac_status" >&5
11317echo "$as_me: failed program was:" >&5
11318sed 's/^/| /' conftest.$ac_ext >&5
11319
11320( exit $ac_status )
11321rxvt_cv_R=no
11322fi
11323rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11324fi
11325fi
11326echo "$as_me:$LINENO: result: $rxvt_cv_R" >&5
11327echo "${ECHO_T}$rxvt_cv_R" >&6
11328 if test x$rxvt_cv_R != xyes; then
11329 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
11330 fi
11331fi
11332 7050
11333echo "$as_me:$LINENO: checking for XPointer" >&5 7051echo "$as_me:$LINENO: checking for XPointer" >&5
11334echo $ECHO_N "checking for XPointer... $ECHO_C" >&6 7052echo $ECHO_N "checking for XPointer... $ECHO_C" >&6
11335if test "${rxvt_cv_xpointer+set}" = set; then 7053if test "${rxvt_cv_xpointer+set}" = set; then
11336 echo $ECHO_N "(cached) $ECHO_C" >&6 7054 echo $ECHO_N "(cached) $ECHO_C" >&6
11357 grep -v '^ *+' conftest.er1 >conftest.err 7075 grep -v '^ *+' conftest.er1 >conftest.err
11358 rm -f conftest.er1 7076 rm -f conftest.er1
11359 cat conftest.err >&5 7077 cat conftest.err >&5
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); } && 7079 (exit $ac_status); } &&
11362 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7080 { ac_try='test -z "$ac_cxx_werror_flag"
7081 || test ! -s conftest.err'
11363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11364 (eval $ac_try) 2>&5 7083 (eval $ac_try) 2>&5
11365 ac_status=$? 7084 ac_status=$?
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); }; } && 7086 (exit $ac_status); }; } &&
11390 7109
11391fi 7110fi
11392LIBS=$ac_save_LIBS 7111LIBS=$ac_save_LIBS
11393CFLAGS=$ac_save_CFLAGS 7112CFLAGS=$ac_save_CFLAGS
11394 7113
7114echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5
7115echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6
7116if test "${rxvt_xlib_illegal_access+set}" = set; then
7117 echo $ECHO_N "(cached) $ECHO_C" >&6
7118else
7119 cat >conftest.$ac_ext <<_ACEOF
7120/* confdefs.h. */
7121_ACEOF
7122cat confdefs.h >>conftest.$ac_ext
7123cat >>conftest.$ac_ext <<_ACEOF
7124/* end confdefs.h. */
7125
7126#define XLIB_ILLEGAL_ACCESS
7127#include <X11/Xlib.h>
7128
7129int
7130main ()
7131{
7132
7133 Display *dpy;
7134 dpy->xdefaults = (char *)0;
7135
7136 ;
7137 return 0;
7138}
7139_ACEOF
7140rm -f conftest.$ac_objext
7141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7142 (eval $ac_compile) 2>conftest.er1
7143 ac_status=$?
7144 grep -v '^ *+' conftest.er1 >conftest.err
7145 rm -f conftest.er1
7146 cat conftest.err >&5
7147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148 (exit $ac_status); } &&
7149 { ac_try='test -z "$ac_cxx_werror_flag"
7150 || test ! -s conftest.err'
7151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152 (eval $ac_try) 2>&5
7153 ac_status=$?
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); }; } &&
7156 { ac_try='test -s conftest.$ac_objext'
7157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7158 (eval $ac_try) 2>&5
7159 ac_status=$?
7160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 (exit $ac_status); }; }; then
7162 rxvt_xlib_illegal_access=yes
7163else
7164 echo "$as_me: failed program was:" >&5
7165sed 's/^/| /' conftest.$ac_ext >&5
7166
7167rxvt_xlib_illegal_access=no
7168
7169fi
7170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7171fi
7172echo "$as_me:$LINENO: result: $rxvt_xlib_illegal_access" >&5
7173echo "${ECHO_T}$rxvt_xlib_illegal_access" >&6
7174if test x$rxvt_xlib_illegal_access = xyes; then
7175
7176cat >>confdefs.h <<\_ACEOF
7177#define XLIB_ILLEGAL_ACCESS 1
7178_ACEOF
7179
7180fi
11395 7181
11396echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 7182echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11397echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 7183echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11398if test "${ac_cv_c_const+set}" = set; then 7184if test "${ac_cv_c_const+set}" = set; then
11399 echo $ECHO_N "(cached) $ECHO_C" >&6 7185 echo $ECHO_N "(cached) $ECHO_C" >&6
11466 grep -v '^ *+' conftest.er1 >conftest.err 7252 grep -v '^ *+' conftest.er1 >conftest.err
11467 rm -f conftest.er1 7253 rm -f conftest.er1
11468 cat conftest.err >&5 7254 cat conftest.err >&5
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); } && 7256 (exit $ac_status); } &&
11471 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7257 { ac_try='test -z "$ac_cxx_werror_flag"
7258 || test ! -s conftest.err'
11472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11473 (eval $ac_try) 2>&5 7260 (eval $ac_try) 2>&5
11474 ac_status=$? 7261 ac_status=$?
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); }; } && 7263 (exit $ac_status); }; } &&
11526 grep -v '^ *+' conftest.er1 >conftest.err 7313 grep -v '^ *+' conftest.er1 >conftest.err
11527 rm -f conftest.er1 7314 rm -f conftest.er1
11528 cat conftest.err >&5 7315 cat conftest.err >&5
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); } && 7317 (exit $ac_status); } &&
11531 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7318 { ac_try='test -z "$ac_cxx_werror_flag"
7319 || test ! -s conftest.err'
11532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11533 (eval $ac_try) 2>&5 7321 (eval $ac_try) 2>&5
11534 ac_status=$? 7322 ac_status=$?
11535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 (exit $ac_status); }; } && 7324 (exit $ac_status); }; } &&
11601 grep -v '^ *+' conftest.er1 >conftest.err 7389 grep -v '^ *+' conftest.er1 >conftest.err
11602 rm -f conftest.er1 7390 rm -f conftest.er1
11603 cat conftest.err >&5 7391 cat conftest.err >&5
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); } && 7393 (exit $ac_status); } &&
11606 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7394 { ac_try='test -z "$ac_cxx_werror_flag"
7395 || test ! -s conftest.err'
11607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11608 (eval $ac_try) 2>&5 7397 (eval $ac_try) 2>&5
11609 ac_status=$? 7398 ac_status=$?
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); }; } && 7400 (exit $ac_status); }; } &&
11666 grep -v '^ *+' conftest.er1 >conftest.err 7455 grep -v '^ *+' conftest.er1 >conftest.err
11667 rm -f conftest.er1 7456 rm -f conftest.er1
11668 cat conftest.err >&5 7457 cat conftest.err >&5
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); } && 7459 (exit $ac_status); } &&
11671 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7460 { ac_try='test -z "$ac_cxx_werror_flag"
7461 || test ! -s conftest.err'
11672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11673 (eval $ac_try) 2>&5 7463 (eval $ac_try) 2>&5
11674 ac_status=$? 7464 ac_status=$?
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); }; } && 7466 (exit $ac_status); }; } &&
11736cat >>confdefs.h <<\_ACEOF 7526cat >>confdefs.h <<\_ACEOF
11737#define gid_t int 7527#define gid_t int
11738_ACEOF 7528_ACEOF
11739 7529
11740fi 7530fi
11741
11742
11743echo "$as_me:$LINENO: checking for char" >&5
11744echo $ECHO_N "checking for char... $ECHO_C" >&6
11745if test "${ac_cv_type_char+set}" = set; then
11746 echo $ECHO_N "(cached) $ECHO_C" >&6
11747else
11748 cat >conftest.$ac_ext <<_ACEOF
11749/* confdefs.h. */
11750_ACEOF
11751cat confdefs.h >>conftest.$ac_ext
11752cat >>conftest.$ac_ext <<_ACEOF
11753/* end confdefs.h. */
11754$ac_includes_default
11755int
11756main ()
11757{
11758if ((char *) 0)
11759 return 0;
11760if (sizeof (char))
11761 return 0;
11762 ;
11763 return 0;
11764}
11765_ACEOF
11766rm -f conftest.$ac_objext
11767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11768 (eval $ac_compile) 2>conftest.er1
11769 ac_status=$?
11770 grep -v '^ *+' conftest.er1 >conftest.err
11771 rm -f conftest.er1
11772 cat conftest.err >&5
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); } &&
11775 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11777 (eval $ac_try) 2>&5
11778 ac_status=$?
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); }; } &&
11781 { ac_try='test -s conftest.$ac_objext'
11782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11783 (eval $ac_try) 2>&5
11784 ac_status=$?
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); }; }; then
11787 ac_cv_type_char=yes
11788else
11789 echo "$as_me: failed program was:" >&5
11790sed 's/^/| /' conftest.$ac_ext >&5
11791
11792ac_cv_type_char=no
11793fi
11794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11795fi
11796echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11797echo "${ECHO_T}$ac_cv_type_char" >&6
11798
11799echo "$as_me:$LINENO: checking size of char" >&5
11800echo $ECHO_N "checking size of char... $ECHO_C" >&6
11801if test "${ac_cv_sizeof_char+set}" = set; then
11802 echo $ECHO_N "(cached) $ECHO_C" >&6
11803else
11804 if test "$ac_cv_type_char" = yes; then
11805 # The cast to unsigned long works around a bug in the HP C Compiler
11806 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11807 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11808 # This bug is HP SR number 8606223364.
11809 if test "$cross_compiling" = yes; then
11810 # Depending upon the size, compute the lo and hi bounds.
11811cat >conftest.$ac_ext <<_ACEOF
11812/* confdefs.h. */
11813_ACEOF
11814cat confdefs.h >>conftest.$ac_ext
11815cat >>conftest.$ac_ext <<_ACEOF
11816/* end confdefs.h. */
11817$ac_includes_default
11818int
11819main ()
11820{
11821static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11822test_array [0] = 0
11823
11824 ;
11825 return 0;
11826}
11827_ACEOF
11828rm -f conftest.$ac_objext
11829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11830 (eval $ac_compile) 2>conftest.er1
11831 ac_status=$?
11832 grep -v '^ *+' conftest.er1 >conftest.err
11833 rm -f conftest.er1
11834 cat conftest.err >&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); } &&
11837 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11839 (eval $ac_try) 2>&5
11840 ac_status=$?
11841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842 (exit $ac_status); }; } &&
11843 { ac_try='test -s conftest.$ac_objext'
11844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11845 (eval $ac_try) 2>&5
11846 ac_status=$?
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); }; }; then
11849 ac_lo=0 ac_mid=0
11850 while :; do
11851 cat >conftest.$ac_ext <<_ACEOF
11852/* confdefs.h. */
11853_ACEOF
11854cat confdefs.h >>conftest.$ac_ext
11855cat >>conftest.$ac_ext <<_ACEOF
11856/* end confdefs.h. */
11857$ac_includes_default
11858int
11859main ()
11860{
11861static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11862test_array [0] = 0
11863
11864 ;
11865 return 0;
11866}
11867_ACEOF
11868rm -f conftest.$ac_objext
11869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11870 (eval $ac_compile) 2>conftest.er1
11871 ac_status=$?
11872 grep -v '^ *+' conftest.er1 >conftest.err
11873 rm -f conftest.er1
11874 cat conftest.err >&5
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); } &&
11877 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11879 (eval $ac_try) 2>&5
11880 ac_status=$?
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); }; } &&
11883 { ac_try='test -s conftest.$ac_objext'
11884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11885 (eval $ac_try) 2>&5
11886 ac_status=$?
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); }; }; then
11889 ac_hi=$ac_mid; break
11890else
11891 echo "$as_me: failed program was:" >&5
11892sed 's/^/| /' conftest.$ac_ext >&5
11893
11894ac_lo=`expr $ac_mid + 1`
11895 if test $ac_lo -le $ac_mid; then
11896 ac_lo= ac_hi=
11897 break
11898 fi
11899 ac_mid=`expr 2 '*' $ac_mid + 1`
11900fi
11901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11902 done
11903else
11904 echo "$as_me: failed program was:" >&5
11905sed 's/^/| /' conftest.$ac_ext >&5
11906
11907cat >conftest.$ac_ext <<_ACEOF
11908/* confdefs.h. */
11909_ACEOF
11910cat confdefs.h >>conftest.$ac_ext
11911cat >>conftest.$ac_ext <<_ACEOF
11912/* end confdefs.h. */
11913$ac_includes_default
11914int
11915main ()
11916{
11917static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
11918test_array [0] = 0
11919
11920 ;
11921 return 0;
11922}
11923_ACEOF
11924rm -f conftest.$ac_objext
11925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11926 (eval $ac_compile) 2>conftest.er1
11927 ac_status=$?
11928 grep -v '^ *+' conftest.er1 >conftest.err
11929 rm -f conftest.er1
11930 cat conftest.err >&5
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); } &&
11933 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11935 (eval $ac_try) 2>&5
11936 ac_status=$?
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); }; } &&
11939 { ac_try='test -s conftest.$ac_objext'
11940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11941 (eval $ac_try) 2>&5
11942 ac_status=$?
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); }; }; then
11945 ac_hi=-1 ac_mid=-1
11946 while :; do
11947 cat >conftest.$ac_ext <<_ACEOF
11948/* confdefs.h. */
11949_ACEOF
11950cat confdefs.h >>conftest.$ac_ext
11951cat >>conftest.$ac_ext <<_ACEOF
11952/* end confdefs.h. */
11953$ac_includes_default
11954int
11955main ()
11956{
11957static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11958test_array [0] = 0
11959
11960 ;
11961 return 0;
11962}
11963_ACEOF
11964rm -f conftest.$ac_objext
11965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11966 (eval $ac_compile) 2>conftest.er1
11967 ac_status=$?
11968 grep -v '^ *+' conftest.er1 >conftest.err
11969 rm -f conftest.er1
11970 cat conftest.err >&5
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); } &&
11973 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11975 (eval $ac_try) 2>&5
11976 ac_status=$?
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); }; } &&
11979 { ac_try='test -s conftest.$ac_objext'
11980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981 (eval $ac_try) 2>&5
11982 ac_status=$?
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; }; then
11985 ac_lo=$ac_mid; break
11986else
11987 echo "$as_me: failed program was:" >&5
11988sed 's/^/| /' conftest.$ac_ext >&5
11989
11990ac_hi=`expr '(' $ac_mid ')' - 1`
11991 if test $ac_mid -le $ac_hi; then
11992 ac_lo= ac_hi=
11993 break
11994 fi
11995 ac_mid=`expr 2 '*' $ac_mid`
11996fi
11997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11998 done
11999else
12000 echo "$as_me: failed program was:" >&5
12001sed 's/^/| /' conftest.$ac_ext >&5
12002
12003ac_lo= ac_hi=
12004fi
12005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12006fi
12007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12008# Binary search between lo and hi bounds.
12009while test "x$ac_lo" != "x$ac_hi"; do
12010 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12011 cat >conftest.$ac_ext <<_ACEOF
12012/* confdefs.h. */
12013_ACEOF
12014cat confdefs.h >>conftest.$ac_ext
12015cat >>conftest.$ac_ext <<_ACEOF
12016/* end confdefs.h. */
12017$ac_includes_default
12018int
12019main ()
12020{
12021static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12022test_array [0] = 0
12023
12024 ;
12025 return 0;
12026}
12027_ACEOF
12028rm -f conftest.$ac_objext
12029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12030 (eval $ac_compile) 2>conftest.er1
12031 ac_status=$?
12032 grep -v '^ *+' conftest.er1 >conftest.err
12033 rm -f conftest.er1
12034 cat conftest.err >&5
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); } &&
12037 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12039 (eval $ac_try) 2>&5
12040 ac_status=$?
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); }; } &&
12043 { ac_try='test -s conftest.$ac_objext'
12044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12045 (eval $ac_try) 2>&5
12046 ac_status=$?
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); }; }; then
12049 ac_hi=$ac_mid
12050else
12051 echo "$as_me: failed program was:" >&5
12052sed 's/^/| /' conftest.$ac_ext >&5
12053
12054ac_lo=`expr '(' $ac_mid ')' + 1`
12055fi
12056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12057done
12058case $ac_lo in
12059?*) ac_cv_sizeof_char=$ac_lo;;
12060'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12061See \`config.log' for more details." >&5
12062echo "$as_me: error: cannot compute sizeof (char), 77
12063See \`config.log' for more details." >&2;}
12064 { (exit 1); exit 1; }; } ;;
12065esac
12066else
12067 if test "$cross_compiling" = yes; then
12068 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12069echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12070 { (exit 1); exit 1; }; }
12071else
12072 cat >conftest.$ac_ext <<_ACEOF
12073/* confdefs.h. */
12074_ACEOF
12075cat confdefs.h >>conftest.$ac_ext
12076cat >>conftest.$ac_ext <<_ACEOF
12077/* end confdefs.h. */
12078$ac_includes_default
12079long longval () { return (long) (sizeof (char)); }
12080unsigned long ulongval () { return (long) (sizeof (char)); }
12081#include <stdio.h>
12082#include <stdlib.h>
12083int
12084main ()
12085{
12086
12087 FILE *f = fopen ("conftest.val", "w");
12088 if (! f)
12089 exit (1);
12090 if (((long) (sizeof (char))) < 0)
12091 {
12092 long i = longval ();
12093 if (i != ((long) (sizeof (char))))
12094 exit (1);
12095 fprintf (f, "%ld\n", i);
12096 }
12097 else
12098 {
12099 unsigned long i = ulongval ();
12100 if (i != ((long) (sizeof (char))))
12101 exit (1);
12102 fprintf (f, "%lu\n", i);
12103 }
12104 exit (ferror (f) || fclose (f) != 0);
12105
12106 ;
12107 return 0;
12108}
12109_ACEOF
12110rm -f conftest$ac_exeext
12111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12112 (eval $ac_link) 2>&5
12113 ac_status=$?
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12117 (eval $ac_try) 2>&5
12118 ac_status=$?
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); }; }; then
12121 ac_cv_sizeof_char=`cat conftest.val`
12122else
12123 echo "$as_me: program exited with status $ac_status" >&5
12124echo "$as_me: failed program was:" >&5
12125sed 's/^/| /' conftest.$ac_ext >&5
12126
12127( exit $ac_status )
12128{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12129See \`config.log' for more details." >&5
12130echo "$as_me: error: cannot compute sizeof (char), 77
12131See \`config.log' for more details." >&2;}
12132 { (exit 1); exit 1; }; }
12133fi
12134rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12135fi
12136fi
12137rm -f conftest.val
12138else
12139 ac_cv_sizeof_char=0
12140fi
12141fi
12142echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12143echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12144cat >>confdefs.h <<_ACEOF
12145#define SIZEOF_CHAR $ac_cv_sizeof_char
12146_ACEOF
12147 7531
12148 7532
12149echo "$as_me:$LINENO: checking for short" >&5 7533echo "$as_me:$LINENO: checking for short" >&5
12150echo $ECHO_N "checking for short... $ECHO_C" >&6 7534echo $ECHO_N "checking for short... $ECHO_C" >&6
12151if test "${ac_cv_type_short+set}" = set; then 7535if test "${ac_cv_type_short+set}" = set; then
12176 grep -v '^ *+' conftest.er1 >conftest.err 7560 grep -v '^ *+' conftest.er1 >conftest.err
12177 rm -f conftest.er1 7561 rm -f conftest.er1
12178 cat conftest.err >&5 7562 cat conftest.err >&5
12179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180 (exit $ac_status); } && 7564 (exit $ac_status); } &&
12181 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7565 { ac_try='test -z "$ac_cxx_werror_flag"
7566 || test ! -s conftest.err'
12182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12183 (eval $ac_try) 2>&5 7568 (eval $ac_try) 2>&5
12184 ac_status=$? 7569 ac_status=$?
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); }; } && 7571 (exit $ac_status); }; } &&
12238 grep -v '^ *+' conftest.er1 >conftest.err 7623 grep -v '^ *+' conftest.er1 >conftest.err
12239 rm -f conftest.er1 7624 rm -f conftest.er1
12240 cat conftest.err >&5 7625 cat conftest.err >&5
12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); } && 7627 (exit $ac_status); } &&
12243 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7628 { ac_try='test -z "$ac_cxx_werror_flag"
7629 || test ! -s conftest.err'
12244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12245 (eval $ac_try) 2>&5 7631 (eval $ac_try) 2>&5
12246 ac_status=$? 7632 ac_status=$?
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); }; } && 7634 (exit $ac_status); }; } &&
12278 grep -v '^ *+' conftest.er1 >conftest.err 7664 grep -v '^ *+' conftest.er1 >conftest.err
12279 rm -f conftest.er1 7665 rm -f conftest.er1
12280 cat conftest.err >&5 7666 cat conftest.err >&5
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); } && 7668 (exit $ac_status); } &&
12283 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7669 { ac_try='test -z "$ac_cxx_werror_flag"
7670 || test ! -s conftest.err'
12284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12285 (eval $ac_try) 2>&5 7672 (eval $ac_try) 2>&5
12286 ac_status=$? 7673 ac_status=$?
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); }; } && 7675 (exit $ac_status); }; } &&
12334 grep -v '^ *+' conftest.er1 >conftest.err 7721 grep -v '^ *+' conftest.er1 >conftest.err
12335 rm -f conftest.er1 7722 rm -f conftest.er1
12336 cat conftest.err >&5 7723 cat conftest.err >&5
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); } && 7725 (exit $ac_status); } &&
12339 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7726 { ac_try='test -z "$ac_cxx_werror_flag"
7727 || test ! -s conftest.err'
12340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12341 (eval $ac_try) 2>&5 7729 (eval $ac_try) 2>&5
12342 ac_status=$? 7730 ac_status=$?
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); }; } && 7732 (exit $ac_status); }; } &&
12374 grep -v '^ *+' conftest.er1 >conftest.err 7762 grep -v '^ *+' conftest.er1 >conftest.err
12375 rm -f conftest.er1 7763 rm -f conftest.er1
12376 cat conftest.err >&5 7764 cat conftest.err >&5
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); } && 7766 (exit $ac_status); } &&
12379 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7767 { ac_try='test -z "$ac_cxx_werror_flag"
7768 || test ! -s conftest.err'
12380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12381 (eval $ac_try) 2>&5 7770 (eval $ac_try) 2>&5
12382 ac_status=$? 7771 ac_status=$?
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); }; } && 7773 (exit $ac_status); }; } &&
12438 grep -v '^ *+' conftest.er1 >conftest.err 7827 grep -v '^ *+' conftest.er1 >conftest.err
12439 rm -f conftest.er1 7828 rm -f conftest.er1
12440 cat conftest.err >&5 7829 cat conftest.err >&5
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); } && 7831 (exit $ac_status); } &&
12443 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7832 { ac_try='test -z "$ac_cxx_werror_flag"
7833 || test ! -s conftest.err'
12444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12445 (eval $ac_try) 2>&5 7835 (eval $ac_try) 2>&5
12446 ac_status=$? 7836 ac_status=$?
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); }; } && 7838 (exit $ac_status); }; } &&
12469See \`config.log' for more details." >&2;} 7859See \`config.log' for more details." >&2;}
12470 { (exit 1); exit 1; }; } ;; 7860 { (exit 1); exit 1; }; } ;;
12471esac 7861esac
12472else 7862else
12473 if test "$cross_compiling" = yes; then 7863 if test "$cross_compiling" = yes; then
12474 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 7864 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12475echo "$as_me: error: internal error: not reached in cross-compile" >&2;} 7865See \`config.log' for more details." >&5
7866echo "$as_me: error: cannot run test program while cross compiling
7867See \`config.log' for more details." >&2;}
12476 { (exit 1); exit 1; }; } 7868 { (exit 1); exit 1; }; }
12477else 7869else
12478 cat >conftest.$ac_ext <<_ACEOF 7870 cat >conftest.$ac_ext <<_ACEOF
12479/* confdefs.h. */ 7871/* confdefs.h. */
12480_ACEOF 7872_ACEOF
12582 grep -v '^ *+' conftest.er1 >conftest.err 7974 grep -v '^ *+' conftest.er1 >conftest.err
12583 rm -f conftest.er1 7975 rm -f conftest.er1
12584 cat conftest.err >&5 7976 cat conftest.err >&5
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); } && 7978 (exit $ac_status); } &&
12587 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7979 { ac_try='test -z "$ac_cxx_werror_flag"
7980 || test ! -s conftest.err'
12588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12589 (eval $ac_try) 2>&5 7982 (eval $ac_try) 2>&5
12590 ac_status=$? 7983 ac_status=$?
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); }; } && 7985 (exit $ac_status); }; } &&
12644 grep -v '^ *+' conftest.er1 >conftest.err 8037 grep -v '^ *+' conftest.er1 >conftest.err
12645 rm -f conftest.er1 8038 rm -f conftest.er1
12646 cat conftest.err >&5 8039 cat conftest.err >&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); } && 8041 (exit $ac_status); } &&
12649 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8042 { ac_try='test -z "$ac_cxx_werror_flag"
8043 || test ! -s conftest.err'
12650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12651 (eval $ac_try) 2>&5 8045 (eval $ac_try) 2>&5
12652 ac_status=$? 8046 ac_status=$?
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); }; } && 8048 (exit $ac_status); }; } &&
12684 grep -v '^ *+' conftest.er1 >conftest.err 8078 grep -v '^ *+' conftest.er1 >conftest.err
12685 rm -f conftest.er1 8079 rm -f conftest.er1
12686 cat conftest.err >&5 8080 cat conftest.err >&5
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); } && 8082 (exit $ac_status); } &&
12689 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8083 { ac_try='test -z "$ac_cxx_werror_flag"
8084 || test ! -s conftest.err'
12690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12691 (eval $ac_try) 2>&5 8086 (eval $ac_try) 2>&5
12692 ac_status=$? 8087 ac_status=$?
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); }; } && 8089 (exit $ac_status); }; } &&
12740 grep -v '^ *+' conftest.er1 >conftest.err 8135 grep -v '^ *+' conftest.er1 >conftest.err
12741 rm -f conftest.er1 8136 rm -f conftest.er1
12742 cat conftest.err >&5 8137 cat conftest.err >&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); } && 8139 (exit $ac_status); } &&
12745 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8140 { ac_try='test -z "$ac_cxx_werror_flag"
8141 || test ! -s conftest.err'
12746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12747 (eval $ac_try) 2>&5 8143 (eval $ac_try) 2>&5
12748 ac_status=$? 8144 ac_status=$?
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); }; } && 8146 (exit $ac_status); }; } &&
12780 grep -v '^ *+' conftest.er1 >conftest.err 8176 grep -v '^ *+' conftest.er1 >conftest.err
12781 rm -f conftest.er1 8177 rm -f conftest.er1
12782 cat conftest.err >&5 8178 cat conftest.err >&5
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); } && 8180 (exit $ac_status); } &&
12785 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8181 { ac_try='test -z "$ac_cxx_werror_flag"
8182 || test ! -s conftest.err'
12786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12787 (eval $ac_try) 2>&5 8184 (eval $ac_try) 2>&5
12788 ac_status=$? 8185 ac_status=$?
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); }; } && 8187 (exit $ac_status); }; } &&
12844 grep -v '^ *+' conftest.er1 >conftest.err 8241 grep -v '^ *+' conftest.er1 >conftest.err
12845 rm -f conftest.er1 8242 rm -f conftest.er1
12846 cat conftest.err >&5 8243 cat conftest.err >&5
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); } && 8245 (exit $ac_status); } &&
12849 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8246 { ac_try='test -z "$ac_cxx_werror_flag"
8247 || test ! -s conftest.err'
12850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12851 (eval $ac_try) 2>&5 8249 (eval $ac_try) 2>&5
12852 ac_status=$? 8250 ac_status=$?
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); }; } && 8252 (exit $ac_status); }; } &&
12875See \`config.log' for more details." >&2;} 8273See \`config.log' for more details." >&2;}
12876 { (exit 1); exit 1; }; } ;; 8274 { (exit 1); exit 1; }; } ;;
12877esac 8275esac
12878else 8276else
12879 if test "$cross_compiling" = yes; then 8277 if test "$cross_compiling" = yes; then
12880 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 8278 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12881echo "$as_me: error: internal error: not reached in cross-compile" >&2;} 8279See \`config.log' for more details." >&5
8280echo "$as_me: error: cannot run test program while cross compiling
8281See \`config.log' for more details." >&2;}
12882 { (exit 1); exit 1; }; } 8282 { (exit 1); exit 1; }; }
12883else 8283else
12884 cat >conftest.$ac_ext <<_ACEOF 8284 cat >conftest.$ac_ext <<_ACEOF
12885/* confdefs.h. */ 8285/* confdefs.h. */
12886_ACEOF 8286_ACEOF
12956cat >>confdefs.h <<_ACEOF 8356cat >>confdefs.h <<_ACEOF
12957#define SIZEOF_INT $ac_cv_sizeof_int 8357#define SIZEOF_INT $ac_cv_sizeof_int
12958_ACEOF 8358_ACEOF
12959 8359
12960 8360
12961echo "$as_me:$LINENO: checking for long" >&5
12962echo $ECHO_N "checking for long... $ECHO_C" >&6
12963if test "${ac_cv_type_long+set}" = set; then
12964 echo $ECHO_N "(cached) $ECHO_C" >&6
12965else
12966 cat >conftest.$ac_ext <<_ACEOF
12967/* confdefs.h. */
12968_ACEOF
12969cat confdefs.h >>conftest.$ac_ext
12970cat >>conftest.$ac_ext <<_ACEOF
12971/* end confdefs.h. */
12972$ac_includes_default
12973int
12974main ()
12975{
12976if ((long *) 0)
12977 return 0;
12978if (sizeof (long))
12979 return 0;
12980 ;
12981 return 0;
12982}
12983_ACEOF
12984rm -f conftest.$ac_objext
12985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12986 (eval $ac_compile) 2>conftest.er1
12987 ac_status=$?
12988 grep -v '^ *+' conftest.er1 >conftest.err
12989 rm -f conftest.er1
12990 cat conftest.err >&5
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); } &&
12993 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12995 (eval $ac_try) 2>&5
12996 ac_status=$?
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); }; } &&
12999 { ac_try='test -s conftest.$ac_objext'
13000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13001 (eval $ac_try) 2>&5
13002 ac_status=$?
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); }; }; then
13005 ac_cv_type_long=yes
13006else
13007 echo "$as_me: failed program was:" >&5
13008sed 's/^/| /' conftest.$ac_ext >&5
13009
13010ac_cv_type_long=no
13011fi
13012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13013fi
13014echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13015echo "${ECHO_T}$ac_cv_type_long" >&6
13016
13017echo "$as_me:$LINENO: checking size of long" >&5
13018echo $ECHO_N "checking size of long... $ECHO_C" >&6
13019if test "${ac_cv_sizeof_long+set}" = set; then
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
13021else
13022 if test "$ac_cv_type_long" = yes; then
13023 # The cast to unsigned long works around a bug in the HP C Compiler
13024 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13025 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13026 # This bug is HP SR number 8606223364.
13027 if test "$cross_compiling" = yes; then
13028 # Depending upon the size, compute the lo and hi bounds.
13029cat >conftest.$ac_ext <<_ACEOF
13030/* confdefs.h. */
13031_ACEOF
13032cat confdefs.h >>conftest.$ac_ext
13033cat >>conftest.$ac_ext <<_ACEOF
13034/* end confdefs.h. */
13035$ac_includes_default
13036int
13037main ()
13038{
13039static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
13040test_array [0] = 0
13041
13042 ;
13043 return 0;
13044}
13045_ACEOF
13046rm -f conftest.$ac_objext
13047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13048 (eval $ac_compile) 2>conftest.er1
13049 ac_status=$?
13050 grep -v '^ *+' conftest.er1 >conftest.err
13051 rm -f conftest.er1
13052 cat conftest.err >&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); } &&
13055 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13057 (eval $ac_try) 2>&5
13058 ac_status=$?
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); }; } &&
13061 { ac_try='test -s conftest.$ac_objext'
13062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13063 (eval $ac_try) 2>&5
13064 ac_status=$?
13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); }; }; then
13067 ac_lo=0 ac_mid=0
13068 while :; do
13069 cat >conftest.$ac_ext <<_ACEOF
13070/* confdefs.h. */
13071_ACEOF
13072cat confdefs.h >>conftest.$ac_ext
13073cat >>conftest.$ac_ext <<_ACEOF
13074/* end confdefs.h. */
13075$ac_includes_default
13076int
13077main ()
13078{
13079static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13080test_array [0] = 0
13081
13082 ;
13083 return 0;
13084}
13085_ACEOF
13086rm -f conftest.$ac_objext
13087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13088 (eval $ac_compile) 2>conftest.er1
13089 ac_status=$?
13090 grep -v '^ *+' conftest.er1 >conftest.err
13091 rm -f conftest.er1
13092 cat conftest.err >&5
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); } &&
13095 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13097 (eval $ac_try) 2>&5
13098 ac_status=$?
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); }; } &&
13101 { ac_try='test -s conftest.$ac_objext'
13102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13103 (eval $ac_try) 2>&5
13104 ac_status=$?
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); }; }; then
13107 ac_hi=$ac_mid; break
13108else
13109 echo "$as_me: failed program was:" >&5
13110sed 's/^/| /' conftest.$ac_ext >&5
13111
13112ac_lo=`expr $ac_mid + 1`
13113 if test $ac_lo -le $ac_mid; then
13114 ac_lo= ac_hi=
13115 break
13116 fi
13117 ac_mid=`expr 2 '*' $ac_mid + 1`
13118fi
13119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13120 done
13121else
13122 echo "$as_me: failed program was:" >&5
13123sed 's/^/| /' conftest.$ac_ext >&5
13124
13125cat >conftest.$ac_ext <<_ACEOF
13126/* confdefs.h. */
13127_ACEOF
13128cat confdefs.h >>conftest.$ac_ext
13129cat >>conftest.$ac_ext <<_ACEOF
13130/* end confdefs.h. */
13131$ac_includes_default
13132int
13133main ()
13134{
13135static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
13136test_array [0] = 0
13137
13138 ;
13139 return 0;
13140}
13141_ACEOF
13142rm -f conftest.$ac_objext
13143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13144 (eval $ac_compile) 2>conftest.er1
13145 ac_status=$?
13146 grep -v '^ *+' conftest.er1 >conftest.err
13147 rm -f conftest.er1
13148 cat conftest.err >&5
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); } &&
13151 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13153 (eval $ac_try) 2>&5
13154 ac_status=$?
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; } &&
13157 { ac_try='test -s conftest.$ac_objext'
13158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13159 (eval $ac_try) 2>&5
13160 ac_status=$?
13161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162 (exit $ac_status); }; }; then
13163 ac_hi=-1 ac_mid=-1
13164 while :; do
13165 cat >conftest.$ac_ext <<_ACEOF
13166/* confdefs.h. */
13167_ACEOF
13168cat confdefs.h >>conftest.$ac_ext
13169cat >>conftest.$ac_ext <<_ACEOF
13170/* end confdefs.h. */
13171$ac_includes_default
13172int
13173main ()
13174{
13175static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
13176test_array [0] = 0
13177
13178 ;
13179 return 0;
13180}
13181_ACEOF
13182rm -f conftest.$ac_objext
13183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13184 (eval $ac_compile) 2>conftest.er1
13185 ac_status=$?
13186 grep -v '^ *+' conftest.er1 >conftest.err
13187 rm -f conftest.er1
13188 cat conftest.err >&5
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); } &&
13191 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13193 (eval $ac_try) 2>&5
13194 ac_status=$?
13195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 (exit $ac_status); }; } &&
13197 { ac_try='test -s conftest.$ac_objext'
13198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13199 (eval $ac_try) 2>&5
13200 ac_status=$?
13201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 (exit $ac_status); }; }; then
13203 ac_lo=$ac_mid; break
13204else
13205 echo "$as_me: failed program was:" >&5
13206sed 's/^/| /' conftest.$ac_ext >&5
13207
13208ac_hi=`expr '(' $ac_mid ')' - 1`
13209 if test $ac_mid -le $ac_hi; then
13210 ac_lo= ac_hi=
13211 break
13212 fi
13213 ac_mid=`expr 2 '*' $ac_mid`
13214fi
13215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13216 done
13217else
13218 echo "$as_me: failed program was:" >&5
13219sed 's/^/| /' conftest.$ac_ext >&5
13220
13221ac_lo= ac_hi=
13222fi
13223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13224fi
13225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13226# Binary search between lo and hi bounds.
13227while test "x$ac_lo" != "x$ac_hi"; do
13228 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13229 cat >conftest.$ac_ext <<_ACEOF
13230/* confdefs.h. */
13231_ACEOF
13232cat confdefs.h >>conftest.$ac_ext
13233cat >>conftest.$ac_ext <<_ACEOF
13234/* end confdefs.h. */
13235$ac_includes_default
13236int
13237main ()
13238{
13239static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13240test_array [0] = 0
13241
13242 ;
13243 return 0;
13244}
13245_ACEOF
13246rm -f conftest.$ac_objext
13247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13248 (eval $ac_compile) 2>conftest.er1
13249 ac_status=$?
13250 grep -v '^ *+' conftest.er1 >conftest.err
13251 rm -f conftest.er1
13252 cat conftest.err >&5
13253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); } &&
13255 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13257 (eval $ac_try) 2>&5
13258 ac_status=$?
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); }; } &&
13261 { ac_try='test -s conftest.$ac_objext'
13262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13263 (eval $ac_try) 2>&5
13264 ac_status=$?
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); }; }; then
13267 ac_hi=$ac_mid
13268else
13269 echo "$as_me: failed program was:" >&5
13270sed 's/^/| /' conftest.$ac_ext >&5
13271
13272ac_lo=`expr '(' $ac_mid ')' + 1`
13273fi
13274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13275done
13276case $ac_lo in
13277?*) ac_cv_sizeof_long=$ac_lo;;
13278'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13279See \`config.log' for more details." >&5
13280echo "$as_me: error: cannot compute sizeof (long), 77
13281See \`config.log' for more details." >&2;}
13282 { (exit 1); exit 1; }; } ;;
13283esac
13284else
13285 if test "$cross_compiling" = yes; then
13286 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13287echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13288 { (exit 1); exit 1; }; }
13289else
13290 cat >conftest.$ac_ext <<_ACEOF
13291/* confdefs.h. */
13292_ACEOF
13293cat confdefs.h >>conftest.$ac_ext
13294cat >>conftest.$ac_ext <<_ACEOF
13295/* end confdefs.h. */
13296$ac_includes_default
13297long longval () { return (long) (sizeof (long)); }
13298unsigned long ulongval () { return (long) (sizeof (long)); }
13299#include <stdio.h>
13300#include <stdlib.h>
13301int
13302main ()
13303{
13304
13305 FILE *f = fopen ("conftest.val", "w");
13306 if (! f)
13307 exit (1);
13308 if (((long) (sizeof (long))) < 0)
13309 {
13310 long i = longval ();
13311 if (i != ((long) (sizeof (long))))
13312 exit (1);
13313 fprintf (f, "%ld\n", i);
13314 }
13315 else
13316 {
13317 unsigned long i = ulongval ();
13318 if (i != ((long) (sizeof (long))))
13319 exit (1);
13320 fprintf (f, "%lu\n", i);
13321 }
13322 exit (ferror (f) || fclose (f) != 0);
13323
13324 ;
13325 return 0;
13326}
13327_ACEOF
13328rm -f conftest$ac_exeext
13329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13330 (eval $ac_link) 2>&5
13331 ac_status=$?
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13335 (eval $ac_try) 2>&5
13336 ac_status=$?
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); }; }; then
13339 ac_cv_sizeof_long=`cat conftest.val`
13340else
13341 echo "$as_me: program exited with status $ac_status" >&5
13342echo "$as_me: failed program was:" >&5
13343sed 's/^/| /' conftest.$ac_ext >&5
13344
13345( exit $ac_status )
13346{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13347See \`config.log' for more details." >&5
13348echo "$as_me: error: cannot compute sizeof (long), 77
13349See \`config.log' for more details." >&2;}
13350 { (exit 1); exit 1; }; }
13351fi
13352rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13353fi
13354fi
13355rm -f conftest.val
13356else
13357 ac_cv_sizeof_long=0
13358fi
13359fi
13360echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13361echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13362cat >>confdefs.h <<_ACEOF
13363#define SIZEOF_LONG $ac_cv_sizeof_long
13364_ACEOF
13365
13366
13367echo "$as_me:$LINENO: checking for long long" >&5 8361echo "$as_me:$LINENO: checking for long long" >&5
13368echo $ECHO_N "checking for long long... $ECHO_C" >&6 8362echo $ECHO_N "checking for long long... $ECHO_C" >&6
13369if test "${ac_cv_type_long_long+set}" = set; then 8363if test "${ac_cv_type_long_long+set}" = set; then
13370 echo $ECHO_N "(cached) $ECHO_C" >&6 8364 echo $ECHO_N "(cached) $ECHO_C" >&6
13371else 8365else
13394 grep -v '^ *+' conftest.er1 >conftest.err 8388 grep -v '^ *+' conftest.er1 >conftest.err
13395 rm -f conftest.er1 8389 rm -f conftest.er1
13396 cat conftest.err >&5 8390 cat conftest.err >&5
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); } && 8392 (exit $ac_status); } &&
13399 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8393 { ac_try='test -z "$ac_cxx_werror_flag"
8394 || test ! -s conftest.err'
13400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13401 (eval $ac_try) 2>&5 8396 (eval $ac_try) 2>&5
13402 ac_status=$? 8397 ac_status=$?
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); }; } && 8399 (exit $ac_status); }; } &&
13456 grep -v '^ *+' conftest.er1 >conftest.err 8451 grep -v '^ *+' conftest.er1 >conftest.err
13457 rm -f conftest.er1 8452 rm -f conftest.er1
13458 cat conftest.err >&5 8453 cat conftest.err >&5
13459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460 (exit $ac_status); } && 8455 (exit $ac_status); } &&
13461 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8456 { ac_try='test -z "$ac_cxx_werror_flag"
8457 || test ! -s conftest.err'
13462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13463 (eval $ac_try) 2>&5 8459 (eval $ac_try) 2>&5
13464 ac_status=$? 8460 ac_status=$?
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); }; } && 8462 (exit $ac_status); }; } &&
13496 grep -v '^ *+' conftest.er1 >conftest.err 8492 grep -v '^ *+' conftest.er1 >conftest.err
13497 rm -f conftest.er1 8493 rm -f conftest.er1
13498 cat conftest.err >&5 8494 cat conftest.err >&5
13499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500 (exit $ac_status); } && 8496 (exit $ac_status); } &&
13501 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8497 { ac_try='test -z "$ac_cxx_werror_flag"
8498 || test ! -s conftest.err'
13502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13503 (eval $ac_try) 2>&5 8500 (eval $ac_try) 2>&5
13504 ac_status=$? 8501 ac_status=$?
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); }; } && 8503 (exit $ac_status); }; } &&
13552 grep -v '^ *+' conftest.er1 >conftest.err 8549 grep -v '^ *+' conftest.er1 >conftest.err
13553 rm -f conftest.er1 8550 rm -f conftest.er1
13554 cat conftest.err >&5 8551 cat conftest.err >&5
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); } && 8553 (exit $ac_status); } &&
13557 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8554 { ac_try='test -z "$ac_cxx_werror_flag"
8555 || test ! -s conftest.err'
13558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559 (eval $ac_try) 2>&5 8557 (eval $ac_try) 2>&5
13560 ac_status=$? 8558 ac_status=$?
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); }; } && 8560 (exit $ac_status); }; } &&
13592 grep -v '^ *+' conftest.er1 >conftest.err 8590 grep -v '^ *+' conftest.er1 >conftest.err
13593 rm -f conftest.er1 8591 rm -f conftest.er1
13594 cat conftest.err >&5 8592 cat conftest.err >&5
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); } && 8594 (exit $ac_status); } &&
13597 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8595 { ac_try='test -z "$ac_cxx_werror_flag"
8596 || test ! -s conftest.err'
13598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13599 (eval $ac_try) 2>&5 8598 (eval $ac_try) 2>&5
13600 ac_status=$? 8599 ac_status=$?
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); }; } && 8601 (exit $ac_status); }; } &&
13656 grep -v '^ *+' conftest.er1 >conftest.err 8655 grep -v '^ *+' conftest.er1 >conftest.err
13657 rm -f conftest.er1 8656 rm -f conftest.er1
13658 cat conftest.err >&5 8657 cat conftest.err >&5
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); } && 8659 (exit $ac_status); } &&
13661 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8660 { ac_try='test -z "$ac_cxx_werror_flag"
8661 || test ! -s conftest.err'
13662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13663 (eval $ac_try) 2>&5 8663 (eval $ac_try) 2>&5
13664 ac_status=$? 8664 ac_status=$?
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); }; } && 8666 (exit $ac_status); }; } &&
13687See \`config.log' for more details." >&2;} 8687See \`config.log' for more details." >&2;}
13688 { (exit 1); exit 1; }; } ;; 8688 { (exit 1); exit 1; }; } ;;
13689esac 8689esac
13690else 8690else
13691 if test "$cross_compiling" = yes; then 8691 if test "$cross_compiling" = yes; then
13692 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 8692 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13693echo "$as_me: error: internal error: not reached in cross-compile" >&2;} 8693See \`config.log' for more details." >&5
8694echo "$as_me: error: cannot run test program while cross compiling
8695See \`config.log' for more details." >&2;}
13694 { (exit 1); exit 1; }; } 8696 { (exit 1); exit 1; }; }
13695else 8697else
13696 cat >conftest.$ac_ext <<_ACEOF 8698 cat >conftest.$ac_ext <<_ACEOF
13697/* confdefs.h. */ 8699/* confdefs.h. */
13698_ACEOF 8700_ACEOF
13800 grep -v '^ *+' conftest.er1 >conftest.err 8802 grep -v '^ *+' conftest.er1 >conftest.err
13801 rm -f conftest.er1 8803 rm -f conftest.er1
13802 cat conftest.err >&5 8804 cat conftest.err >&5
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); } && 8806 (exit $ac_status); } &&
13805 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8807 { ac_try='test -z "$ac_cxx_werror_flag"
8808 || test ! -s conftest.err'
13806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13807 (eval $ac_try) 2>&5 8810 (eval $ac_try) 2>&5
13808 ac_status=$? 8811 ac_status=$?
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); }; } && 8813 (exit $ac_status); }; } &&
13862 grep -v '^ *+' conftest.er1 >conftest.err 8865 grep -v '^ *+' conftest.er1 >conftest.err
13863 rm -f conftest.er1 8866 rm -f conftest.er1
13864 cat conftest.err >&5 8867 cat conftest.err >&5
13865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 (exit $ac_status); } && 8869 (exit $ac_status); } &&
13867 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8870 { ac_try='test -z "$ac_cxx_werror_flag"
8871 || test ! -s conftest.err'
13868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13869 (eval $ac_try) 2>&5 8873 (eval $ac_try) 2>&5
13870 ac_status=$? 8874 ac_status=$?
13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); }; } && 8876 (exit $ac_status); }; } &&
13902 grep -v '^ *+' conftest.er1 >conftest.err 8906 grep -v '^ *+' conftest.er1 >conftest.err
13903 rm -f conftest.er1 8907 rm -f conftest.er1
13904 cat conftest.err >&5 8908 cat conftest.err >&5
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); } && 8910 (exit $ac_status); } &&
13907 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8911 { ac_try='test -z "$ac_cxx_werror_flag"
8912 || test ! -s conftest.err'
13908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13909 (eval $ac_try) 2>&5 8914 (eval $ac_try) 2>&5
13910 ac_status=$? 8915 ac_status=$?
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); }; } && 8917 (exit $ac_status); }; } &&
13958 grep -v '^ *+' conftest.er1 >conftest.err 8963 grep -v '^ *+' conftest.er1 >conftest.err
13959 rm -f conftest.er1 8964 rm -f conftest.er1
13960 cat conftest.err >&5 8965 cat conftest.err >&5
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 (exit $ac_status); } && 8967 (exit $ac_status); } &&
13963 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8968 { ac_try='test -z "$ac_cxx_werror_flag"
8969 || test ! -s conftest.err'
13964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13965 (eval $ac_try) 2>&5 8971 (eval $ac_try) 2>&5
13966 ac_status=$? 8972 ac_status=$?
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); }; } && 8974 (exit $ac_status); }; } &&
13998 grep -v '^ *+' conftest.er1 >conftest.err 9004 grep -v '^ *+' conftest.er1 >conftest.err
13999 rm -f conftest.er1 9005 rm -f conftest.er1
14000 cat conftest.err >&5 9006 cat conftest.err >&5
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); } && 9008 (exit $ac_status); } &&
14003 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9009 { ac_try='test -z "$ac_cxx_werror_flag"
9010 || test ! -s conftest.err'
14004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14005 (eval $ac_try) 2>&5 9012 (eval $ac_try) 2>&5
14006 ac_status=$? 9013 ac_status=$?
14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008 (exit $ac_status); }; } && 9015 (exit $ac_status); }; } &&
14062 grep -v '^ *+' conftest.er1 >conftest.err 9069 grep -v '^ *+' conftest.er1 >conftest.err
14063 rm -f conftest.er1 9070 rm -f conftest.er1
14064 cat conftest.err >&5 9071 cat conftest.err >&5
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); } && 9073 (exit $ac_status); } &&
14067 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9074 { ac_try='test -z "$ac_cxx_werror_flag"
9075 || test ! -s conftest.err'
14068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14069 (eval $ac_try) 2>&5 9077 (eval $ac_try) 2>&5
14070 ac_status=$? 9078 ac_status=$?
14071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072 (exit $ac_status); }; } && 9080 (exit $ac_status); }; } &&
14093See \`config.log' for more details." >&2;} 9101See \`config.log' for more details." >&2;}
14094 { (exit 1); exit 1; }; } ;; 9102 { (exit 1); exit 1; }; } ;;
14095esac 9103esac
14096else 9104else
14097 if test "$cross_compiling" = yes; then 9105 if test "$cross_compiling" = yes; then
14098 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 9106 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14099echo "$as_me: error: internal error: not reached in cross-compile" >&2;} 9107See \`config.log' for more details." >&5
9108echo "$as_me: error: cannot run test program while cross compiling
9109See \`config.log' for more details." >&2;}
14100 { (exit 1); exit 1; }; } 9110 { (exit 1); exit 1; }; }
14101else 9111else
14102 cat >conftest.$ac_ext <<_ACEOF 9112 cat >conftest.$ac_ext <<_ACEOF
14103/* confdefs.h. */ 9113/* confdefs.h. */
14104_ACEOF 9114_ACEOF
14205 grep -v '^ *+' conftest.er1 >conftest.err 9215 grep -v '^ *+' conftest.er1 >conftest.err
14206 rm -f conftest.er1 9216 rm -f conftest.er1
14207 cat conftest.err >&5 9217 cat conftest.err >&5
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); } && 9219 (exit $ac_status); } &&
14210 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9220 { ac_try='test -z "$ac_cxx_werror_flag"
9221 || test ! -s conftest.err'
14211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14212 (eval $ac_try) 2>&5 9223 (eval $ac_try) 2>&5
14213 ac_status=$? 9224 ac_status=$?
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); }; } && 9226 (exit $ac_status); }; } &&
14222 rxvt_cv_int16_t=yes 9233 rxvt_cv_int16_t=yes
14223else 9234else
14224 echo "$as_me: failed program was:" >&5 9235 echo "$as_me: failed program was:" >&5
14225sed 's/^/| /' conftest.$ac_ext >&5 9236sed 's/^/| /' conftest.$ac_ext >&5
14226 9237
14227if test $ac_cv_sizeof_char -ge 2; then 9238if test "$ac_cv_sizeof_char" -ge 2; then
14228 rxvt_cv_int16_t=" char" 9239 rxvt_cv_int16_t=" char"
14229else 9240else
14230 if test $ac_cv_sizeof_short -ge 2; then 9241 if test "$ac_cv_sizeof_short" -ge 2; then
14231 rxvt_cv_int16_t=" short" 9242 rxvt_cv_int16_t=" short"
14232 else 9243 else
14233 if test $ac_cv_sizeof_int -ge 2; then 9244 if test "$ac_cv_sizeof_int" -ge 2; then
14234 rxvt_cv_int16_t=" int" 9245 rxvt_cv_int16_t=" int"
14235 else 9246 else
14236 if test $ac_cv_sizeof_long -ge 2; then 9247 if test "$ac_cv_sizeof_long" -ge 2; then
14237 rxvt_cv_int16_t=" long" 9248 rxvt_cv_int16_t=" long"
14238 else 9249 else
14239 if test $ac_cv_sizeof_long_long -ge 2; then 9250 if test "$ac_cv_sizeof_long_long" -ge 2; then
14240 rxvt_cv_int16_t=" long long" 9251 rxvt_cv_int16_t=" long long"
14241 else 9252 else
14242 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default 9253 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
14243 fi 9254 fi
14244 fi 9255 fi
14287 grep -v '^ *+' conftest.er1 >conftest.err 9298 grep -v '^ *+' conftest.er1 >conftest.err
14288 rm -f conftest.er1 9299 rm -f conftest.er1
14289 cat conftest.err >&5 9300 cat conftest.err >&5
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); } && 9302 (exit $ac_status); } &&
14292 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9303 { ac_try='test -z "$ac_cxx_werror_flag"
9304 || test ! -s conftest.err'
14293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14294 (eval $ac_try) 2>&5 9306 (eval $ac_try) 2>&5
14295 ac_status=$? 9307 ac_status=$?
14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); }; } && 9309 (exit $ac_status); }; } &&
14304 rxvt_cv_uint16_t=yes 9316 rxvt_cv_uint16_t=yes
14305else 9317else
14306 echo "$as_me: failed program was:" >&5 9318 echo "$as_me: failed program was:" >&5
14307sed 's/^/| /' conftest.$ac_ext >&5 9319sed 's/^/| /' conftest.$ac_ext >&5
14308 9320
14309if test $ac_cv_sizeof_char -ge 2; then 9321if test "$ac_cv_sizeof_char" -ge 2; then
14310 rxvt_cv_uint16_t="unsigned char" 9322 rxvt_cv_uint16_t="unsigned char"
14311else 9323else
14312 if test $ac_cv_sizeof_short -ge 2; then 9324 if test "$ac_cv_sizeof_short" -ge 2; then
14313 rxvt_cv_uint16_t="unsigned short" 9325 rxvt_cv_uint16_t="unsigned short"
14314 else 9326 else
14315 if test $ac_cv_sizeof_int -ge 2; then 9327 if test "$ac_cv_sizeof_int" -ge 2; then
14316 rxvt_cv_uint16_t="unsigned int" 9328 rxvt_cv_uint16_t="unsigned int"
14317 else 9329 else
14318 if test $ac_cv_sizeof_long -ge 2; then 9330 if test "$ac_cv_sizeof_long" -ge 2; then
14319 rxvt_cv_uint16_t="unsigned long" 9331 rxvt_cv_uint16_t="unsigned long"
14320 else 9332 else
14321 if test $ac_cv_sizeof_long_long -ge 2; then 9333 if test "$ac_cv_sizeof_long_long" -ge 2; then
14322 rxvt_cv_uint16_t="unsigned long long" 9334 rxvt_cv_uint16_t="unsigned long long"
14323 else 9335 else
14324 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default 9336 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
14325 fi 9337 fi
14326 fi 9338 fi
14369 grep -v '^ *+' conftest.er1 >conftest.err 9381 grep -v '^ *+' conftest.er1 >conftest.err
14370 rm -f conftest.er1 9382 rm -f conftest.er1
14371 cat conftest.err >&5 9383 cat conftest.err >&5
14372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373 (exit $ac_status); } && 9385 (exit $ac_status); } &&
14374 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9386 { ac_try='test -z "$ac_cxx_werror_flag"
9387 || test ! -s conftest.err'
14375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14376 (eval $ac_try) 2>&5 9389 (eval $ac_try) 2>&5
14377 ac_status=$? 9390 ac_status=$?
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); }; } && 9392 (exit $ac_status); }; } &&
14386 rxvt_cv_int32_t=yes 9399 rxvt_cv_int32_t=yes
14387else 9400else
14388 echo "$as_me: failed program was:" >&5 9401 echo "$as_me: failed program was:" >&5
14389sed 's/^/| /' conftest.$ac_ext >&5 9402sed 's/^/| /' conftest.$ac_ext >&5
14390 9403
14391if test $ac_cv_sizeof_char -ge 4; then 9404if test "$ac_cv_sizeof_char" -ge 4; then
14392 rxvt_cv_int32_t=" char" 9405 rxvt_cv_int32_t=" char"
14393else 9406else
14394 if test $ac_cv_sizeof_short -ge 4; then 9407 if test "$ac_cv_sizeof_short" -ge 4; then
14395 rxvt_cv_int32_t=" short" 9408 rxvt_cv_int32_t=" short"
14396 else 9409 else
14397 if test $ac_cv_sizeof_int -ge 4; then 9410 if test "$ac_cv_sizeof_int" -ge 4; then
14398 rxvt_cv_int32_t=" int" 9411 rxvt_cv_int32_t=" int"
14399 else 9412 else
14400 if test $ac_cv_sizeof_long -ge 4; then 9413 if test "$ac_cv_sizeof_long" -ge 4; then
14401 rxvt_cv_int32_t=" long" 9414 rxvt_cv_int32_t=" long"
14402 else 9415 else
14403 if test $ac_cv_sizeof_long_long -ge 4; then 9416 if test "$ac_cv_sizeof_long_long" -ge 4; then
14404 rxvt_cv_int32_t=" long long" 9417 rxvt_cv_int32_t=" long long"
14405 else 9418 else
14406 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default 9419 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
14407 fi 9420 fi
14408 fi 9421 fi
14451 grep -v '^ *+' conftest.er1 >conftest.err 9464 grep -v '^ *+' conftest.er1 >conftest.err
14452 rm -f conftest.er1 9465 rm -f conftest.er1
14453 cat conftest.err >&5 9466 cat conftest.err >&5
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); } && 9468 (exit $ac_status); } &&
14456 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9469 { ac_try='test -z "$ac_cxx_werror_flag"
9470 || test ! -s conftest.err'
14457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14458 (eval $ac_try) 2>&5 9472 (eval $ac_try) 2>&5
14459 ac_status=$? 9473 ac_status=$?
14460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461 (exit $ac_status); }; } && 9475 (exit $ac_status); }; } &&
14468 rxvt_cv_uint32_t=yes 9482 rxvt_cv_uint32_t=yes
14469else 9483else
14470 echo "$as_me: failed program was:" >&5 9484 echo "$as_me: failed program was:" >&5
14471sed 's/^/| /' conftest.$ac_ext >&5 9485sed 's/^/| /' conftest.$ac_ext >&5
14472 9486
14473if test $ac_cv_sizeof_char -ge 4; then 9487if test "$ac_cv_sizeof_char" -ge 4; then
14474 rxvt_cv_uint32_t="unsigned char" 9488 rxvt_cv_uint32_t="unsigned char"
14475else 9489else
14476 if test $ac_cv_sizeof_short -ge 4; then 9490 if test "$ac_cv_sizeof_short" -ge 4; then
14477 rxvt_cv_uint32_t="unsigned short" 9491 rxvt_cv_uint32_t="unsigned short"
14478 else 9492 else
14479 if test $ac_cv_sizeof_int -ge 4; then 9493 if test "$ac_cv_sizeof_int" -ge 4; then
14480 rxvt_cv_uint32_t="unsigned int" 9494 rxvt_cv_uint32_t="unsigned int"
14481 else 9495 else
14482 if test $ac_cv_sizeof_long -ge 4; then 9496 if test "$ac_cv_sizeof_long" -ge 4; then
14483 rxvt_cv_uint32_t="unsigned long" 9497 rxvt_cv_uint32_t="unsigned long"
14484 else 9498 else
14485 if test $ac_cv_sizeof_long_long -ge 4; then 9499 if test "$ac_cv_sizeof_long_long" -ge 4; then
14486 rxvt_cv_uint32_t="unsigned long long" 9500 rxvt_cv_uint32_t="unsigned long long"
14487 else 9501 else
14488 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default 9502 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
14489 fi 9503 fi
14490 fi 9504 fi
14504 else 9518 else
14505 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" 9519 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
14506 fi 9520 fi
14507fi 9521fi
14508 9522
14509if test $ac_cv_sizeof_int_p -eq 8; then 9523if test "$ac_cv_sizeof_int_p" -eq 8; then
14510 rxvt_intp_define="#define intp_t int64_t" 9524 rxvt_intp_define="#define intp_t int64_t"
14511 rxvt_u_intp_define="#define u_intp_t u_int64_t" 9525 rxvt_u_intp_define="#define u_intp_t u_int64_t"
14512else 9526else
14513 if test $ac_cv_sizeof_int_p -eq 4; then 9527 if test "$ac_cv_sizeof_int_p" -eq 4; then
14514 rxvt_intp_define="#define intp_t int32_t" 9528 rxvt_intp_define="#define intp_t int32_t"
14515 rxvt_u_intp_define="#define u_intp_t u_int32_t" 9529 rxvt_u_intp_define="#define u_intp_t u_int32_t"
14516 else 9530 else
14517 if test $ac_cv_sizeof_int_p -eq 2; then 9531 if test "$ac_cv_sizeof_int_p" -eq 2; then
14518 rxvt_intp_define="#define intp_t int16_t" 9532 rxvt_intp_define="#define intp_t int16_t"
14519 rxvt_u_intp_define="#define u_intp_t u_int16_t" 9533 rxvt_u_intp_define="#define u_intp_t u_int16_t"
14520 else 9534 else
14521 rxvt_intp_define="#error set intp_t" 9535 rxvt_intp_define="#error set intp_t"
14522 rxvt_u_intp_define="#error set u_intp_t" 9536 rxvt_u_intp_define="#error set u_intp_t"
14563 grep -v '^ *+' conftest.er1 >conftest.err 9577 grep -v '^ *+' conftest.er1 >conftest.err
14564 rm -f conftest.er1 9578 rm -f conftest.er1
14565 cat conftest.err >&5 9579 cat conftest.err >&5
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); } && 9581 (exit $ac_status); } &&
14568 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9582 { ac_try='test -z "$ac_cxx_werror_flag"
9583 || test ! -s conftest.err'
14569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14570 (eval $ac_try) 2>&5 9585 (eval $ac_try) 2>&5
14571 ac_status=$? 9586 ac_status=$?
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); }; } && 9588 (exit $ac_status); }; } &&
14593#define RETSIGTYPE $ac_cv_type_signal 9608#define RETSIGTYPE $ac_cv_type_signal
14594_ACEOF 9609_ACEOF
14595 9610
14596 9611
14597 9612
14598case "$host_alias" in
14599 *ultrix) ac_cv_func_setsid='no' ;;
14600 *) break;;
14601esac
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618 9613
14619 9614
14620 9615
14621for ac_func in \ 9616for ac_func in \
14622 atexit \
14623 revoke \
14624 unsetenv \ 9617 unsetenv \
14625 setutent \ 9618 setutent \
14626 seteuid \
14627 setreuid \
14628 setsid \
14629 setpgrp \
14630 setpgid \
14631 openpty \
14632 _getpty \
14633 grantpt \
14634 unlockpt \
14635 isastream \
14636 on_exit \ 9619 on_exit \
14637 nanosleep \
14638 updwtmp \
14639 ttyslot \
14640 9620
14641do 9621do
14642as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9622as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14643echo "$as_me:$LINENO: checking for $ac_func" >&5 9623echo "$as_me:$LINENO: checking for $ac_func" >&5
14644echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9624echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14703 grep -v '^ *+' conftest.er1 >conftest.err 9683 grep -v '^ *+' conftest.er1 >conftest.err
14704 rm -f conftest.er1 9684 rm -f conftest.er1
14705 cat conftest.err >&5 9685 cat conftest.err >&5
14706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707 (exit $ac_status); } && 9687 (exit $ac_status); } &&
14708 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9688 { ac_try='test -z "$ac_cxx_werror_flag"
9689 || test ! -s conftest.err'
14709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14710 (eval $ac_try) 2>&5 9691 (eval $ac_try) 2>&5
14711 ac_status=$? 9692 ac_status=$?
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); }; } && 9694 (exit $ac_status); }; } &&
14737fi 9718fi
14738done 9719done
14739 9720
14740 9721
14741 9722
9723support_utmp=yes
9724support_wtmp=yes
9725support_lastlog=yes
9726
9727# Check whether --enable-utmp or --disable-utmp was given.
9728if test "${enable_utmp+set}" = set; then
9729 enableval="$enable_utmp"
9730 if test x$enableval = xyes -o x$enableval = xno; then
9731 support_utmp=$enableval
9732 fi
9733fi;
9734
9735# Check whether --enable-wtmp or --disable-wtmp was given.
9736if test "${enable_wtmp+set}" = set; then
9737 enableval="$enable_wtmp"
9738 if test x$enableval = xyes -o x$enableval = xno; then
9739 support_wtmp=$enableval
9740 fi
9741fi;
9742
9743# Check whether --enable-lastlog or --disable-lastlog was given.
9744if test "${enable_lastlog+set}" = set; then
9745 enableval="$enable_lastlog"
9746 if test x$enableval = xyes -o x$enableval = xno; then
9747 support_lastlog=$enableval
9748 fi
9749fi;
9750
9751if test x$support_utmp = xyes; then
9752
9753cat >>confdefs.h <<\_ACEOF
9754#define UTMP_SUPPORT 1
9755_ACEOF
9756
9757fi
9758if test x$support_wtmp = xyes; then
9759
9760cat >>confdefs.h <<\_ACEOF
9761#define WTMP_SUPPORT 1
9762_ACEOF
9763
9764fi
9765if test x$support_lastlog = xyes; then
9766
9767cat >>confdefs.h <<\_ACEOF
9768#define LASTLOG_SUPPORT 1
9769_ACEOF
9770
9771fi
9772
9773
9774
9775
9776for ac_func in \
9777 ttyslot \
9778 updwtmp \
9779 updwtmpx \
9780
9781do
9782as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9783echo "$as_me:$LINENO: checking for $ac_func" >&5
9784echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9785if eval "test \"\${$as_ac_var+set}\" = set"; then
9786 echo $ECHO_N "(cached) $ECHO_C" >&6
9787else
9788 cat >conftest.$ac_ext <<_ACEOF
9789/* confdefs.h. */
9790_ACEOF
9791cat confdefs.h >>conftest.$ac_ext
9792cat >>conftest.$ac_ext <<_ACEOF
9793/* end confdefs.h. */
9794/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9796#define $ac_func innocuous_$ac_func
9797
9798/* System header to define __stub macros and hopefully few prototypes,
9799 which can conflict with char $ac_func (); below.
9800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9801 <limits.h> exists even on freestanding compilers. */
9802
9803#ifdef __STDC__
9804# include <limits.h>
9805#else
9806# include <assert.h>
9807#endif
9808
9809#undef $ac_func
9810
9811/* Override any gcc2 internal prototype to avoid an error. */
9812#ifdef __cplusplus
9813extern "C"
9814{
9815#endif
9816/* We use char because int might match the return type of a gcc2
9817 builtin and then its argument prototype would still apply. */
9818char $ac_func ();
9819/* The GNU C library defines this for functions which it implements
9820 to always fail with ENOSYS. Some functions are actually named
9821 something starting with __ and the normal name is an alias. */
9822#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9823choke me
9824#else
9825char (*f) () = $ac_func;
9826#endif
9827#ifdef __cplusplus
9828}
9829#endif
9830
9831int
9832main ()
9833{
9834return f != $ac_func;
9835 ;
9836 return 0;
9837}
9838_ACEOF
9839rm -f conftest.$ac_objext conftest$ac_exeext
9840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9841 (eval $ac_link) 2>conftest.er1
9842 ac_status=$?
9843 grep -v '^ *+' conftest.er1 >conftest.err
9844 rm -f conftest.er1
9845 cat conftest.err >&5
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); } &&
9848 { ac_try='test -z "$ac_cxx_werror_flag"
9849 || test ! -s conftest.err'
9850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851 (eval $ac_try) 2>&5
9852 ac_status=$?
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); }; } &&
9855 { ac_try='test -s conftest$ac_exeext'
9856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857 (eval $ac_try) 2>&5
9858 ac_status=$?
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); }; }; then
9861 eval "$as_ac_var=yes"
9862else
9863 echo "$as_me: failed program was:" >&5
9864sed 's/^/| /' conftest.$ac_ext >&5
9865
9866eval "$as_ac_var=no"
9867fi
9868rm -f conftest.err conftest.$ac_objext \
9869 conftest$ac_exeext conftest.$ac_ext
9870fi
9871echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9872echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9873if test `eval echo '${'$as_ac_var'}'` = yes; then
9874 cat >>confdefs.h <<_ACEOF
9875#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9876_ACEOF
9877
9878fi
9879done
9880
9881
9882
9883
9884
9885for ac_header in \
9886 utmp.h \
9887 utmpx.h \
9888 lastlog.h \
9889
9890do
9891as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9892if eval "test \"\${$as_ac_Header+set}\" = set"; then
9893 echo "$as_me:$LINENO: checking for $ac_header" >&5
9894echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9895if eval "test \"\${$as_ac_Header+set}\" = set"; then
9896 echo $ECHO_N "(cached) $ECHO_C" >&6
9897fi
9898echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9899echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9900else
9901 # Is the header compilable?
9902echo "$as_me:$LINENO: checking $ac_header usability" >&5
9903echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9904cat >conftest.$ac_ext <<_ACEOF
9905/* confdefs.h. */
9906_ACEOF
9907cat confdefs.h >>conftest.$ac_ext
9908cat >>conftest.$ac_ext <<_ACEOF
9909/* end confdefs.h. */
9910$ac_includes_default
9911#include <$ac_header>
9912_ACEOF
9913rm -f conftest.$ac_objext
9914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9915 (eval $ac_compile) 2>conftest.er1
9916 ac_status=$?
9917 grep -v '^ *+' conftest.er1 >conftest.err
9918 rm -f conftest.er1
9919 cat conftest.err >&5
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); } &&
9922 { ac_try='test -z "$ac_cxx_werror_flag"
9923 || test ! -s conftest.err'
9924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9925 (eval $ac_try) 2>&5
9926 ac_status=$?
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); }; } &&
9929 { ac_try='test -s conftest.$ac_objext'
9930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9931 (eval $ac_try) 2>&5
9932 ac_status=$?
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); }; }; then
9935 ac_header_compiler=yes
9936else
9937 echo "$as_me: failed program was:" >&5
9938sed 's/^/| /' conftest.$ac_ext >&5
9939
9940ac_header_compiler=no
9941fi
9942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9943echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9944echo "${ECHO_T}$ac_header_compiler" >&6
9945
9946# Is the header present?
9947echo "$as_me:$LINENO: checking $ac_header presence" >&5
9948echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9949cat >conftest.$ac_ext <<_ACEOF
9950/* confdefs.h. */
9951_ACEOF
9952cat confdefs.h >>conftest.$ac_ext
9953cat >>conftest.$ac_ext <<_ACEOF
9954/* end confdefs.h. */
9955#include <$ac_header>
9956_ACEOF
9957if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9958 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9959 ac_status=$?
9960 grep -v '^ *+' conftest.er1 >conftest.err
9961 rm -f conftest.er1
9962 cat conftest.err >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); } >/dev/null; then
9965 if test -s conftest.err; then
9966 ac_cpp_err=$ac_cxx_preproc_warn_flag
9967 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9968 else
9969 ac_cpp_err=
9970 fi
9971else
9972 ac_cpp_err=yes
9973fi
9974if test -z "$ac_cpp_err"; then
9975 ac_header_preproc=yes
9976else
9977 echo "$as_me: failed program was:" >&5
9978sed 's/^/| /' conftest.$ac_ext >&5
9979
9980 ac_header_preproc=no
9981fi
9982rm -f conftest.err conftest.$ac_ext
9983echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9984echo "${ECHO_T}$ac_header_preproc" >&6
9985
9986# So? What about this header?
9987case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9988 yes:no: )
9989 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9990echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9992echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9993 ac_header_preproc=yes
9994 ;;
9995 no:yes:* )
9996 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9997echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9998 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9999echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10000 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10001echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10002 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10003echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10005echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10006 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10007echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10008 (
10009 cat <<\_ASBOX
10010## ------------------------------------------ ##
10011## Report this to the AC_PACKAGE_NAME lists. ##
10012## ------------------------------------------ ##
10013_ASBOX
10014 ) |
10015 sed "s/^/$as_me: WARNING: /" >&2
10016 ;;
10017esac
10018echo "$as_me:$LINENO: checking for $ac_header" >&5
10019echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10020if eval "test \"\${$as_ac_Header+set}\" = set"; then
10021 echo $ECHO_N "(cached) $ECHO_C" >&6
10022else
10023 eval "$as_ac_Header=\$ac_header_preproc"
10024fi
10025echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10026echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10027
10028fi
10029if test `eval echo '${'$as_ac_Header'}'` = yes; then
10030 cat >>confdefs.h <<_ACEOF
10031#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10032_ACEOF
10033
10034fi
10035
10036done
10037
10038
10039
14742if test "${ac_cv_header_utmp_h+set}" = set; then 10040if test "${ac_cv_header_utmp_h+set}" = set; then
14743 echo "$as_me:$LINENO: checking for utmp.h" >&5 10041 echo "$as_me:$LINENO: checking for utmp.h" >&5
14744echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6 10042echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
14745if test "${ac_cv_header_utmp_h+set}" = set; then 10043if test "${ac_cv_header_utmp_h+set}" = set; then
14746 echo $ECHO_N "(cached) $ECHO_C" >&6 10044 echo $ECHO_N "(cached) $ECHO_C" >&6
14767 grep -v '^ *+' conftest.er1 >conftest.err 10065 grep -v '^ *+' conftest.er1 >conftest.err
14768 rm -f conftest.er1 10066 rm -f conftest.er1
14769 cat conftest.err >&5 10067 cat conftest.err >&5
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); } && 10069 (exit $ac_status); } &&
14772 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10070 { ac_try='test -z "$ac_cxx_werror_flag"
10071 || test ! -s conftest.err'
14773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14774 (eval $ac_try) 2>&5 10073 (eval $ac_try) 2>&5
14775 ac_status=$? 10074 ac_status=$?
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); }; } && 10076 (exit $ac_status); }; } &&
14876 10175
14877fi 10176fi
14878if test $ac_cv_header_utmp_h = yes; then 10177if test $ac_cv_header_utmp_h = yes; then
14879 echo "$as_me:$LINENO: checking for struct utmp" >&5 10178 echo "$as_me:$LINENO: checking for struct utmp" >&5
14880echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6 10179echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6
14881if test "${rxvt_cv_struct_utmp+set}" = set; then 10180if test "${struct_utmp+set}" = set; then
14882 echo $ECHO_N "(cached) $ECHO_C" >&6 10181 echo $ECHO_N "(cached) $ECHO_C" >&6
14883else 10182else
14884 cat >conftest.$ac_ext <<_ACEOF 10183 cat >conftest.$ac_ext <<_ACEOF
14885/* confdefs.h. */ 10184/* confdefs.h. */
14886_ACEOF 10185_ACEOF
14887cat confdefs.h >>conftest.$ac_ext 10186cat confdefs.h >>conftest.$ac_ext
14888cat >>conftest.$ac_ext <<_ACEOF 10187cat >>conftest.$ac_ext <<_ACEOF
14889/* end confdefs.h. */ 10188/* end confdefs.h. */
14890#include <sys/types.h> 10189#include <sys/types.h>
14891#include <stdint.h>
14892#include <utmp.h> 10190#include <utmp.h>
14893int 10191int
14894main () 10192main ()
14895{ 10193{
14896struct utmp ut; 10194struct utmp ut;
14905 grep -v '^ *+' conftest.er1 >conftest.err 10203 grep -v '^ *+' conftest.er1 >conftest.err
14906 rm -f conftest.er1 10204 rm -f conftest.er1
14907 cat conftest.err >&5 10205 cat conftest.err >&5
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); } && 10207 (exit $ac_status); } &&
14910 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10208 { ac_try='test -z "$ac_cxx_werror_flag"
10209 || test ! -s conftest.err'
14911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14912 (eval $ac_try) 2>&5 10211 (eval $ac_try) 2>&5
14913 ac_status=$? 10212 ac_status=$?
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); }; } && 10214 (exit $ac_status); }; } &&
14917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14918 (eval $ac_try) 2>&5 10217 (eval $ac_try) 2>&5
14919 ac_status=$? 10218 ac_status=$?
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); }; }; then 10220 (exit $ac_status); }; }; then
14922 rxvt_cv_struct_utmp=yes 10221 struct_utmp=yes
14923else 10222else
14924 echo "$as_me: failed program was:" >&5 10223 echo "$as_me: failed program was:" >&5
14925sed 's/^/| /' conftest.$ac_ext >&5 10224sed 's/^/| /' conftest.$ac_ext >&5
14926 10225
14927rxvt_cv_struct_utmp=no 10226struct_utmp=no
14928fi 10227fi
14929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14930fi 10229fi
14931echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5 10230echo "$as_me:$LINENO: result: $struct_utmp" >&5
14932echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6 10231echo "${ECHO_T}$struct_utmp" >&6
14933if test x$rxvt_cv_struct_utmp = xyes; then 10232if test x$struct_utmp = xyes; then
14934 10233
14935cat >>confdefs.h <<\_ACEOF 10234cat >>confdefs.h <<\_ACEOF
14936#define HAVE_STRUCT_UTMP 1 10235#define HAVE_STRUCT_UTMP 1
14937_ACEOF 10236_ACEOF
14938 10237
14939fi 10238fi
14940 10239
14941 10240
14942echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5 10241echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
14943echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6 10242echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6
14944if test "${rxvt_cv_struct_utmp_host+set}" = set; then 10243if test "${struct_utmp_host+set}" = set; then
14945 echo $ECHO_N "(cached) $ECHO_C" >&6 10244 echo $ECHO_N "(cached) $ECHO_C" >&6
14946else 10245else
14947 cat >conftest.$ac_ext <<_ACEOF 10246 cat >conftest.$ac_ext <<_ACEOF
14948/* confdefs.h. */ 10247/* confdefs.h. */
14949_ACEOF 10248_ACEOF
14967 grep -v '^ *+' conftest.er1 >conftest.err 10266 grep -v '^ *+' conftest.er1 >conftest.err
14968 rm -f conftest.er1 10267 rm -f conftest.er1
14969 cat conftest.err >&5 10268 cat conftest.err >&5
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); } && 10270 (exit $ac_status); } &&
14972 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10271 { ac_try='test -z "$ac_cxx_werror_flag"
10272 || test ! -s conftest.err'
14973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14974 (eval $ac_try) 2>&5 10274 (eval $ac_try) 2>&5
14975 ac_status=$? 10275 ac_status=$?
14976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977 (exit $ac_status); }; } && 10277 (exit $ac_status); }; } &&
14979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14980 (eval $ac_try) 2>&5 10280 (eval $ac_try) 2>&5
14981 ac_status=$? 10281 ac_status=$?
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); }; }; then 10283 (exit $ac_status); }; }; then
14984 rxvt_cv_struct_utmp_host=yes 10284 struct_utmp_host=yes
14985else 10285else
14986 echo "$as_me: failed program was:" >&5 10286 echo "$as_me: failed program was:" >&5
14987sed 's/^/| /' conftest.$ac_ext >&5 10287sed 's/^/| /' conftest.$ac_ext >&5
14988 10288
14989rxvt_cv_struct_utmp_host=no 10289struct_utmp_host=no
14990fi 10290fi
14991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14992fi 10292fi
14993echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5 10293echo "$as_me:$LINENO: result: $struct_utmp_host" >&5
14994echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6 10294echo "${ECHO_T}$struct_utmp_host" >&6
14995if test x$rxvt_cv_struct_utmp_host = xyes; then 10295if test x$struct_utmp_host = xyes; then
14996 10296
14997cat >>confdefs.h <<\_ACEOF 10297cat >>confdefs.h <<\_ACEOF
14998#define HAVE_UTMP_HOST 1 10298#define HAVE_UTMP_HOST 1
14999_ACEOF 10299_ACEOF
15000 10300
15001fi 10301fi
15002 10302
15003echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5 10303echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
15004echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6 10304echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6
15005if test "${rxvt_cv_struct_utmp_pid+set}" = set; then 10305if test "${struct_utmp_pid+set}" = set; then
15006 echo $ECHO_N "(cached) $ECHO_C" >&6 10306 echo $ECHO_N "(cached) $ECHO_C" >&6
15007else 10307else
15008 cat >conftest.$ac_ext <<_ACEOF 10308 cat >conftest.$ac_ext <<_ACEOF
15009/* confdefs.h. */ 10309/* confdefs.h. */
15010_ACEOF 10310_ACEOF
15028 grep -v '^ *+' conftest.er1 >conftest.err 10328 grep -v '^ *+' conftest.er1 >conftest.err
15029 rm -f conftest.er1 10329 rm -f conftest.er1
15030 cat conftest.err >&5 10330 cat conftest.err >&5
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); } && 10332 (exit $ac_status); } &&
15033 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10333 { ac_try='test -z "$ac_cxx_werror_flag"
10334 || test ! -s conftest.err'
15034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15035 (eval $ac_try) 2>&5 10336 (eval $ac_try) 2>&5
15036 ac_status=$? 10337 ac_status=$?
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); }; } && 10339 (exit $ac_status); }; } &&
15040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15041 (eval $ac_try) 2>&5 10342 (eval $ac_try) 2>&5
15042 ac_status=$? 10343 ac_status=$?
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); }; }; then 10345 (exit $ac_status); }; }; then
15045 rxvt_cv_struct_utmp_pid=yes 10346 struct_utmp_pid=yes
15046else 10347else
15047 echo "$as_me: failed program was:" >&5 10348 echo "$as_me: failed program was:" >&5
15048sed 's/^/| /' conftest.$ac_ext >&5 10349sed 's/^/| /' conftest.$ac_ext >&5
15049 10350
15050rxvt_cv_struct_utmp_pid=no 10351struct_utmp_pid=no
15051fi 10352fi
15052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15053fi 10354fi
15054echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5 10355echo "$as_me:$LINENO: result: $struct_utmp_pid" >&5
15055echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6 10356echo "${ECHO_T}$struct_utmp_pid" >&6
15056if test x$rxvt_cv_struct_utmp_pid = xyes; then 10357if test x$struct_utmp_pid = xyes; then
15057 10358
15058cat >>confdefs.h <<\_ACEOF 10359cat >>confdefs.h <<\_ACEOF
15059#define HAVE_UTMP_PID 1 10360#define HAVE_UTMP_PID 1
15060_ACEOF 10361_ACEOF
15061 10362
15093 grep -v '^ *+' conftest.er1 >conftest.err 10394 grep -v '^ *+' conftest.er1 >conftest.err
15094 rm -f conftest.er1 10395 rm -f conftest.er1
15095 cat conftest.err >&5 10396 cat conftest.err >&5
15096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 (exit $ac_status); } && 10398 (exit $ac_status); } &&
15098 { 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'
15099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15100 (eval $ac_try) 2>&5 10402 (eval $ac_try) 2>&5
15101 ac_status=$? 10403 ac_status=$?
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); }; } && 10405 (exit $ac_status); }; } &&
15202 10504
15203fi 10505fi
15204if test $ac_cv_header_utmpx_h = yes; then 10506if test $ac_cv_header_utmpx_h = yes; then
15205 echo "$as_me:$LINENO: checking for struct utmpx" >&5 10507 echo "$as_me:$LINENO: checking for struct utmpx" >&5
15206echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6 10508echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6
15207if test "${rxvt_cv_struct_utmpx+set}" = set; then 10509if test "${struct_utmpx+set}" = set; then
15208 echo $ECHO_N "(cached) $ECHO_C" >&6 10510 echo $ECHO_N "(cached) $ECHO_C" >&6
15209else 10511else
15210 cat >conftest.$ac_ext <<_ACEOF 10512 cat >conftest.$ac_ext <<_ACEOF
15211/* confdefs.h. */ 10513/* confdefs.h. */
15212_ACEOF 10514_ACEOF
15230 grep -v '^ *+' conftest.er1 >conftest.err 10532 grep -v '^ *+' conftest.er1 >conftest.err
15231 rm -f conftest.er1 10533 rm -f conftest.er1
15232 cat conftest.err >&5 10534 cat conftest.err >&5
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); } && 10536 (exit $ac_status); } &&
15235 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10537 { ac_try='test -z "$ac_cxx_werror_flag"
10538 || test ! -s conftest.err'
15236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15237 (eval $ac_try) 2>&5 10540 (eval $ac_try) 2>&5
15238 ac_status=$? 10541 ac_status=$?
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); }; } && 10543 (exit $ac_status); }; } &&
15242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15243 (eval $ac_try) 2>&5 10546 (eval $ac_try) 2>&5
15244 ac_status=$? 10547 ac_status=$?
15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); }; }; then 10549 (exit $ac_status); }; }; then
15247 rxvt_cv_struct_utmpx=yes 10550 struct_utmpx=yes
15248else 10551else
15249 echo "$as_me: failed program was:" >&5 10552 echo "$as_me: failed program was:" >&5
15250sed 's/^/| /' conftest.$ac_ext >&5 10553sed 's/^/| /' conftest.$ac_ext >&5
15251 10554
15252rxvt_cv_struct_utmpx=no 10555struct_utmpx=no
15253fi 10556fi
15254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15255fi 10558fi
15256echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5 10559echo "$as_me:$LINENO: result: $struct_utmpx" >&5
15257echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6 10560echo "${ECHO_T}$struct_utmpx" >&6
15258if test x$rxvt_cv_struct_utmpx = xyes; then 10561if test x$struct_utmpx = xyes; then
15259 10562
15260cat >>confdefs.h <<\_ACEOF 10563cat >>confdefs.h <<\_ACEOF
15261#define HAVE_STRUCT_UTMPX 1 10564#define HAVE_STRUCT_UTMPX 1
15262_ACEOF 10565_ACEOF
15263 10566
15264fi 10567fi
15265 10568
15266 10569
15267echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 10570echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
15268echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6 10571echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6
15269if test "${rxvt_cv_struct_utmpx_host+set}" = set; then 10572if test "${struct_utmpx_host+set}" = set; then
15270 echo $ECHO_N "(cached) $ECHO_C" >&6 10573 echo $ECHO_N "(cached) $ECHO_C" >&6
15271else 10574else
15272 cat >conftest.$ac_ext <<_ACEOF 10575 cat >conftest.$ac_ext <<_ACEOF
15273/* confdefs.h. */ 10576/* confdefs.h. */
15274_ACEOF 10577_ACEOF
15292 grep -v '^ *+' conftest.er1 >conftest.err 10595 grep -v '^ *+' conftest.er1 >conftest.err
15293 rm -f conftest.er1 10596 rm -f conftest.er1
15294 cat conftest.err >&5 10597 cat conftest.err >&5
15295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296 (exit $ac_status); } && 10599 (exit $ac_status); } &&
15297 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10600 { ac_try='test -z "$ac_cxx_werror_flag"
10601 || test ! -s conftest.err'
15298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15299 (eval $ac_try) 2>&5 10603 (eval $ac_try) 2>&5
15300 ac_status=$? 10604 ac_status=$?
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); }; } && 10606 (exit $ac_status); }; } &&
15304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15305 (eval $ac_try) 2>&5 10609 (eval $ac_try) 2>&5
15306 ac_status=$? 10610 ac_status=$?
15307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308 (exit $ac_status); }; }; then 10612 (exit $ac_status); }; }; then
15309 rxvt_cv_struct_utmpx_host=yes 10613 struct_utmpx_host=yes
15310else 10614else
15311 echo "$as_me: failed program was:" >&5 10615 echo "$as_me: failed program was:" >&5
15312sed 's/^/| /' conftest.$ac_ext >&5 10616sed 's/^/| /' conftest.$ac_ext >&5
15313 10617
15314rxvt_cv_struct_utmpx_host=no 10618struct_utmpx_host=no
15315fi 10619fi
15316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15317fi 10621fi
15318echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5 10622echo "$as_me:$LINENO: result: $struct_utmpx_host" >&5
15319echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6 10623echo "${ECHO_T}$struct_utmpx_host" >&6
15320if test x$rxvt_cv_struct_utmpx_host = xyes; then 10624if test x$struct_utmpx_host = xyes; then
15321 10625
15322cat >>confdefs.h <<\_ACEOF 10626cat >>confdefs.h <<\_ACEOF
15323#define HAVE_UTMPX_HOST 1 10627#define HAVE_UTMPX_HOST 1
15324_ACEOF 10628_ACEOF
15325 10629
15326fi 10630fi
15327 10631
15328fi 10632echo "$as_me:$LINENO: checking for session in utmpx struct" >&5
10633echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6
10634if test "${struct_utmpx_session+set}" = set; then
10635 echo $ECHO_N "(cached) $ECHO_C" >&6
10636else
10637 cat >conftest.$ac_ext <<_ACEOF
10638/* confdefs.h. */
10639_ACEOF
10640cat confdefs.h >>conftest.$ac_ext
10641cat >>conftest.$ac_ext <<_ACEOF
10642/* end confdefs.h. */
10643#include <sys/types.h>
10644#include <utmpx.h>
10645int
10646main ()
10647{
10648struct utmpx utx; utx.ut_session;
10649 ;
10650 return 0;
10651}
10652_ACEOF
10653rm -f conftest.$ac_objext
10654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10655 (eval $ac_compile) 2>conftest.er1
10656 ac_status=$?
10657 grep -v '^ *+' conftest.er1 >conftest.err
10658 rm -f conftest.er1
10659 cat conftest.err >&5
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); } &&
10662 { ac_try='test -z "$ac_cxx_werror_flag"
10663 || test ! -s conftest.err'
10664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665 (eval $ac_try) 2>&5
10666 ac_status=$?
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); }; } &&
10669 { ac_try='test -s conftest.$ac_objext'
10670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671 (eval $ac_try) 2>&5
10672 ac_status=$?
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); }; }; then
10675 struct_utmpx_session=yes
10676else
10677 echo "$as_me: failed program was:" >&5
10678sed 's/^/| /' conftest.$ac_ext >&5
15329 10679
10680struct_utmpx_session=no
10681fi
10682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10683fi
10684echo "$as_me:$LINENO: result: $struct_utmpx_session" >&5
10685echo "${ECHO_T}$struct_utmpx_session" >&6
10686if test x$struct_utmpx_session = xyes; then
10687
10688cat >>confdefs.h <<\_ACEOF
10689#define HAVE_UTMPX_SESSION 1
10690_ACEOF
10691
10692fi
10693
10694fi
15330 10695
15331 10696
15332echo "$as_me:$LINENO: checking for struct lastlog" >&5 10697echo "$as_me:$LINENO: checking for struct lastlog" >&5
15333echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 10698echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
15334if test "${rxvt_cv_struct_lastlog+set}" = set; then 10699if test "${struct_lastlog+set}" = set; then
15335 echo $ECHO_N "(cached) $ECHO_C" >&6 10700 echo $ECHO_N "(cached) $ECHO_C" >&6
15336else 10701else
15337 cat >conftest.$ac_ext <<_ACEOF 10702 cat >conftest.$ac_ext <<_ACEOF
15338/* confdefs.h. */ 10703/* confdefs.h. */
15339_ACEOF 10704_ACEOF
15361 grep -v '^ *+' conftest.er1 >conftest.err 10726 grep -v '^ *+' conftest.er1 >conftest.err
15362 rm -f conftest.er1 10727 rm -f conftest.er1
15363 cat conftest.err >&5 10728 cat conftest.err >&5
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); } && 10730 (exit $ac_status); } &&
15366 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10731 { ac_try='test -z "$ac_cxx_werror_flag"
10732 || test ! -s conftest.err'
15367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15368 (eval $ac_try) 2>&5 10734 (eval $ac_try) 2>&5
15369 ac_status=$? 10735 ac_status=$?
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); }; } && 10737 (exit $ac_status); }; } &&
15373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15374 (eval $ac_try) 2>&5 10740 (eval $ac_try) 2>&5
15375 ac_status=$? 10741 ac_status=$?
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); }; }; then 10743 (exit $ac_status); }; }; then
15378 rxvt_cv_struct_lastlog=yes 10744 struct_lastlog=yes
15379else 10745else
15380 echo "$as_me: failed program was:" >&5 10746 echo "$as_me: failed program was:" >&5
15381sed 's/^/| /' conftest.$ac_ext >&5 10747sed 's/^/| /' conftest.$ac_ext >&5
15382 10748
15383rxvt_cv_struct_lastlog=no 10749struct_lastlog=no
15384fi 10750fi
15385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15386fi 10752fi
15387echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5 10753echo "$as_me:$LINENO: result: $struct_lastlog" >&5
15388echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6 10754echo "${ECHO_T}$struct_lastlog" >&6
15389if test x$rxvt_cv_struct_lastlog = xyes; then 10755if test x$struct_lastlog = xyes; then
15390 10756
15391cat >>confdefs.h <<\_ACEOF 10757cat >>confdefs.h <<\_ACEOF
15392#define HAVE_STRUCT_LASTLOG 1 10758#define HAVE_STRUCT_LASTLOG 1
15393_ACEOF 10759_ACEOF
15394 10760
15395fi 10761fi
15396 10762
15397echo "$as_me:$LINENO: checking for struct lastlogx" >&5 10763echo "$as_me:$LINENO: checking for struct lastlogx" >&5
15398echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6 10764echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6
15399if test "${rxvt_cv_struct_lastlogx+set}" = set; then 10765if test "${struct_lastlogx+set}" = set; then
15400 echo $ECHO_N "(cached) $ECHO_C" >&6 10766 echo $ECHO_N "(cached) $ECHO_C" >&6
15401else 10767else
15402 cat >conftest.$ac_ext <<_ACEOF 10768 cat >conftest.$ac_ext <<_ACEOF
15403/* confdefs.h. */ 10769/* confdefs.h. */
15404_ACEOF 10770_ACEOF
15426 grep -v '^ *+' conftest.er1 >conftest.err 10792 grep -v '^ *+' conftest.er1 >conftest.err
15427 rm -f conftest.er1 10793 rm -f conftest.er1
15428 cat conftest.err >&5 10794 cat conftest.err >&5
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); } && 10796 (exit $ac_status); } &&
15431 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10797 { ac_try='test -z "$ac_cxx_werror_flag"
10798 || test ! -s conftest.err'
15432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15433 (eval $ac_try) 2>&5 10800 (eval $ac_try) 2>&5
15434 ac_status=$? 10801 ac_status=$?
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); }; } && 10803 (exit $ac_status); }; } &&
15438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15439 (eval $ac_try) 2>&5 10806 (eval $ac_try) 2>&5
15440 ac_status=$? 10807 ac_status=$?
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); }; }; then 10809 (exit $ac_status); }; }; then
15443 rxvt_cv_struct_lastlogx=yes 10810 struct_lastlogx=yes
15444else 10811else
15445 echo "$as_me: failed program was:" >&5 10812 echo "$as_me: failed program was:" >&5
15446sed 's/^/| /' conftest.$ac_ext >&5 10813sed 's/^/| /' conftest.$ac_ext >&5
15447 10814
15448rxvt_cv_struct_lastlogx=no 10815struct_lastlogx=no
15449fi 10816fi
15450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15451fi 10818fi
15452echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5 10819echo "$as_me:$LINENO: result: $struct_lastlogx" >&5
15453echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6 10820echo "${ECHO_T}$struct_lastlogx" >&6
15454if test x$rxvt_cv_struct_lastlogx = xyes; then 10821if test x$struct_lastlogx = xyes; then
15455 10822
15456cat >>confdefs.h <<\_ACEOF 10823cat >>confdefs.h <<\_ACEOF
15457#define HAVE_STRUCT_LASTLOGX 1 10824#define HAVE_STRUCT_LASTLOGX 1
15458_ACEOF 10825_ACEOF
15459 10826
15460fi 10827fi
15461 10828
15462 10829
15463echo "$as_me:$LINENO: checking where utmp is located" >&5 10830echo "$as_me:$LINENO: checking where utmp is located" >&5
15464echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6 10831echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6
15465if test "${rxvt_cv_path_utmp+set}" = set; then 10832if test "${path_utmp+set}" = set; then
15466 echo $ECHO_N "(cached) $ECHO_C" >&6 10833 echo $ECHO_N "(cached) $ECHO_C" >&6
15467else 10834else
15468 if test "$cross_compiling" = yes; then 10835 if test "$cross_compiling" = yes; then
15469 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5 10836 { echo "$as_me:$LINENO: WARNING: Define UTMP_FILE in config.h manually" >&5
15470echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;} 10837echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;}
15471else 10838else
15472 cat >conftest.$ac_ext <<_ACEOF 10839 cat >conftest.$ac_ext <<_ACEOF
15473/* confdefs.h. */ 10840/* confdefs.h. */
15474_ACEOF 10841_ACEOF
15475cat confdefs.h >>conftest.$ac_ext 10842cat confdefs.h >>conftest.$ac_ext
15476cat >>conftest.$ac_ext <<_ACEOF 10843cat >>conftest.$ac_ext <<_ACEOF
15477/* end confdefs.h. */ 10844/* end confdefs.h. */
15478#include <stdio.h> 10845#include <stdio.h>
10846#include <stdlib.h>
15479#include <sys/types.h> 10847#include <sys/types.h>
15480#include <utmp.h> 10848#include <utmp.h>
15481#include <errno.h> 10849#include <errno.h>
15482main() 10850main()
15483{ 10851{
15511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15512 (eval $ac_try) 2>&5 10880 (eval $ac_try) 2>&5
15513 ac_status=$? 10881 ac_status=$?
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); }; }; then 10883 (exit $ac_status); }; }; then
15516 rxvt_cv_path_utmp=`cat conftestval` 10884 path_utmp=`cat conftestval`
15517else 10885else
15518 echo "$as_me: program exited with status $ac_status" >&5 10886 echo "$as_me: program exited with status $ac_status" >&5
15519echo "$as_me: failed program was:" >&5 10887echo "$as_me: failed program was:" >&5
15520sed 's/^/| /' conftest.$ac_ext >&5 10888sed 's/^/| /' conftest.$ac_ext >&5
15521 10889
15522( exit $ac_status ) 10890( exit $ac_status )
15523rxvt_cv_path_utmp= 10891path_utmp=
15524fi 10892fi
15525rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10893rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15526fi 10894fi
15527fi 10895fi
15528echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5 10896echo "$as_me:$LINENO: result: $path_utmp" >&5
15529echo "${ECHO_T}$rxvt_cv_path_utmp" >&6 10897echo "${ECHO_T}$path_utmp" >&6
15530if test x$rxvt_cv_path_utmp != x; then 10898if test x$path_utmp != x; then
15531 10899
15532cat >>confdefs.h <<_ACEOF 10900cat >>confdefs.h <<_ACEOF
15533#define RXVT_UTMP_FILE "$rxvt_cv_path_utmp" 10901#define UTMP_FILE "$path_utmp"
15534_ACEOF 10902_ACEOF
15535 10903
15536fi 10904fi
15537 10905
15538 10906
15539echo "$as_me:$LINENO: checking where utmpx is located" >&5 10907echo "$as_me:$LINENO: checking where utmpx is located" >&5
15540echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6 10908echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6
15541if test "${rxvt_cv_path_utmpx+set}" = set; then 10909if test "${path_utmpx+set}" = set; then
15542 echo $ECHO_N "(cached) $ECHO_C" >&6 10910 echo $ECHO_N "(cached) $ECHO_C" >&6
15543else 10911else
15544 if test "$cross_compiling" = yes; then 10912 if test "$cross_compiling" = yes; then
15545 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&5 10913 { echo "$as_me:$LINENO: WARNING: Define UTMPX_FILE in config.h manually" >&5
15546echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;} 10914echo "$as_me: WARNING: Define UTMPX_FILE in config.h manually" >&2;}
15547else 10915else
15548 cat >conftest.$ac_ext <<_ACEOF 10916 cat >conftest.$ac_ext <<_ACEOF
15549/* confdefs.h. */ 10917/* confdefs.h. */
15550_ACEOF 10918_ACEOF
15551cat confdefs.h >>conftest.$ac_ext 10919cat confdefs.h >>conftest.$ac_ext
15552cat >>conftest.$ac_ext <<_ACEOF 10920cat >>conftest.$ac_ext <<_ACEOF
15553/* end confdefs.h. */ 10921/* end confdefs.h. */
15554#include <stdio.h> 10922#include <stdio.h>
10923#include <stdlib.h>
15555#include <sys/types.h> 10924#include <sys/types.h>
15556#include <utmpx.h> 10925#include <utmpx.h>
15557#include <errno.h> 10926#include <errno.h>
15558#include <sys/stat.h> 10927#include <sys/stat.h>
15559#ifdef HAVE_STRING_H 10928#ifdef HAVE_STRING_H
15597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15598 (eval $ac_try) 2>&5 10967 (eval $ac_try) 2>&5
15599 ac_status=$? 10968 ac_status=$?
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); }; }; then 10970 (exit $ac_status); }; }; then
15602 rxvt_cv_path_utmpx=`cat conftestval` 10971 path_utmpx=`cat conftestval`
15603else 10972else
15604 echo "$as_me: program exited with status $ac_status" >&5 10973 echo "$as_me: program exited with status $ac_status" >&5
15605echo "$as_me: failed program was:" >&5 10974echo "$as_me: failed program was:" >&5
15606sed 's/^/| /' conftest.$ac_ext >&5 10975sed 's/^/| /' conftest.$ac_ext >&5
15607 10976
15608( exit $ac_status ) 10977( exit $ac_status )
15609rxvt_cv_path_utmpx= 10978path_utmpx=
15610fi 10979fi
15611rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10980rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15612fi 10981fi
15613fi 10982fi
15614echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5 10983echo "$as_me:$LINENO: result: $path_utmpx" >&5
15615echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6 10984echo "${ECHO_T}$path_utmpx" >&6
15616if test x$rxvt_cv_path_utmpx != x; then 10985if test x$path_utmpx != x; then
15617 10986
15618cat >>confdefs.h <<_ACEOF 10987cat >>confdefs.h <<_ACEOF
15619#define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx" 10988#define UTMPX_FILE "$path_utmpx"
15620_ACEOF 10989_ACEOF
15621 10990
15622fi 10991fi
15623 10992
15624 10993
15625echo "$as_me:$LINENO: checking where wtmp is located" >&5 10994echo "$as_me:$LINENO: checking where wtmp is located" >&5
15626echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6 10995echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6
15627if test "${rxvt_cv_path_wtmp+set}" = set; then 10996if test "${path_wtmp+set}" = set; then
15628 echo $ECHO_N "(cached) $ECHO_C" >&6 10997 echo $ECHO_N "(cached) $ECHO_C" >&6
15629else 10998else
15630 if test "$cross_compiling" = yes; then 10999 if test "$cross_compiling" = yes; then
15631 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&5 11000 { echo "$as_me:$LINENO: WARNING: Define WTMP_FILE in config.h manually" >&5
15632echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;} 11001echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;}
15633else 11002else
15634 cat >conftest.$ac_ext <<_ACEOF 11003 cat >conftest.$ac_ext <<_ACEOF
15635/* confdefs.h. */ 11004/* confdefs.h. */
15636_ACEOF 11005_ACEOF
15637cat confdefs.h >>conftest.$ac_ext 11006cat confdefs.h >>conftest.$ac_ext
15638cat >>conftest.$ac_ext <<_ACEOF 11007cat >>conftest.$ac_ext <<_ACEOF
15639/* end confdefs.h. */ 11008/* end confdefs.h. */
15640#include <stdio.h> 11009#include <stdio.h>
11010#include <stdlib.h>
15641#include <sys/types.h> 11011#include <sys/types.h>
15642#ifdef HAVE_UTMP_H 11012#ifdef HAVE_UTMP_H
15643#include <utmp.h> 11013#include <utmp.h>
15644#endif 11014#endif
15645#include <errno.h> 11015#include <errno.h>
15675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15676 (eval $ac_try) 2>&5 11046 (eval $ac_try) 2>&5
15677 ac_status=$? 11047 ac_status=$?
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); }; }; then 11049 (exit $ac_status); }; }; then
15680 rxvt_cv_path_wtmp=`cat conftestval` 11050 path_wtmp=`cat conftestval`
15681else 11051else
15682 echo "$as_me: program exited with status $ac_status" >&5 11052 echo "$as_me: program exited with status $ac_status" >&5
15683echo "$as_me: failed program was:" >&5 11053echo "$as_me: failed program was:" >&5
15684sed 's/^/| /' conftest.$ac_ext >&5 11054sed 's/^/| /' conftest.$ac_ext >&5
15685 11055
15686( exit $ac_status ) 11056( exit $ac_status )
15687rxvt_cv_path_wtmp= 11057path_wtmp=
15688fi 11058fi
15689rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11059rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15690fi 11060fi
15691fi 11061fi
15692echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5 11062echo "$as_me:$LINENO: result: $path_wtmp" >&5
15693echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6 11063echo "${ECHO_T}$path_wtmp" >&6
15694if test x$rxvt_cv_path_wtmp != x; then 11064if test x$path_wtmp != x; then
15695 11065
15696cat >>confdefs.h <<_ACEOF 11066cat >>confdefs.h <<_ACEOF
15697#define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp" 11067#define WTMP_FILE "$path_wtmp"
15698_ACEOF 11068_ACEOF
15699 11069
15700fi 11070fi
15701 11071
15702echo "$as_me:$LINENO: checking where wtmpx is located" >&5 11072echo "$as_me:$LINENO: checking where wtmpx is located" >&5
15703echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6 11073echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6
15704if test "${rxvt_cv_path_wtmpx+set}" = set; then 11074if test "${path_wtmpx+set}" = set; then
15705 echo $ECHO_N "(cached) $ECHO_C" >&6 11075 echo $ECHO_N "(cached) $ECHO_C" >&6
15706else 11076else
15707 if test "$cross_compiling" = yes; then 11077 if test "$cross_compiling" = yes; then
15708 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&5 11078 { echo "$as_me:$LINENO: WARNING: Define WTMPX_FILE in config.h manually" >&5
15709echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;} 11079echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;}
15710else 11080else
15711 cat >conftest.$ac_ext <<_ACEOF 11081 cat >conftest.$ac_ext <<_ACEOF
15712/* confdefs.h. */ 11082/* confdefs.h. */
15713_ACEOF 11083_ACEOF
15714cat confdefs.h >>conftest.$ac_ext 11084cat confdefs.h >>conftest.$ac_ext
15715cat >>conftest.$ac_ext <<_ACEOF 11085cat >>conftest.$ac_ext <<_ACEOF
15716/* end confdefs.h. */ 11086/* end confdefs.h. */
15717#include <stdio.h> 11087#include <stdio.h>
11088#include <stdlib.h>
15718#ifdef HAVE_UTMPX_H 11089#ifdef HAVE_UTMPX_H
15719#include <utmpx.h> 11090#include <utmpx.h>
15720#endif 11091#endif
15721#include <errno.h> 11092#include <errno.h>
15722main() 11093main()
15751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15752 (eval $ac_try) 2>&5 11123 (eval $ac_try) 2>&5
15753 ac_status=$? 11124 ac_status=$?
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); }; }; then 11126 (exit $ac_status); }; }; then
15756 rxvt_cv_path_wtmpx=`cat conftestval` 11127 path_wtmpx=`cat conftestval`
15757else 11128else
15758 echo "$as_me: program exited with status $ac_status" >&5 11129 echo "$as_me: program exited with status $ac_status" >&5
15759echo "$as_me: failed program was:" >&5 11130echo "$as_me: failed program was:" >&5
15760sed 's/^/| /' conftest.$ac_ext >&5 11131sed 's/^/| /' conftest.$ac_ext >&5
15761 11132
15762( exit $ac_status ) 11133( exit $ac_status )
15763rxvt_cv_path_wtmpx= 11134path_wtmpx=
15764fi 11135fi
15765rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11136rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15766fi 11137fi
15767fi 11138fi
15768echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5 11139echo "$as_me:$LINENO: result: $path_wtmpx" >&5
15769echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6 11140echo "${ECHO_T}$path_wtmpx" >&6
15770if test x$rxvt_cv_path_wtmpx != x; then 11141if test x$path_wtmpx != x; then
15771 11142
15772cat >>confdefs.h <<_ACEOF 11143cat >>confdefs.h <<_ACEOF
15773#define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx" 11144#define WTMPX_FILE "$path_wtmpx"
15774_ACEOF 11145_ACEOF
15775 11146
15776fi 11147fi
15777 11148
15778echo "$as_me:$LINENO: checking where lastlog is located" >&5 11149echo "$as_me:$LINENO: checking where lastlog is located" >&5
15779echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6 11150echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6
15780if test "${rxvt_cv_path_lastlog+set}" = set; then 11151if test "${path_lastlog+set}" = set; then
15781 echo $ECHO_N "(cached) $ECHO_C" >&6 11152 echo $ECHO_N "(cached) $ECHO_C" >&6
15782else 11153else
15783 if test "$cross_compiling" = yes; then 11154 if test "$cross_compiling" = yes; then
15784 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&5 11155 { echo "$as_me:$LINENO: WARNING: Define LASTLOG_FILE in config.h manually" >&5
15785echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;} 11156echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;}
15786else 11157else
15787 cat >conftest.$ac_ext <<_ACEOF 11158 cat >conftest.$ac_ext <<_ACEOF
15788/* confdefs.h. */ 11159/* confdefs.h. */
15789_ACEOF 11160_ACEOF
15790cat confdefs.h >>conftest.$ac_ext 11161cat confdefs.h >>conftest.$ac_ext
15791cat >>conftest.$ac_ext <<_ACEOF 11162cat >>conftest.$ac_ext <<_ACEOF
15792/* end confdefs.h. */ 11163/* end confdefs.h. */
15793#include <stdio.h> 11164#include <stdio.h>
11165#include <stdlib.h>
15794#include <sys/types.h> 11166#include <sys/types.h>
15795#ifdef HAVE_UTMPX_H 11167#ifdef HAVE_UTMPX_H
15796#include <utmpx.h> 11168#include <utmpx.h>
15797#elif defined(HAVE_UTMP_H) 11169#elif defined(HAVE_UTMP_H)
15798#include <utmp.h> 11170#include <utmp.h>
15832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15833 (eval $ac_try) 2>&5 11205 (eval $ac_try) 2>&5
15834 ac_status=$? 11206 ac_status=$?
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); }; }; then 11208 (exit $ac_status); }; }; then
15837 rxvt_cv_path_lastlog=`cat conftestval` 11209 path_lastlog=`cat conftestval`
15838else 11210else
15839 echo "$as_me: program exited with status $ac_status" >&5 11211 echo "$as_me: program exited with status $ac_status" >&5
15840echo "$as_me: failed program was:" >&5 11212echo "$as_me: failed program was:" >&5
15841sed 's/^/| /' conftest.$ac_ext >&5 11213sed 's/^/| /' conftest.$ac_ext >&5
15842 11214
15843( exit $ac_status ) 11215( exit $ac_status )
15844rxvt_cv_path_lastlog= 11216path_lastlog=
15845fi 11217fi
15846rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11218rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15847fi 11219fi
15848fi 11220fi
15849echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5 11221echo "$as_me:$LINENO: result: $path_lastlog" >&5
15850echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6 11222echo "${ECHO_T}$path_lastlog" >&6
15851if test x$rxvt_cv_path_lastlog != x; then 11223if test x$path_lastlog != x; then
15852 11224
15853cat >>confdefs.h <<_ACEOF 11225cat >>confdefs.h <<_ACEOF
15854#define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog" 11226#define LASTLOG_FILE "$path_lastlog"
15855_ACEOF 11227_ACEOF
15856 11228
15857 if test -d "$rxvt_cv_path_lastlog"; then 11229 if test -d "$path_lastlog"; then
15858 11230
15859cat >>confdefs.h <<\_ACEOF 11231cat >>confdefs.h <<\_ACEOF
15860#define LASTLOG_IS_DIR 1 11232#define LASTLOG_IS_DIR 1
15861_ACEOF 11233_ACEOF
15862 11234
15863 fi 11235 fi
15864fi 11236fi
15865 11237
15866echo "$as_me:$LINENO: checking where lastlogx is located" >&5 11238echo "$as_me:$LINENO: checking where lastlogx is located" >&5
15867echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6 11239echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6
15868if test "${rxvt_cv_path_lastlogx+set}" = set; then 11240if test "${path_lastlogx+set}" = set; then
15869 echo $ECHO_N "(cached) $ECHO_C" >&6 11241 echo $ECHO_N "(cached) $ECHO_C" >&6
15870else 11242else
15871 if test "$cross_compiling" = yes; then 11243 if test "$cross_compiling" = yes; then
15872 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&5 11244 { echo "$as_me:$LINENO: WARNING: Define LASTLOGX_FILE in config.h manually" >&5
15873echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;} 11245echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;}
15874else 11246else
15875 cat >conftest.$ac_ext <<_ACEOF 11247 cat >conftest.$ac_ext <<_ACEOF
15876/* confdefs.h. */ 11248/* confdefs.h. */
15877_ACEOF 11249_ACEOF
15878cat confdefs.h >>conftest.$ac_ext 11250cat confdefs.h >>conftest.$ac_ext
15879cat >>conftest.$ac_ext <<_ACEOF 11251cat >>conftest.$ac_ext <<_ACEOF
15880/* end confdefs.h. */ 11252/* end confdefs.h. */
15881#include <stdio.h> 11253#include <stdio.h>
11254#include <stdlib.h>
15882#ifdef HAVE_UTMPX_H 11255#ifdef HAVE_UTMPX_H
15883#include <utmpx.h> 11256#include <utmpx.h>
15884#endif 11257#endif
15885#include <errno.h> 11258#include <errno.h>
15886main() 11259main()
15914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15915 (eval $ac_try) 2>&5 11288 (eval $ac_try) 2>&5
15916 ac_status=$? 11289 ac_status=$?
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); }; }; then 11291 (exit $ac_status); }; }; then
15919 rxvt_cv_path_lastlogx=`cat conftestval` 11292 path_lastlogx=`cat conftestval`
15920else 11293else
15921 echo "$as_me: program exited with status $ac_status" >&5 11294 echo "$as_me: program exited with status $ac_status" >&5
15922echo "$as_me: failed program was:" >&5 11295echo "$as_me: failed program was:" >&5
15923sed 's/^/| /' conftest.$ac_ext >&5 11296sed 's/^/| /' conftest.$ac_ext >&5
15924 11297
15925( exit $ac_status ) 11298( exit $ac_status )
15926rxvt_cv_path_lastlogx= 11299path_lastlogx=
15927fi 11300fi
15928rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11301rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15929fi 11302fi
15930fi 11303fi
15931echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5 11304echo "$as_me:$LINENO: result: $path_lastlogx" >&5
15932echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6 11305echo "${ECHO_T}$path_lastlogx" >&6
15933if test x$rxvt_cv_path_lastlogx != x; then 11306if test x$path_lastlogx != x; then
15934 11307
15935cat >>confdefs.h <<_ACEOF 11308cat >>confdefs.h <<_ACEOF
15936#define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx" 11309#define LASTLOGX_FILE "$path_lastlogx"
15937_ACEOF 11310_ACEOF
15938 11311
15939fi 11312fi
11313
15940 11314
15941 11315
15942echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 11316echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
15943echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 11317echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6
15944if test "${rxvt_cv_path_ttytab+set}" = set; then 11318if test "${rxvt_cv_path_ttytab+set}" = set; then
15966 11340
15967ac_save_LIBS=$LIBS 11341ac_save_LIBS=$LIBS
15968ac_save_CFLAGS=$CFLAGS 11342ac_save_CFLAGS=$CFLAGS
15969CFLAGS="$CFLAGS $X_CFLAGS" 11343CFLAGS="$CFLAGS $X_CFLAGS"
15970LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 11344LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
15971if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
15972 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
15973fi
15974echo "$as_me:$LINENO: checking for working Xlocale" >&5 11345echo "$as_me:$LINENO: checking for working Xlocale" >&5
15975echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6 11346echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6
15976if test "${rxvt_cv_func_xlocale+set}" = set; then 11347if test "${rxvt_cv_func_xlocale+set}" = set; then
15977 echo $ECHO_N "(cached) $ECHO_C" >&6 11348 echo $ECHO_N "(cached) $ECHO_C" >&6
15978else 11349else
15979 if test "$cross_compiling" = yes; then 11350 if test "$cross_compiling" = yes; then
15980 { echo "$as_me:$LINENO: WARNING: Define NO_XLOCALE in config.h manually" >&5 11351 :
15981echo "$as_me: WARNING: Define NO_XLOCALE in config.h manually" >&2;}
15982else 11352else
15983 cat >conftest.$ac_ext <<_ACEOF 11353 cat >conftest.$ac_ext <<_ACEOF
15984/* confdefs.h. */ 11354/* confdefs.h. */
15985_ACEOF 11355_ACEOF
15986cat confdefs.h >>conftest.$ac_ext 11356cat confdefs.h >>conftest.$ac_ext
15987cat >>conftest.$ac_ext <<_ACEOF 11357cat >>conftest.$ac_ext <<_ACEOF
15988/* end confdefs.h. */ 11358/* end confdefs.h. */
15989#include <X11/Xlib.h> 11359#include <X11/Xlib.h>
11360#include <stdlib.h>
15990main() { 11361main() {
15991char *p; 11362char *p;
15992if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) 11363if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
15993exit (XSupportsLocale() ? 0 : 1); 11364exit (XSupportsLocale() ? 0 : 1);
15994else 11365else
16017rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11388rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16018fi 11389fi
16019fi 11390fi
16020echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 11391echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
16021echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6 11392echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6
11393if test x$support_xim = xyes; then
16022if test x$rxvt_cv_func_xlocale = xyes; then 11394 if test x$rxvt_cv_func_xlocale = xyes; then
16023 11395
16024cat >>confdefs.h <<\_ACEOF 11396cat >>confdefs.h <<\_ACEOF
16025#define HAVE_XLOCALE 1 11397#define USE_XIM 1
16026_ACEOF 11398_ACEOF
16027 11399
11400 fi
16028fi 11401fi
16029 11402
16030echo "$as_me:$LINENO: checking for working X setlocale" >&5 11403echo "$as_me:$LINENO: checking for working X setlocale" >&5
16031echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6 11404echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6
16032if test "${rxvt_cv_func_xsetlocale+set}" = set; then 11405if test "${rxvt_cv_func_xsetlocale+set}" = set; then
16055 grep -v '^ *+' conftest.er1 >conftest.err 11428 grep -v '^ *+' conftest.er1 >conftest.err
16056 rm -f conftest.er1 11429 rm -f conftest.er1
16057 cat conftest.err >&5 11430 cat conftest.err >&5
16058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059 (exit $ac_status); } && 11432 (exit $ac_status); } &&
16060 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11433 { ac_try='test -z "$ac_cxx_werror_flag"
11434 || test ! -s conftest.err'
16061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16062 (eval $ac_try) 2>&5 11436 (eval $ac_try) 2>&5
16063 ac_status=$? 11437 ac_status=$?
16064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065 (exit $ac_status); }; } && 11439 (exit $ac_status); }; } &&
16118 grep -v '^ *+' conftest.er1 >conftest.err 11492 grep -v '^ *+' conftest.er1 >conftest.err
16119 rm -f conftest.er1 11493 rm -f conftest.er1
16120 cat conftest.err >&5 11494 cat conftest.err >&5
16121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122 (exit $ac_status); } && 11496 (exit $ac_status); } &&
16123 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11497 { ac_try='test -z "$ac_cxx_werror_flag"
11498 || test ! -s conftest.err'
16124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16125 (eval $ac_try) 2>&5 11500 (eval $ac_try) 2>&5
16126 ac_status=$? 11501 ac_status=$?
16127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128 (exit $ac_status); }; } && 11503 (exit $ac_status); }; } &&
16179 grep -v '^ *+' conftest.er1 >conftest.err 11554 grep -v '^ *+' conftest.er1 >conftest.err
16180 rm -f conftest.er1 11555 rm -f conftest.er1
16181 cat conftest.err >&5 11556 cat conftest.err >&5
16182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183 (exit $ac_status); } && 11558 (exit $ac_status); } &&
16184 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11559 { ac_try='test -z "$ac_cxx_werror_flag"
11560 || test ! -s conftest.err'
16185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16186 (eval $ac_try) 2>&5 11562 (eval $ac_try) 2>&5
16187 ac_status=$? 11563 ac_status=$?
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); }; } && 11565 (exit $ac_status); }; } &&
16210cat >>confdefs.h <<\_ACEOF 11586cat >>confdefs.h <<\_ACEOF
16211#define HAVE_NL_LANGINFO 1 11587#define HAVE_NL_LANGINFO 1
16212_ACEOF 11588_ACEOF
16213 11589
16214fi 11590fi
11591
11592
11593echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5
11594echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6
11595if test "${can_pass_fds+set}" = set; then
11596 echo $ECHO_N "(cached) $ECHO_C" >&6
11597else
11598 cat >conftest.$ac_ext <<_ACEOF
11599/* confdefs.h. */
11600_ACEOF
11601cat confdefs.h >>conftest.$ac_ext
11602cat >>conftest.$ac_ext <<_ACEOF
11603/* end confdefs.h. */
11604
11605#include <cstddef> // broken bsds (is that redundant?) need this
11606#include <sys/types.h>
11607#include <sys/socket.h>
11608#include <sys/uio.h>
11609
11610int
11611main ()
11612{
11613
11614{
11615 msghdr msg;
11616 iovec iov;
11617 char buf [100];
11618 char data = 0;
11619
11620 iov.iov_base = &data;
11621 iov.iov_len = 1;
11622
11623 msg.msg_iov = &iov;
11624 msg.msg_iovlen = 1;
11625 msg.msg_control = buf;
11626 msg.msg_controllen = sizeof buf;
11627
11628 cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
11629 cmsg->cmsg_level = SOL_SOCKET;
11630 cmsg->cmsg_type = SCM_RIGHTS;
11631 cmsg->cmsg_len = 100;
11632
11633 *(int *)CMSG_DATA (cmsg) = 5;
11634
11635 return sendmsg (3, &msg, 0);
11636}
11637
11638 ;
11639 return 0;
11640}
11641_ACEOF
11642rm -f conftest.$ac_objext conftest$ac_exeext
11643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11644 (eval $ac_link) 2>conftest.er1
11645 ac_status=$?
11646 grep -v '^ *+' conftest.er1 >conftest.err
11647 rm -f conftest.er1
11648 cat conftest.err >&5
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); } &&
11651 { ac_try='test -z "$ac_cxx_werror_flag"
11652 || test ! -s conftest.err'
11653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11654 (eval $ac_try) 2>&5
11655 ac_status=$?
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); }; } &&
11658 { ac_try='test -s conftest$ac_exeext'
11659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11660 (eval $ac_try) 2>&5
11661 ac_status=$?
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); }; }; then
11664 can_pass_fds=yes
11665else
11666 echo "$as_me: failed program was:" >&5
11667sed 's/^/| /' conftest.$ac_ext >&5
11668
11669can_pass_fds=no
11670fi
11671rm -f conftest.err conftest.$ac_objext \
11672 conftest$ac_exeext conftest.$ac_ext
11673fi
11674echo "$as_me:$LINENO: result: $can_pass_fds" >&5
11675echo "${ECHO_T}$can_pass_fds" >&6
11676if test x$can_pass_fds = xyes; then
11677
11678cat >>confdefs.h <<\_ACEOF
11679#define HAVE_UNIX_FDPASS 1
11680_ACEOF
11681
11682else
11683 { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5
11684echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;}
11685 { (exit 1); exit 1; }; }
11686fi
11687
16215 11688
16216echo "$as_me:$LINENO: checking for broken XIM callback" >&5 11689echo "$as_me:$LINENO: checking for broken XIM callback" >&5
16217echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6 11690echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6
16218if test "${rxvt_broken_ximcb+set}" = set; then 11691if test "${rxvt_broken_ximcb+set}" = set; then
16219 echo $ECHO_N "(cached) $ECHO_C" >&6 11692 echo $ECHO_N "(cached) $ECHO_C" >&6
16237 grep -v '^ *+' conftest.er1 >conftest.err 11710 grep -v '^ *+' conftest.er1 >conftest.err
16238 rm -f conftest.er1 11711 rm -f conftest.er1
16239 cat conftest.err >&5 11712 cat conftest.err >&5
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); } && 11714 (exit $ac_status); } &&
16242 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11715 { ac_try='test -z "$ac_cxx_werror_flag"
11716 || test ! -s conftest.err'
16243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16244 (eval $ac_try) 2>&5 11718 (eval $ac_try) 2>&5
16245 ac_status=$? 11719 ac_status=$?
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); }; } && 11721 (exit $ac_status); }; } &&
16269#define XIMCB_PROTO_BROKEN 1 11743#define XIMCB_PROTO_BROKEN 1
16270_ACEOF 11744_ACEOF
16271 11745
16272fi 11746fi
16273 11747
16274echo "$as_me:$LINENO: checking for getpt" >&5
16275echo $ECHO_N "checking for getpt... $ECHO_C" >&6
16276if test "${rxvt_cv_func_getpt+set}" = set; then
16277 echo $ECHO_N "(cached) $ECHO_C" >&6
16278else
16279 cat >conftest.$ac_ext <<_ACEOF
16280/* confdefs.h. */
16281_ACEOF
16282cat confdefs.h >>conftest.$ac_ext
16283cat >>conftest.$ac_ext <<_ACEOF
16284/* end confdefs.h. */
16285#define _GNU_SOURCE
16286#ifdef HAVE_STDLIB_H
16287# include <cstdlib>
16288#endif
16289int
16290main ()
16291{
16292(void)getpt();
16293 ;
16294 return 0;
16295}
16296_ACEOF
16297rm -f conftest.$ac_objext conftest$ac_exeext
16298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16299 (eval $ac_link) 2>conftest.er1
16300 ac_status=$?
16301 grep -v '^ *+' conftest.er1 >conftest.err
16302 rm -f conftest.er1
16303 cat conftest.err >&5
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); } &&
16306 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16308 (eval $ac_try) 2>&5
16309 ac_status=$?
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); }; } &&
16312 { ac_try='test -s conftest$ac_exeext'
16313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16314 (eval $ac_try) 2>&5
16315 ac_status=$?
16316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317 (exit $ac_status); }; }; then
16318 rxvt_cv_func_getpt=yes
16319else
16320 echo "$as_me: failed program was:" >&5
16321sed 's/^/| /' conftest.$ac_ext >&5
16322 11748
16323rxvt_cv_func_getpt=no
16324fi
16325rm -f conftest.err conftest.$ac_objext \
16326 conftest$ac_exeext conftest.$ac_ext
16327fi
16328echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5
16329echo "${ECHO_T}$rxvt_cv_func_getpt" >&6
16330if test x$rxvt_cv_func_getpt = xyes; then
16331 11749
16332cat >>confdefs.h <<\_ACEOF
16333#define HAVE_GETPT 1
16334_ACEOF
16335 11750
16336fi
16337 11751
16338echo "$as_me:$LINENO: checking for pty/tty type" >&5
16339echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6
16340if test "${rxvt_cv_ptys+set}" = set; then
16341 echo $ECHO_N "(cached) $ECHO_C" >&6
16342else
16343 if test x$ac_cv_func_openpty = xyes; then
16344 rxvt_cv_ptys=OPENPTY
16345 else if test x$ac_cv_func__getpty = xyes; then
16346 rxvt_cv_ptys=SGI4
16347 else if test -c /dev/ttyp20; then
16348 rxvt_cv_ptys=SCO
16349 else if test -c /dev/ptym/clone; then
16350 rxvt_cv_ptys=HPUX
16351 else if test x$rxvt_cv_func_getpt = xyes; then
16352 rxvt_cv_ptys=GLIBC
16353 else if test -c /dev/ptc -a -c /dev/pts; then
16354 rxvt_cv_ptys=PTC
16355 else if test -c /dev/ptc -a -d /dev/pts; then
16356 rxvt_cv_ptys=PTC
16357 else if test -c /dev/ptmx -a -c /dev/pts/0; then
16358 rxvt_cv_ptys=STREAMS
16359 else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then
16360 rxvt_cv_ptys=STREAMS
16361 else
16362 rxvt_cv_ptys=BSD
16363fi
16364fi
16365fi
16366fi
16367fi
16368fi
16369fi
16370fi
16371fi
16372 11752
16373fi
16374echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
16375echo "${ECHO_T}$rxvt_cv_ptys" >&6
16376 11753
16377if test x$rxvt_cv_ptys = xOPENPTY; then 11754for ac_header in \
11755 pty.h \
11756 util.h \
11757 libutil.h \
11758 sys/ioctl.h \
11759 sys/stropts.h \
16378 11760
16379cat >>confdefs.h <<\_ACEOF
16380#define PTYS_ARE_OPENPTY 1
16381_ACEOF
16382
16383fi
16384if test x$rxvt_cv_ptys = xSCO; then
16385
16386cat >>confdefs.h <<\_ACEOF
16387#define PTYS_ARE_NUMERIC 1
16388_ACEOF
16389
16390fi
16391if test x$rxvt_cv_ptys = xSTREAMS; then
16392
16393cat >>confdefs.h <<\_ACEOF
16394#define PTYS_ARE_PTMX 1
16395_ACEOF
16396
16397fi
16398if test x$rxvt_cv_ptys = xPTC; then
16399
16400cat >>confdefs.h <<\_ACEOF
16401#define PTYS_ARE_PTC 1
16402_ACEOF
16403
16404fi
16405if test x$rxvt_cv_ptys = xSGI4; then
16406
16407cat >>confdefs.h <<\_ACEOF
16408#define PTYS_ARE__GETPTY 1
16409_ACEOF
16410
16411fi
16412if test x$rxvt_cv_ptys = xCONVEX; then
16413
16414cat >>confdefs.h <<\_ACEOF
16415#define PTYS_ARE_GETPTY 1
16416_ACEOF
16417
16418fi
16419if test x$rxvt_cv_ptys = xGLIBC; then
16420
16421cat >>confdefs.h <<\_ACEOF
16422#define PTYS_ARE_GETPT 1
16423_ACEOF
16424
16425fi
16426if test x$rxvt_cv_ptys = xHPUX; then
16427
16428cat >>confdefs.h <<\_ACEOF
16429#define PTYS_ARE_CLONE 1
16430_ACEOF
16431
16432fi
16433if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then
16434
16435cat >>confdefs.h <<\_ACEOF
16436#define PTYS_ARE_SEARCHED 1
16437_ACEOF
16438
16439fi
16440
16441
16442{ echo "$as_me:$LINENO: checking for pty ranges..." >&5
16443echo "$as_me: checking for pty ranges..." >&6;}
16444ptys=`echo /dev/pty??`
16445pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
16446pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
16447if test x$pch1 != x; then
16448
16449cat >>confdefs.h <<_ACEOF
16450#define PTYCHAR1 "$pch1"
16451_ACEOF
16452
16453fi
16454if test x$pch2 != x; then
16455
16456cat >>confdefs.h <<_ACEOF
16457#define PTYCHAR2 "$pch2"
16458_ACEOF
16459
16460fi
16461
16462if test x$support_iso14755 = xyes; then
16463
16464cat >>confdefs.h <<\_ACEOF
16465#define ISO_14755 1
16466_ACEOF
16467
16468fi
16469if test x$support_8bitctrls = xyes; then
16470
16471cat >>confdefs.h <<\_ACEOF
16472#define EIGHT_BIT_CONTROLS 1
16473_ACEOF
16474
16475fi
16476if test x$support_fading = xyes; then
16477
16478cat >>confdefs.h <<\_ACEOF
16479#define OFF_FOCUS_FADING 1
16480_ACEOF
16481
16482fi
16483if test x$support_tinting = xyes; then
16484
16485cat >>confdefs.h <<\_ACEOF
16486#define TINTING 1
16487_ACEOF
16488
16489fi
16490if test x$support_inheritpixmap = xyes; then
16491
16492cat >>confdefs.h <<\_ACEOF
16493#define TRANSPARENT 1
16494_ACEOF
16495
16496fi
16497if test x$support_keepscrolling = xno; then
16498
16499cat >>confdefs.h <<\_ACEOF
16500#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
16501_ACEOF
16502
16503fi
16504if test x$support_selectionscrolling = xyes; then
16505
16506cat >>confdefs.h <<\_ACEOF
16507#define SELECTION_SCROLLING 1
16508_ACEOF
16509
16510fi
16511if test x$support_menubar = xyes; then
16512
16513cat >>confdefs.h <<\_ACEOF
16514#define MENUBAR 1
16515_ACEOF
16516
16517fi
16518if test x$support_frills = xyes; then
16519
16520cat >>confdefs.h <<\_ACEOF
16521#define ENABLE_FRILLS 1
16522_ACEOF
16523
16524fi
16525if test x$support_linespace = xno; then
16526
16527cat >>confdefs.h <<\_ACEOF
16528#define NO_LINESPACE 1
16529_ACEOF
16530
16531fi
16532if test x$support_24bit = xyes; then
16533
16534cat >>confdefs.h <<\_ACEOF
16535#define PREFER_24BIT 1
16536_ACEOF
16537
16538fi
16539if test x$support_mousewheel = xyes; then
16540
16541cat >>confdefs.h <<\_ACEOF
16542#define MOUSE_WHEEL 1
16543_ACEOF
16544
16545fi
16546if test x$support_mouseslipwheel = xyes; then
16547
16548cat >>confdefs.h <<\_ACEOF
16549#define MOUSE_SLIP_WHEELING 1
16550_ACEOF
16551
16552fi
16553if test x$support_utmp = xyes; then
16554
16555cat >>confdefs.h <<\_ACEOF
16556#define UTMP_SUPPORT 1
16557_ACEOF
16558
16559fi
16560if test x$support_wtmp = xyes; then
16561
16562cat >>confdefs.h <<\_ACEOF
16563#define WTMP_SUPPORT 1
16564_ACEOF
16565
16566fi
16567if test x$support_lastlog = xyes; then
16568
16569cat >>confdefs.h <<\_ACEOF
16570#define LASTLOG_SUPPORT 1
16571_ACEOF
16572
16573fi
16574if test x$support_xim = xyes -o x$multichar_set = xyes; then
16575 if test x$rxvt_cv_func_xlocale = xyes; then
16576
16577cat >>confdefs.h <<\_ACEOF
16578#define USE_XIM 1
16579_ACEOF
16580
16581 fi
16582fi
16583if test x$support_xpm = xyes; then
16584
16585cat >>confdefs.h <<\_ACEOF
16586#define XPM_BACKGROUND 1
16587_ACEOF
16588
16589fi
16590if test x$support_scroll_rxvt = xyes; then
16591
16592cat >>confdefs.h <<\_ACEOF
16593#define RXVT_SCROLLBAR 1
16594_ACEOF
16595
16596 scrolltypes="rxvt"
16597fi
16598if test x$support_scroll_next = xyes; then
16599
16600cat >>confdefs.h <<\_ACEOF
16601#define NEXT_SCROLLBAR 1
16602_ACEOF
16603
16604 scrolltypes="$scrolltypes next"
16605fi
16606if test x$support_scroll_xterm = xyes; then
16607
16608cat >>confdefs.h <<\_ACEOF
16609#define XTERM_SCROLLBAR 1
16610_ACEOF
16611
16612 scrolltypes="$scrolltypes xterm"
16613fi
16614if test x$support_scroll_plain = xyes; then
16615
16616cat >>confdefs.h <<\_ACEOF
16617#define PLAIN_SCROLLBAR 1
16618_ACEOF
16619
16620 scrolltypes="$scrolltypes plain"
16621fi
16622if test x$support_pointer_blank = xyes; then
16623
16624cat >>confdefs.h <<\_ACEOF
16625#define POINTER_BLANK 1
16626_ACEOF
16627
16628fi
16629if test x$support_cursor_blink = xyes; then
16630
16631cat >>confdefs.h <<\_ACEOF
16632#define CURSOR_BLINK 1
16633_ACEOF
16634
16635fi
16636if test x$support_text_blink = xyes; then
16637
16638cat >>confdefs.h <<\_ACEOF
16639#define TEXT_BLINK 1
16640_ACEOF
16641
16642fi
16643if test x$support_unicode3 = xyes; then
16644
16645cat >>confdefs.h <<\_ACEOF
16646#define UNICODE_3 1
16647_ACEOF
16648
16649fi
16650if test x$support_combining = xyes; then
16651
16652cat >>confdefs.h <<\_ACEOF
16653#define ENABLE_COMBINING 1
16654_ACEOF
16655
16656fi
16657if test x$codesets = xall; then
16658 codesets=jp,jp-ext,kr,cn,cn-ext
16659fi
16660
16661cat >>confdefs.h <<\_ACEOF
16662#define ENCODING_EU 1
16663_ACEOF
16664
16665
16666cat >>confdefs.h <<\_ACEOF
16667#define ENCODING_VN 1
16668_ACEOF
16669
16670for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
16671 case "$codeset" in
16672 JP )
16673cat >>confdefs.h <<\_ACEOF
16674#define ENCODING_JP 1
16675_ACEOF
16676 ;;
16677 JP_EXT )
16678cat >>confdefs.h <<\_ACEOF
16679#define ENCODING_JP_EXT 1
16680_ACEOF
16681 ;;
16682 KR )
16683cat >>confdefs.h <<\_ACEOF
16684#define ENCODING_KR 1
16685_ACEOF
16686 ;;
16687 CN )
16688cat >>confdefs.h <<\_ACEOF
16689#define ENCODING_CN 1
16690_ACEOF
16691 ;;
16692 CN_EXT )
16693cat >>confdefs.h <<\_ACEOF
16694#define ENCODING_CN_EXT 1
16695_ACEOF
16696 ;;
16697 esac
16698done
16699
16700
16701CFLAGS=${CFLAGS--O}
16702LDFLAGS=${LDFLAGS--O}
16703
16704CPPFLAGS="$CPPFLAGS"
16705
16706
16707
16708
16709
16710
16711
16712if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
16713 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
16714 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
16715 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
16716 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
16717 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
16718fi
16719
16720
16721
16722
16723
16724if test x$support_addstrings = xno; then
16725
16726cat >>confdefs.h <<\_ACEOF
16727#define NO_STRINGS 1
16728_ACEOF
16729
16730fi
16731
16732MCOMMON=./autoconf/Make.common
16733
16734
16735test "$program_prefix" != NONE &&
16736 program_transform_name="s,^,$program_prefix,;$program_transform_name"
16737# Use a double $ so make ignores it.
16738test "$program_suffix" != NONE &&
16739 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
16740# Double any \ or $. echo might interpret backslashes.
16741# By default was `s,x,x', remove it if useless.
16742cat <<\_ACEOF >conftest.sed
16743s/[\\$]/&&/g;s/;s,x,x,$//
16744_ACEOF
16745program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
16746rm conftest.sed
16747
16748
16749
16750
16751
16752if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
16753 include_stdint_h="#include <stdint.h>"
16754else
16755 include_stdint_h="/* #include <stdint.h> */"
16756fi
16757if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
16758 include_stdarg_h="#include <cstdarg>"
16759else
16760 include_stdarg_h="/* #include <cstdarg> */"
16761fi
16762if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
16763 include_stdlib_h="#include <cstdlib>"
16764else
16765 include_stdlib_h="/* #include <cstdlib> */"
16766fi
16767if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
16768 include_unistd_h="#include <unistd.h>"
16769else
16770 include_unistd_h="/* #include <unistd.h> */"
16771fi
16772if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
16773 include_string_h="#include <cstring>"
16774else
16775 include_string_h="/* #include <cstring> */"
16776fi
16777if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
16778 include_fcntl_h="#include <fcntl.h>"
16779else
16780 include_fcntl_h="/* #include <fcntl.h> */"
16781fi
16782if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
16783 include_util_h="#include <util.h>"
16784else
16785 include_util_h="/* #include <util.h> */"
16786fi
16787if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
16788 include_assert_h="#include <assert.h>"
16789else
16790 include_assert_h="/* #include <assert.h> */"
16791fi
16792if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
16793 include_sys_ioctl_h="#include <sys/ioctl.h>"
16794else
16795 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
16796fi
16797if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
16798 include_sys_select_h="#include <sys/select.h>"
16799else
16800 include_sys_select_h="/* #include <sys/select.h> */"
16801fi
16802if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
16803 include_sys_strredir_h="#include <sys/strredir.h>"
16804else
16805 include_sys_strredir_h="/* #include <sys/strredir.h> */"
16806fi
16807if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
16808 include_sys_time_h="#include <sys/time.h>"
16809else
16810 include_sys_time_h="/* #include <sys/time.h> */"
16811fi
16812if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
16813 include_time_h="#include <time.h>"
16814else
16815 include_time_h="/* #include <time.h> */"
16816fi
16817
16818if test x$support_xft = xyes; then
16819 LIBS="$LIBS `pkg-config xft --libs`"
16820 CFLAGS="$CFLAGS `pkg-config xft --cflags`"
16821 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
16822
16823
16824for ac_header in X11/Xft/Xft.h
16825do 11761do
16826as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11762as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16827if eval "test \"\${$as_ac_Header+set}\" = set"; then 11763if eval "test \"\${$as_ac_Header+set}\" = set"; then
16828 echo "$as_me:$LINENO: checking for $ac_header" >&5 11764 echo "$as_me:$LINENO: checking for $ac_header" >&5
16829echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11765echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16852 grep -v '^ *+' conftest.er1 >conftest.err 11788 grep -v '^ *+' conftest.er1 >conftest.err
16853 rm -f conftest.er1 11789 rm -f conftest.er1
16854 cat conftest.err >&5 11790 cat conftest.err >&5
16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); } && 11792 (exit $ac_status); } &&
16857 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11793 { ac_try='test -z "$ac_cxx_werror_flag"
11794 || test ! -s conftest.err'
16858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16859 (eval $ac_try) 2>&5 11796 (eval $ac_try) 2>&5
16860 ac_status=$? 11797 ac_status=$?
16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); }; } && 11799 (exit $ac_status); }; } &&
16963if test `eval echo '${'$as_ac_Header'}'` = yes; then 11900if test `eval echo '${'$as_ac_Header'}'` = yes; then
16964 cat >>confdefs.h <<_ACEOF 11901 cat >>confdefs.h <<_ACEOF
16965#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11902#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16966_ACEOF 11903_ACEOF
16967 11904
11905fi
11906
11907done
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919for ac_func in \
11920 revoke \
11921 _getpty \
11922 getpt \
11923 posix_openpt \
11924 isastream \
11925 setuid \
11926 seteuid \
11927 setreuid \
11928 setresuid \
11929
11930do
11931as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11932echo "$as_me:$LINENO: checking for $ac_func" >&5
11933echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11934if eval "test \"\${$as_ac_var+set}\" = set"; then
11935 echo $ECHO_N "(cached) $ECHO_C" >&6
11936else
11937 cat >conftest.$ac_ext <<_ACEOF
11938/* confdefs.h. */
11939_ACEOF
11940cat confdefs.h >>conftest.$ac_ext
11941cat >>conftest.$ac_ext <<_ACEOF
11942/* end confdefs.h. */
11943/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11945#define $ac_func innocuous_$ac_func
11946
11947/* System header to define __stub macros and hopefully few prototypes,
11948 which can conflict with char $ac_func (); below.
11949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11950 <limits.h> exists even on freestanding compilers. */
11951
11952#ifdef __STDC__
11953# include <limits.h>
11954#else
11955# include <assert.h>
11956#endif
11957
11958#undef $ac_func
11959
11960/* Override any gcc2 internal prototype to avoid an error. */
11961#ifdef __cplusplus
11962extern "C"
11963{
11964#endif
11965/* We use char because int might match the return type of a gcc2
11966 builtin and then its argument prototype would still apply. */
11967char $ac_func ();
11968/* The GNU C library defines this for functions which it implements
11969 to always fail with ENOSYS. Some functions are actually named
11970 something starting with __ and the normal name is an alias. */
11971#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11972choke me
11973#else
11974char (*f) () = $ac_func;
11975#endif
11976#ifdef __cplusplus
11977}
11978#endif
11979
11980int
11981main ()
11982{
11983return f != $ac_func;
11984 ;
11985 return 0;
11986}
11987_ACEOF
11988rm -f conftest.$ac_objext conftest$ac_exeext
11989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11990 (eval $ac_link) 2>conftest.er1
11991 ac_status=$?
11992 grep -v '^ *+' conftest.er1 >conftest.err
11993 rm -f conftest.er1
11994 cat conftest.err >&5
11995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996 (exit $ac_status); } &&
11997 { ac_try='test -z "$ac_cxx_werror_flag"
11998 || test ! -s conftest.err'
11999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12000 (eval $ac_try) 2>&5
12001 ac_status=$?
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); }; } &&
12004 { ac_try='test -s conftest$ac_exeext'
12005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12006 (eval $ac_try) 2>&5
12007 ac_status=$?
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); }; }; then
12010 eval "$as_ac_var=yes"
12011else
12012 echo "$as_me: failed program was:" >&5
12013sed 's/^/| /' conftest.$ac_ext >&5
12014
12015eval "$as_ac_var=no"
12016fi
12017rm -f conftest.err conftest.$ac_objext \
12018 conftest$ac_exeext conftest.$ac_ext
12019fi
12020echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12021echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12022if test `eval echo '${'$as_ac_var'}'` = yes; then
12023 cat >>confdefs.h <<_ACEOF
12024#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12025_ACEOF
12026
12027fi
12028done
12029
12030
12031have_clone=no
12032
12033echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5
12034echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6
12035if test -e /dev/ptym/clone; then
12036 echo "$as_me:$LINENO: result: yes" >&5
12037echo "${ECHO_T}yes" >&6
12038
12039cat >>confdefs.h <<\_ACEOF
12040#define HAVE_DEV_CLONE 1
12041_ACEOF
12042
12043
12044cat >>confdefs.h <<\_ACEOF
12045#define CLONE_DEVICE "/dev/ptym/clone"
12046_ACEOF
12047
12048 have_clone=yes
12049else
12050 echo "$as_me:$LINENO: result: no" >&5
12051echo "${ECHO_T}no" >&6
12052fi
12053
12054echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12055echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
12056if test -e /dev/ptc; then
12057 echo "$as_me:$LINENO: result: yes" >&5
12058echo "${ECHO_T}yes" >&6
12059
12060cat >>confdefs.h <<\_ACEOF
12061#define HAVE_DEV_PTC 1
12062_ACEOF
12063
12064
12065cat >>confdefs.h <<\_ACEOF
12066#define CLONE_DEVICE "/dev/ptc"
12067_ACEOF
12068
12069 have_clone=yes
12070else
12071 echo "$as_me:$LINENO: result: no" >&5
12072echo "${ECHO_T}no" >&6
12073fi
12074
12075case $host in
12076 *-*-cygwin*)
12077 have_clone=yes
12078
12079cat >>confdefs.h <<\_ACEOF
12080#define CLONE_DEVICE "/dev/ptmx"
12081_ACEOF
12082
12083 ;;
12084 *)
12085 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
12086echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
12087 if test -e /dev/ptmx; then
12088 echo "$as_me:$LINENO: result: yes" >&5
12089echo "${ECHO_T}yes" >&6
12090
12091cat >>confdefs.h <<\_ACEOF
12092#define HAVE_DEV_PTMX 1
12093_ACEOF
12094
12095
12096cat >>confdefs.h <<\_ACEOF
12097#define CLONE_DEVICE "/dev/ptmx"
12098_ACEOF
12099
12100 have_clone=yes
12101 else
12102 echo "$as_me:$LINENO: result: no" >&5
12103echo "${ECHO_T}no" >&6
12104 fi
12105 ;;
12106esac
12107
12108if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then
12109 echo "$as_me:$LINENO: checking for UNIX98 ptys" >&5
12110echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6
12111 cat >conftest.$ac_ext <<_ACEOF
12112/* confdefs.h. */
12113_ACEOF
12114cat confdefs.h >>conftest.$ac_ext
12115cat >>conftest.$ac_ext <<_ACEOF
12116/* end confdefs.h. */
12117#include <stdlib.h>
12118int
12119main ()
12120{
12121grantpt(0);unlockpt(0);ptsname(0);
12122 ;
12123 return 0;
12124}
12125_ACEOF
12126rm -f conftest.$ac_objext conftest$ac_exeext
12127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12128 (eval $ac_link) 2>conftest.er1
12129 ac_status=$?
12130 grep -v '^ *+' conftest.er1 >conftest.err
12131 rm -f conftest.er1
12132 cat conftest.err >&5
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); } &&
12135 { ac_try='test -z "$ac_cxx_werror_flag"
12136 || test ! -s conftest.err'
12137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12138 (eval $ac_try) 2>&5
12139 ac_status=$?
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); }; } &&
12142 { ac_try='test -s conftest$ac_exeext'
12143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12144 (eval $ac_try) 2>&5
12145 ac_status=$?
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); }; }; then
12148 unix98_pty=yes
12149
12150cat >>confdefs.h <<\_ACEOF
12151#define UNIX98_PTY 1
12152_ACEOF
12153
12154 echo "$as_me:$LINENO: result: yes" >&5
12155echo "${ECHO_T}yes" >&6
12156else
12157 echo "$as_me: failed program was:" >&5
12158sed 's/^/| /' conftest.$ac_ext >&5
12159
12160echo "$as_me:$LINENO: result: no" >&5
12161echo "${ECHO_T}no" >&6
12162fi
12163rm -f conftest.err conftest.$ac_objext \
12164 conftest$ac_exeext conftest.$ac_ext
12165fi
12166
12167if test -z "$unix98_pty"; then
12168
12169for ac_func in openpty
12170do
12171as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12172echo "$as_me:$LINENO: checking for $ac_func" >&5
12173echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12174if eval "test \"\${$as_ac_var+set}\" = set"; then
12175 echo $ECHO_N "(cached) $ECHO_C" >&6
12176else
12177 cat >conftest.$ac_ext <<_ACEOF
12178/* confdefs.h. */
12179_ACEOF
12180cat confdefs.h >>conftest.$ac_ext
12181cat >>conftest.$ac_ext <<_ACEOF
12182/* end confdefs.h. */
12183/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12185#define $ac_func innocuous_$ac_func
12186
12187/* System header to define __stub macros and hopefully few prototypes,
12188 which can conflict with char $ac_func (); below.
12189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12190 <limits.h> exists even on freestanding compilers. */
12191
12192#ifdef __STDC__
12193# include <limits.h>
12194#else
12195# include <assert.h>
12196#endif
12197
12198#undef $ac_func
12199
12200/* Override any gcc2 internal prototype to avoid an error. */
12201#ifdef __cplusplus
12202extern "C"
12203{
12204#endif
12205/* We use char because int might match the return type of a gcc2
12206 builtin and then its argument prototype would still apply. */
12207char $ac_func ();
12208/* The GNU C library defines this for functions which it implements
12209 to always fail with ENOSYS. Some functions are actually named
12210 something starting with __ and the normal name is an alias. */
12211#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12212choke me
12213#else
12214char (*f) () = $ac_func;
12215#endif
12216#ifdef __cplusplus
12217}
12218#endif
12219
12220int
12221main ()
12222{
12223return f != $ac_func;
12224 ;
12225 return 0;
12226}
12227_ACEOF
12228rm -f conftest.$ac_objext conftest$ac_exeext
12229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12230 (eval $ac_link) 2>conftest.er1
12231 ac_status=$?
12232 grep -v '^ *+' conftest.er1 >conftest.err
12233 rm -f conftest.er1
12234 cat conftest.err >&5
12235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236 (exit $ac_status); } &&
12237 { ac_try='test -z "$ac_cxx_werror_flag"
12238 || test ! -s conftest.err'
12239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12240 (eval $ac_try) 2>&5
12241 ac_status=$?
12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); }; } &&
12244 { ac_try='test -s conftest$ac_exeext'
12245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12246 (eval $ac_try) 2>&5
12247 ac_status=$?
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); }; }; then
12250 eval "$as_ac_var=yes"
12251else
12252 echo "$as_me: failed program was:" >&5
12253sed 's/^/| /' conftest.$ac_ext >&5
12254
12255eval "$as_ac_var=no"
12256fi
12257rm -f conftest.err conftest.$ac_objext \
12258 conftest$ac_exeext conftest.$ac_ext
12259fi
12260echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12261echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12262if test `eval echo '${'$as_ac_var'}'` = yes; then
12263 cat >>confdefs.h <<_ACEOF
12264#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12265_ACEOF
12266
12267else
12268 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
12269echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
12270if test "${ac_cv_lib_util_openpty+set}" = set; then
12271 echo $ECHO_N "(cached) $ECHO_C" >&6
12272else
12273 ac_check_lib_save_LIBS=$LIBS
12274LIBS="-lutil $LIBS"
12275cat >conftest.$ac_ext <<_ACEOF
12276/* confdefs.h. */
12277_ACEOF
12278cat confdefs.h >>conftest.$ac_ext
12279cat >>conftest.$ac_ext <<_ACEOF
12280/* end confdefs.h. */
12281
12282/* Override any gcc2 internal prototype to avoid an error. */
12283#ifdef __cplusplus
12284extern "C"
12285#endif
12286/* We use char because int might match the return type of a gcc2
12287 builtin and then its argument prototype would still apply. */
12288char openpty ();
12289int
12290main ()
12291{
12292openpty ();
12293 ;
12294 return 0;
12295}
12296_ACEOF
12297rm -f conftest.$ac_objext conftest$ac_exeext
12298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12299 (eval $ac_link) 2>conftest.er1
12300 ac_status=$?
12301 grep -v '^ *+' conftest.er1 >conftest.err
12302 rm -f conftest.er1
12303 cat conftest.err >&5
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); } &&
12306 { ac_try='test -z "$ac_cxx_werror_flag"
12307 || test ! -s conftest.err'
12308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12309 (eval $ac_try) 2>&5
12310 ac_status=$?
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); }; } &&
12313 { ac_try='test -s conftest$ac_exeext'
12314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12315 (eval $ac_try) 2>&5
12316 ac_status=$?
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); }; }; then
12319 ac_cv_lib_util_openpty=yes
12320else
12321 echo "$as_me: failed program was:" >&5
12322sed 's/^/| /' conftest.$ac_ext >&5
12323
12324ac_cv_lib_util_openpty=no
12325fi
12326rm -f conftest.err conftest.$ac_objext \
12327 conftest$ac_exeext conftest.$ac_ext
12328LIBS=$ac_check_lib_save_LIBS
12329fi
12330echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
12331echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
12332if test $ac_cv_lib_util_openpty = yes; then
12333 cat >>confdefs.h <<\_ACEOF
12334#define HAVE_OPENPTY 1
12335_ACEOF
12336 LIBS="$LIBS -lutil"
12337fi
12338
12339fi
12340done
12341
12342fi
12343
12344
12345
12346echo "$as_me:$LINENO: checking for tty group" >&5
12347echo $ECHO_N "checking for tty group... $ECHO_C" >&6
12348if test "${tty_group+set}" = set; then
12349 echo $ECHO_N "(cached) $ECHO_C" >&6
12350else
12351 if test "$cross_compiling" = yes; then
12352 tty_group=no
12353else
12354 cat >conftest.$ac_ext <<_ACEOF
12355/* confdefs.h. */
12356_ACEOF
12357cat confdefs.h >>conftest.$ac_ext
12358cat >>conftest.$ac_ext <<_ACEOF
12359/* end confdefs.h. */
12360
12361#include <sys/types.h>
12362#include <sys/stat.h>
12363#include <unistd.h>
12364#include <grp.h>
12365
12366main()
12367{
12368 struct stat st;
12369 struct group *gr;
12370 char *tty;
12371 gr = getgrnam("tty");
12372 tty = ttyname(0);
12373 if (gr != 0
12374 && tty != 0
12375 && (stat(tty, &st)) == 0
12376 && st.st_gid == gr->gr_gid)
12377 return 0;
12378 else
12379 return 1;
12380}
12381_ACEOF
12382rm -f conftest$ac_exeext
12383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12384 (eval $ac_link) 2>&5
12385 ac_status=$?
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12389 (eval $ac_try) 2>&5
12390 ac_status=$?
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); }; }; then
12393 tty_group=yes
12394else
12395 echo "$as_me: program exited with status $ac_status" >&5
12396echo "$as_me: failed program was:" >&5
12397sed 's/^/| /' conftest.$ac_ext >&5
12398
12399( exit $ac_status )
12400tty_group=no
12401fi
12402rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12403fi
12404fi
12405echo "$as_me:$LINENO: result: $tty_group" >&5
12406echo "${ECHO_T}$tty_group" >&6
12407if test x$tty_group = xyes; then
12408
12409cat >>confdefs.h <<\_ACEOF
12410#define TTY_GID_SUPPORT 1
12411_ACEOF
12412
12413fi
12414
12415if test x$support_xft = xyes; then
12416 # Extract the first word of "pkg-config", so it can be a program name with args.
12417set dummy pkg-config; ac_word=$2
12418echo "$as_me:$LINENO: checking for $ac_word" >&5
12419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12420if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12421 echo $ECHO_N "(cached) $ECHO_C" >&6
12422else
12423 case $PKG_CONFIG in
12424 [\\/]* | ?:[\\/]*)
12425 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12426 ;;
12427 *)
12428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12429for as_dir in $PATH
12430do
12431 IFS=$as_save_IFS
12432 test -z "$as_dir" && as_dir=.
12433 for ac_exec_ext in '' $ac_executable_extensions; do
12434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12435 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12437 break 2
12438 fi
12439done
12440done
12441
12442 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12443 ;;
12444esac
12445fi
12446PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12447
12448if test -n "$PKG_CONFIG"; then
12449 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12450echo "${ECHO_T}$PKG_CONFIG" >&6
12451else
12452 echo "$as_me:$LINENO: result: no" >&5
12453echo "${ECHO_T}no" >&6
12454fi
12455
12456 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
12457 LIBS="$LIBS `$PKG_CONFIG xft --libs`"
12458 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
12459 else
12460 # Extract the first word of "xft-config", so it can be a program name with args.
12461set dummy xft-config; ac_word=$2
12462echo "$as_me:$LINENO: checking for $ac_word" >&5
12463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12464if test "${ac_cv_path_XFT_CONFIG+set}" = set; then
12465 echo $ECHO_N "(cached) $ECHO_C" >&6
12466else
12467 case $XFT_CONFIG in
12468 [\\/]* | ?:[\\/]*)
12469 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
12470 ;;
12471 *)
12472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12473for as_dir in $PATH
12474do
12475 IFS=$as_save_IFS
12476 test -z "$as_dir" && as_dir=.
12477 for ac_exec_ext in '' $ac_executable_extensions; do
12478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12479 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12481 break 2
12482 fi
12483done
12484done
12485
12486 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
12487 ;;
12488esac
12489fi
12490XFT_CONFIG=$ac_cv_path_XFT_CONFIG
12491
12492if test -n "$XFT_CONFIG"; then
12493 echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5
12494echo "${ECHO_T}$XFT_CONFIG" >&6
12495else
12496 echo "$as_me:$LINENO: result: no" >&5
12497echo "${ECHO_T}no" >&6
12498fi
12499
12500 if test $XFT_CONFIG != no; then
12501 LIBS="$LIBS `$XFT_CONFIG --libs`"
12502 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
12503 fi
12504 fi
12505
12506
12507for ac_header in X11/Xft/Xft.h
12508do
12509as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12510if eval "test \"\${$as_ac_Header+set}\" = set"; then
12511 echo "$as_me:$LINENO: checking for $ac_header" >&5
12512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12513if eval "test \"\${$as_ac_Header+set}\" = set"; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
12515fi
12516echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12517echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12518else
12519 # Is the header compilable?
12520echo "$as_me:$LINENO: checking $ac_header usability" >&5
12521echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12522cat >conftest.$ac_ext <<_ACEOF
12523/* confdefs.h. */
12524_ACEOF
12525cat confdefs.h >>conftest.$ac_ext
12526cat >>conftest.$ac_ext <<_ACEOF
12527/* end confdefs.h. */
12528$ac_includes_default
12529#include <$ac_header>
12530_ACEOF
12531rm -f conftest.$ac_objext
12532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12533 (eval $ac_compile) 2>conftest.er1
12534 ac_status=$?
12535 grep -v '^ *+' conftest.er1 >conftest.err
12536 rm -f conftest.er1
12537 cat conftest.err >&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); } &&
12540 { ac_try='test -z "$ac_cxx_werror_flag"
12541 || test ! -s conftest.err'
12542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12543 (eval $ac_try) 2>&5
12544 ac_status=$?
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); }; } &&
12547 { ac_try='test -s conftest.$ac_objext'
12548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12549 (eval $ac_try) 2>&5
12550 ac_status=$?
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); }; }; then
12553 ac_header_compiler=yes
12554else
12555 echo "$as_me: failed program was:" >&5
12556sed 's/^/| /' conftest.$ac_ext >&5
12557
12558ac_header_compiler=no
12559fi
12560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12561echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12562echo "${ECHO_T}$ac_header_compiler" >&6
12563
12564# Is the header present?
12565echo "$as_me:$LINENO: checking $ac_header presence" >&5
12566echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12567cat >conftest.$ac_ext <<_ACEOF
12568/* confdefs.h. */
12569_ACEOF
12570cat confdefs.h >>conftest.$ac_ext
12571cat >>conftest.$ac_ext <<_ACEOF
12572/* end confdefs.h. */
12573#include <$ac_header>
12574_ACEOF
12575if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12576 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12577 ac_status=$?
12578 grep -v '^ *+' conftest.er1 >conftest.err
12579 rm -f conftest.er1
12580 cat conftest.err >&5
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); } >/dev/null; then
12583 if test -s conftest.err; then
12584 ac_cpp_err=$ac_cxx_preproc_warn_flag
12585 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12586 else
12587 ac_cpp_err=
12588 fi
12589else
12590 ac_cpp_err=yes
12591fi
12592if test -z "$ac_cpp_err"; then
12593 ac_header_preproc=yes
12594else
12595 echo "$as_me: failed program was:" >&5
12596sed 's/^/| /' conftest.$ac_ext >&5
12597
12598 ac_header_preproc=no
12599fi
12600rm -f conftest.err conftest.$ac_ext
12601echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12602echo "${ECHO_T}$ac_header_preproc" >&6
12603
12604# So? What about this header?
12605case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12606 yes:no: )
12607 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12608echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12610echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12611 ac_header_preproc=yes
12612 ;;
12613 no:yes:* )
12614 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12615echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12616 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12617echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12618 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12619echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12620 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12621echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12623echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12624 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12625echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12626 (
12627 cat <<\_ASBOX
12628## ------------------------------------------ ##
12629## Report this to the AC_PACKAGE_NAME lists. ##
12630## ------------------------------------------ ##
12631_ASBOX
12632 ) |
12633 sed "s/^/$as_me: WARNING: /" >&2
12634 ;;
12635esac
12636echo "$as_me:$LINENO: checking for $ac_header" >&5
12637echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12638if eval "test \"\${$as_ac_Header+set}\" = set"; then
12639 echo $ECHO_N "(cached) $ECHO_C" >&6
12640else
12641 eval "$as_ac_Header=\$ac_header_preproc"
12642fi
12643echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12644echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12645
12646fi
12647if test `eval echo '${'$as_ac_Header'}'` = yes; then
12648 cat >>confdefs.h <<_ACEOF
12649#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12650_ACEOF
12651
16968else 12652else
16969 support_xft=no 12653 support_xft=no
16970fi 12654fi
16971 12655
16972done 12656done
17008 grep -v '^ *+' conftest.er1 >conftest.err 12692 grep -v '^ *+' conftest.er1 >conftest.err
17009 rm -f conftest.er1 12693 rm -f conftest.er1
17010 cat conftest.err >&5 12694 cat conftest.err >&5
17011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012 (exit $ac_status); } && 12696 (exit $ac_status); } &&
17013 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 12697 { ac_try='test -z "$ac_cxx_werror_flag"
12698 || test ! -s conftest.err'
17014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17015 (eval $ac_try) 2>&5 12700 (eval $ac_try) 2>&5
17016 ac_status=$? 12701 ac_status=$?
17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018 (exit $ac_status); }; } && 12703 (exit $ac_status); }; } &&
17053#define XFT 1 12738#define XFT 1
17054_ACEOF 12739_ACEOF
17055 12740
17056 fi 12741 fi
17057fi 12742fi
12743if test x$support_styles = xyes; then
17058 12744
12745cat >>confdefs.h <<\_ACEOF
12746#define ENABLE_STYLES 1
12747_ACEOF
12748
12749fi
12750if test x$support_iso14755 = xyes; then
12751
12752cat >>confdefs.h <<\_ACEOF
12753#define ISO_14755 1
12754_ACEOF
12755
12756fi
12757if test x$support_8bitctrls = xyes; then
12758
12759cat >>confdefs.h <<\_ACEOF
12760#define EIGHT_BIT_CONTROLS 1
12761_ACEOF
12762
12763fi
12764if test x$support_fading = xyes; then
12765
12766cat >>confdefs.h <<\_ACEOF
12767#define OFF_FOCUS_FADING 1
12768_ACEOF
12769
12770fi
12771if test x$support_tinting = xyes; then
12772
12773cat >>confdefs.h <<\_ACEOF
12774#define TINTING 1
12775_ACEOF
12776
12777fi
12778if test x$support_inheritpixmap = xyes; then
12779
12780cat >>confdefs.h <<\_ACEOF
12781#define ENABLE_TRANSPARENCY 1
12782_ACEOF
12783
12784fi
12785if test x$support_keepscrolling = xno; then
12786
12787cat >>confdefs.h <<\_ACEOF
12788#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
12789_ACEOF
12790
12791fi
12792if test x$support_selectionscrolling = xyes; then
12793
12794cat >>confdefs.h <<\_ACEOF
12795#define SELECTION_SCROLLING 1
12796_ACEOF
12797
12798fi
12799if test x$support_mousewheel = xyes; then
12800
12801cat >>confdefs.h <<\_ACEOF
12802#define MOUSE_WHEEL 1
12803_ACEOF
12804
12805fi
12806if test x$support_mouseslipwheel = xyes; then
12807
12808cat >>confdefs.h <<\_ACEOF
12809#define MOUSE_SLIP_WHEELING 1
12810_ACEOF
12811
12812fi
12813if test x$support_xpm = xyes -o x$support_afterimage = xyes ; then
12814
12815cat >>confdefs.h <<\_ACEOF
12816#define XPM_BACKGROUND 1
12817_ACEOF
12818
12819fi
12820
12821if test x$support_afterimage = xyes; then
12822
12823cat >>confdefs.h <<\_ACEOF
12824#define HAVE_AFTERIMAGE 1
12825_ACEOF
12826
12827fi
12828
12829if test x$support_afterstep = xyes; then
12830
12831cat >>confdefs.h <<\_ACEOF
12832#define AFTERSTEP_INTEGRATION 1
12833_ACEOF
12834
12835fi
12836
12837if test x$support_scroll_rxvt = xyes; then
12838
12839cat >>confdefs.h <<\_ACEOF
12840#define RXVT_SCROLLBAR 1
12841_ACEOF
12842
12843 scrolltypes="rxvt"
12844fi
12845if test x$support_scroll_next = xyes; then
12846
12847cat >>confdefs.h <<\_ACEOF
12848#define NEXT_SCROLLBAR 1
12849_ACEOF
12850
12851 scrolltypes="$scrolltypes next"
12852fi
12853if test x$support_scroll_xterm = xyes; then
12854
12855cat >>confdefs.h <<\_ACEOF
12856#define XTERM_SCROLLBAR 1
12857_ACEOF
12858
12859 scrolltypes="$scrolltypes xterm"
12860fi
12861if test x$support_scroll_plain = xyes; then
12862
12863cat >>confdefs.h <<\_ACEOF
12864#define PLAIN_SCROLLBAR 1
12865_ACEOF
12866
12867 scrolltypes="$scrolltypes plain"
12868fi
12869if test x$support_pointer_blank = xyes; then
12870
12871cat >>confdefs.h <<\_ACEOF
12872#define POINTER_BLANK 1
12873_ACEOF
12874
12875fi
12876if test x$support_text_blink = xyes; then
12877
12878cat >>confdefs.h <<\_ACEOF
12879#define TEXT_BLINK 1
12880_ACEOF
12881
12882fi
12883if test x$support_unicode3 = xyes; then
12884
12885cat >>confdefs.h <<\_ACEOF
12886#define UNICODE_3 1
12887_ACEOF
12888
12889fi
12890if test x$support_combining = xyes; then
12891
12892cat >>confdefs.h <<\_ACEOF
12893#define ENABLE_COMBINING 1
12894_ACEOF
12895
12896fi
12897if test x$codesets = xall; then
12898 codesets=jp,jp-ext,kr,zh,zh-ext
12899fi
12900
12901cat >>confdefs.h <<\_ACEOF
12902#define ENCODING_EU 1
12903_ACEOF
12904
12905
12906cat >>confdefs.h <<\_ACEOF
12907#define ENCODING_VN 1
12908_ACEOF
12909
12910for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
12911 case "$codeset" in
12912 JP )
12913cat >>confdefs.h <<\_ACEOF
12914#define ENCODING_JP 1
12915_ACEOF
12916 ;;
12917 JP_EXT )
12918cat >>confdefs.h <<\_ACEOF
12919#define ENCODING_JP_EXT 1
12920_ACEOF
12921 ;;
12922 KR )
12923cat >>confdefs.h <<\_ACEOF
12924#define ENCODING_KR 1
12925_ACEOF
12926 ;;
12927 ZH )
12928cat >>confdefs.h <<\_ACEOF
12929#define ENCODING_ZH 1
12930_ACEOF
12931 ;;
12932 ZH_EXT )
12933cat >>confdefs.h <<\_ACEOF
12934#define ENCODING_ZH_EXT 1
12935_ACEOF
12936 ;;
12937 esac
12938done
12939
12940IF_PERL=\#
12941if test x$support_perl = xyes; then
12942 # Extract the first word of "perl5", so it can be a program name with args.
12943set dummy perl5; ac_word=$2
12944echo "$as_me:$LINENO: checking for $ac_word" >&5
12945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12946if test "${ac_cv_path_PERL+set}" = set; then
12947 echo $ECHO_N "(cached) $ECHO_C" >&6
12948else
12949 case $PERL in
12950 [\\/]* | ?:[\\/]*)
12951 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12952 ;;
12953 *)
12954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12955for as_dir in $PATH
12956do
12957 IFS=$as_save_IFS
12958 test -z "$as_dir" && as_dir=.
12959 for ac_exec_ext in '' $ac_executable_extensions; do
12960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12961 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12963 break 2
12964 fi
12965done
12966done
12967
12968 ;;
12969esac
12970fi
12971PERL=$ac_cv_path_PERL
12972
12973if test -n "$PERL"; then
12974 echo "$as_me:$LINENO: result: $PERL" >&5
12975echo "${ECHO_T}$PERL" >&6
12976else
12977 echo "$as_me:$LINENO: result: no" >&5
12978echo "${ECHO_T}no" >&6
12979fi
12980
12981 # Extract the first word of "perl", so it can be a program name with args.
12982set dummy perl; ac_word=$2
12983echo "$as_me:$LINENO: checking for $ac_word" >&5
12984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12985if test "${ac_cv_path_PERL+set}" = set; then
12986 echo $ECHO_N "(cached) $ECHO_C" >&6
12987else
12988 case $PERL in
12989 [\\/]* | ?:[\\/]*)
12990 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12991 ;;
12992 *)
12993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12994for as_dir in $PATH
12995do
12996 IFS=$as_save_IFS
12997 test -z "$as_dir" && as_dir=.
12998 for ac_exec_ext in '' $ac_executable_extensions; do
12999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13000 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13002 break 2
13003 fi
13004done
13005done
13006
13007 ;;
13008esac
13009fi
13010PERL=$ac_cv_path_PERL
13011
13012if test -n "$PERL"; then
13013 echo "$as_me:$LINENO: result: $PERL" >&5
13014echo "${ECHO_T}$PERL" >&6
13015else
13016 echo "$as_me:$LINENO: result: no" >&5
13017echo "${ECHO_T}no" >&6
13018fi
13019
13020
13021 echo "$as_me:$LINENO: checking for $PERL suitability" >&5
13022echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6
13023 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
13024
13025 save_CXXFLAGS="$CXXFLAGS"
13026 save_LIBS="$LIBS"
13027 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
13028 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
13029 cat >conftest.$ac_ext <<_ACEOF
13030/* confdefs.h. */
13031_ACEOF
13032cat confdefs.h >>conftest.$ac_ext
13033cat >>conftest.$ac_ext <<_ACEOF
13034/* end confdefs.h. */
13035
13036#include <EXTERN.h>
13037#include <perl.h>
13038#include <XSUB.h>
13039
13040int
13041main ()
13042{
13043
13044 PerlInterpreter *perl = perl_alloc ();
13045
13046 ;
13047 return 0;
13048}
13049_ACEOF
13050rm -f conftest.$ac_objext conftest$ac_exeext
13051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13052 (eval $ac_link) 2>conftest.er1
13053 ac_status=$?
13054 grep -v '^ *+' conftest.er1 >conftest.err
13055 rm -f conftest.er1
13056 cat conftest.err >&5
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); } &&
13059 { ac_try='test -z "$ac_cxx_werror_flag"
13060 || test ! -s conftest.err'
13061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13062 (eval $ac_try) 2>&5
13063 ac_status=$?
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); }; } &&
13066 { ac_try='test -s conftest$ac_exeext'
13067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13068 (eval $ac_try) 2>&5
13069 ac_status=$?
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); }; }; then
13072 rxvt_perl_link=yes
13073else
13074 echo "$as_me: failed program was:" >&5
13075sed 's/^/| /' conftest.$ac_ext >&5
13076
13077rxvt_perl_link=no
13078fi
13079rm -f conftest.err conftest.$ac_objext \
13080 conftest$ac_exeext conftest.$ac_ext
13081 CXXFLAGS="$save_CXXFLAGS"
13082 LIBS="$save_LIBS"
13083
13084 if test x$rxvt_perl_link = xyes; then
13085 echo "$as_me:$LINENO: result: ok" >&5
13086echo "${ECHO_T}ok" >&6
13087
13088cat >>confdefs.h <<\_ACEOF
13089#define ENABLE_PERL 1
13090_ACEOF
13091
13092 IF_PERL=
13093 PERL_O=rxvtperl.o
13094 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
13095 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
13096 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
13097 else
13098 { { echo "$as_me:$LINENO: error: no, unable to link" >&5
13099echo "$as_me: error: no, unable to link" >&2;}
13100 { (exit 1); exit 1; }; }
13101 fi
13102 else
13103 { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5
13104echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;}
13105 { (exit 1); exit 1; }; }
13106 fi
13107fi
13108
13109
13110
13111
13112
13113
13114
13115if test x$support_perl = xyes; then
13116 support_frills=yes
13117fi
13118
13119if test x$support_frills = xyes; then
13120
13121cat >>confdefs.h <<\_ACEOF
13122#define ENABLE_FRILLS 1
13123_ACEOF
13124
13125fi
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139test "$program_prefix" != NONE &&
13140 program_transform_name="s,^,$program_prefix,;$program_transform_name"
13141# Use a double $ so make ignores it.
13142test "$program_suffix" != NONE &&
13143 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
13144# Double any \ or $. echo might interpret backslashes.
13145# By default was `s,x,x', remove it if useless.
13146cat <<\_ACEOF >conftest.sed
13147s/[\\$]/&&/g;s/;s,x,x,$//
13148_ACEOF
13149program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
13150rm conftest.sed
13151
13152
13153
13154
13155
13156if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
13157 include_stdint_h="#include <stdint.h>"
13158else
13159 include_stdint_h="/* #include <stdint.h> */"
13160fi
13161if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
13162 include_stdarg_h="#include <cstdarg>"
13163else
13164 include_stdarg_h="/* #include <cstdarg> */"
13165fi
13166if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
13167 include_stdlib_h="#include <cstdlib>"
13168else
13169 include_stdlib_h="/* #include <cstdlib> */"
13170fi
13171if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
13172 include_unistd_h="#include <unistd.h>"
13173else
13174 include_unistd_h="/* #include <unistd.h> */"
13175fi
13176if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
13177 include_string_h="#include <cstring>"
13178else
13179 include_string_h="/* #include <cstring> */"
13180fi
13181if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
13182 include_fcntl_h="#include <fcntl.h>"
13183else
13184 include_fcntl_h="/* #include <fcntl.h> */"
13185fi
13186if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
13187 include_util_h="#include <util.h>"
13188else
13189 include_util_h="/* #include <util.h> */"
13190fi
13191if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
13192 include_assert_h="#include <assert.h>"
13193else
13194 include_assert_h="/* #include <assert.h> */"
13195fi
13196if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
13197 include_sys_ioctl_h="#include <sys/ioctl.h>"
13198else
13199 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
13200fi
13201if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
13202 include_sys_select_h="#include <sys/select.h>"
13203else
13204 include_sys_select_h="/* #include <sys/select.h> */"
13205fi
13206if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
13207 include_sys_strredir_h="#include <sys/strredir.h>"
13208else
13209 include_sys_strredir_h="/* #include <sys/strredir.h> */"
13210fi
13211if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
13212 include_sys_time_h="#include <sys/time.h>"
13213else
13214 include_sys_time_h="/* #include <sys/time.h> */"
13215fi
13216if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
13217 include_time_h="#include <time.h>"
13218else
13219 include_time_h="/* #include <time.h> */"
13220fi
13221
17059 ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/test/Makefile src/rxvtlib.h W11/Makefile" 13222 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h"
17060 13223
17061cat >confcache <<\_ACEOF 13224cat >confcache <<\_ACEOF
17062# This file is a shell script that caches the results of configure 13225# This file is a shell script that caches the results of configure
17063# tests run on this system so they can be shared between configure 13226# tests run on this system so they can be shared between configure
17064# scripts and configure runs, see configure's option --config-cache. 13227# scripts and configure runs, see configure's option --config-cache.
17581cat >>$CONFIG_STATUS <<\_ACEOF 13744cat >>$CONFIG_STATUS <<\_ACEOF
17582for ac_config_target in $ac_config_targets 13745for ac_config_target in $ac_config_targets
17583do 13746do
17584 case "$ac_config_target" in 13747 case "$ac_config_target" in
17585 # Handling of arguments. 13748 # Handling of arguments.
17586 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
17587 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13749 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17588 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 13750 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17589 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 13751 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17590 "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
17591 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; 13752 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
17592 "W11/Makefile" ) CONFIG_FILES="$CONFIG_FILES W11/Makefile" ;;
17593 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;; 13753 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
17594 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 13754 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17595echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 13755echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17596 { (exit 1); exit 1; }; };; 13756 { (exit 1); exit 1; }; };;
17597 esac 13757 esac
17598done 13758done
17673s,@DEFS@,$DEFS,;t t 13833s,@DEFS@,$DEFS,;t t
17674s,@ECHO_C@,$ECHO_C,;t t 13834s,@ECHO_C@,$ECHO_C,;t t
17675s,@ECHO_N@,$ECHO_N,;t t 13835s,@ECHO_N@,$ECHO_N,;t t
17676s,@ECHO_T@,$ECHO_T,;t t 13836s,@ECHO_T@,$ECHO_T,;t t
17677s,@LIBS@,$LIBS,;t t 13837s,@LIBS@,$LIBS,;t t
13838s,@build@,$build,;t t
13839s,@build_cpu@,$build_cpu,;t t
13840s,@build_vendor@,$build_vendor,;t t
13841s,@build_os@,$build_os,;t t
13842s,@host@,$host,;t t
13843s,@host_cpu@,$host_cpu,;t t
13844s,@host_vendor@,$host_vendor,;t t
13845s,@host_os@,$host_os,;t t
17678s,@VERSION@,$VERSION,;t t 13846s,@VERSION@,$VERSION,;t t
17679s,@DATE@,$DATE,;t t 13847s,@DATE@,$DATE,;t t
17680s,@LSMDATE@,$LSMDATE,;t t 13848s,@LSMDATE@,$LSMDATE,;t t
17681s,@LIBVERSION@,$LIBVERSION,;t t 13849s,@LIBVERSION@,$LIBVERSION,;t t
17682s,@CC@,$CC,;t t 13850s,@CC@,$CC,;t t
17691s,@ac_ct_CXX@,$ac_ct_CXX,;t t 13859s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17692s,@CPP@,$CPP,;t t 13860s,@CPP@,$CPP,;t t
17693s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 13861s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17694s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 13862s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17695s,@INSTALL_DATA@,$INSTALL_DATA,;t t 13863s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17696s,@AWK@,$AWK,;t t 13864s,@EGREP@,$EGREP,;t t
17697s,@LINKER@,$LINKER,;t t 13865s,@LINKER@,$LINKER,;t t
17698s,@CXXCPP@,$CXXCPP,;t t
17699s,@EGREP@,$EGREP,;t t
17700s,@build@,$build,;t t
17701s,@build_cpu@,$build_cpu,;t t
17702s,@build_vendor@,$build_vendor,;t t
17703s,@build_os@,$build_os,;t t
17704s,@host@,$host,;t t
17705s,@host_cpu@,$host_cpu,;t t
17706s,@host_vendor@,$host_vendor,;t t
17707s,@host_os@,$host_os,;t t
17708s,@LN_S@,$LN_S,;t t
17709s,@ECHO@,$ECHO,;t t
17710s,@RANLIB@,$RANLIB,;t t
17711s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17712s,@STRIP@,$STRIP,;t t
17713s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17714s,@LIBTOOL@,$LIBTOOL,;t t
17715s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t 13866s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
17716s,@RXVTNAME@,$RXVTNAME,;t t 13867s,@RXVTNAME@,$RXVTNAME,;t t
17717s,@MV@,$MV,;t t
17718s,@RM@,$RM,;t t
17719s,@CP@,$CP,;t t 13868s,@TIC@,$TIC,;t t
17720s,@LN@,$LN,;t t
17721s,@SED@,$SED,;t t
17722s,@CMP@,$CMP,;t t 13869s,@CXXCPP@,$CXXCPP,;t t
17723s,@TBL@,$TBL,;t t
17724s,@X_CFLAGS@,$X_CFLAGS,;t t 13870s,@X_CFLAGS@,$X_CFLAGS,;t t
17725s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 13871s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17726s,@X_LIBS@,$X_LIBS,;t t 13872s,@X_LIBS@,$X_LIBS,;t t
17727s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 13873s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
13874s,@afterimage_config@,$afterimage_config,;t t
17728s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t 13875s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
17729s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t 13876s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t
17730s,@XPM_LIBS@,$XPM_LIBS,;t t 13877s,@XPM_LIBS@,$XPM_LIBS,;t t
17731s,@rxvt_int16_typedef@,$rxvt_int16_typedef,;t t 13878s,@rxvt_int16_typedef@,$rxvt_int16_typedef,;t t
17732s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t 13879s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
17733s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t 13880s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
17734s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t 13881s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
17735s,@rxvt_intp_define@,$rxvt_intp_define,;t t 13882s,@rxvt_intp_define@,$rxvt_intp_define,;t t
17736s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t 13883s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
17737s,@DEBUG@,$DEBUG,;t t 13884s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17738s,@DINCLUDE@,$DINCLUDE,;t t 13885s,@XFT_CONFIG@,$XFT_CONFIG,;t t
13886s,@PERL@,$PERL,;t t
17739s,@DLIB@,$DLIB,;t t 13887s,@PERLLIB@,$PERLLIB,;t t
13888s,@PERLFLAGS@,$PERLFLAGS,;t t
13889s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t
13890s,@IF_PERL@,$IF_PERL,;t t
13891s,@PERL_O@,$PERL_O,;t t
13892s,@LIBAFTERIMAGE_CFLAGS@,$LIBAFTERIMAGE_CFLAGS,;t t
13893s,@AFTERIMAGE_LIBS@,$AFTERIMAGE_LIBS,;t t
17740s,@include_stdint_h@,$include_stdint_h,;t t 13894s,@include_stdint_h@,$include_stdint_h,;t t
17741s,@include_stdarg_h@,$include_stdarg_h,;t t 13895s,@include_stdarg_h@,$include_stdarg_h,;t t
17742s,@include_stdlib_h@,$include_stdlib_h,;t t 13896s,@include_stdlib_h@,$include_stdlib_h,;t t
17743s,@include_unistd_h@,$include_unistd_h,;t t 13897s,@include_unistd_h@,$include_unistd_h,;t t
17744s,@include_string_h@,$include_string_h,;t t 13898s,@include_string_h@,$include_string_h,;t t
17750s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t 13904s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t
17751s,@include_sys_time_h@,$include_sys_time_h,;t t 13905s,@include_sys_time_h@,$include_sys_time_h,;t t
17752s,@include_time_h@,$include_time_h,;t t 13906s,@include_time_h@,$include_time_h,;t t
17753s,@LIBOBJS@,$LIBOBJS,;t t 13907s,@LIBOBJS@,$LIBOBJS,;t t
17754s,@LTLIBOBJS@,$LTLIBOBJS,;t t 13908s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17755/@MCOMMON@/r $MCOMMON
17756s,@MCOMMON@,,;t t
17757CEOF 13909CEOF
17758 13910
17759_ACEOF 13911_ACEOF
17760 13912
17761 cat >>$CONFIG_STATUS <<\_ACEOF 13913 cat >>$CONFIG_STATUS <<\_ACEOF
17918 case $INSTALL in 14070 case $INSTALL in
17919 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14071 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17920 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 14072 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17921 esac 14073 esac
17922 14074
14075 if test x"$ac_file" != x-; then
14076 { echo "$as_me:$LINENO: creating $ac_file" >&5
14077echo "$as_me: creating $ac_file" >&6;}
14078 rm -f "$ac_file"
14079 fi
17923 # Let's still pretend it is `configure' which instantiates (i.e., don't 14080 # Let's still pretend it is `configure' which instantiates (i.e., don't
17924 # use $as_me), people would be surprised to read: 14081 # use $as_me), people would be surprised to read:
17925 # /* config.h. Generated by config.status. */ 14082 # /* config.h. Generated by config.status. */
17926 if test x"$ac_file" = x-; then 14083 if test x"$ac_file" = x-; then
17927 configure_input= 14084 configure_input=
17956echo "$as_me: error: cannot find input file: $f" >&2;} 14113echo "$as_me: error: cannot find input file: $f" >&2;}
17957 { (exit 1); exit 1; }; } 14114 { (exit 1); exit 1; }; }
17958 fi;; 14115 fi;;
17959 esac 14116 esac
17960 done` || { (exit 1); exit 1; } 14117 done` || { (exit 1); exit 1; }
17961
17962 if test x"$ac_file" != x-; then
17963 { echo "$as_me:$LINENO: creating $ac_file" >&5
17964echo "$as_me: creating $ac_file" >&6;}
17965 rm -f "$ac_file"
17966 fi
17967_ACEOF 14118_ACEOF
17968cat >>$CONFIG_STATUS <<_ACEOF 14119cat >>$CONFIG_STATUS <<_ACEOF
17969 sed "$ac_vpsub 14120 sed "$ac_vpsub
17970$extrasub 14121$extrasub
17971_ACEOF 14122_ACEOF
18251 14402
18252 Rxvt version: $VERSION : $DATE 14403 Rxvt version: $VERSION : $DATE
18253 Source code location: $srcdir 14404 Source code location: $srcdir
18254 Install path: ${prefix}/bin 14405 Install path: ${prefix}/bin
18255 Compiler: $CXX 14406 Compiler: $CXX
18256 Compiler flags: $CFLAGS 14407 Compiler flags: $CXXFLAGS
18257 Linker: $LINKER" 14408 Linker: $LINKER"
18258
18259if test "$MALLOC_TYPE" = S; then
18260 echo " malloc support: system default"
18261fi
18262if test "$MALLOC_TYPE" = G; then
18263 echo " malloc support: Gray Watson's dmalloc"
18264fi
18265if test "$MALLOC_TYPE" = D; then
18266 echo " malloc support: Doug Lea's malloc"
18267fi
18268 14409
18269if test x$support_xpm = xyes; then 14410if test x$support_xpm = xyes; then
18270 echo " Xpm library: $XPM_LIBS" 14411 echo " Xpm library: $XPM_LIBS"
18271fi 14412fi
18272 14413
18273echo " 14414if test x$support_afterimage = xyes; then
18274The following are set in config.h 14415 echo " AfterImage support: yes"
18275" 14416fi
18276echo " pty/tty type: "$rxvt_cv_ptys 14417
18277if test x$support_utmp != xyes; then 14418if test x$support_afterstep = xyes; then
18278 echo " utmp support: disabled" 14419 echo " AfterStep integration: yes"
18279 echo
18280else
18281 echo " utmp support: enabled
18282 utmp file: $rxvt_cv_path_utmp
18283 utmpx file: $rxvt_cv_path_utmpx
18284 wtmp file: $rxvt_cv_path_wtmp
18285 wtmpx file: $rxvt_cv_path_wtmpx
18286 lastlog file: $rxvt_cv_path_lastlog
18287 ttys/ttytab file: $rxvt_cv_path_ttytab"
18288 echo
18289fi 14420fi
14421
18290if test x$term != x; then 14422if test x$term != x; then
18291 echo " set TERM to: $term" 14423 echo " set TERM to: $term"
18292fi 14424fi
18293if test x$terminfo != x; then 14425if test x$terminfo != x; then
18294 echo " set TERMINFO to: $terminfo" 14426 echo " set TERMINFO to: $terminfo"
18297echo " resource class: $RESCLASS" 14429echo " resource class: $RESCLASS"
18298if test x$RESFALLBACK != x; then 14430if test x$RESFALLBACK != x; then
18299 echo " resource class fallback: $RESFALLBACK" 14431 echo " resource class fallback: $RESFALLBACK"
18300fi 14432fi
18301echo 14433echo
18302if test x$rxvt_cv_ptys = xUNKNOWN; then 14434echo " embedded perl: $support_perl"
18303 echo ".----------------------------------------------------------------." 14435echo
18304 echo ". WARNING: could not determine pty/tty type. Do not build until ."
18305 echo ". the appropriate PTYS_ARE_* is defined in config.h ."
18306 echo ".----------------------------------------------------------------."
18307fi
18308if test x$support_xpm = xneedsmanualspecification; then 14436if test x$support_xpm = xneedsmanualspecification; then
18309 echo ".----------------------------------------------------------------." 14437 echo ".----------------------------------------------------------------."
18310 echo ". WARNING: --enable-xpm-background was specified however the ." 14438 echo ". WARNING: --enable-xpm-background was specified however the ."
18311 echo ". XPM includes files and libraries could not be found. ." 14439 echo ". XPM includes files and libraries could not be found. ."
18312 echo ". XPM backgrounds are now being DISABLED! If you want ." 14440 echo ". XPM backgrounds are now being DISABLED! If you want ."
18321 echo ". functions could not be found. ." 14449 echo ". functions could not be found. ."
18322 echo ". XIM is now being DISABLED! ." 14450 echo ". XIM is now being DISABLED! ."
18323 echo ".----------------------------------------------------------------." 14451 echo ".----------------------------------------------------------------."
18324fi 14452fi
18325 14453
18326echo " *** Please check src/feature.h for further options ***" 14454echo "*** Optionally check src/feature.h for further, rarely used options ***"
18327echo 14455echo
18328 14456
18329echo ".----------------------------------------------------------------."
18330echo ". NOTE: most features are disabled by default, try ."
18331echo ". configure --help to get an idea of the optional features ."
18332echo ".----------------------------------------------------------------."
18333echo
18334

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines