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

Comparing rxvt-unicode/configure (file contents):
Revision 1.15 by pcg, Wed Mar 3 04:07:45 2004 UTC vs.
Revision 1.104 by ayin, Sat Jun 23 13:41:19 2007 UTC

239 239
240# CDPATH. 240# CDPATH.
241$as_unset CDPATH 241$as_unset CDPATH
242 242
243 243
244# Find the correct PATH separator. Usually this is `:', but
245# DJGPP uses `;' like DOS.
246if test "X${PATH_SEPARATOR+set}" != Xset; then
247 UNAME=${UNAME-`uname 2>/dev/null`}
248 case X$UNAME in
249 *-DOS) lt_cv_sys_path_separator=';' ;;
250 *) lt_cv_sys_path_separator=':' ;;
251 esac
252fi
253
254
255# Check that we are running under the correct shell.
256SHELL=${CONFIG_SHELL-/bin/sh}
257
258case "X$ECHO" in
259X*--fallback-echo)
260 # Remove one level of quotation (which was required for Make).
261 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
262 ;;
263esac
264
265echo=${ECHO-echo}
266if test "X$1" = X--no-reexec; then
267 # Discard the --no-reexec flag, and continue.
268 shift
269elif test "X$1" = X--fallback-echo; then
270 # Avoid inline document here, it may be left over
271 :
272elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
273 # Yippee, $echo works!
274 :
275else
276 # Restart under the correct shell.
277 exec $SHELL "$0" --no-reexec ${1+"$@"}
278fi
279
280if test "X$1" = X--fallback-echo; then
281 # used as fallback echo
282 shift
283 cat <<EOF
284
285EOF
286 exit 0
287fi
288
289# The HP-UX ksh and POSIX shell print the target directory to stdout
290# if CDPATH is set.
291if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
292
293if test -z "$ECHO"; then
294if test "X${echo_test_string+set}" != Xset; then
295# find a string as large as possible, as long as the shell can cope with it
296 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
297 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
298 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
299 echo_test_string="`eval $cmd`" &&
300 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301 then
302 break
303 fi
304 done
305fi
306
307if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
308 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
309 test "X$echo_testing_string" = "X$echo_test_string"; then
310 :
311else
312 # The Solaris, AIX, and Digital Unix default echo programs unquote
313 # backslashes. This makes it impossible to quote backslashes using
314 # echo "$something" | sed 's/\\/\\\\/g'
315 #
316 # So, first we look for a working echo in the user's PATH.
317
318 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
319 for dir in $PATH /usr/ucb; do
320 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323 test "X$echo_testing_string" = "X$echo_test_string"; then
324 echo="$dir/echo"
325 break
326 fi
327 done
328 IFS="$save_ifs"
329
330 if test "X$echo" = Xecho; then
331 # We didn't find a better echo, so look for alternatives.
332 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334 test "X$echo_testing_string" = "X$echo_test_string"; then
335 # This shell has a builtin print -r that does the trick.
336 echo='print -r'
337 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338 test "X$CONFIG_SHELL" != X/bin/ksh; then
339 # If we have ksh, try running ltconfig again with it.
340 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341 export ORIGINAL_CONFIG_SHELL
342 CONFIG_SHELL=/bin/ksh
343 export CONFIG_SHELL
344 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345 else
346 # Try using printf.
347 echo='printf %s\n'
348 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350 test "X$echo_testing_string" = "X$echo_test_string"; then
351 # Cool, printf works
352 :
353 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358 export CONFIG_SHELL
359 SHELL="$CONFIG_SHELL"
360 export SHELL
361 echo="$CONFIG_SHELL $0 --fallback-echo"
362 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363 test "X$echo_testing_string" = 'X\t' &&
364 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365 test "X$echo_testing_string" = "X$echo_test_string"; then
366 echo="$CONFIG_SHELL $0 --fallback-echo"
367 else
368 # maybe with a smaller string...
369 prev=:
370
371 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373 then
374 break
375 fi
376 prev="$cmd"
377 done
378
379 if test "$prev" != 'sed 50q "$0"'; then
380 echo_test_string=`eval $prev`
381 export echo_test_string
382 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383 else
384 # Oops. We lost completely, so just stick with echo.
385 echo=echo
386 fi
387 fi
388 fi
389 fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
400
401
402# Name of the host. 244# Name of the host.
403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404# so uname gets run too. 246# so uname gets run too.
405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406 248
465#endif 307#endif
466#if HAVE_UNISTD_H 308#if HAVE_UNISTD_H
467# include <unistd.h> 309# include <unistd.h>
468#endif" 310#endif"
469 311
470ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK LINKER CXXCPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP LIBTOOL INSTALL_LIBRXVT 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 CXXLIB INSTALL_LIBRXVT RXVTNAME TIC CXXCPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS afterimage_config XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define PKG_CONFIG XFT_CONFIG PERL PERLLIB PERLFLAGS PERLPRIVLIBEXP IF_PERL PERL_O LIBAFTERIMAGE_CFLAGS AFTERIMAGE_LIBS include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS'
471ac_subst_files='MCOMMON' 313ac_subst_files=''
472 314
473# Initialize some variables set by options. 315# Initialize some variables set by options.
474ac_init_help= 316ac_init_help=
475ac_init_version=false 317ac_init_version=false
476# The variables have the same names as the options, with 318# The variables have the same names as the options, with
1021 cat <<\_ACEOF 863 cat <<\_ACEOF
1022 864
1023Optional Features: 865Optional Features:
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 866 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 867 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --enable-shared=PKGS build shared libraries default=no
1027 --enable-static=PKGS build static libraries default=yes
1028 --enable-fast-install=PKGS optimize for fast installation default=yes
1029 --disable-libtool-lock avoid locking (might break parallel builds)
1030 --enable-everything enable standard non-multichoice features 868 --enable-everything enable standard non-multichoice features
1031 NOTE: this option is order dependent 869 NOTE: this option is order dependent
1032 NOTE: automatically enabled with --enable-shared 870 NOTE: automatically enabled with --enable-shared
1033 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters 871 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
872 --enable-combining enable composition of base and combining characters
1034 --enable-xft enable xft support on systems that have it 873 --enable-xft enable xft support on systems that have it
1035 --enable-utmp enable utmp (utmpx) support 874 --enable-font-styles enable bold and italic support
1036 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1037 --enable-lastlog enable lastlog support (requires --enable-utmp)
1038 --enable-xpm-background enable XPM background pixmaps 875 --enable-xpm-background enable background pixmaps
876 --enable-afterimage enable integration with libAfterImage for background images
877 --enable-afterstep enable integration with AfterStep window manager
1039 --enable-transparency enable transparent backgrounds 878 --enable-transparency enable transparent backgrounds
1040 --enable-menubar enable menubar 879 --enable-tinting enable tinting of transparent bg
880 --enable-fading enable colors fading when off focus
1041 --enable-rxvt-scroll enable rxvt style scrollbar 881 --enable-rxvt-scroll enable rxvt style scrollbar
1042 --enable-next-scroll enable NeXT style scrollbar 882 --enable-next-scroll enable NeXT style scrollbar
1043 --enable-xterm-scroll enable Xterm style scrollbar 883 --enable-xterm-scroll enable Xterm style scrollbar
884 --enable-perl enable embedded perl interpreter
1044 --enable-plain-scroll enable plain style scrollbar 885 --enable-plain-scroll enable plain style scrollbar
1045 --enable-half-shadow use half width/height shadow on rxvt scrollbar
1046 --enable-xim XIM (X Input Method) protocol support 886 --enable-xim XIM (X Input Method) protocol support
1047 --enable-ttygid enable tty setting to group named "tty"
1048 --disable-backspace-key disable handling of the backspace key 887 --disable-backspace-key disable handling of the backspace key
1049 --disable-delete-key disable handling of the delete key 888 --disable-delete-key disable handling of the delete key
1050 --disable-resources disable all resource checking 889 --disable-resources disable all resource checking
1051 --enable-xgetdefault enable resources via X instead of our small version 890 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1052 --enable-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)
1053 --enable-strings enable some replacement system functions
1054 --disable-swapscreen disable swap screen support 892 --disable-swapscreen disable swap screen support
893 --enable-iso14755 enable support for extended ISO 14755 modes
1055 --enable-frills enable support for rarely used features 894 --enable-frills enable support for rarely used features
1056 --enable-linespace enable support for linespace
1057 --enable-24bit enable support for using 24bit visuals if available
1058 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 895 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1059 --enable-selectionscrolling enable scrolling during selections 896 --enable-selectionscrolling enable scrolling during selections
1060 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 897 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1061 --enable-slipwheeling enable slip wheel scrolling (requires previous) 898 --enable-slipwheeling enable slip wheel scrolling (requires previous)
1062 --enable-old-selection enable v2.20 (& prior) mouse selection style support
1063 --disable-new-selection disable new mouse (xterm) selection style support
1064 --enable-dmalloc enable Gray Watson's malloc - for debugging use
1065 --enable-dlmalloc enable Doug Lea's malloc - for production use
1066 NOTE: enable only one malloc package
1067 --enable-smart-resize enable smart growth/shrink behaviour 899 --enable-smart-resize enable smart growth/shrink behaviour
1068 --enable-256-color enable 256-color support
1069 --enable-cursor-blink enable blinking cursor
1070 --enable-text-blink enable blinking text 900 --enable-text-blink enable blinking text
1071 --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)
1072 905
1073Optional Packages: 906Optional Packages:
1074 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 907 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1075 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 908 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1076 --with-gnu-ld assume the C compiler uses GNU ld default=no 909 --with-afterimage-config=DIR use libAfterImage config script in DIR
1077 --with-pic try to use only PIC/non-PIC objects default=use both
1078 --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)
1079 --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)
1080 --with-res-class=NAME use this as the resource class (default: URxvt) 912 --with-res-class=CLASS use this as the resource class (default: URxvt)
1081 --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)
1082 --with-term=NAME set the terminal to NAME (default: rxvt) 914 --with-term=NAME set the terminal to NAME (default: rxvt)
1083 --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
1084 --with-x use the X Window System 916 --with-x use the X Window System
1085 --with-xpm-includes=DIR use XPM includes in DIR 917 --with-xpm-includes=DIR use XPM includes in DIR
1187 echo 1019 echo
1188 $ac_configure --help 1020 $ac_configure --help
1189 else 1021 else
1190 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
1191 fi 1023 fi
1192 cd "$ac_popdir" 1024 cd $ac_popdir
1193 done 1025 done
1194fi 1026fi
1195 1027
1196test -n "$ac_init_help" && exit 0 1028test -n "$ac_init_help" && exit 0
1197if $ac_init_version; then 1029if $ac_init_version; then
1534 1366
1535 1367
1536 1368
1537 1369
1538 1370
1371
1372
1373 ac_config_headers="$ac_config_headers config.h:config.h.in"
1374
1375
1539ac_aux_dir= 1376ac_aux_dir=
1540for ac_dir in autoconf $srcdir/autoconf; do 1377for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1541 if test -f $ac_dir/install-sh; then 1378 if test -f $ac_dir/install-sh; then
1542 ac_aux_dir=$ac_dir 1379 ac_aux_dir=$ac_dir
1543 ac_install_sh="$ac_aux_dir/install-sh -c" 1380 ac_install_sh="$ac_aux_dir/install-sh -c"
1544 break 1381 break
1545 elif test -f $ac_dir/install.sh; then 1382 elif test -f $ac_dir/install.sh; then
1551 ac_install_sh="$ac_aux_dir/shtool install -c" 1388 ac_install_sh="$ac_aux_dir/shtool install -c"
1552 break 1389 break
1553 fi 1390 fi
1554done 1391done
1555if test -z "$ac_aux_dir"; then 1392if test -z "$ac_aux_dir"; then
1556 { { 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
1557echo "$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;}
1558 { (exit 1); exit 1; }; } 1395 { (exit 1); exit 1; }; }
1559fi 1396fi
1560ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1397ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1561ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1398ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1562ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1399ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1563 1400
1564 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
1565 1454
1566 1455
1567VERSION=`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`
1568DATE=`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`
1569LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1570LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1571echo "" 1458echo ""
1572echo "configuring for rxvt $VERSION" 1459echo "configuring for rxvt $VERSION"
1573echo "" 1460echo ""
1461
1462orig_CXXFLAGS="$CXXFLAGS"
1574 1463
1575 1464
1576ac_ext=c 1465ac_ext=c
1577ac_cpp='$CPP $CPPFLAGS' 1466ac_cpp='$CPP $CPPFLAGS'
1578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2139 grep -v '^ *+' conftest.er1 >conftest.err 2028 grep -v '^ *+' conftest.er1 >conftest.err
2140 rm -f conftest.er1 2029 rm -f conftest.er1
2141 cat conftest.err >&5 2030 cat conftest.err >&5
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); } && 2032 (exit $ac_status); } &&
2144 { 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'
2145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2146 (eval $ac_try) 2>&5 2036 (eval $ac_try) 2>&5
2147 ac_status=$? 2037 ac_status=$?
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); }; } && 2039 (exit $ac_status); }; } &&
2197 grep -v '^ *+' conftest.er1 >conftest.err 2087 grep -v '^ *+' conftest.er1 >conftest.err
2198 rm -f conftest.er1 2088 rm -f conftest.er1
2199 cat conftest.err >&5 2089 cat conftest.err >&5
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); } && 2091 (exit $ac_status); } &&
2202 { 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'
2203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2204 (eval $ac_try) 2>&5 2095 (eval $ac_try) 2>&5
2205 ac_status=$? 2096 ac_status=$?
2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207 (exit $ac_status); }; } && 2098 (exit $ac_status); }; } &&
2313 grep -v '^ *+' conftest.er1 >conftest.err 2204 grep -v '^ *+' conftest.er1 >conftest.err
2314 rm -f conftest.er1 2205 rm -f conftest.er1
2315 cat conftest.err >&5 2206 cat conftest.err >&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); } && 2208 (exit $ac_status); } &&
2318 { 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'
2319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2320 (eval $ac_try) 2>&5 2212 (eval $ac_try) 2>&5
2321 ac_status=$? 2213 ac_status=$?
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); }; } && 2215 (exit $ac_status); }; } &&
2367 grep -v '^ *+' conftest.er1 >conftest.err 2259 grep -v '^ *+' conftest.er1 >conftest.err
2368 rm -f conftest.er1 2260 rm -f conftest.er1
2369 cat conftest.err >&5 2261 cat conftest.err >&5
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); } && 2263 (exit $ac_status); } &&
2372 { 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'
2373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2374 (eval $ac_try) 2>&5 2267 (eval $ac_try) 2>&5
2375 ac_status=$? 2268 ac_status=$?
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); }; } && 2270 (exit $ac_status); }; } &&
2412 grep -v '^ *+' conftest.er1 >conftest.err 2305 grep -v '^ *+' conftest.er1 >conftest.err
2413 rm -f conftest.er1 2306 rm -f conftest.er1
2414 cat conftest.err >&5 2307 cat conftest.err >&5
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); } && 2309 (exit $ac_status); } &&
2417 { 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'
2418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419 (eval $ac_try) 2>&5 2313 (eval $ac_try) 2>&5
2420 ac_status=$? 2314 ac_status=$?
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }; } && 2316 (exit $ac_status); }; } &&
2456 grep -v '^ *+' conftest.er1 >conftest.err 2350 grep -v '^ *+' conftest.er1 >conftest.err
2457 rm -f conftest.er1 2351 rm -f conftest.er1
2458 cat conftest.err >&5 2352 cat conftest.err >&5
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); } && 2354 (exit $ac_status); } &&
2461 { 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'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 (eval $ac_try) 2>&5 2358 (eval $ac_try) 2>&5
2464 ac_status=$? 2359 ac_status=$?
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; } && 2361 (exit $ac_status); }; } &&
2640 grep -v '^ *+' conftest.er1 >conftest.err 2535 grep -v '^ *+' conftest.er1 >conftest.err
2641 rm -f conftest.er1 2536 rm -f conftest.er1
2642 cat conftest.err >&5 2537 cat conftest.err >&5
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); } && 2539 (exit $ac_status); } &&
2645 { 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'
2646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647 (eval $ac_try) 2>&5 2543 (eval $ac_try) 2>&5
2648 ac_status=$? 2544 ac_status=$?
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); }; } && 2546 (exit $ac_status); }; } &&
2698 grep -v '^ *+' conftest.er1 >conftest.err 2594 grep -v '^ *+' conftest.er1 >conftest.err
2699 rm -f conftest.er1 2595 rm -f conftest.er1
2700 cat conftest.err >&5 2596 cat conftest.err >&5
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); } && 2598 (exit $ac_status); } &&
2703 { 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'
2704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705 (eval $ac_try) 2>&5 2602 (eval $ac_try) 2>&5
2706 ac_status=$? 2603 ac_status=$?
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; } && 2605 (exit $ac_status); }; } &&
2769 grep -v '^ *+' conftest.er1 >conftest.err 2666 grep -v '^ *+' conftest.er1 >conftest.err
2770 rm -f conftest.er1 2667 rm -f conftest.er1
2771 cat conftest.err >&5 2668 cat conftest.err >&5
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); } && 2670 (exit $ac_status); } &&
2774 { 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'
2775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776 (eval $ac_try) 2>&5 2674 (eval $ac_try) 2>&5
2777 ac_status=$? 2675 ac_status=$?
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); }; } && 2677 (exit $ac_status); }; } &&
2813 grep -v '^ *+' conftest.er1 >conftest.err 2711 grep -v '^ *+' conftest.er1 >conftest.err
2814 rm -f conftest.er1 2712 rm -f conftest.er1
2815 cat conftest.err >&5 2713 cat conftest.err >&5
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); } && 2715 (exit $ac_status); } &&
2818 { 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'
2819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2820 (eval $ac_try) 2>&5 2719 (eval $ac_try) 2>&5
2821 ac_status=$? 2720 ac_status=$?
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); }; } && 2722 (exit $ac_status); }; } &&
3159 3058
3160test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3059test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3161 3060
3162test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3061test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3163 3062
3164for ac_prog in gawk mawk nawk awk 3063
3165do 3064
3065
3066echo "$as_me:$LINENO: checking for egrep" >&5
3067echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3068if test "${ac_cv_prog_egrep+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3070else
3071 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3072 then ac_cv_prog_egrep='grep -E'
3073 else ac_cv_prog_egrep='egrep'
3074 fi
3075fi
3076echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3077echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3078 EGREP=$ac_cv_prog_egrep
3079
3080
3081
3082echo "$as_me:$LINENO: checking for AIX" >&5
3083echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3084cat >conftest.$ac_ext <<_ACEOF
3085/* confdefs.h. */
3086_ACEOF
3087cat confdefs.h >>conftest.$ac_ext
3088cat >>conftest.$ac_ext <<_ACEOF
3089/* end confdefs.h. */
3090#ifdef _AIX
3091 yes
3092#endif
3093
3094_ACEOF
3095if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3096 $EGREP "yes" >/dev/null 2>&1; then
3097 echo "$as_me:$LINENO: result: yes" >&5
3098echo "${ECHO_T}yes" >&6
3099cat >>confdefs.h <<\_ACEOF
3100#define _ALL_SOURCE 1
3101_ACEOF
3102
3103else
3104 echo "$as_me:$LINENO: result: no" >&5
3105echo "${ECHO_T}no" >&6
3106fi
3107rm -f conftest*
3108
3109
3110echo "$as_me:$LINENO: checking for library containing strerror" >&5
3111echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3112if test "${ac_cv_search_strerror+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3114else
3115 ac_func_search_save_LIBS=$LIBS
3116ac_cv_search_strerror=no
3117cat >conftest.$ac_ext <<_ACEOF
3118/* confdefs.h. */
3119_ACEOF
3120cat confdefs.h >>conftest.$ac_ext
3121cat >>conftest.$ac_ext <<_ACEOF
3122/* end confdefs.h. */
3123
3124/* Override any gcc2 internal prototype to avoid an error. */
3125#ifdef __cplusplus
3126extern "C"
3127#endif
3128/* We use char because int might match the return type of a gcc2
3129 builtin and then its argument prototype would still apply. */
3130char strerror ();
3131int
3132main ()
3133{
3134strerror ();
3135 ;
3136 return 0;
3137}
3138_ACEOF
3139rm -f conftest.$ac_objext conftest$ac_exeext
3140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3141 (eval $ac_link) 2>conftest.er1
3142 ac_status=$?
3143 grep -v '^ *+' conftest.er1 >conftest.err
3144 rm -f conftest.er1
3145 cat conftest.err >&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); } &&
3148 { ac_try='test -z "$ac_c_werror_flag"
3149 || test ! -s conftest.err'
3150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3151 (eval $ac_try) 2>&5
3152 ac_status=$?
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; } &&
3155 { ac_try='test -s conftest$ac_exeext'
3156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3157 (eval $ac_try) 2>&5
3158 ac_status=$?
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); }; }; then
3161 ac_cv_search_strerror="none required"
3162else
3163 echo "$as_me: failed program was:" >&5
3164sed 's/^/| /' conftest.$ac_ext >&5
3165
3166fi
3167rm -f conftest.err conftest.$ac_objext \
3168 conftest$ac_exeext conftest.$ac_ext
3169if test "$ac_cv_search_strerror" = no; then
3170 for ac_lib in cposix; do
3171 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3172 cat >conftest.$ac_ext <<_ACEOF
3173/* confdefs.h. */
3174_ACEOF
3175cat confdefs.h >>conftest.$ac_ext
3176cat >>conftest.$ac_ext <<_ACEOF
3177/* end confdefs.h. */
3178
3179/* Override any gcc2 internal prototype to avoid an error. */
3180#ifdef __cplusplus
3181extern "C"
3182#endif
3183/* We use char because int might match the return type of a gcc2
3184 builtin and then its argument prototype would still apply. */
3185char strerror ();
3186int
3187main ()
3188{
3189strerror ();
3190 ;
3191 return 0;
3192}
3193_ACEOF
3194rm -f conftest.$ac_objext conftest$ac_exeext
3195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3196 (eval $ac_link) 2>conftest.er1
3197 ac_status=$?
3198 grep -v '^ *+' conftest.er1 >conftest.err
3199 rm -f conftest.er1
3200 cat conftest.err >&5
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); } &&
3203 { ac_try='test -z "$ac_c_werror_flag"
3204 || test ! -s conftest.err'
3205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3206 (eval $ac_try) 2>&5
3207 ac_status=$?
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); }; } &&
3210 { ac_try='test -s conftest$ac_exeext'
3211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3212 (eval $ac_try) 2>&5
3213 ac_status=$?
3214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215 (exit $ac_status); }; }; then
3216 ac_cv_search_strerror="-l$ac_lib"
3217break
3218else
3219 echo "$as_me: failed program was:" >&5
3220sed 's/^/| /' conftest.$ac_ext >&5
3221
3222fi
3223rm -f conftest.err conftest.$ac_objext \
3224 conftest$ac_exeext conftest.$ac_ext
3225 done
3226fi
3227LIBS=$ac_func_search_save_LIBS
3228fi
3229echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3230echo "${ECHO_T}$ac_cv_search_strerror" >&6
3231if test "$ac_cv_search_strerror" != no; then
3232 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3233
3234fi
3235
3236ac_ext=cc
3237ac_cpp='$CXXCPP $CPPFLAGS'
3238ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3241
3242
3243if test x$GCC = xyes && test x$GXX = xyes; then
3244 echo "$as_me:$LINENO: checking for working libsupc++" >&5
3245echo $ECHO_N "checking for working libsupc++... $ECHO_C" >&6
3246 save_CXX="$CXX"
3247 save_LIBS="$LIBS"
3248 CXX="$CC"
3249 LIBS="$LIBS -lsupc++"
3250 LINKER="$CC"
3251
3252cat >conftest.$ac_ext <<_ACEOF
3253/* confdefs.h. */
3254_ACEOF
3255cat confdefs.h >>conftest.$ac_ext
3256cat >>conftest.$ac_ext <<_ACEOF
3257/* end confdefs.h. */
3258struct test { }; void f() try { throw new test; } catch (...) { throw; }
3259int
3260main ()
3261{
3262
3263 ;
3264 return 0;
3265}
3266_ACEOF
3267rm -f conftest.$ac_objext conftest$ac_exeext
3268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3269 (eval $ac_link) 2>conftest.er1
3270 ac_status=$?
3271 grep -v '^ *+' conftest.er1 >conftest.err
3272 rm -f conftest.er1
3273 cat conftest.err >&5
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); } &&
3276 { ac_try='test -z "$ac_cxx_werror_flag"
3277 || test ! -s conftest.err'
3278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3279 (eval $ac_try) 2>&5
3280 ac_status=$?
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); }; } &&
3283 { ac_try='test -s conftest$ac_exeext'
3284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3285 (eval $ac_try) 2>&5
3286 ac_status=$?
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); }; }; then
3289
3290 echo "$as_me:$LINENO: result: ok" >&5
3291echo "${ECHO_T}ok" >&6
3292 CXXLIB="-lsupc++"
3293
3294else
3295 echo "$as_me: failed program was:" >&5
3296sed 's/^/| /' conftest.$ac_ext >&5
3297
3298
3299 echo "$as_me:$LINENO: result: no, making everything bigger and slower" >&5
3300echo "${ECHO_T}no, making everything bigger and slower" >&6
3301 LIBS="$save_LIBS"
3302 LINKER="$save_CXX"
3303
3304
3305fi
3306rm -f conftest.err conftest.$ac_objext \
3307 conftest$ac_exeext conftest.$ac_ext
3308 CXX="$save_CXX"
3309fi
3310LINKER=$LINKER
3311
3312
3313
3314if test -z "$orig_CXXFLAGS"; then
3315 if test x$GCC = xyes && test "x$GXX" = xyes; then
3316 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs"
3317 cat >conftest.$ac_ext <<_ACEOF
3318/* confdefs.h. */
3319_ACEOF
3320cat confdefs.h >>conftest.$ac_ext
3321cat >>conftest.$ac_ext <<_ACEOF
3322/* end confdefs.h. */
3323
3324int
3325main ()
3326{
3327
3328 ;
3329 return 0;
3330}
3331_ACEOF
3332rm -f conftest.$ac_objext
3333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3334 (eval $ac_compile) 2>conftest.er1
3335 ac_status=$?
3336 grep -v '^ *+' conftest.er1 >conftest.err
3337 rm -f conftest.er1
3338 cat conftest.err >&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); } &&
3341 { ac_try='test -z "$ac_cxx_werror_flag"
3342 || test ! -s conftest.err'
3343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3344 (eval $ac_try) 2>&5
3345 ac_status=$?
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }; } &&
3348 { ac_try='test -s conftest.$ac_objext'
3349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350 (eval $ac_try) 2>&5
3351 ac_status=$?
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; }; then
3354 :
3355else
3356 echo "$as_me: failed program was:" >&5
3357sed 's/^/| /' conftest.$ac_ext >&5
3358
3359CXXFLAGS="-g -O3"
3360fi
3361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3362 else
3363 CXXFLAGS="-O"
3364 fi
3365 CFLAGS="$CXXFLAGS"
3366fi
3367
3368
3369cat >>confdefs.h <<\_ACEOF
3370#define _GNU_SOURCE 1
3371_ACEOF
3372
3373
3374case $host in
3375 *-*-solaris* )
3376
3377cat >>confdefs.h <<\_ACEOF
3378#define _XOPEN_SOURCE_EXTENDED 1
3379_ACEOF
3380
3381
3382cat >>confdefs.h <<\_ACEOF
3383#define _XOPEN_SOURCE 2
3384_ACEOF
3385
3386
3387cat >>confdefs.h <<\_ACEOF
3388#define __EXTENSIONS__ 1
3389_ACEOF
3390
3391 ;;
3392esac
3393
3394
3395echo "$as_me:$LINENO: checking for setlocale" >&5
3396echo $ECHO_N "checking for setlocale... $ECHO_C" >&6
3397if test "${ac_cv_func_setlocale+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3399else
3400 cat >conftest.$ac_ext <<_ACEOF
3401/* confdefs.h. */
3402_ACEOF
3403cat confdefs.h >>conftest.$ac_ext
3404cat >>conftest.$ac_ext <<_ACEOF
3405/* end confdefs.h. */
3406/* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale.
3407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3408#define setlocale innocuous_setlocale
3409
3410/* System header to define __stub macros and hopefully few prototypes,
3411 which can conflict with char setlocale (); below.
3412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3413 <limits.h> exists even on freestanding compilers. */
3414
3415#ifdef __STDC__
3416# include <limits.h>
3417#else
3418# include <assert.h>
3419#endif
3420
3421#undef setlocale
3422
3423/* Override any gcc2 internal prototype to avoid an error. */
3424#ifdef __cplusplus
3425extern "C"
3426{
3427#endif
3428/* We use char because int might match the return type of a gcc2
3429 builtin and then its argument prototype would still apply. */
3430char setlocale ();
3431/* The GNU C library defines this for functions which it implements
3432 to always fail with ENOSYS. Some functions are actually named
3433 something starting with __ and the normal name is an alias. */
3434#if defined (__stub_setlocale) || defined (__stub___setlocale)
3435choke me
3436#else
3437char (*f) () = setlocale;
3438#endif
3439#ifdef __cplusplus
3440}
3441#endif
3442
3443int
3444main ()
3445{
3446return f != setlocale;
3447 ;
3448 return 0;
3449}
3450_ACEOF
3451rm -f conftest.$ac_objext conftest$ac_exeext
3452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3453 (eval $ac_link) 2>conftest.er1
3454 ac_status=$?
3455 grep -v '^ *+' conftest.er1 >conftest.err
3456 rm -f conftest.er1
3457 cat conftest.err >&5
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); } &&
3460 { ac_try='test -z "$ac_cxx_werror_flag"
3461 || test ! -s conftest.err'
3462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463 (eval $ac_try) 2>&5
3464 ac_status=$?
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); }; } &&
3467 { ac_try='test -s conftest$ac_exeext'
3468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3469 (eval $ac_try) 2>&5
3470 ac_status=$?
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); }; }; then
3473 ac_cv_func_setlocale=yes
3474else
3475 echo "$as_me: failed program was:" >&5
3476sed 's/^/| /' conftest.$ac_ext >&5
3477
3478ac_cv_func_setlocale=no
3479fi
3480rm -f conftest.err conftest.$ac_objext \
3481 conftest$ac_exeext conftest.$ac_ext
3482fi
3483echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5
3484echo "${ECHO_T}$ac_cv_func_setlocale" >&6
3485if test $ac_cv_func_setlocale = yes; then
3486 :
3487else
3488 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
3489echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
3490if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3492else
3493 ac_check_lib_save_LIBS=$LIBS
3494LIBS="-lxpg4 $LIBS"
3495cat >conftest.$ac_ext <<_ACEOF
3496/* confdefs.h. */
3497_ACEOF
3498cat confdefs.h >>conftest.$ac_ext
3499cat >>conftest.$ac_ext <<_ACEOF
3500/* end confdefs.h. */
3501
3502/* Override any gcc2 internal prototype to avoid an error. */
3503#ifdef __cplusplus
3504extern "C"
3505#endif
3506/* We use char because int might match the return type of a gcc2
3507 builtin and then its argument prototype would still apply. */
3508char setlocale ();
3509int
3510main ()
3511{
3512setlocale ();
3513 ;
3514 return 0;
3515}
3516_ACEOF
3517rm -f conftest.$ac_objext conftest$ac_exeext
3518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3519 (eval $ac_link) 2>conftest.er1
3520 ac_status=$?
3521 grep -v '^ *+' conftest.er1 >conftest.err
3522 rm -f conftest.er1
3523 cat conftest.err >&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); } &&
3526 { ac_try='test -z "$ac_cxx_werror_flag"
3527 || test ! -s conftest.err'
3528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3529 (eval $ac_try) 2>&5
3530 ac_status=$?
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); }; } &&
3533 { ac_try='test -s conftest$ac_exeext'
3534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535 (eval $ac_try) 2>&5
3536 ac_status=$?
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); }; }; then
3539 ac_cv_lib_xpg4_setlocale=yes
3540else
3541 echo "$as_me: failed program was:" >&5
3542sed 's/^/| /' conftest.$ac_ext >&5
3543
3544ac_cv_lib_xpg4_setlocale=no
3545fi
3546rm -f conftest.err conftest.$ac_objext \
3547 conftest$ac_exeext conftest.$ac_ext
3548LIBS=$ac_check_lib_save_LIBS
3549fi
3550echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
3551echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
3552if test $ac_cv_lib_xpg4_setlocale = yes; then
3553 LIBS="$LIBS -lxpg4"
3554fi
3555
3556fi
3557
3558
3559echo "$as_me:$LINENO: checking for gethostbyname" >&5
3560echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3561if test "${ac_cv_func_gethostbyname+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3563else
3564 cat >conftest.$ac_ext <<_ACEOF
3565/* confdefs.h. */
3566_ACEOF
3567cat confdefs.h >>conftest.$ac_ext
3568cat >>conftest.$ac_ext <<_ACEOF
3569/* end confdefs.h. */
3570/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3572#define gethostbyname innocuous_gethostbyname
3573
3574/* System header to define __stub macros and hopefully few prototypes,
3575 which can conflict with char gethostbyname (); below.
3576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3577 <limits.h> exists even on freestanding compilers. */
3578
3579#ifdef __STDC__
3580# include <limits.h>
3581#else
3582# include <assert.h>
3583#endif
3584
3585#undef gethostbyname
3586
3587/* Override any gcc2 internal prototype to avoid an error. */
3588#ifdef __cplusplus
3589extern "C"
3590{
3591#endif
3592/* We use char because int might match the return type of a gcc2
3593 builtin and then its argument prototype would still apply. */
3594char gethostbyname ();
3595/* The GNU C library defines this for functions which it implements
3596 to always fail with ENOSYS. Some functions are actually named
3597 something starting with __ and the normal name is an alias. */
3598#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3599choke me
3600#else
3601char (*f) () = gethostbyname;
3602#endif
3603#ifdef __cplusplus
3604}
3605#endif
3606
3607int
3608main ()
3609{
3610return f != gethostbyname;
3611 ;
3612 return 0;
3613}
3614_ACEOF
3615rm -f conftest.$ac_objext conftest$ac_exeext
3616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3617 (eval $ac_link) 2>conftest.er1
3618 ac_status=$?
3619 grep -v '^ *+' conftest.er1 >conftest.err
3620 rm -f conftest.er1
3621 cat conftest.err >&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); } &&
3624 { ac_try='test -z "$ac_cxx_werror_flag"
3625 || test ! -s conftest.err'
3626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627 (eval $ac_try) 2>&5
3628 ac_status=$?
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); }; } &&
3631 { ac_try='test -s conftest$ac_exeext'
3632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633 (eval $ac_try) 2>&5
3634 ac_status=$?
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); }; }; then
3637 ac_cv_func_gethostbyname=yes
3638else
3639 echo "$as_me: failed program was:" >&5
3640sed 's/^/| /' conftest.$ac_ext >&5
3641
3642ac_cv_func_gethostbyname=no
3643fi
3644rm -f conftest.err conftest.$ac_objext \
3645 conftest$ac_exeext conftest.$ac_ext
3646fi
3647echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3648echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3649if test $ac_cv_func_gethostbyname = yes; then
3650 :
3651else
3652 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3653echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3654if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3656else
3657 ac_check_lib_save_LIBS=$LIBS
3658LIBS="-lnsl $LIBS"
3659cat >conftest.$ac_ext <<_ACEOF
3660/* confdefs.h. */
3661_ACEOF
3662cat confdefs.h >>conftest.$ac_ext
3663cat >>conftest.$ac_ext <<_ACEOF
3664/* end confdefs.h. */
3665
3666/* Override any gcc2 internal prototype to avoid an error. */
3667#ifdef __cplusplus
3668extern "C"
3669#endif
3670/* We use char because int might match the return type of a gcc2
3671 builtin and then its argument prototype would still apply. */
3672char gethostbyname ();
3673int
3674main ()
3675{
3676gethostbyname ();
3677 ;
3678 return 0;
3679}
3680_ACEOF
3681rm -f conftest.$ac_objext conftest$ac_exeext
3682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3683 (eval $ac_link) 2>conftest.er1
3684 ac_status=$?
3685 grep -v '^ *+' conftest.er1 >conftest.err
3686 rm -f conftest.er1
3687 cat conftest.err >&5
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); } &&
3690 { ac_try='test -z "$ac_cxx_werror_flag"
3691 || test ! -s conftest.err'
3692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693 (eval $ac_try) 2>&5
3694 ac_status=$?
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); }; } &&
3697 { ac_try='test -s conftest$ac_exeext'
3698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699 (eval $ac_try) 2>&5
3700 ac_status=$?
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }; }; then
3703 ac_cv_lib_nsl_gethostbyname=yes
3704else
3705 echo "$as_me: failed program was:" >&5
3706sed 's/^/| /' conftest.$ac_ext >&5
3707
3708ac_cv_lib_nsl_gethostbyname=no
3709fi
3710rm -f conftest.err conftest.$ac_objext \
3711 conftest$ac_exeext conftest.$ac_ext
3712LIBS=$ac_check_lib_save_LIBS
3713fi
3714echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3715echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3716if test $ac_cv_lib_nsl_gethostbyname = yes; then
3717 LIBS="$LIBS -lnsl"
3718fi
3719
3720fi
3721
3722echo "$as_me:$LINENO: checking for socket" >&5
3723echo $ECHO_N "checking for socket... $ECHO_C" >&6
3724if test "${ac_cv_func_socket+set}" = set; then
3725 echo $ECHO_N "(cached) $ECHO_C" >&6
3726else
3727 cat >conftest.$ac_ext <<_ACEOF
3728/* confdefs.h. */
3729_ACEOF
3730cat confdefs.h >>conftest.$ac_ext
3731cat >>conftest.$ac_ext <<_ACEOF
3732/* end confdefs.h. */
3733/* Define socket to an innocuous variant, in case <limits.h> declares socket.
3734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3735#define socket innocuous_socket
3736
3737/* System header to define __stub macros and hopefully few prototypes,
3738 which can conflict with char socket (); below.
3739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3740 <limits.h> exists even on freestanding compilers. */
3741
3742#ifdef __STDC__
3743# include <limits.h>
3744#else
3745# include <assert.h>
3746#endif
3747
3748#undef socket
3749
3750/* Override any gcc2 internal prototype to avoid an error. */
3751#ifdef __cplusplus
3752extern "C"
3753{
3754#endif
3755/* We use char because int might match the return type of a gcc2
3756 builtin and then its argument prototype would still apply. */
3757char socket ();
3758/* The GNU C library defines this for functions which it implements
3759 to always fail with ENOSYS. Some functions are actually named
3760 something starting with __ and the normal name is an alias. */
3761#if defined (__stub_socket) || defined (__stub___socket)
3762choke me
3763#else
3764char (*f) () = socket;
3765#endif
3766#ifdef __cplusplus
3767}
3768#endif
3769
3770int
3771main ()
3772{
3773return f != socket;
3774 ;
3775 return 0;
3776}
3777_ACEOF
3778rm -f conftest.$ac_objext conftest$ac_exeext
3779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3780 (eval $ac_link) 2>conftest.er1
3781 ac_status=$?
3782 grep -v '^ *+' conftest.er1 >conftest.err
3783 rm -f conftest.er1
3784 cat conftest.err >&5
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); } &&
3787 { ac_try='test -z "$ac_cxx_werror_flag"
3788 || test ! -s conftest.err'
3789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790 (eval $ac_try) 2>&5
3791 ac_status=$?
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); }; } &&
3794 { ac_try='test -s conftest$ac_exeext'
3795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796 (eval $ac_try) 2>&5
3797 ac_status=$?
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; }; then
3800 ac_cv_func_socket=yes
3801else
3802 echo "$as_me: failed program was:" >&5
3803sed 's/^/| /' conftest.$ac_ext >&5
3804
3805ac_cv_func_socket=no
3806fi
3807rm -f conftest.err conftest.$ac_objext \
3808 conftest$ac_exeext conftest.$ac_ext
3809fi
3810echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3811echo "${ECHO_T}$ac_cv_func_socket" >&6
3812if test $ac_cv_func_socket = yes; then
3813 :
3814else
3815 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3816echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3817if test "${ac_cv_lib_socket_socket+set}" = set; then
3818 echo $ECHO_N "(cached) $ECHO_C" >&6
3819else
3820 ac_check_lib_save_LIBS=$LIBS
3821LIBS="-lsocket $LIBS"
3822cat >conftest.$ac_ext <<_ACEOF
3823/* confdefs.h. */
3824_ACEOF
3825cat confdefs.h >>conftest.$ac_ext
3826cat >>conftest.$ac_ext <<_ACEOF
3827/* end confdefs.h. */
3828
3829/* Override any gcc2 internal prototype to avoid an error. */
3830#ifdef __cplusplus
3831extern "C"
3832#endif
3833/* We use char because int might match the return type of a gcc2
3834 builtin and then its argument prototype would still apply. */
3835char socket ();
3836int
3837main ()
3838{
3839socket ();
3840 ;
3841 return 0;
3842}
3843_ACEOF
3844rm -f conftest.$ac_objext conftest$ac_exeext
3845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3846 (eval $ac_link) 2>conftest.er1
3847 ac_status=$?
3848 grep -v '^ *+' conftest.er1 >conftest.err
3849 rm -f conftest.er1
3850 cat conftest.err >&5
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); } &&
3853 { ac_try='test -z "$ac_cxx_werror_flag"
3854 || test ! -s conftest.err'
3855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3856 (eval $ac_try) 2>&5
3857 ac_status=$?
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }; } &&
3860 { ac_try='test -s conftest$ac_exeext'
3861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862 (eval $ac_try) 2>&5
3863 ac_status=$?
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; }; then
3866 ac_cv_lib_socket_socket=yes
3867else
3868 echo "$as_me: failed program was:" >&5
3869sed 's/^/| /' conftest.$ac_ext >&5
3870
3871ac_cv_lib_socket_socket=no
3872fi
3873rm -f conftest.err conftest.$ac_objext \
3874 conftest$ac_exeext conftest.$ac_ext
3875LIBS=$ac_check_lib_save_LIBS
3876fi
3877echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3878echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3879if test $ac_cv_lib_socket_socket = yes; then
3880 LIBS="$LIBS -lsocket"
3881fi
3882
3883fi
3884
3885
3886
3887support_frills=yes
3888support_inheritpixmap=yes
3889support_tinting=yes
3890support_fading=yes
3891support_keepscrolling=yes
3892support_selectionscrolling=yes
3893support_mousewheel=yes
3894support_mouseslipwheel=yes
3895support_text_blink=yes
3896support_pointer_blank=yes
3897support_scroll_rxvt=yes
3898support_scroll_next=yes
3899support_scroll_xterm=yes
3900support_scroll_plain=yes
3901support_xim=yes
3902support_xpm=yes
3903support_afterimage=yes
3904support_afterstep=yes
3905support_xft=yes
3906support_unicode3=no
3907support_combining=yes
3908support_8bitctrls=no
3909support_iso14755=yes
3910support_styles=yes
3911support_perl=yes
3912codesets=all
3913
3914
3915if test "x$enable_shared" = xyes; then
3916
3917cat >>confdefs.h <<\_ACEOF
3918#define LIBRXVT 1
3919_ACEOF
3920
3921 INSTALL_LIBRXVT=yes
3922fi
3923
3924
3925# Check whether --enable-everything or --disable-everything was given.
3926if test "${enable_everything+set}" = set; then
3927 enableval="$enable_everything"
3928
3929 if test x$enableval = xno; then
3930 support_frills=no
3931 support_inheritpixmap=no
3932 support_tinting=no
3933 support_fading=no
3934 support_keepscrolling=no
3935 support_selectionscrolling=no
3936 support_lastlog=no
3937 support_mousewheel=no
3938 support_mouseslipwheel=no
3939 support_text_blink=no
3940 support_pointer_blank=no
3941 support_scroll_rxvt=no
3942 support_scroll_next=no
3943 support_scroll_xterm=no
3944 support_scroll_plain=no
3945 support_utmp=no
3946 support_wtmp=no
3947 support_xim=no
3948 support_xpm=no
3949 support_afterimage=no
3950 support_afterstep=no
3951 support_xft=no
3952 support_unicode3=no
3953 support_combining=no
3954 support_8bitctrls=no
3955 support_iso14755=no
3956 support_styles=no
3957 support_perl=no
3958 codesets=
3959 fi
3960 if test x$enableval = xyes; then
3961 support_frills=yes
3962 support_inheritpixmap=yes
3963 support_tinting=yes
3964 support_fading=yes
3965 support_keepscrolling=yes
3966 support_selectionscrolling=yes
3967 support_lastlog=yes
3968 support_mousewheel=yes
3969 support_mouseslipwheel=yes
3970 support_text_blink=yes
3971 support_pointer_blank=yes
3972 support_scroll_rxvt=yes
3973 support_scroll_next=yes
3974 support_scroll_xterm=yes
3975 support_scroll_plain=yes
3976 support_utmp=yes
3977 support_wtmp=yes
3978 support_xim=yes
3979 support_xpm=yes
3980 support_afterimage=yes
3981 support_afterstep=yes
3982 support_xft=yes
3983 support_unicode3=yes
3984 support_combining=yes
3985 #support_8bitctrls=yes
3986 support_iso14755=yes
3987 support_styles=yes
3988 support_perl=yes
3989 codesets=all
3990 fi
3991
3992fi;
3993
3994# Check whether --enable-unicode3 or --disable-unicode3 was given.
3995if test "${enable_unicode3+set}" = set; then
3996 enableval="$enable_unicode3"
3997 if test x$enableval = xyes -o x$enableval = xno; then
3998 support_unicode3=$enableval
3999 fi
4000fi;
4001
4002# Check whether --enable-combining or --disable-combining was given.
4003if test "${enable_combining+set}" = set; then
4004 enableval="$enable_combining"
4005 if test x$enableval = xyes -o x$enableval = xno; then
4006 support_combining=$enableval
4007 fi
4008fi;
4009
4010# Check whether --enable-xft or --disable-xft was given.
4011if test "${enable_xft+set}" = set; then
4012 enableval="$enable_xft"
4013 if test x$enableval = xyes -o x$enableval = xno; then
4014 support_xft=$enableval
4015 fi
4016fi;
4017
4018# Check whether --enable-font-styles or --disable-font-styles was given.
4019if test "${enable_font_styles+set}" = set; then
4020 enableval="$enable_font_styles"
4021 if test x$enableval = xyes -o x$enableval = xno; then
4022 support_styles=$enableval
4023 fi
4024fi;
4025
4026# Check whether --enable-xpm-background or --disable-xpm-background was given.
4027if test "${enable_xpm_background+set}" = set; then
4028 enableval="$enable_xpm_background"
4029 if test x$enableval = xyes -o x$enableval = xno; then
4030 support_xpm=$enableval
4031 fi
4032fi;
4033
4034# Check whether --enable-afterimage or --disable-afterimage was given.
4035if test "${enable_afterimage+set}" = set; then
4036 enableval="$enable_afterimage"
4037 if test x$enableval = xyes -o x$enableval = xno; then
4038 support_afterimage=$enableval
4039 fi
4040fi;
4041
4042
4043# Check whether --with-afterimage_config or --without-afterimage_config was given.
4044if test "${with_afterimage_config+set}" = set; then
4045 withval="$with_afterimage_config"
4046 if test "x$withval" != x; then
4047 afterimage_config=$withval/afterimage-config
4048 fi
4049fi;
4050
4051# Check whether --enable-afterstep or --disable-afterstep was given.
4052if test "${enable_afterstep+set}" = set; then
4053 enableval="$enable_afterstep"
4054 if test x$enableval = xyes -o x$enableval = xno; then
4055 support_afterstep=$enableval
4056 fi
4057fi;
4058
4059# Check whether --enable-transparency or --disable-transparency was given.
4060if test "${enable_transparency+set}" = set; then
4061 enableval="$enable_transparency"
4062 if test x$enableval = xyes -o x$enableval = xno; then
4063 support_inheritpixmap=$enableval
4064 fi
4065fi;
4066
4067# Check whether --enable-tinting or --disable-tinting was given.
4068if test "${enable_tinting+set}" = set; then
4069 enableval="$enable_tinting"
4070 if test x$enableval = xyes -o x$enableval = xno; then
4071 support_tinting=$enableval
4072 fi
4073fi;
4074
4075# Check whether --enable-fading or --disable-fading was given.
4076if test "${enable_fading+set}" = set; then
4077 enableval="$enable_fading"
4078 if test x$enableval = xyes -o x$enableval = xno; then
4079 support_fading=$enableval
4080 fi
4081fi;
4082
4083# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
4084if test "${enable_rxvt_scroll+set}" = set; then
4085 enableval="$enable_rxvt_scroll"
4086 if test x$enableval = xyes -o x$enableval = xno; then
4087 support_scroll_rxvt=$enableval
4088 fi
4089fi;
4090
4091# Check whether --enable-next-scroll or --disable-next-scroll was given.
4092if test "${enable_next_scroll+set}" = set; then
4093 enableval="$enable_next_scroll"
4094 if test x$enableval = xyes -o x$enableval = xno; then
4095 support_scroll_next=$enableval
4096 fi
4097fi;
4098
4099# Check whether --enable-xterm-scroll or --disable-xterm-scroll was given.
4100if test "${enable_xterm_scroll+set}" = set; then
4101 enableval="$enable_xterm_scroll"
4102 if test x$enableval = xyes -o x$enableval = xno; then
4103 support_scroll_xterm=$enableval
4104 fi
4105fi;
4106
4107# Check whether --enable-perl or --disable-perl was given.
4108if test "${enable_perl+set}" = set; then
4109 enableval="$enable_perl"
4110 if test x$enableval = xyes -o x$enableval = xno; then
4111 support_perl=$enableval
4112 fi
4113fi;
4114
4115# Check whether --enable-plain-scroll or --disable-plain-scroll was given.
4116if test "${enable_plain_scroll+set}" = set; then
4117 enableval="$enable_plain_scroll"
4118 if test x$enableval = xyes -o x$enableval = xno; then
4119 support_scroll_plain=$enableval
4120 fi
4121fi;
4122
4123
4124# Check whether --with-codesets or --without-codesets was given.
4125if test "${with_codesets+set}" = set; then
4126 withval="$with_codesets"
4127 codesets="$withval"
4128fi;
4129
4130# Check whether --enable-xim or --disable-xim was given.
4131if test "${enable_xim+set}" = set; then
4132 enableval="$enable_xim"
4133 if test x$enableval = xyes -o x$enableval = xno; then
4134 support_xim=$enableval
4135 fi
4136fi;
4137
4138# Check whether --enable-backspace-key or --disable-backspace-key was given.
4139if test "${enable_backspace_key+set}" = set; then
4140 enableval="$enable_backspace_key"
4141 if test x$enableval = xno; then
4142
4143cat >>confdefs.h <<\_ACEOF
4144#define NO_BACKSPACE_KEY 1
4145_ACEOF
4146
4147 fi
4148fi;
4149
4150# Check whether --enable-delete-key or --disable-delete-key was given.
4151if test "${enable_delete_key+set}" = set; then
4152 enableval="$enable_delete_key"
4153 if test x$enableval = xno; then
4154
4155cat >>confdefs.h <<\_ACEOF
4156#define NO_DELETE_KEY 1
4157_ACEOF
4158
4159 fi
4160fi;
4161
4162# Check whether --enable-resources or --disable-resources was given.
4163if test "${enable_resources+set}" = set; then
4164 enableval="$enable_resources"
4165 if test x$enableval = xno; then
4166
4167cat >>confdefs.h <<\_ACEOF
4168#define NO_RESOURCES 1
4169_ACEOF
4170
4171 fi
4172fi;
4173
4174# Check whether --enable-8bitctrls or --disable-8bitctrls was given.
4175if test "${enable_8bitctrls+set}" = set; then
4176 enableval="$enable_8bitctrls"
4177 if test x$enableval = xyes -o x$enableval = xno; then
4178 support_8bitctrls=$enableval
4179 fi
4180fi;
4181
4182RESFALLBACK=Rxvt
4183# Check whether --enable-fallback or --disable-fallback was given.
4184if test "${enable_fallback+set}" = set; then
4185 enableval="$enable_fallback"
4186
4187 test x$enableval = xyes && enableval=Rxvt
4188 test x$enableval = xno && enableval=
4189 RESFALLBACK="$enableval"
4190
4191fi;
4192
4193if test x$RESFALLBACK != x; then
4194
4195cat >>confdefs.h <<_ACEOF
4196#define RESFALLBACK "$RESFALLBACK"
4197_ACEOF
4198
4199fi
4200
4201RESNAME=urxvt
4202
4203# Check whether --with-res-name or --without-res-name was given.
4204if test "${with_res_name+set}" = set; then
4205 withval="$with_res_name"
4206 RESNAME="$withval"
4207fi;
4208
4209cat >>confdefs.h <<_ACEOF
4210#define RESNAME "$RESNAME"
4211_ACEOF
4212
4213
4214RESCLASS=URxvt
4215
4216# Check whether --with-res-class or --without-res-class was given.
4217if test "${with_res_class+set}" = set; then
4218 withval="$with_res_class"
4219 RESCLASS="$withval"
4220fi;
4221
4222cat >>confdefs.h <<_ACEOF
4223#define RESCLASS "$RESCLASS"
4224_ACEOF
4225
4226
4227RXVTNAME=urxvt
4228
4229# Check whether --with-name or --without-name was given.
4230if test "${with_name+set}" = set; then
4231 withval="$with_name"
4232 RXVTNAME="$withval"
4233fi;
4234
4235cat >>confdefs.h <<_ACEOF
4236#define RXVTNAME "$RXVTNAME"
4237_ACEOF
4238
4239
4240RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
4241
4242
4243# Check whether --enable-swapscreen or --disable-swapscreen was given.
4244if test "${enable_swapscreen+set}" = set; then
4245 enableval="$enable_swapscreen"
4246 if test x$enableval = xno; then
4247
4248cat >>confdefs.h <<\_ACEOF
4249#define NO_SECONDARY_SCREEN 1
4250_ACEOF
4251
4252 fi
4253fi;
4254
4255# Check whether --enable-iso14755 or --disable-iso14755 was given.
4256if test "${enable_iso14755+set}" = set; then
4257 enableval="$enable_iso14755"
4258 if test x$enableval = xyes -o x$enableval = xno; then
4259 support_iso14755=$enableval
4260 fi
4261fi;
4262
4263# Check whether --enable-frills or --disable-frills was given.
4264if test "${enable_frills+set}" = set; then
4265 enableval="$enable_frills"
4266 if test x$enableval = xyes -o x$enableval = xno; then
4267 support_frills=$enableval
4268 fi
4269fi;
4270
4271# Check whether --enable-keepscrolling or --disable-keepscrolling was given.
4272if test "${enable_keepscrolling+set}" = set; then
4273 enableval="$enable_keepscrolling"
4274 if test x$enableval = xyes -o x$enableval = xno; then
4275 support_keepscrolling=$enableval
4276 fi
4277fi;
4278
4279# Check whether --enable-selectionscrolling or --disable-selectionscrolling was given.
4280if test "${enable_selectionscrolling+set}" = set; then
4281 enableval="$enable_selectionscrolling"
4282 if test x$enableval = xyes -o x$enableval = xno; then
4283 support_selectionscrolling=$enableval
4284 fi
4285fi;
4286
4287# Check whether --enable-mousewheel or --disable-mousewheel was given.
4288if test "${enable_mousewheel+set}" = set; then
4289 enableval="$enable_mousewheel"
4290 if test x$enableval = xyes -o x$enableval = xno; then
4291 support_mousewheel=$enableval
4292 fi
4293fi;
4294
4295# Check whether --enable-slipwheeling or --disable-slipwheeling was given.
4296if test "${enable_slipwheeling+set}" = set; then
4297 enableval="$enable_slipwheeling"
4298 if test x$enableval = xyes -o x$enableval = xno; then
4299 support_mouseslipwheel=$enableval
4300 fi
4301fi;
4302
4303# Check whether --enable-smart-resize or --disable-smart-resize was given.
4304if test "${enable_smart_resize+set}" = set; then
4305 enableval="$enable_smart_resize"
4306 if test x$enableval = xyes; then
4307
4308cat >>confdefs.h <<\_ACEOF
4309#define SMART_RESIZE 1
4310_ACEOF
4311
4312 fi
4313fi;
4314
4315# Check whether --enable-text-blink or --disable-text-blink was given.
4316if test "${enable_text_blink+set}" = set; then
4317 enableval="$enable_text_blink"
4318 if test x$enableval = xyes -o x$enableval = xno; then
4319 support_text_blink=$enableval
4320 fi
4321fi;
4322
4323# Check whether --enable-pointer-blank or --disable-pointer-blank was given.
4324if test "${enable_pointer_blank+set}" = set; then
4325 enableval="$enable_pointer_blank"
4326 if test x$enableval = xyes -o x$enableval = xno; then
4327 support_pointer_blank=$enableval
4328 fi
4329fi;
4330
4331
4332# Check whether --with-term or --without-term was given.
4333if test "${with_term+set}" = set; then
4334 withval="$with_term"
4335 if test x$withval != x; then
4336
4337cat >>confdefs.h <<_ACEOF
4338#define TERMENV "$withval"
4339_ACEOF
4340 term="$withval"
4341 fi
4342fi;
4343
4344
4345# Check whether --with-terminfo or --without-terminfo was given.
4346if test "${with_terminfo+set}" = set; then
4347 withval="$with_terminfo"
4348 if test x$withval != x; then
4349
4350cat >>confdefs.h <<_ACEOF
4351#define RXVT_TERMINFO "$withval"
4352_ACEOF
4353 terminfo="$withval"
4354 fi
4355fi;
4356
4357
3166 # Extract the first word of "$ac_prog", so it can be a program name with args. 4358# Extract the first word of "tic", so it can be a program name with args.
3167set dummy $ac_prog; ac_word=$2 4359set dummy tic; ac_word=$2
3168echo "$as_me:$LINENO: checking for $ac_word" >&5 4360echo "$as_me:$LINENO: checking for $ac_word" >&5
3169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3170if test "${ac_cv_prog_AWK+set}" = set; then 4362if test "${ac_cv_path_TIC+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6 4363 echo $ECHO_N "(cached) $ECHO_C" >&6
3172else 4364else
3173 if test -n "$AWK"; then 4365 case $TIC in
4366 [\\/]* | ?:[\\/]*)
3174 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4367 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
3175else 4368 ;;
4369 *)
3176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177for as_dir in $PATH 4371for as_dir in $PATH
3178do 4372do
3179 IFS=$as_save_IFS 4373 IFS=$as_save_IFS
3180 test -z "$as_dir" && as_dir=. 4374 test -z "$as_dir" && as_dir=.
3181 for ac_exec_ext in '' $ac_executable_extensions; do 4375 for ac_exec_ext in '' $ac_executable_extensions; do
3182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3183 ac_cv_prog_AWK="$ac_prog" 4377 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
3184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3185 break 2 4379 break 2
3186 fi 4380 fi
3187done 4381done
3188done 4382done
3189 4383
4384 ;;
4385esac
3190fi 4386fi
3191fi 4387TIC=$ac_cv_path_TIC
3192AWK=$ac_cv_prog_AWK 4388
3193if test -n "$AWK"; then 4389if test -n "$TIC"; then
3194 echo "$as_me:$LINENO: result: $AWK" >&5 4390 echo "$as_me:$LINENO: result: $TIC" >&5
3195echo "${ECHO_T}$AWK" >&6 4391echo "${ECHO_T}$TIC" >&6
3196else 4392else
3197 echo "$as_me:$LINENO: result: no" >&5 4393 echo "$as_me:$LINENO: result: no" >&5
3198echo "${ECHO_T}no" >&6 4394echo "${ECHO_T}no" >&6
3199fi 4395fi
3200 4396
3201 test -n "$AWK" && break
3202done
3203
3204
3205ac_ext=c
3206ac_cpp='$CPP $CPPFLAGS'
3207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210
3211
3212LINKER="$CXX"
3213if test x$GCC = xyes && test x$GXX = xyes; then
3214
3215echo "$as_me:$LINENO: checking for main in -lsupc++" >&5
3216echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6
3217if test "${ac_cv_lib_supcpp_main+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3219else
3220 ac_check_lib_save_LIBS=$LIBS
3221LIBS="-lsupc++ $LIBS"
3222cat >conftest.$ac_ext <<_ACEOF
3223/* confdefs.h. */
3224_ACEOF
3225cat confdefs.h >>conftest.$ac_ext
3226cat >>conftest.$ac_ext <<_ACEOF
3227/* end confdefs.h. */
3228
3229
3230int
3231main ()
3232{
3233main ();
3234 ;
3235 return 0;
3236}
3237_ACEOF
3238rm -f conftest.$ac_objext conftest$ac_exeext
3239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3240 (eval $ac_link) 2>conftest.er1
3241 ac_status=$?
3242 grep -v '^ *+' conftest.er1 >conftest.err
3243 rm -f conftest.er1
3244 cat conftest.err >&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } &&
3247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3249 (eval $ac_try) 2>&5
3250 ac_status=$?
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; } &&
3253 { ac_try='test -s conftest$ac_exeext'
3254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3255 (eval $ac_try) 2>&5
3256 ac_status=$?
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }; }; then
3259 ac_cv_lib_supcpp_main=yes
3260else
3261 echo "$as_me: failed program was:" >&5
3262sed 's/^/| /' conftest.$ac_ext >&5
3263
3264ac_cv_lib_supcpp_main=no
3265fi
3266rm -f conftest.err conftest.$ac_objext \
3267 conftest$ac_exeext conftest.$ac_ext
3268LIBS=$ac_check_lib_save_LIBS
3269fi
3270echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5
3271echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6
3272if test $ac_cv_lib_supcpp_main = yes; then
3273
3274 LINKER="$CC"
3275 LIBS="$LIBS -lsupc++"
3276
3277fi
3278
3279fi
3280LINKER=$LINKER
3281
3282
3283CPPFLAGS="-D_GNU_SOURCE -D_XOPEN_SOURCE"
3284
3285if test x$GXX = xyes; then
3286 CXXFLAGS="$CXXFLAGS -fno-exceptions"
3287fi
3288
3289ac_ext=cc
3290ac_cpp='$CXXCPP $CPPFLAGS'
3291ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3294 4397
3295 4398
3296 4399
3297ac_ext=cc 4400ac_ext=cc
3298ac_cpp='$CXXCPP $CPPFLAGS' 4401ac_cpp='$CXXCPP $CPPFLAGS'
3521ac_ext=cc 4624ac_ext=cc
3522ac_cpp='$CXXCPP $CPPFLAGS' 4625ac_cpp='$CXXCPP $CPPFLAGS'
3523ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4626ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4627ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4628ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3526
3527
3528echo "$as_me:$LINENO: checking for egrep" >&5
3529echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3530if test "${ac_cv_prog_egrep+set}" = set; then
3531 echo $ECHO_N "(cached) $ECHO_C" >&6
3532else
3533 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3534 then ac_cv_prog_egrep='grep -E'
3535 else ac_cv_prog_egrep='egrep'
3536 fi
3537fi
3538echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3539echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3540 EGREP=$ac_cv_prog_egrep
3541
3542
3543
3544echo "$as_me:$LINENO: checking for AIX" >&5
3545echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3546cat >conftest.$ac_ext <<_ACEOF
3547/* confdefs.h. */
3548_ACEOF
3549cat confdefs.h >>conftest.$ac_ext
3550cat >>conftest.$ac_ext <<_ACEOF
3551/* end confdefs.h. */
3552#ifdef _AIX
3553 yes
3554#endif
3555
3556_ACEOF
3557if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3558 $EGREP "yes" >/dev/null 2>&1; then
3559 echo "$as_me:$LINENO: result: yes" >&5
3560echo "${ECHO_T}yes" >&6
3561cat >>confdefs.h <<\_ACEOF
3562#define _ALL_SOURCE 1
3563_ACEOF
3564
3565else
3566 echo "$as_me:$LINENO: result: no" >&5
3567echo "${ECHO_T}no" >&6
3568fi
3569rm -f conftest*
3570
3571
3572echo "$as_me:$LINENO: checking for library containing strerror" >&5
3573echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3574if test "${ac_cv_search_strerror+set}" = set; then
3575 echo $ECHO_N "(cached) $ECHO_C" >&6
3576else
3577 ac_func_search_save_LIBS=$LIBS
3578ac_cv_search_strerror=no
3579cat >conftest.$ac_ext <<_ACEOF
3580/* confdefs.h. */
3581_ACEOF
3582cat confdefs.h >>conftest.$ac_ext
3583cat >>conftest.$ac_ext <<_ACEOF
3584/* end confdefs.h. */
3585
3586/* Override any gcc2 internal prototype to avoid an error. */
3587#ifdef __cplusplus
3588extern "C"
3589#endif
3590/* We use char because int might match the return type of a gcc2
3591 builtin and then its argument prototype would still apply. */
3592char strerror ();
3593int
3594main ()
3595{
3596strerror ();
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" || test ! -s conftest.err'
3611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612 (eval $ac_try) 2>&5
3613 ac_status=$?
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); }; } &&
3616 { ac_try='test -s conftest$ac_exeext'
3617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3618 (eval $ac_try) 2>&5
3619 ac_status=$?
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); }; }; then
3622 ac_cv_search_strerror="none required"
3623else
3624 echo "$as_me: failed program was:" >&5
3625sed 's/^/| /' conftest.$ac_ext >&5
3626
3627fi
3628rm -f conftest.err conftest.$ac_objext \
3629 conftest$ac_exeext conftest.$ac_ext
3630if test "$ac_cv_search_strerror" = no; then
3631 for ac_lib in cposix; do
3632 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3633 cat >conftest.$ac_ext <<_ACEOF
3634/* confdefs.h. */
3635_ACEOF
3636cat confdefs.h >>conftest.$ac_ext
3637cat >>conftest.$ac_ext <<_ACEOF
3638/* end confdefs.h. */
3639
3640/* Override any gcc2 internal prototype to avoid an error. */
3641#ifdef __cplusplus
3642extern "C"
3643#endif
3644/* We use char because int might match the return type of a gcc2
3645 builtin and then its argument prototype would still apply. */
3646char strerror ();
3647int
3648main ()
3649{
3650strerror ();
3651 ;
3652 return 0;
3653}
3654_ACEOF
3655rm -f conftest.$ac_objext conftest$ac_exeext
3656if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3657 (eval $ac_link) 2>conftest.er1
3658 ac_status=$?
3659 grep -v '^ *+' conftest.er1 >conftest.err
3660 rm -f conftest.er1
3661 cat conftest.err >&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } &&
3664 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3666 (eval $ac_try) 2>&5
3667 ac_status=$?
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); }; } &&
3670 { ac_try='test -s conftest$ac_exeext'
3671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672 (eval $ac_try) 2>&5
3673 ac_status=$?
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; }; then
3676 ac_cv_search_strerror="-l$ac_lib"
3677break
3678else
3679 echo "$as_me: failed program was:" >&5
3680sed 's/^/| /' conftest.$ac_ext >&5
3681
3682fi
3683rm -f conftest.err conftest.$ac_objext \
3684 conftest$ac_exeext conftest.$ac_ext
3685 done
3686fi
3687LIBS=$ac_func_search_save_LIBS
3688fi
3689echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3690echo "${ECHO_T}$ac_cv_search_strerror" >&6
3691if test "$ac_cv_search_strerror" != no; then
3692 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3693
3694fi
3695
3696
3697# Check whether --enable-shared or --disable-shared was given.
3698if test "${enable_shared+set}" = set; then
3699 enableval="$enable_shared"
3700 p=${PACKAGE-default}
3701case "$enableval" in
3702yes) enable_shared=yes ;;
3703no) enable_shared=no ;;
3704*)
3705 enable_shared=no
3706 # Look at the argument we got. We use all the common list separators.
3707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3708 for pkg in $enableval; do
3709 if test "X$pkg" = "X$p"; then
3710 enable_shared=yes
3711 fi
3712 done
3713 IFS="$ac_save_ifs"
3714 ;;
3715esac
3716else
3717 enable_shared=no
3718fi; # Check whether --enable-static or --disable-static was given.
3719if test "${enable_static+set}" = set; then
3720 enableval="$enable_static"
3721 p=${PACKAGE-default}
3722case "$enableval" in
3723yes) enable_static=yes ;;
3724no) enable_static=no ;;
3725*)
3726 enable_static=no
3727 # Look at the argument we got. We use all the common list separators.
3728 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3729 for pkg in $enableval; do
3730 if test "X$pkg" = "X$p"; then
3731 enable_static=yes
3732 fi
3733 done
3734 IFS="$ac_save_ifs"
3735 ;;
3736esac
3737else
3738 enable_static=yes
3739fi; # Check whether --enable-fast-install or --disable-fast-install was given.
3740if test "${enable_fast_install+set}" = set; then
3741 enableval="$enable_fast_install"
3742 p=${PACKAGE-default}
3743case "$enableval" in
3744yes) enable_fast_install=yes ;;
3745no) enable_fast_install=no ;;
3746*)
3747 enable_fast_install=no
3748 # Look at the argument we got. We use all the common list separators.
3749 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3750 for pkg in $enableval; do
3751 if test "X$pkg" = "X$p"; then
3752 enable_fast_install=yes
3753 fi
3754 done
3755 IFS="$ac_save_ifs"
3756 ;;
3757esac
3758else
3759 enable_fast_install=yes
3760fi;
3761# Make sure we can run config.sub.
3762$ac_config_sub sun4 >/dev/null 2>&1 ||
3763 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3764echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3765 { (exit 1); exit 1; }; }
3766
3767echo "$as_me:$LINENO: checking build system type" >&5
3768echo $ECHO_N "checking build system type... $ECHO_C" >&6
3769if test "${ac_cv_build+set}" = set; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3771else
3772 ac_cv_build_alias=$build_alias
3773test -z "$ac_cv_build_alias" &&
3774 ac_cv_build_alias=`$ac_config_guess`
3775test -z "$ac_cv_build_alias" &&
3776 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3777echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3778 { (exit 1); exit 1; }; }
3779ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3780 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3781echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3782 { (exit 1); exit 1; }; }
3783
3784fi
3785echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3786echo "${ECHO_T}$ac_cv_build" >&6
3787build=$ac_cv_build
3788build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3789build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3790build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3791
3792
3793echo "$as_me:$LINENO: checking host system type" >&5
3794echo $ECHO_N "checking host system type... $ECHO_C" >&6
3795if test "${ac_cv_host+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3797else
3798 ac_cv_host_alias=$host_alias
3799test -z "$ac_cv_host_alias" &&
3800 ac_cv_host_alias=$ac_cv_build_alias
3801ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3802 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3803echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3804 { (exit 1); exit 1; }; }
3805
3806fi
3807echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3808echo "${ECHO_T}$ac_cv_host" >&6
3809host=$ac_cv_host
3810host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3811host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3812host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3813
3814
3815
3816# Check whether --with-gnu-ld or --without-gnu-ld was given.
3817if test "${with_gnu_ld+set}" = set; then
3818 withval="$with_gnu_ld"
3819 test "$withval" = no || with_gnu_ld=yes
3820else
3821 with_gnu_ld=no
3822fi;
3823ac_prog=ld
3824if test "$GCC" = yes; then
3825 # Check if gcc -print-prog-name=ld gives a path.
3826 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3827echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3828 case $host in
3829 *-*-mingw*)
3830 # gcc leaves a trailing carriage return which upsets mingw
3831 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3832 *)
3833 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3834 esac
3835 case "$ac_prog" in
3836 # Accept absolute paths.
3837 [\\/]* | [A-Za-z]:[\\/]*)
3838 re_direlt='/[^/][^/]*/\.\./'
3839 # Canonicalize the path of ld
3840 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3841 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3842 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3843 done
3844 test -z "$LD" && LD="$ac_prog"
3845 ;;
3846 "")
3847 # If it fails, then pretend we aren't using GCC.
3848 ac_prog=ld
3849 ;;
3850 *)
3851 # If it is relative, then search for the first ld in PATH.
3852 with_gnu_ld=unknown
3853 ;;
3854 esac
3855elif test "$with_gnu_ld" = yes; then
3856 echo "$as_me:$LINENO: checking for GNU ld" >&5
3857echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3858else
3859 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3860echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3861fi
3862if test "${lt_cv_path_LD+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3864else
3865 if test -z "$LD"; then
3866 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3867 for ac_dir in $PATH; do
3868 test -z "$ac_dir" && ac_dir=.
3869 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3870 lt_cv_path_LD="$ac_dir/$ac_prog"
3871 # Check to see if the program is GNU ld. I'd rather use --version,
3872 # but apparently some GNU ld's only accept -v.
3873 # Break only if it was the GNU/non-GNU ld that we prefer.
3874 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3875 test "$with_gnu_ld" != no && break
3876 else
3877 test "$with_gnu_ld" != yes && break
3878 fi
3879 fi
3880 done
3881 IFS="$ac_save_ifs"
3882else
3883 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3884fi
3885fi
3886
3887LD="$lt_cv_path_LD"
3888if test -n "$LD"; then
3889 echo "$as_me:$LINENO: result: $LD" >&5
3890echo "${ECHO_T}$LD" >&6
3891else
3892 echo "$as_me:$LINENO: result: no" >&5
3893echo "${ECHO_T}no" >&6
3894fi
3895test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3896echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3897 { (exit 1); exit 1; }; }
3898echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3899echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3900if test "${lt_cv_prog_gnu_ld+set}" = set; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
3902else
3903 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3904if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3905 lt_cv_prog_gnu_ld=yes
3906else
3907 lt_cv_prog_gnu_ld=no
3908fi
3909fi
3910echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3911echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3912with_gnu_ld=$lt_cv_prog_gnu_ld
3913
3914
3915echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3916echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3917if test "${lt_cv_ld_reload_flag+set}" = set; then
3918 echo $ECHO_N "(cached) $ECHO_C" >&6
3919else
3920 lt_cv_ld_reload_flag='-r'
3921fi
3922echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3923echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3924reload_flag=$lt_cv_ld_reload_flag
3925test -n "$reload_flag" && reload_flag=" $reload_flag"
3926
3927echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3928echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3929if test "${lt_cv_path_NM+set}" = set; then
3930 echo $ECHO_N "(cached) $ECHO_C" >&6
3931else
3932 if test -n "$NM"; then
3933 # Let the user override the test.
3934 lt_cv_path_NM="$NM"
3935else
3936 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3937 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3938 test -z "$ac_dir" && ac_dir=.
3939 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3940 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3941 # Check to see if the nm accepts a BSD-compat flag.
3942 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3943 # nm: unknown option "B" ignored
3944 # Tru64's nm complains that /dev/null is an invalid object file
3945 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3946 lt_cv_path_NM="$tmp_nm -B"
3947 break
3948 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3949 lt_cv_path_NM="$tmp_nm -p"
3950 break
3951 else
3952 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3953 continue # so that we can try to find one that supports BSD flags
3954 fi
3955 fi
3956 done
3957 IFS="$ac_save_ifs"
3958 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3959fi
3960fi
3961
3962NM="$lt_cv_path_NM"
3963echo "$as_me:$LINENO: result: $NM" >&5
3964echo "${ECHO_T}$NM" >&6
3965
3966echo "$as_me:$LINENO: checking whether ln -s works" >&5
3967echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3968LN_S=$as_ln_s
3969if test "$LN_S" = "ln -s"; then
3970 echo "$as_me:$LINENO: result: yes" >&5
3971echo "${ECHO_T}yes" >&6
3972else
3973 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3974echo "${ECHO_T}no, using $LN_S" >&6
3975fi
3976
3977echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3978echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3979if test "${lt_cv_deplibs_check_method+set}" = set; then
3980 echo $ECHO_N "(cached) $ECHO_C" >&6
3981else
3982 lt_cv_file_magic_cmd='$MAGIC_CMD'
3983lt_cv_file_magic_test_file=
3984lt_cv_deplibs_check_method='unknown'
3985# Need to set the preceding variable on all platforms that support
3986# interlibrary dependencies.
3987# 'none' -- dependencies not supported.
3988# `unknown' -- same as none, but documents that we really don't know.
3989# 'pass_all' -- all dependencies passed with no checks.
3990# 'test_compile' -- check by making test program.
3991# ['file_magic [regex]'] -- check by looking for files in library path
3992# which responds to the $file_magic_cmd with a given egrep regex.
3993# If you have `file' or equivalent on your system and you're not sure
3994# whether `pass_all' will *always* work, you probably want this one.
3995
3996case "$host_os" in
3997aix4*)
3998 lt_cv_deplibs_check_method=pass_all
3999 ;;
4000
4001beos*)
4002 lt_cv_deplibs_check_method=pass_all
4003 ;;
4004
4005bsdi4*)
4006 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4007 lt_cv_file_magic_cmd='/usr/bin/file -L'
4008 lt_cv_file_magic_test_file=/shlib/libc.so
4009 ;;
4010
4011cygwin* | mingw* | pw32*)
4012 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4013 lt_cv_file_magic_cmd='$OBJDUMP -f'
4014 ;;
4015
4016darwin*|rhapsody*)
4017 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4018 lt_cv_file_magiic_cmd=/usr/bin/file
4019 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4020 ;;
4021
4022freebsd*)
4023 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4024 case "$host_cpu" in
4025 i*86 )
4026 # Not sure whether the presence of OpenBSD here was a mistake.
4027 # Let's accept both of them until this is cleared up.
4028 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4029 lt_cv_file_magic_cmd=/usr/bin/file
4030 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4031 ;;
4032 esac
4033 else
4034 lt_cv_deplibs_check_method=pass_all
4035 fi
4036 ;;
4037
4038gnu*)
4039 lt_cv_deplibs_check_method=pass_all
4040 ;;
4041
4042hpux10.20*|hpux11*)
4043 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4044 lt_cv_file_magic_cmd=/usr/bin/file
4045 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4046 ;;
4047
4048irix5* | irix6*)
4049 case "$host_os" in
4050 irix5*)
4051 # this will be overridden with pass_all, but let us keep it just in case
4052 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4053 ;;
4054 *)
4055 case "$LD" in
4056 *-32|*"-32 ") libmagic=32-bit;;
4057 *-n32|*"-n32 ") libmagic=N32;;
4058 *-64|*"-64 ") libmagic=64-bit;;
4059 *) libmagic=never-match;;
4060 esac
4061 # this will be overridden with pass_all, but let us keep it just in case
4062 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4063 ;;
4064 esac
4065 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4066 lt_cv_deplibs_check_method=pass_all
4067 ;;
4068
4069# This must be Linux ELF.
4070linux-gnu*)
4071 case "$host_cpu" in
4072 alpha* | i*86 | powerpc* | sparc* | ia64* )
4073 lt_cv_deplibs_check_method=pass_all ;;
4074 *)
4075 # glibc up to 2.1.1 does not perform some relocations on ARM
4076 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4077 esac
4078 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4079 ;;
4080
4081netbsd*)
4082 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4083 lt_cv_deplibs_check_method='file_magic NetBSD/[a-z0-9]* demand paged shared library'
4084 else
4085 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4086 fi
4087 lt_cv_file_magic_cmd='/usr/bin/file -L'
4088 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4089 ;;
4090
4091newos6*)
4092 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4093 lt_cv_file_magic_cmd=/usr/bin/file
4094 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4095 ;;
4096
4097osf3* | osf4* | osf5*)
4098 # this will be overridden with pass_all, but let us keep it just in case
4099 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4100 lt_cv_file_magic_test_file=/shlib/libc.so
4101 lt_cv_deplibs_check_method=pass_all
4102 ;;
4103
4104sco3.2v5*)
4105 lt_cv_deplibs_check_method=pass_all
4106 ;;
4107
4108solaris*)
4109 lt_cv_deplibs_check_method=pass_all
4110 lt_cv_file_magic_test_file=/lib/libc.so
4111 ;;
4112
4113sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4114 case "$host_vendor" in
4115 motorola)
4116 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]'
4117 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4118 ;;
4119 ncr)
4120 lt_cv_deplibs_check_method=pass_all
4121 ;;
4122 sequent)
4123 lt_cv_file_magic_cmd='/bin/file'
4124 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4125 ;;
4126 sni)
4127 lt_cv_file_magic_cmd='/bin/file'
4128 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4129 lt_cv_file_magic_test_file=/lib/libc.so
4130 ;;
4131 esac
4132 ;;
4133esac
4134
4135fi
4136echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4137echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4138file_magic_cmd=$lt_cv_file_magic_cmd
4139deplibs_check_method=$lt_cv_deplibs_check_method
4140
4141
4142
4143
4144
4145
4146
4147# Check for command to grab the raw symbol name followed by C symbol from nm.
4148echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4149echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4150if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4152else
4153
4154# These are sane defaults that work on at least a few old systems.
4155# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4156
4157# Character class describing NM global symbol codes.
4158symcode='[BCDEGRST]'
4159
4160# Regexp to match symbols that can be accessed directly from C.
4161sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4162
4163# Transform the above into a raw symbol and a C symbol.
4164symxfrm='\1 \2\3 \3'
4165
4166# Transform an extracted symbol line into a proper C declaration
4167lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4168
4169# Define system-specific variables.
4170case "$host_os" in
4171aix*)
4172 symcode='[BCDT]'
4173 ;;
4174cygwin* | mingw* | pw32*)
4175 symcode='[ABCDGISTW]'
4176 ;;
4177hpux*) # Its linker distinguishes data from code symbols
4178 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
4179 ;;
4180irix*)
4181 symcode='[BCDEGRST]'
4182 ;;
4183solaris* | sysv5*)
4184 symcode='[BDT]'
4185 ;;
4186sysv4)
4187 symcode='[DFNSTU]'
4188 ;;
4189esac
4190
4191# Handle CRLF in mingw tool chain
4192opt_cr=
4193case "$host_os" in
4194mingw*)
4195 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4196 ;;
4197esac
4198
4199# If we're using GNU nm, then use its standard symbol codes.
4200if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4201 symcode='[ABCDGISTW]'
4202fi
4203
4204# Try without a prefix undercore, then with it.
4205for ac_symprfx in "" "_"; do
4206
4207 # Write the raw and C identifiers.
4208lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4209
4210 # Check to see that the pipe works correctly.
4211 pipe_works=no
4212 rm -f conftest*
4213 cat > conftest.$ac_ext <<EOF
4214#ifdef __cplusplus
4215extern "C" {
4216#endif
4217char nm_test_var;
4218void nm_test_func(){}
4219#ifdef __cplusplus
4220}
4221#endif
4222main(){nm_test_var='a';nm_test_func();return(0);}
4223EOF
4224
4225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4226 (eval $ac_compile) 2>&5
4227 ac_status=$?
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); }; then
4230 # Now try to grab the symbols.
4231 nlist=conftest.nm
4232 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4233 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4234 ac_status=$?
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); } && test -s "$nlist"; then
4237 # Try sorting and uniquifying the output.
4238 if sort "$nlist" | uniq > "$nlist"T; then
4239 mv -f "$nlist"T "$nlist"
4240 else
4241 rm -f "$nlist"T
4242 fi
4243
4244 # Make sure that we snagged all the symbols we need.
4245 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4246 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4247 cat <<EOF > conftest.$ac_ext
4248#ifdef __cplusplus
4249extern "C" {
4250#endif
4251
4252EOF
4253 # Now generate the symbol file.
4254 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4255
4256 cat <<EOF >> conftest.$ac_ext
4257#if defined (__STDC__) && __STDC__
4258# define lt_ptr_t void *
4259#else
4260# define lt_ptr_t char *
4261# define const
4262#endif
4263
4264/* The mapping between symbol names and symbols. */
4265const struct {
4266 const char *name;
4267 lt_ptr_t address;
4268}
4269lt_preloaded_symbols[] =
4270{
4271EOF
4272 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$nlist" >> conftest.$ac_ext
4273 cat <<\EOF >> conftest.$ac_ext
4274 {0, (lt_ptr_t) 0}
4275};
4276
4277#ifdef __cplusplus
4278}
4279#endif
4280EOF
4281 # Now try linking the two files.
4282 mv conftest.$ac_objext conftstm.$ac_objext
4283 save_LIBS="$LIBS"
4284 save_CFLAGS="$CFLAGS"
4285 LIBS="conftstm.$ac_objext"
4286 CFLAGS="$CFLAGS$no_builtin_flag"
4287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4288 (eval $ac_link) 2>&5
4289 ac_status=$?
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); } && test -s conftest; then
4292 pipe_works=yes
4293 fi
4294 LIBS="$save_LIBS"
4295 CFLAGS="$save_CFLAGS"
4296 else
4297 echo "cannot find nm_test_func in $nlist" >&5
4298 fi
4299 else
4300 echo "cannot find nm_test_var in $nlist" >&5
4301 fi
4302 else
4303 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4304 fi
4305 else
4306 echo "$progname: failed program was:" >&5
4307 cat conftest.$ac_ext >&5
4308 fi
4309 rm -f conftest* conftst*
4310
4311 # Do not use the global_symbol_pipe unless it works.
4312 if test "$pipe_works" = yes; then
4313 break
4314 else
4315 lt_cv_sys_global_symbol_pipe=
4316 fi
4317done
4318
4319fi
4320
4321global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4322if test -z "$lt_cv_sys_global_symbol_pipe"; then
4323 global_symbol_to_cdecl=
4324else
4325 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4326fi
4327if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
4328 echo "$as_me:$LINENO: result: failed" >&5
4329echo "${ECHO_T}failed" >&6
4330else
4331 echo "$as_me:$LINENO: result: ok" >&5
4332echo "${ECHO_T}ok" >&6
4333fi
4334
4335echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4336echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4337if test "${ac_cv_header_stdc+set}" = set; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
4339else
4340 cat >conftest.$ac_ext <<_ACEOF
4341/* confdefs.h. */
4342_ACEOF
4343cat confdefs.h >>conftest.$ac_ext
4344cat >>conftest.$ac_ext <<_ACEOF
4345/* end confdefs.h. */
4346#include <stdlib.h>
4347#include <stdarg.h>
4348#include <string.h>
4349#include <float.h>
4350
4351int
4352main ()
4353{
4354
4355 ;
4356 return 0;
4357}
4358_ACEOF
4359rm -f conftest.$ac_objext
4360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4361 (eval $ac_compile) 2>conftest.er1
4362 ac_status=$?
4363 grep -v '^ *+' conftest.er1 >conftest.err
4364 rm -f conftest.er1
4365 cat conftest.err >&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } &&
4368 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4370 (eval $ac_try) 2>&5
4371 ac_status=$?
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; } &&
4374 { ac_try='test -s conftest.$ac_objext'
4375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4376 (eval $ac_try) 2>&5
4377 ac_status=$?
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }; }; then
4380 ac_cv_header_stdc=yes
4381else
4382 echo "$as_me: failed program was:" >&5
4383sed 's/^/| /' conftest.$ac_ext >&5
4384
4385ac_cv_header_stdc=no
4386fi
4387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4388
4389if test $ac_cv_header_stdc = yes; then
4390 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4391 cat >conftest.$ac_ext <<_ACEOF
4392/* confdefs.h. */
4393_ACEOF
4394cat confdefs.h >>conftest.$ac_ext
4395cat >>conftest.$ac_ext <<_ACEOF
4396/* end confdefs.h. */
4397#include <string.h>
4398
4399_ACEOF
4400if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4401 $EGREP "memchr" >/dev/null 2>&1; then
4402 :
4403else
4404 ac_cv_header_stdc=no
4405fi
4406rm -f conftest*
4407
4408fi
4409
4410if test $ac_cv_header_stdc = yes; then
4411 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4412 cat >conftest.$ac_ext <<_ACEOF
4413/* confdefs.h. */
4414_ACEOF
4415cat confdefs.h >>conftest.$ac_ext
4416cat >>conftest.$ac_ext <<_ACEOF
4417/* end confdefs.h. */
4418#include <stdlib.h>
4419
4420_ACEOF
4421if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4422 $EGREP "free" >/dev/null 2>&1; then
4423 :
4424else
4425 ac_cv_header_stdc=no
4426fi
4427rm -f conftest*
4428
4429fi
4430
4431if test $ac_cv_header_stdc = yes; then
4432 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4433 if test "$cross_compiling" = yes; then
4434 :
4435else
4436 cat >conftest.$ac_ext <<_ACEOF
4437/* confdefs.h. */
4438_ACEOF
4439cat confdefs.h >>conftest.$ac_ext
4440cat >>conftest.$ac_ext <<_ACEOF
4441/* end confdefs.h. */
4442#include <ctype.h>
4443#if ((' ' & 0x0FF) == 0x020)
4444# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4445# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4446#else
4447# define ISLOWER(c) \
4448 (('a' <= (c) && (c) <= 'i') \
4449 || ('j' <= (c) && (c) <= 'r') \
4450 || ('s' <= (c) && (c) <= 'z'))
4451# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4452#endif
4453
4454#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4455int
4456main ()
4457{
4458 int i;
4459 for (i = 0; i < 256; i++)
4460 if (XOR (islower (i), ISLOWER (i))
4461 || toupper (i) != TOUPPER (i))
4462 exit(2);
4463 exit (0);
4464}
4465_ACEOF
4466rm -f conftest$ac_exeext
4467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4468 (eval $ac_link) 2>&5
4469 ac_status=$?
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4473 (eval $ac_try) 2>&5
4474 ac_status=$?
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; }; then
4477 :
4478else
4479 echo "$as_me: program exited with status $ac_status" >&5
4480echo "$as_me: failed program was:" >&5
4481sed 's/^/| /' conftest.$ac_ext >&5
4482
4483( exit $ac_status )
4484ac_cv_header_stdc=no
4485fi
4486rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4487fi
4488fi
4489fi
4490echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4491echo "${ECHO_T}$ac_cv_header_stdc" >&6
4492if test $ac_cv_header_stdc = yes; then
4493
4494cat >>confdefs.h <<\_ACEOF
4495#define STDC_HEADERS 1
4496_ACEOF
4497
4498fi
4499
4500# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4511 inttypes.h stdint.h unistd.h
4512do
4513as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4514echo "$as_me:$LINENO: checking for $ac_header" >&5
4515echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4516if eval "test \"\${$as_ac_Header+set}\" = set"; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
4518else
4519 cat >conftest.$ac_ext <<_ACEOF
4520/* confdefs.h. */
4521_ACEOF
4522cat confdefs.h >>conftest.$ac_ext
4523cat >>conftest.$ac_ext <<_ACEOF
4524/* end confdefs.h. */
4525$ac_includes_default
4526
4527#include <$ac_header>
4528_ACEOF
4529rm -f conftest.$ac_objext
4530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4531 (eval $ac_compile) 2>conftest.er1
4532 ac_status=$?
4533 grep -v '^ *+' conftest.er1 >conftest.err
4534 rm -f conftest.er1
4535 cat conftest.err >&5
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); } &&
4538 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4540 (eval $ac_try) 2>&5
4541 ac_status=$?
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); }; } &&
4544 { ac_try='test -s conftest.$ac_objext'
4545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4546 (eval $ac_try) 2>&5
4547 ac_status=$?
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; }; then
4550 eval "$as_ac_Header=yes"
4551else
4552 echo "$as_me: failed program was:" >&5
4553sed 's/^/| /' conftest.$ac_ext >&5
4554
4555eval "$as_ac_Header=no"
4556fi
4557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4558fi
4559echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4560echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4561if test `eval echo '${'$as_ac_Header'}'` = yes; then
4562 cat >>confdefs.h <<_ACEOF
4563#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4564_ACEOF
4565
4566fi
4567
4568done
4569
4570
4571
4572for ac_header in dlfcn.h
4573do
4574as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4575if eval "test \"\${$as_ac_Header+set}\" = set"; then
4576 echo "$as_me:$LINENO: checking for $ac_header" >&5
4577echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4578if eval "test \"\${$as_ac_Header+set}\" = set"; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4580fi
4581echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4582echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4583else
4584 # Is the header compilable?
4585echo "$as_me:$LINENO: checking $ac_header usability" >&5
4586echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4587cat >conftest.$ac_ext <<_ACEOF
4588/* confdefs.h. */
4589_ACEOF
4590cat confdefs.h >>conftest.$ac_ext
4591cat >>conftest.$ac_ext <<_ACEOF
4592/* end confdefs.h. */
4593$ac_includes_default
4594#include <$ac_header>
4595_ACEOF
4596rm -f conftest.$ac_objext
4597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4598 (eval $ac_compile) 2>conftest.er1
4599 ac_status=$?
4600 grep -v '^ *+' conftest.er1 >conftest.err
4601 rm -f conftest.er1
4602 cat conftest.err >&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } &&
4605 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607 (eval $ac_try) 2>&5
4608 ac_status=$?
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; } &&
4611 { ac_try='test -s conftest.$ac_objext'
4612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613 (eval $ac_try) 2>&5
4614 ac_status=$?
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; }; then
4617 ac_header_compiler=yes
4618else
4619 echo "$as_me: failed program was:" >&5
4620sed 's/^/| /' conftest.$ac_ext >&5
4621
4622ac_header_compiler=no
4623fi
4624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4625echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4626echo "${ECHO_T}$ac_header_compiler" >&6
4627
4628# Is the header present?
4629echo "$as_me:$LINENO: checking $ac_header presence" >&5
4630echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4631cat >conftest.$ac_ext <<_ACEOF
4632/* confdefs.h. */
4633_ACEOF
4634cat confdefs.h >>conftest.$ac_ext
4635cat >>conftest.$ac_ext <<_ACEOF
4636/* end confdefs.h. */
4637#include <$ac_header>
4638_ACEOF
4639if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4640 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4641 ac_status=$?
4642 grep -v '^ *+' conftest.er1 >conftest.err
4643 rm -f conftest.er1
4644 cat conftest.err >&5
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); } >/dev/null; then
4647 if test -s conftest.err; then
4648 ac_cpp_err=$ac_cxx_preproc_warn_flag
4649 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4650 else
4651 ac_cpp_err=
4652 fi
4653else
4654 ac_cpp_err=yes
4655fi
4656if test -z "$ac_cpp_err"; then
4657 ac_header_preproc=yes
4658else
4659 echo "$as_me: failed program was:" >&5
4660sed 's/^/| /' conftest.$ac_ext >&5
4661
4662 ac_header_preproc=no
4663fi
4664rm -f conftest.err conftest.$ac_ext
4665echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4666echo "${ECHO_T}$ac_header_preproc" >&6
4667
4668# So? What about this header?
4669case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4670 yes:no: )
4671 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4672echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4674echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4675 ac_header_preproc=yes
4676 ;;
4677 no:yes:* )
4678 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4679echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4680 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4681echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4682 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4683echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4684 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4685echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4687echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4688 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4689echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4690 (
4691 cat <<\_ASBOX
4692## ------------------------------------------ ##
4693## Report this to the AC_PACKAGE_NAME lists. ##
4694## ------------------------------------------ ##
4695_ASBOX
4696 ) |
4697 sed "s/^/$as_me: WARNING: /" >&2
4698 ;;
4699esac
4700echo "$as_me:$LINENO: checking for $ac_header" >&5
4701echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4702if eval "test \"\${$as_ac_Header+set}\" = set"; then
4703 echo $ECHO_N "(cached) $ECHO_C" >&6
4704else
4705 eval "$as_ac_Header=\$ac_header_preproc"
4706fi
4707echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4708echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4709
4710fi
4711if test `eval echo '${'$as_ac_Header'}'` = yes; then
4712 cat >>confdefs.h <<_ACEOF
4713#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4714_ACEOF
4715
4716fi
4717
4718done
4719
4720
4721
4722
4723
4724# Only perform the check for file, if the check method requires it
4725case "$deplibs_check_method" in
4726file_magic*)
4727 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4728 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4729echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4730if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4731 echo $ECHO_N "(cached) $ECHO_C" >&6
4732else
4733 case "$MAGIC_CMD" in
4734 /*)
4735 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4736 ;;
4737 ?:/*)
4738 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4739 ;;
4740 *)
4741 ac_save_MAGIC_CMD="$MAGIC_CMD"
4742 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4743 ac_dummy="/usr/bin:$PATH"
4744 for ac_dir in $ac_dummy; do
4745 test -z "$ac_dir" && ac_dir=.
4746 if test -f $ac_dir/${ac_tool_prefix}file; then
4747 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4748 if test -n "$file_magic_test_file"; then
4749 case "$deplibs_check_method" in
4750 "file_magic "*)
4751 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4752 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4753 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4754 egrep "$file_magic_regex" > /dev/null; then
4755 :
4756 else
4757 cat <<EOF 1>&2
4758
4759*** Warning: the command libtool uses to detect shared libraries,
4760*** $file_magic_cmd, produces output that libtool cannot recognize.
4761*** The result is that libtool may fail to recognize shared libraries
4762*** as such. This will affect the creation of libtool libraries that
4763*** depend on shared libraries, but programs linked with such libtool
4764*** libraries will work regardless of this problem. Nevertheless, you
4765*** may want to report the problem to your system manager and/or to
4766*** bug-libtool@gnu.org
4767
4768EOF
4769 fi ;;
4770 esac
4771 fi
4772 break
4773 fi
4774 done
4775 IFS="$ac_save_ifs"
4776 MAGIC_CMD="$ac_save_MAGIC_CMD"
4777 ;;
4778esac
4779fi
4780
4781MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4782if test -n "$MAGIC_CMD"; then
4783 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4784echo "${ECHO_T}$MAGIC_CMD" >&6
4785else
4786 echo "$as_me:$LINENO: result: no" >&5
4787echo "${ECHO_T}no" >&6
4788fi
4789
4790if test -z "$lt_cv_path_MAGIC_CMD"; then
4791 if test -n "$ac_tool_prefix"; then
4792 echo "$as_me:$LINENO: checking for file" >&5
4793echo $ECHO_N "checking for file... $ECHO_C" >&6
4794if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4796else
4797 case "$MAGIC_CMD" in
4798 /*)
4799 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4800 ;;
4801 ?:/*)
4802 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4803 ;;
4804 *)
4805 ac_save_MAGIC_CMD="$MAGIC_CMD"
4806 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4807 ac_dummy="/usr/bin:$PATH"
4808 for ac_dir in $ac_dummy; do
4809 test -z "$ac_dir" && ac_dir=.
4810 if test -f $ac_dir/file; then
4811 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4812 if test -n "$file_magic_test_file"; then
4813 case "$deplibs_check_method" in
4814 "file_magic "*)
4815 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4816 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4817 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4818 egrep "$file_magic_regex" > /dev/null; then
4819 :
4820 else
4821 cat <<EOF 1>&2
4822
4823*** Warning: the command libtool uses to detect shared libraries,
4824*** $file_magic_cmd, produces output that libtool cannot recognize.
4825*** The result is that libtool may fail to recognize shared libraries
4826*** as such. This will affect the creation of libtool libraries that
4827*** depend on shared libraries, but programs linked with such libtool
4828*** libraries will work regardless of this problem. Nevertheless, you
4829*** may want to report the problem to your system manager and/or to
4830*** bug-libtool@gnu.org
4831
4832EOF
4833 fi ;;
4834 esac
4835 fi
4836 break
4837 fi
4838 done
4839 IFS="$ac_save_ifs"
4840 MAGIC_CMD="$ac_save_MAGIC_CMD"
4841 ;;
4842esac
4843fi
4844
4845MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4846if test -n "$MAGIC_CMD"; then
4847 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4848echo "${ECHO_T}$MAGIC_CMD" >&6
4849else
4850 echo "$as_me:$LINENO: result: no" >&5
4851echo "${ECHO_T}no" >&6
4852fi
4853
4854 else
4855 MAGIC_CMD=:
4856 fi
4857fi
4858
4859 fi
4860 ;;
4861esac
4862
4863if test -n "$ac_tool_prefix"; then
4864 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4865set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4866echo "$as_me:$LINENO: checking for $ac_word" >&5
4867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4868if test "${ac_cv_prog_RANLIB+set}" = set; then
4869 echo $ECHO_N "(cached) $ECHO_C" >&6
4870else
4871 if test -n "$RANLIB"; then
4872 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4873else
4874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875for as_dir in $PATH
4876do
4877 IFS=$as_save_IFS
4878 test -z "$as_dir" && as_dir=.
4879 for ac_exec_ext in '' $ac_executable_extensions; do
4880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4881 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4883 break 2
4884 fi
4885done
4886done
4887
4888fi
4889fi
4890RANLIB=$ac_cv_prog_RANLIB
4891if test -n "$RANLIB"; then
4892 echo "$as_me:$LINENO: result: $RANLIB" >&5
4893echo "${ECHO_T}$RANLIB" >&6
4894else
4895 echo "$as_me:$LINENO: result: no" >&5
4896echo "${ECHO_T}no" >&6
4897fi
4898
4899fi
4900if test -z "$ac_cv_prog_RANLIB"; then
4901 ac_ct_RANLIB=$RANLIB
4902 # Extract the first word of "ranlib", so it can be a program name with args.
4903set dummy ranlib; ac_word=$2
4904echo "$as_me:$LINENO: checking for $ac_word" >&5
4905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4906if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4908else
4909 if test -n "$ac_ct_RANLIB"; then
4910 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4911else
4912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913for as_dir in $PATH
4914do
4915 IFS=$as_save_IFS
4916 test -z "$as_dir" && as_dir=.
4917 for ac_exec_ext in '' $ac_executable_extensions; do
4918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4919 ac_cv_prog_ac_ct_RANLIB="ranlib"
4920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4921 break 2
4922 fi
4923done
4924done
4925
4926 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4927fi
4928fi
4929ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4930if test -n "$ac_ct_RANLIB"; then
4931 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4932echo "${ECHO_T}$ac_ct_RANLIB" >&6
4933else
4934 echo "$as_me:$LINENO: result: no" >&5
4935echo "${ECHO_T}no" >&6
4936fi
4937
4938 RANLIB=$ac_ct_RANLIB
4939else
4940 RANLIB="$ac_cv_prog_RANLIB"
4941fi
4942
4943if test -n "$ac_tool_prefix"; then
4944 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4945set dummy ${ac_tool_prefix}strip; ac_word=$2
4946echo "$as_me:$LINENO: checking for $ac_word" >&5
4947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4948if test "${ac_cv_prog_STRIP+set}" = set; then
4949 echo $ECHO_N "(cached) $ECHO_C" >&6
4950else
4951 if test -n "$STRIP"; then
4952 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4953else
4954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955for as_dir in $PATH
4956do
4957 IFS=$as_save_IFS
4958 test -z "$as_dir" && as_dir=.
4959 for ac_exec_ext in '' $ac_executable_extensions; do
4960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4961 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4963 break 2
4964 fi
4965done
4966done
4967
4968fi
4969fi
4970STRIP=$ac_cv_prog_STRIP
4971if test -n "$STRIP"; then
4972 echo "$as_me:$LINENO: result: $STRIP" >&5
4973echo "${ECHO_T}$STRIP" >&6
4974else
4975 echo "$as_me:$LINENO: result: no" >&5
4976echo "${ECHO_T}no" >&6
4977fi
4978
4979fi
4980if test -z "$ac_cv_prog_STRIP"; then
4981 ac_ct_STRIP=$STRIP
4982 # Extract the first word of "strip", so it can be a program name with args.
4983set dummy strip; ac_word=$2
4984echo "$as_me:$LINENO: checking for $ac_word" >&5
4985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4986if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4987 echo $ECHO_N "(cached) $ECHO_C" >&6
4988else
4989 if test -n "$ac_ct_STRIP"; then
4990 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4991else
4992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993for as_dir in $PATH
4994do
4995 IFS=$as_save_IFS
4996 test -z "$as_dir" && as_dir=.
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4999 ac_cv_prog_ac_ct_STRIP="strip"
5000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5001 break 2
5002 fi
5003done
5004done
5005
5006 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5007fi
5008fi
5009ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5010if test -n "$ac_ct_STRIP"; then
5011 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5012echo "${ECHO_T}$ac_ct_STRIP" >&6
5013else
5014 echo "$as_me:$LINENO: result: no" >&5
5015echo "${ECHO_T}no" >&6
5016fi
5017
5018 STRIP=$ac_ct_STRIP
5019else
5020 STRIP="$ac_cv_prog_STRIP"
5021fi
5022
5023
5024enable_dlopen=no
5025enable_win32_dll=no
5026
5027# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5028if test "${enable_libtool_lock+set}" = set; then
5029 enableval="$enable_libtool_lock"
5030
5031fi;
5032test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5033
5034# Some flags need to be propagated to the compiler or linker for good
5035# libtool support.
5036case "$host" in
5037*-*-irix6*)
5038 # Find out which ABI we are using.
5039 echo '#line 5039 "configure"' > conftest.$ac_ext
5040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5041 (eval $ac_compile) 2>&5
5042 ac_status=$?
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); }; then
5045 case "`/usr/bin/file conftest.$ac_objext`" in
5046 *32-bit*)
5047 LD="${LD-ld} -32"
5048 ;;
5049 *N32*)
5050 LD="${LD-ld} -n32"
5051 ;;
5052 *64-bit*)
5053 LD="${LD-ld} -64"
5054 ;;
5055 esac
5056 fi
5057 rm -rf conftest*
5058 ;;
5059
5060*-*-sco3.2v5*)
5061 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5062 SAVE_CFLAGS="$CFLAGS"
5063 CFLAGS="$CFLAGS -belf"
5064 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5065echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5066if test "${lt_cv_cc_needs_belf+set}" = set; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5068else
5069
5070
5071 ac_ext=c
5072ac_cpp='$CPP $CPPFLAGS'
5073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5075ac_compiler_gnu=$ac_cv_c_compiler_gnu
5076
5077 cat >conftest.$ac_ext <<_ACEOF
5078/* confdefs.h. */
5079_ACEOF
5080cat confdefs.h >>conftest.$ac_ext
5081cat >>conftest.$ac_ext <<_ACEOF
5082/* end confdefs.h. */
5083
5084int
5085main ()
5086{
5087
5088 ;
5089 return 0;
5090}
5091_ACEOF
5092rm -f conftest.$ac_objext conftest$ac_exeext
5093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5094 (eval $ac_link) 2>conftest.er1
5095 ac_status=$?
5096 grep -v '^ *+' conftest.er1 >conftest.err
5097 rm -f conftest.er1
5098 cat conftest.err >&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); } &&
5101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5103 (eval $ac_try) 2>&5
5104 ac_status=$?
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); }; } &&
5107 { ac_try='test -s conftest$ac_exeext'
5108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109 (eval $ac_try) 2>&5
5110 ac_status=$?
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); }; }; then
5113 lt_cv_cc_needs_belf=yes
5114else
5115 echo "$as_me: failed program was:" >&5
5116sed 's/^/| /' conftest.$ac_ext >&5
5117
5118lt_cv_cc_needs_belf=no
5119fi
5120rm -f conftest.err conftest.$ac_objext \
5121 conftest$ac_exeext conftest.$ac_ext
5122 ac_ext=cc
5123ac_cpp='$CXXCPP $CPPFLAGS'
5124ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5125ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5126ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5127
5128fi
5129echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5130echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5131 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5132 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5133 CFLAGS="$SAVE_CFLAGS"
5134 fi
5135 ;;
5136
5137
5138esac
5139
5140# Sed substitution that helps us do robust quoting. It backslashifies
5141# metacharacters that are still active within double-quoted strings.
5142Xsed='sed -e s/^X//'
5143sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5144
5145# Same as above, but do not quote variable references.
5146double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5147
5148# Sed substitution to delay expansion of an escaped shell variable in a
5149# double_quote_subst'ed string.
5150delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5151
5152# Constants:
5153rm="rm -f"
5154
5155# Global variables:
5156default_ofile=libtool
5157can_build_shared=yes
5158
5159# All known linkers require a `.a' archive for static linking (except M$VC,
5160# which needs '.lib').
5161libext=a
5162ltmain="$ac_aux_dir/ltmain.sh"
5163ofile="$default_ofile"
5164with_gnu_ld="$lt_cv_prog_gnu_ld"
5165need_locks="$enable_libtool_lock"
5166
5167old_CC="$CC"
5168old_CFLAGS="$CFLAGS"
5169
5170# Set sane defaults for various variables
5171test -z "$AR" && AR=ar
5172test -z "$AR_FLAGS" && AR_FLAGS=cru
5173test -z "$AS" && AS=as
5174test -z "$CC" && CC=cc
5175test -z "$DLLTOOL" && DLLTOOL=dlltool
5176test -z "$LD" && LD=ld
5177test -z "$LN_S" && LN_S="ln -s"
5178test -z "$MAGIC_CMD" && MAGIC_CMD=file
5179test -z "$NM" && NM=nm
5180test -z "$OBJDUMP" && OBJDUMP=objdump
5181test -z "$RANLIB" && RANLIB=:
5182test -z "$STRIP" && STRIP=:
5183test -z "$ac_objext" && ac_objext=o
5184
5185if test x"$host" != x"$build"; then
5186 ac_tool_prefix=${host_alias}-
5187else
5188 ac_tool_prefix=
5189fi
5190
5191# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5192case "$host_os" in
5193linux-gnu*) ;;
5194linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5195esac
5196
5197case "$host_os" in
5198aix3*)
5199 # AIX sometimes has problems with the GCC collect2 program. For some
5200 # reason, if we set the COLLECT_NAMES environment variable, the problems
5201 # vanish in a puff of smoke.
5202 if test "X${COLLECT_NAMES+set}" != Xset; then
5203 COLLECT_NAMES=
5204 export COLLECT_NAMES
5205 fi
5206 ;;
5207esac
5208
5209# Determine commands to create old-style static archives.
5210old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5211old_postinstall_cmds='chmod 644 $oldlib'
5212old_postuninstall_cmds=
5213
5214if test -n "$RANLIB"; then
5215 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5216 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5217fi
5218
5219# Allow CC to be a program name with arguments.
5220set dummy $CC
5221compiler="$2"
5222
5223## FIXME: this should be a separate macro
5224##
5225echo "$as_me:$LINENO: checking for objdir" >&5
5226echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5227rm -f .libs 2>/dev/null
5228mkdir .libs 2>/dev/null
5229if test -d .libs; then
5230 objdir=.libs
5231else
5232 # MS-DOS does not allow filenames that begin with a dot.
5233 objdir=_libs
5234fi
5235rmdir .libs 2>/dev/null
5236echo "$as_me:$LINENO: result: $objdir" >&5
5237echo "${ECHO_T}$objdir" >&6
5238##
5239## END FIXME
5240
5241
5242## FIXME: this should be a separate macro
5243##
5244
5245# Check whether --with-pic or --without-pic was given.
5246if test "${with_pic+set}" = set; then
5247 withval="$with_pic"
5248 pic_mode="$withval"
5249else
5250 pic_mode=default
5251fi;
5252test -z "$pic_mode" && pic_mode=default
5253
5254# We assume here that the value for lt_cv_prog_cc_pic will not be cached
5255# in isolation, and that seeing it set (from the cache) indicates that
5256# the associated values are set (in the cache) correctly too.
5257echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5258echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5259if test "${lt_cv_prog_cc_pic+set}" = set; then
5260 echo $ECHO_N "(cached) $ECHO_C" >&6
5261else
5262 lt_cv_prog_cc_pic=
5263 lt_cv_prog_cc_shlib=
5264 lt_cv_prog_cc_wl=
5265 lt_cv_prog_cc_static=
5266 lt_cv_prog_cc_no_builtin=
5267 lt_cv_prog_cc_can_build_shared=$can_build_shared
5268
5269 if test "$GCC" = yes; then
5270 lt_cv_prog_cc_wl='-Wl,'
5271 lt_cv_prog_cc_static='-static'
5272
5273 case "$host_os" in
5274 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
5275 # PIC is the default for these OSes.
5276 ;;
5277 aix*)
5278 # Below there is a dirty hack to force normal static linking with -ldl
5279 # The problem is because libdl dynamically linked with both libc and
5280 # libC (AIX C++ library), which obviously doesn't included in libraries
5281 # list by gcc. This cause undefined symbols with -static flags.
5282 # This hack allows C programs to be linked with "-static -ldl", but
5283 # we not sure about C++ programs.
5284 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5285 ;;
5286 cygwin* | mingw* | pw32* | os2*)
5287 # This hack is so that the source file can tell whether it is being
5288 # built for inclusion in a dll (and should export symbols for example).
5289 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5290 ;;
5291 amigaos*)
5292 # FIXME: we need at least 68020 code to build shared libraries, but
5293 # adding the `-m68020' flag to GCC prevents building anything better,
5294 # like `-m68040'.
5295 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5296 ;;
5297 sysv4*MP*)
5298 if test -d /usr/nec; then
5299 lt_cv_prog_cc_pic=-Kconform_pic
5300 fi
5301 ;;
5302 *)
5303 lt_cv_prog_cc_pic='-fPIC'
5304 ;;
5305 esac
5306 else
5307 # PORTME Check for PIC flags for the system compiler.
5308 case "$host_os" in
5309 aix3* | aix4*)
5310 # All AIX code is PIC.
5311 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5312 ;;
5313
5314 hpux9* | hpux10* | hpux11*)
5315 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5316 lt_cv_prog_cc_wl='-Wl,'
5317 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5318 lt_cv_prog_cc_pic='+Z'
5319 ;;
5320
5321 irix5* | irix6*)
5322 lt_cv_prog_cc_wl='-Wl,'
5323 lt_cv_prog_cc_static='-non_shared'
5324 # PIC (with -KPIC) is the default.
5325 ;;
5326
5327 cygwin* | mingw* | pw32* | os2*)
5328 # This hack is so that the source file can tell whether it is being
5329 # built for inclusion in a dll (and should export symbols for example).
5330 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5331 ;;
5332
5333 newsos6)
5334 lt_cv_prog_cc_pic='-KPIC'
5335 lt_cv_prog_cc_static='-Bstatic'
5336 ;;
5337
5338 osf3* | osf4* | osf5*)
5339 # All OSF/1 code is PIC.
5340 lt_cv_prog_cc_wl='-Wl,'
5341 lt_cv_prog_cc_static='-non_shared'
5342 ;;
5343
5344 sco3.2v5*)
5345 lt_cv_prog_cc_pic='-Kpic'
5346 lt_cv_prog_cc_static='-dn'
5347 lt_cv_prog_cc_shlib='-belf'
5348 ;;
5349
5350 solaris*)
5351 lt_cv_prog_cc_pic='-KPIC'
5352 lt_cv_prog_cc_static='-Bstatic'
5353 lt_cv_prog_cc_wl='-Wl,'
5354 ;;
5355
5356 sunos4*)
5357 lt_cv_prog_cc_pic='-PIC'
5358 lt_cv_prog_cc_static='-Bstatic'
5359 lt_cv_prog_cc_wl='-Qoption ld '
5360 ;;
5361
5362 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5363 lt_cv_prog_cc_pic='-KPIC'
5364 lt_cv_prog_cc_static='-Bstatic'
5365 if test "x$host_vendor" = xsni; then
5366 lt_cv_prog_cc_wl='-LD'
5367 else
5368 lt_cv_prog_cc_wl='-Wl,'
5369 fi
5370 ;;
5371
5372 uts4*)
5373 lt_cv_prog_cc_pic='-pic'
5374 lt_cv_prog_cc_static='-Bstatic'
5375 ;;
5376
5377 sysv4*MP*)
5378 if test -d /usr/nec ;then
5379 lt_cv_prog_cc_pic='-Kconform_pic'
5380 lt_cv_prog_cc_static='-Bstatic'
5381 fi
5382 ;;
5383
5384 *)
5385 lt_cv_prog_cc_can_build_shared=no
5386 ;;
5387 esac
5388 fi
5389
5390fi
5391
5392if test -z "$lt_cv_prog_cc_pic"; then
5393 echo "$as_me:$LINENO: result: none" >&5
5394echo "${ECHO_T}none" >&6
5395else
5396 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5397echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5398
5399 # Check to make sure the pic_flag actually works.
5400 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5401echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5402 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5403 echo $ECHO_N "(cached) $ECHO_C" >&6
5404else
5405 save_CFLAGS="$CFLAGS"
5406 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5407 cat >conftest.$ac_ext <<_ACEOF
5408/* confdefs.h. */
5409_ACEOF
5410cat confdefs.h >>conftest.$ac_ext
5411cat >>conftest.$ac_ext <<_ACEOF
5412/* end confdefs.h. */
5413
5414int
5415main ()
5416{
5417
5418 ;
5419 return 0;
5420}
5421_ACEOF
5422rm -f conftest.$ac_objext
5423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5424 (eval $ac_compile) 2>conftest.er1
5425 ac_status=$?
5426 grep -v '^ *+' conftest.er1 >conftest.err
5427 rm -f conftest.er1
5428 cat conftest.err >&5
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); } &&
5431 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5433 (eval $ac_try) 2>&5
5434 ac_status=$?
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); }; } &&
5437 { ac_try='test -s conftest.$ac_objext'
5438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5439 (eval $ac_try) 2>&5
5440 ac_status=$?
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); }; }; then
5443 case "$host_os" in
5444 hpux9* | hpux10* | hpux11*)
5445 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5446 # they create non-PIC objects. So, if there were any warnings, we
5447 # assume that PIC is not supported.
5448 if test -s conftest.err; then
5449 lt_cv_prog_cc_pic_works=no
5450 else
5451 lt_cv_prog_cc_pic_works=yes
5452 fi
5453 ;;
5454 *)
5455 lt_cv_prog_cc_pic_works=yes
5456 ;;
5457 esac
5458
5459else
5460 echo "$as_me: failed program was:" >&5
5461sed 's/^/| /' conftest.$ac_ext >&5
5462
5463 lt_cv_prog_cc_pic_works=no
5464
5465fi
5466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5467 CFLAGS="$save_CFLAGS"
5468
5469fi
5470
5471
5472 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5473 lt_cv_prog_cc_pic=
5474 lt_cv_prog_cc_can_build_shared=no
5475 else
5476 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5477 fi
5478
5479 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5480echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5481fi
5482##
5483## END FIXME
5484
5485# Check for any special shared library compilation flags.
5486if test -n "$lt_cv_prog_cc_shlib"; then
5487 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5488echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5489 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5490 else
5491 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5492echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5493 lt_cv_prog_cc_can_build_shared=no
5494 fi
5495fi
5496
5497## FIXME: this should be a separate macro
5498##
5499echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5500echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5501if test "${lt_cv_prog_cc_static_works+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5503else
5504 lt_cv_prog_cc_static_works=no
5505 save_LDFLAGS="$LDFLAGS"
5506 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5507 cat >conftest.$ac_ext <<_ACEOF
5508/* confdefs.h. */
5509_ACEOF
5510cat confdefs.h >>conftest.$ac_ext
5511cat >>conftest.$ac_ext <<_ACEOF
5512/* end confdefs.h. */
5513
5514int
5515main ()
5516{
5517
5518 ;
5519 return 0;
5520}
5521_ACEOF
5522rm -f conftest.$ac_objext conftest$ac_exeext
5523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5524 (eval $ac_link) 2>conftest.er1
5525 ac_status=$?
5526 grep -v '^ *+' conftest.er1 >conftest.err
5527 rm -f conftest.er1
5528 cat conftest.err >&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); } &&
5531 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5533 (eval $ac_try) 2>&5
5534 ac_status=$?
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); }; } &&
5537 { ac_try='test -s conftest$ac_exeext'
5538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5539 (eval $ac_try) 2>&5
5540 ac_status=$?
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); }; }; then
5543 lt_cv_prog_cc_static_works=yes
5544else
5545 echo "$as_me: failed program was:" >&5
5546sed 's/^/| /' conftest.$ac_ext >&5
5547
5548fi
5549rm -f conftest.err conftest.$ac_objext \
5550 conftest$ac_exeext conftest.$ac_ext
5551 LDFLAGS="$save_LDFLAGS"
5552
5553fi
5554
5555
5556# Belt *and* braces to stop my trousers falling down:
5557test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5558echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5559echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5560
5561pic_flag="$lt_cv_prog_cc_pic"
5562special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5563wl="$lt_cv_prog_cc_wl"
5564link_static_flag="$lt_cv_prog_cc_static"
5565no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5566can_build_shared="$lt_cv_prog_cc_can_build_shared"
5567##
5568## END FIXME
5569
5570
5571## FIXME: this should be a separate macro
5572##
5573# Check to see if options -o and -c are simultaneously supported by compiler
5574echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5575echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5576$rm -r conftest 2>/dev/null
5577mkdir conftest
5578cd conftest
5579echo "int some_variable = 0;" > conftest.$ac_ext
5580mkdir out
5581# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5582# that will create temporary files in the current directory regardless of
5583# the output directory. Thus, making CWD read-only will cause this test
5584# to fail, enabling locking or at least warning the user not to do parallel
5585# builds.
5586chmod -w .
5587save_CFLAGS="$CFLAGS"
5588CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5589compiler_c_o=no
5590if { (eval echo configure:5590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5591 # The compiler can only warn and ignore the option if not recognized
5592 # So say no if there are warnings
5593 if test -s out/conftest.err; then
5594 compiler_c_o=no
5595 else
5596 compiler_c_o=yes
5597 fi
5598else
5599 # Append any errors to the config.log.
5600 cat out/conftest.err 1>&5
5601 compiler_c_o=no
5602fi
5603echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5604echo "${ECHO_T}$compiler_c_o" >&6
5605CFLAGS="$save_CFLAGS"
5606chmod u+w .
5607$rm conftest* out/*
5608rmdir out
5609cd ..
5610rmdir conftest
5611$rm -r conftest 2>/dev/null
5612
5613if test x"$compiler_c_o" = x"yes"; then
5614 # Check to see if we can write to a .lo
5615 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5616echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5617 compiler_o_lo=no
5618 save_CFLAGS="$CFLAGS"
5619 CFLAGS="$CFLAGS -c -o conftest.lo"
5620 cat >conftest.$ac_ext <<_ACEOF
5621/* confdefs.h. */
5622_ACEOF
5623cat confdefs.h >>conftest.$ac_ext
5624cat >>conftest.$ac_ext <<_ACEOF
5625/* end confdefs.h. */
5626
5627int
5628main ()
5629{
5630int some_variable = 0;
5631 ;
5632 return 0;
5633}
5634_ACEOF
5635rm -f conftest.$ac_objext
5636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5637 (eval $ac_compile) 2>conftest.er1
5638 ac_status=$?
5639 grep -v '^ *+' conftest.er1 >conftest.err
5640 rm -f conftest.er1
5641 cat conftest.err >&5
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); } &&
5644 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5646 (eval $ac_try) 2>&5
5647 ac_status=$?
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); }; } &&
5650 { ac_try='test -s conftest.$ac_objext'
5651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5652 (eval $ac_try) 2>&5
5653 ac_status=$?
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); }; }; then
5656 # The compiler can only warn and ignore the option if not recognized
5657 # So say no if there are warnings
5658 if test -s conftest.err; then
5659 compiler_o_lo=no
5660 else
5661 compiler_o_lo=yes
5662 fi
5663
5664else
5665 echo "$as_me: failed program was:" >&5
5666sed 's/^/| /' conftest.$ac_ext >&5
5667
5668fi
5669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5670 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5671echo "${ECHO_T}$compiler_c_o" >&6
5672 CFLAGS="$save_CFLAGS"
5673else
5674 compiler_o_lo=no
5675fi
5676##
5677## END FIXME
5678
5679## FIXME: this should be a separate macro
5680##
5681# Check to see if we can do hard links to lock some files if needed
5682hard_links="nottested"
5683if test "$compiler_c_o" = no && test "$need_locks" != no; then
5684 # do not overwrite the value of need_locks provided by the user
5685 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5686echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5687 hard_links=yes
5688 $rm conftest*
5689 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5690 touch conftest.a
5691 ln conftest.a conftest.b 2>&5 || hard_links=no
5692 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5693 echo "$as_me:$LINENO: result: $hard_links" >&5
5694echo "${ECHO_T}$hard_links" >&6
5695 if test "$hard_links" = no; then
5696 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5697echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5698 need_locks=warn
5699 fi
5700else
5701 need_locks=no
5702fi
5703##
5704## END FIXME
5705
5706## FIXME: this should be a separate macro
5707##
5708if test "$GCC" = yes; then
5709 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5710 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5711echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5712 echo "int some_variable = 0;" > conftest.$ac_ext
5713 save_CFLAGS="$CFLAGS"
5714 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5715 compiler_rtti_exceptions=no
5716 cat >conftest.$ac_ext <<_ACEOF
5717/* confdefs.h. */
5718_ACEOF
5719cat confdefs.h >>conftest.$ac_ext
5720cat >>conftest.$ac_ext <<_ACEOF
5721/* end confdefs.h. */
5722
5723int
5724main ()
5725{
5726int some_variable = 0;
5727 ;
5728 return 0;
5729}
5730_ACEOF
5731rm -f conftest.$ac_objext
5732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5733 (eval $ac_compile) 2>conftest.er1
5734 ac_status=$?
5735 grep -v '^ *+' conftest.er1 >conftest.err
5736 rm -f conftest.er1
5737 cat conftest.err >&5
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); } &&
5740 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742 (eval $ac_try) 2>&5
5743 ac_status=$?
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }; } &&
5746 { ac_try='test -s conftest.$ac_objext'
5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748 (eval $ac_try) 2>&5
5749 ac_status=$?
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; }; then
5752 # The compiler can only warn and ignore the option if not recognized
5753 # So say no if there are warnings
5754 if test -s conftest.err; then
5755 compiler_rtti_exceptions=no
5756 else
5757 compiler_rtti_exceptions=yes
5758 fi
5759
5760else
5761 echo "$as_me: failed program was:" >&5
5762sed 's/^/| /' conftest.$ac_ext >&5
5763
5764fi
5765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5766 CFLAGS="$save_CFLAGS"
5767 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5768echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5769
5770 if test "$compiler_rtti_exceptions" = "yes"; then
5771 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5772 else
5773 no_builtin_flag=' -fno-builtin'
5774 fi
5775fi
5776##
5777## END FIXME
5778
5779## FIXME: this should be a separate macro
5780##
5781# See if the linker supports building shared libraries.
5782echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5783echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5784
5785allow_undefined_flag=
5786no_undefined_flag=
5787need_lib_prefix=unknown
5788need_version=unknown
5789# when you set need_version to no, make sure it does not cause -set_version
5790# flags to be left without arguments
5791archive_cmds=
5792archive_expsym_cmds=
5793old_archive_from_new_cmds=
5794old_archive_from_expsyms_cmds=
5795export_dynamic_flag_spec=
5796whole_archive_flag_spec=
5797thread_safe_flag_spec=
5798hardcode_into_libs=no
5799hardcode_libdir_flag_spec=
5800hardcode_libdir_separator=
5801hardcode_direct=no
5802hardcode_minus_L=no
5803hardcode_shlibpath_var=unsupported
5804runpath_var=
5805link_all_deplibs=unknown
5806always_export_symbols=no
5807export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5808# include_expsyms should be a list of space-separated symbols to be *always*
5809# included in the symbol list
5810include_expsyms=
5811# exclude_expsyms can be an egrep regular expression of symbols to exclude
5812# it will be wrapped by ` (' and `)$', so one must not match beginning or
5813# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5814# as well as any symbol that contains `d'.
5815exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5816# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5817# platforms (ab)use it in PIC code, but their linkers get confused if
5818# the symbol is explicitly referenced. Since portable code cannot
5819# rely on this symbol name, it's probably fine to never include it in
5820# preloaded symbol tables.
5821extract_expsyms_cmds=
5822
5823case "$host_os" in
5824cygwin* | mingw* | pw32* )
5825 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5826 # When not using gcc, we currently assume that we are using
5827 # Microsoft Visual C++.
5828 if test "$GCC" != yes; then
5829 with_gnu_ld=no
5830 fi
5831 ;;
5832
5833esac
5834
5835ld_shlibs=yes
5836if test "$with_gnu_ld" = yes; then
5837 # If archive_cmds runs LD, not CC, wlarc should be empty
5838 wlarc='${wl}'
5839
5840 # See if GNU ld supports shared libraries.
5841 case "$host_os" in
5842 aix3* | aix4*)
5843 # On AIX, the GNU linker is very broken
5844 ld_shlibs=no
5845 cat <<EOF 1>&2
5846
5847*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5848*** to be unable to reliably create shared libraries on AIX.
5849*** Therefore, libtool is disabling shared libraries support. If you
5850*** really care for shared libraries, you may want to modify your PATH
5851*** so that a non-GNU linker is found, and then restart.
5852
5853EOF
5854 ;;
5855
5856 amigaos*)
5857 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)'
5858 hardcode_libdir_flag_spec='-L$libdir'
5859 hardcode_minus_L=yes
5860
5861 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5862 # that the semantics of dynamic libraries on AmigaOS, at least up
5863 # to version 4, is to share data among multiple programs linked
5864 # with the same dynamic library. Since this doesn't match the
5865 # behavior of shared libraries on other platforms, we can use
5866 # them.
5867 ld_shlibs=no
5868 ;;
5869
5870 beos*)
5871 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5872 allow_undefined_flag=unsupported
5873 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5874 # support --undefined. This deserves some investigation. FIXME
5875 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5876 else
5877 ld_shlibs=no
5878 fi
5879 ;;
5880
5881 cygwin* | mingw* | pw32*)
5882 # hardcode_libdir_flag_spec is actually meaningless, as there is
5883 # no search path for DLLs.
5884 hardcode_libdir_flag_spec='-L$libdir'
5885 allow_undefined_flag=unsupported
5886 always_export_symbols=yes
5887
5888 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5889 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5890 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5891 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5892 else $CC -o impgen impgen.c ; fi)~
5893 $output_objdir/impgen $dir/$soname > $output_objdir/$soname-def'
5894
5895 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5896
5897 # cygwin and mingw dlls have different entry points and sets of symbols
5898 # to exclude.
5899 # FIXME: what about values for MSVC?
5900 dll_entry=__cygwin_dll_entry@12
5901 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5902 case "$host_os" in
5903 mingw*)
5904 # mingw values
5905 dll_entry=_DllMainCRTStartup@12
5906 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5907 ;;
5908 esac
5909
5910 # mingw and cygwin differ, and it's simplest to just exclude the union
5911 # of the two symbol sets.
5912 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5913
5914 # recent cygwin and mingw systems supply a stub DllMain which the user
5915 # can override, but on older systems we have to supply one (in ltdll.c)
5916 if test "x$lt_cv_need_dllmain" = "xyes"; then
5917 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5918 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~
5919 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5920 else
5921 ltdll_obj=
5922 ltdll_cmds=
5923 fi
5924
5925 # Extract the symbol export list from an `--export-all' def file,
5926 # then regenerate the def file from the symbol export list, so that
5927 # the compiled dll only exports the symbol export list.
5928 # Be careful not to strip the DATA tag left be newer dlltools.
5929 export_symbols_cmds="$ltdll_cmds"'
5930 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5931 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5932
5933 # If DATA tags from a recent dlltool are present, honour them!
5934 archive_expsym_cmds='echo EXPORTS > $output_objdir/$soname-def~
5935 _lt_hint=1;
5936 cat $export_symbols | while read symbol; do
5937 set dummy \$symbol;
5938 case \$# in
5939 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5940 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5941 esac;
5942 _lt_hint=`expr 1 + \$_lt_hint`;
5943 done~
5944 '"$ltdll_cmds"'
5945 $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~
5946 $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~
5947 $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~
5948 $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~
5949 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5950 ;;
5951
5952 netbsd*)
5953 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5954 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5955 wlarc=
5956 else
5957 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5958 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5959 fi
5960 ;;
5961
5962 solaris* | sysv5*)
5963 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5964 ld_shlibs=no
5965 cat <<EOF 1>&2
5966
5967*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5968*** create shared libraries on Solaris systems. Therefore, libtool
5969*** is disabling shared libraries support. We urge you to upgrade GNU
5970*** binutils to release 2.9.1 or newer. Another option is to modify
5971*** your PATH or compiler configuration so that the native linker is
5972*** used, and then restart.
5973
5974EOF
5975 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5976 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5977 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5978 else
5979 ld_shlibs=no
5980 fi
5981 ;;
5982
5983 sunos4*)
5984 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5985 wlarc=
5986 hardcode_direct=yes
5987 hardcode_shlibpath_var=no
5988 ;;
5989
5990 *)
5991 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5992 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5993 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5994 else
5995 ld_shlibs=no
5996 fi
5997 ;;
5998 esac
5999
6000 if test "$ld_shlibs" = yes; then
6001 runpath_var=LD_RUN_PATH
6002 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6003 export_dynamic_flag_spec='${wl}--export-dynamic'
6004 case $host_os in
6005 cygwin* | mingw* | pw32*)
6006 # dlltool doesn't understand --whole-archive et. al.
6007 whole_archive_flag_spec=
6008 ;;
6009 *)
6010 # ancient GNU ld didn't support --whole-archive et. al.
6011 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6012 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6013 else
6014 whole_archive_flag_spec=
6015 fi
6016 ;;
6017 esac
6018 fi
6019else
6020 # PORTME fill in a description of your system's linker (not GNU ld)
6021 case "$host_os" in
6022 aix3*)
6023 allow_undefined_flag=unsupported
6024 always_export_symbols=yes
6025 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'
6026 # Note: this linker hardcodes the directories in LIBPATH if there
6027 # are no directories specified by -L.
6028 hardcode_minus_L=yes
6029 if test "$GCC" = yes && test -z "$link_static_flag"; then
6030 # Neither direct hardcoding nor static linking is supported with a
6031 # broken collect2.
6032 hardcode_direct=unsupported
6033 fi
6034 ;;
6035
6036 aix4*)
6037 hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib'
6038 hardcode_libdir_separator=':'
6039 if test "$GCC" = yes; then
6040 collect2name=`${CC} -print-prog-name=collect2`
6041 if test -f "$collect2name" && \
6042 strings "$collect2name" | grep resolve_lib_name >/dev/null
6043 then
6044 # We have reworked collect2
6045 hardcode_direct=yes
6046 else
6047 # We have old collect2
6048 hardcode_direct=unsupported
6049 # It fails to find uninstalled libraries when the uninstalled
6050 # path is not listed in the libpath. Setting hardcode_minus_L
6051 # to unsupported forces relinking
6052 hardcode_minus_L=yes
6053 hardcode_libdir_flag_spec='-L$libdir'
6054 hardcode_libdir_separator=
6055 fi
6056 shared_flag='-shared'
6057 else
6058 shared_flag='${wl}-bM:SRE'
6059 hardcode_direct=yes
6060 fi
6061 allow_undefined_flag=' ${wl}-berok'
6062 archive_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}'
6063 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}'
6064 case "$host_os" in aix4.[01]|aix4.[01].*)
6065 # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on
6066 always_export_symbols=yes ;;
6067 esac
6068
6069 # We don't want to build shared libraries on unknown CPU types.
6070 case $host_cpu in
6071 powerpc | rs6000) ;;
6072 *) ld_shlibs=no ;;
6073 esac
6074 ;;
6075
6076 amigaos*)
6077 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)'
6078 hardcode_libdir_flag_spec='-L$libdir'
6079 hardcode_minus_L=yes
6080 # see comment about different semantics on the GNU ld section
6081 ld_shlibs=no
6082 ;;
6083
6084 cygwin* | mingw* | pw32*)
6085 # When not using gcc, we currently assume that we are using
6086 # Microsoft Visual C++.
6087 # hardcode_libdir_flag_spec is actually meaningless, as there is
6088 # no search path for DLLs.
6089 hardcode_libdir_flag_spec=' '
6090 allow_undefined_flag=unsupported
6091 # Tell ltmain to make .lib files, not .a files.
6092 libext=lib
6093 # FIXME: Setting linknames here is a bad hack.
6094 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6095 # The linker will automatically build a .lib file if we build a DLL.
6096 old_archive_from_new_cmds='true'
6097 # FIXME: Should let the user specify the lib program.
6098 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6099 fix_srcfile_path='`cygpath -w "$srcfile"`'
6100 ;;
6101
6102 darwin* | rhapsody*)
6103 allow_undefined_flag='-undefined warning'
6104 archive_cmds='$CC `if test "$module" = "yes"; then echo -bundle; else
6105 echo -dynamiclib; fi` -o $lib $libobjs $deplibs $linkopts'
6106 archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6107 ## What we need is to hardcode the path to the library, not the search path
6108 #hardcode_direct=yes
6109 #hardcode_libdir_flag_spec='-install_name $libdir/$lib'
6110 hardcode_shlibpath_var=no
6111 whole_archive_flag_spec='-all_load'
6112 ;;
6113
6114 freebsd1*)
6115 ld_shlibs=no
6116 ;;
6117
6118 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6119 # support. Future versions do this automatically, but an explicit c++rt0.o
6120 # does not break anything, and helps significantly (at the cost of a little
6121 # extra space).
6122 freebsd2.2*)
6123 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6124 hardcode_libdir_flag_spec='-R$libdir'
6125 hardcode_direct=yes
6126 hardcode_shlibpath_var=no
6127 ;;
6128
6129 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6130 freebsd2*)
6131 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6132 hardcode_direct=yes
6133 hardcode_minus_L=yes
6134 hardcode_shlibpath_var=no
6135 ;;
6136
6137 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6138 freebsd*)
6139 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6140 hardcode_libdir_flag_spec='-R$libdir'
6141 hardcode_direct=yes
6142 hardcode_shlibpath_var=no
6143 ;;
6144
6145 hpux9* | hpux10* | hpux11*)
6146 case "$host_os" in
6147 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' ;;
6148 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6149 esac
6150 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6151 hardcode_libdir_separator=:
6152 hardcode_direct=yes
6153 hardcode_minus_L=yes # Not in the search PATH, but as the default
6154 # location of the library.
6155 export_dynamic_flag_spec='${wl}-E'
6156 ;;
6157
6158 irix5* | irix6*)
6159 if test "$GCC" = yes; then
6160 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'
6161 else
6162 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'
6163 fi
6164 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6165 hardcode_libdir_separator=:
6166 link_all_deplibs=yes
6167 ;;
6168
6169 netbsd*)
6170 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6171 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6172 else
6173 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6174 fi
6175 hardcode_libdir_flag_spec='-R$libdir'
6176 hardcode_direct=yes
6177 hardcode_shlibpath_var=no
6178 ;;
6179
6180 newsos6)
6181 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
6182 hardcode_direct=yes
6183 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6184 hardcode_libdir_separator=:
6185 hardcode_shlibpath_var=no
6186 ;;
6187
6188 openbsd*)
6189 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6190 hardcode_libdir_flag_spec='-R$libdir'
6191 hardcode_direct=yes
6192 hardcode_shlibpath_var=no
6193 ;;
6194
6195 os2*)
6196 hardcode_libdir_flag_spec='-L$libdir'
6197 hardcode_minus_L=yes
6198 allow_undefined_flag=unsupported
6199 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'
6200 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6201 ;;
6202
6203 osf3*)
6204 if test "$GCC" = yes; then
6205 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6206 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'
6207 else
6208 allow_undefined_flag=' -expect_unresolved \*'
6209 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'
6210 fi
6211 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6212 hardcode_libdir_separator=:
6213 ;;
6214
6215 osf4* | osf5*) # as osf3* with the addition of -msym flag
6216 if test "$GCC" = yes; then
6217 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6218 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'
6219 else
6220 allow_undefined_flag=' -expect_unresolved \*'
6221 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'
6222 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6223 $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'
6224 fi
6225#Both c and cxx compiler support -rpath directly
6226 hardcode_libdir_flag_spec='-rpath $libdir'
6227 hardcode_libdir_separator=:
6228 ;;
6229
6230 sco3.2v5*)
6231 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6232 hardcode_shlibpath_var=no
6233 runpath_var=LD_RUN_PATH
6234 hardcode_runpath_var=yes
6235 ;;
6236
6237 solaris*)
6238 no_undefined_flag=' -z text'
6239 # $CC -shared without GNU ld will not create a library from C++
6240 # object files and a static libstdc++, better avoid it by now
6241 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6242 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6243 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6244 hardcode_libdir_flag_spec='-R$libdir'
6245 hardcode_shlibpath_var=no
6246 case "$host_os" in
6247 solaris2.[0-5] | solaris2.[0-5].*) ;;
6248 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6249 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6250 esac
6251 link_all_deplibs=yes
6252 ;;
6253
6254 sunos4*)
6255 if test "x$host_vendor" = xsequent; then
6256 # Use $CC to link under sequent, because it throws in some extra .o
6257 # files that make .init and .fini sections work.
6258 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6259 else
6260 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6261 fi
6262 hardcode_libdir_flag_spec='-L$libdir'
6263 hardcode_direct=yes
6264 hardcode_minus_L=yes
6265 hardcode_shlibpath_var=no
6266 ;;
6267
6268 sysv4)
6269 if test "x$host_vendor" = xsno; then
6270 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
6271 hardcode_direct=yes # is this really true???
6272 else
6273 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6274 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6275 fi
6276 runpath_var='LD_RUN_PATH'
6277 hardcode_shlibpath_var=no
6278 ;;
6279
6280 sysv4.3*)
6281 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6282 hardcode_shlibpath_var=no
6283 export_dynamic_flag_spec='-Bexport'
6284 ;;
6285
6286 sysv5*)
6287 no_undefined_flag=' -z text'
6288 # $CC -shared without GNU ld will not create a library from C++
6289 # object files and a static libstdc++, better avoid it by now
6290 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6291 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6292 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6293 hardcode_libdir_flag_spec=
6294 hardcode_shlibpath_var=no
6295 runpath_var='LD_RUN_PATH'
6296 ;;
6297
6298 uts4*)
6299 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6300 hardcode_libdir_flag_spec='-L$libdir'
6301 hardcode_shlibpath_var=no
6302 ;;
6303
6304 dgux*)
6305 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6306 hardcode_libdir_flag_spec='-L$libdir'
6307 hardcode_shlibpath_var=no
6308 ;;
6309
6310 sysv4*MP*)
6311 if test -d /usr/nec; then
6312 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6313 hardcode_shlibpath_var=no
6314 runpath_var=LD_RUN_PATH
6315 hardcode_runpath_var=yes
6316 ld_shlibs=yes
6317 fi
6318 ;;
6319
6320 sysv4.2uw2*)
6321 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6322 hardcode_direct=yes
6323 hardcode_minus_L=no
6324 hardcode_shlibpath_var=no
6325 hardcode_runpath_var=yes
6326 runpath_var=LD_RUN_PATH
6327 ;;
6328
6329 unixware7*)
6330 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6331 runpath_var='LD_RUN_PATH'
6332 hardcode_shlibpath_var=no
6333 ;;
6334
6335 *)
6336 ld_shlibs=no
6337 ;;
6338 esac
6339fi
6340echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6341echo "${ECHO_T}$ld_shlibs" >&6
6342test "$ld_shlibs" = no && can_build_shared=no
6343##
6344## END FIXME
6345
6346## FIXME: this should be a separate macro
6347##
6348# Check hardcoding attributes.
6349echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6350echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6351hardcode_action=
6352if test -n "$hardcode_libdir_flag_spec" || \
6353 test -n "$runpath_var"; then
6354
6355 # We can hardcode non-existant directories.
6356 if test "$hardcode_direct" != no &&
6357 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6358 # have to relink, otherwise we might link with an installed library
6359 # when we should be linking with a yet-to-be-installed one
6360 ## test "$hardcode_shlibpath_var" != no &&
6361 test "$hardcode_minus_L" != no; then
6362 # Linking always hardcodes the temporary library directory.
6363 hardcode_action=relink
6364 else
6365 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6366 hardcode_action=immediate
6367 fi
6368else
6369 # We cannot hardcode anything, or else we can only hardcode existing
6370 # directories.
6371 hardcode_action=unsupported
6372fi
6373echo "$as_me:$LINENO: result: $hardcode_action" >&5
6374echo "${ECHO_T}$hardcode_action" >&6
6375##
6376## END FIXME
6377
6378## FIXME: this should be a separate macro
6379##
6380striplib=
6381old_striplib=
6382echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6383echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6384if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6385 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6386 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6387 echo "$as_me:$LINENO: result: yes" >&5
6388echo "${ECHO_T}yes" >&6
6389else
6390 echo "$as_me:$LINENO: result: no" >&5
6391echo "${ECHO_T}no" >&6
6392fi
6393##
6394## END FIXME
6395
6396reload_cmds='$LD$reload_flag -o $output$reload_objs'
6397test -z "$deplibs_check_method" && deplibs_check_method=unknown
6398
6399## FIXME: this should be a separate macro
6400##
6401# PORTME Fill in your ld.so characteristics
6402echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6403echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6404library_names_spec=
6405libname_spec='lib$name'
6406soname_spec=
6407postinstall_cmds=
6408postuninstall_cmds=
6409finish_cmds=
6410finish_eval=
6411shlibpath_var=
6412shlibpath_overrides_runpath=unknown
6413version_type=none
6414dynamic_linker="$host_os ld.so"
6415sys_lib_dlsearch_path_spec="/lib /usr/lib"
6416sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6417
6418case "$host_os" in
6419aix3*)
6420 version_type=linux
6421 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6422 shlibpath_var=LIBPATH
6423
6424 # AIX has no versioning support, so we append a major version to the name.
6425 soname_spec='${libname}${release}.so$major'
6426 ;;
6427
6428aix4*)
6429 version_type=linux
6430 # AIX has no versioning support, so currently we can not hardcode correct
6431 # soname into executable. Probably we can add versioning support to
6432 # collect2, so additional links can be useful in future.
6433 # We preserve .a as extension for shared libraries though AIX4.2
6434 # and later linker supports .so
6435 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.a'
6436 shlibpath_var=LIBPATH
6437 ;;
6438
6439amigaos*)
6440 library_names_spec='$libname.ixlibrary $libname.a'
6441 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6442 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'
6443 ;;
6444
6445beos*)
6446 library_names_spec='${libname}.so'
6447 dynamic_linker="$host_os ld.so"
6448 shlibpath_var=LIBRARY_PATH
6449 ;;
6450
6451bsdi4*)
6452 version_type=linux
6453 need_version=no
6454 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6455 soname_spec='${libname}${release}.so$major'
6456 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6457 shlibpath_var=LD_LIBRARY_PATH
6458 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6459 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6460 export_dynamic_flag_spec=-rdynamic
6461 # the default ld.so.conf also contains /usr/contrib/lib and
6462 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6463 # libtool to hard-code these into programs
6464 ;;
6465
6466cygwin* | mingw* | pw32*)
6467 version_type=windows
6468 need_version=no
6469 need_lib_prefix=no
6470 if test "$GCC" = yes; then
6471 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6472 else
6473 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6474 fi
6475 dynamic_linker='Win32 ld.exe'
6476 # FIXME: first we should search . and the directory the executable is in
6477 shlibpath_var=PATH
6478 ;;
6479
6480darwin* | rhapsody*)
6481 need_lib_prefix=no
6482 need_version=no
6483 library_names_spec='${libname}.`if test "$module" = "yes"; then echo so; else echo dylib; fi`'
6484 shlibpath_overrides_runpath=yes
6485 shlibpath_var=DYLD_LIBRARY_PATH
6486 postinstall_cmds='chmod +x $lib'
6487 ;;
6488
6489freebsd1*)
6490 dynamic_linker=no
6491 ;;
6492
6493freebsd*)
6494 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6495 version_type=freebsd-$objformat
6496 case "$version_type" in
6497 freebsd-elf*)
6498 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6499 need_version=no
6500 need_lib_prefix=no
6501 ;;
6502 freebsd-*)
6503 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6504 need_version=yes
6505 ;;
6506 esac
6507 shlibpath_var=LD_LIBRARY_PATH
6508 case "$host_os" in
6509 freebsd2*)
6510 shlibpath_overrides_runpath=yes
6511 ;;
6512 *)
6513 shlibpath_overrides_runpath=no
6514 hardcode_into_libs=yes
6515 ;;
6516 esac
6517 ;;
6518
6519gnu*)
6520 version_type=linux
6521 need_lib_prefix=no
6522 need_version=no
6523 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6524 soname_spec='${libname}${release}.so$major'
6525 shlibpath_var=LD_LIBRARY_PATH
6526 hardcode_into_libs=yes
6527 ;;
6528
6529hpux9* | hpux10* | hpux11*)
6530 # Give a soname corresponding to the major version so that dld.sl refuses to
6531 # link against other versions.
6532 dynamic_linker="$host_os dld.sl"
6533 version_type=sunos
6534 need_lib_prefix=no
6535 need_version=no
6536 shlibpath_var=SHLIB_PATH
6537 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6538 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6539 soname_spec='${libname}${release}.sl$major'
6540 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6541 postinstall_cmds='chmod 555 $lib'
6542 ;;
6543
6544irix5* | irix6*)
6545 version_type=irix
6546 need_lib_prefix=no
6547 need_version=no
6548 soname_spec='${libname}${release}.so$major'
6549 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6550 case "$host_os" in
6551 irix5*)
6552 libsuff= shlibsuff=
6553 ;;
6554 *)
6555 case "$LD" in # libtool.m4 will add one of these switches to LD
6556 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6557 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6558 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6559 *) libsuff= shlibsuff= libmagic=never-match;;
6560 esac
6561 ;;
6562 esac
6563 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6564 shlibpath_overrides_runpath=no
6565 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6566 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6567 ;;
6568
6569# No shared lib support for Linux oldld, aout, or coff.
6570linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6571 dynamic_linker=no
6572 ;;
6573
6574# This must be Linux ELF.
6575linux-gnu*)
6576 version_type=linux
6577 need_lib_prefix=no
6578 need_version=no
6579 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6580 soname_spec='${libname}${release}.so$major'
6581 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6582 shlibpath_var=LD_LIBRARY_PATH
6583 shlibpath_overrides_runpath=no
6584 # This implies no fast_install, which is unacceptable.
6585 # Some rework will be needed to allow for fast_install
6586 # before this can be enabled.
6587 hardcode_into_libs=yes
6588
6589 # We used to test for /lib/ld.so.1 and disable shared libraries on
6590 # powerpc, because MkLinux only supported shared libraries with the
6591 # GNU dynamic linker. Since this was broken with cross compilers,
6592 # most powerpc-linux boxes support dynamic linking these days and
6593 # people can always --disable-shared, the test was removed, and we
6594 # assume the GNU/Linux dynamic linker is in use.
6595 dynamic_linker='GNU/Linux ld.so'
6596 ;;
6597
6598netbsd*)
6599 version_type=sunos
6600 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6601 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6602 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6603 dynamic_linker='NetBSD (a.out) ld.so'
6604 else
6605 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6606 soname_spec='${libname}${release}.so$major'
6607 dynamic_linker='NetBSD ld.elf_so'
6608 fi
6609 shlibpath_var=LD_LIBRARY_PATH
6610 shlibpath_overrides_runpath=yes
6611 hardcode_into_libs=yes
6612 ;;
6613
6614newsos6)
6615 version_type=linux
6616 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6617 shlibpath_var=LD_LIBRARY_PATH
6618 shlibpath_overrides_runpath=yes
6619 ;;
6620
6621openbsd*)
6622 version_type=sunos
6623 if test "$with_gnu_ld" = yes; then
6624 need_lib_prefix=no
6625 need_version=no
6626 fi
6627 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6628 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6629 shlibpath_var=LD_LIBRARY_PATH
6630 ;;
6631
6632os2*)
6633 libname_spec='$name'
6634 need_lib_prefix=no
6635 library_names_spec='$libname.dll $libname.a'
6636 dynamic_linker='OS/2 ld.exe'
6637 shlibpath_var=LIBPATH
6638 ;;
6639
6640osf3* | osf4* | osf5*)
6641 version_type=osf
6642 need_version=no
6643 soname_spec='${libname}${release}.so'
6644 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6645 shlibpath_var=LD_LIBRARY_PATH
6646 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6647 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6648 ;;
6649
6650sco3.2v5*)
6651 version_type=osf
6652 soname_spec='${libname}${release}.so$major'
6653 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6654 shlibpath_var=LD_LIBRARY_PATH
6655 ;;
6656
6657solaris*)
6658 version_type=linux
6659 need_lib_prefix=no
6660 need_version=no
6661 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6662 soname_spec='${libname}${release}.so$major'
6663 shlibpath_var=LD_LIBRARY_PATH
6664 shlibpath_overrides_runpath=yes
6665 hardcode_into_libs=yes
6666 # ldd complains unless libraries are executable
6667 postinstall_cmds='chmod +x $lib'
6668 ;;
6669
6670sunos4*)
6671 version_type=sunos
6672 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6673 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6674 shlibpath_var=LD_LIBRARY_PATH
6675 shlibpath_overrides_runpath=yes
6676 if test "$with_gnu_ld" = yes; then
6677 need_lib_prefix=no
6678 fi
6679 need_version=yes
6680 ;;
6681
6682sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6683 version_type=linux
6684 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6685 soname_spec='${libname}${release}.so$major'
6686 shlibpath_var=LD_LIBRARY_PATH
6687 case "$host_vendor" in
6688 sni)
6689 shlibpath_overrides_runpath=no
6690 ;;
6691 motorola)
6692 need_lib_prefix=no
6693 need_version=no
6694 shlibpath_overrides_runpath=no
6695 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6696 ;;
6697 esac
6698 ;;
6699
6700uts4*)
6701 version_type=linux
6702 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6703 soname_spec='${libname}${release}.so$major'
6704 shlibpath_var=LD_LIBRARY_PATH
6705 ;;
6706
6707dgux*)
6708 version_type=linux
6709 need_lib_prefix=no
6710 need_version=no
6711 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6712 soname_spec='${libname}${release}.so$major'
6713 shlibpath_var=LD_LIBRARY_PATH
6714 ;;
6715
6716sysv4*MP*)
6717 if test -d /usr/nec ;then
6718 version_type=linux
6719 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6720 soname_spec='$libname.so.$major'
6721 shlibpath_var=LD_LIBRARY_PATH
6722 fi
6723 ;;
6724
6725*)
6726 dynamic_linker=no
6727 ;;
6728esac
6729echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6730echo "${ECHO_T}$dynamic_linker" >&6
6731test "$dynamic_linker" = no && can_build_shared=no
6732##
6733## END FIXME
6734
6735## FIXME: this should be a separate macro
6736##
6737# Report the final consequences.
6738echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6739echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6740echo "$as_me:$LINENO: result: $can_build_shared" >&5
6741echo "${ECHO_T}$can_build_shared" >&6
6742##
6743## END FIXME
6744
6745if test "$hardcode_action" = relink; then
6746 # Fast installation is not supported
6747 enable_fast_install=no
6748elif test "$shlibpath_overrides_runpath" = yes ||
6749 test "$enable_shared" = no; then
6750 # Fast installation is not necessary
6751 enable_fast_install=needless
6752fi
6753
6754variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6755if test "$GCC" = yes; then
6756 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6757fi
6758
6759if test "x$enable_dlopen" != xyes; then
6760 enable_dlopen=unknown
6761 enable_dlopen_self=unknown
6762 enable_dlopen_self_static=unknown
6763else
6764 lt_cv_dlopen=no
6765 lt_cv_dlopen_libs=
6766
6767 case "$host_os" in
6768 beos*)
6769 lt_cv_dlopen="load_add_on"
6770 lt_cv_dlopen_libs=
6771 lt_cv_dlopen_self=yes
6772 ;;
6773
6774 cygwin* | mingw* | pw32*)
6775 lt_cv_dlopen="LoadLibrary"
6776 lt_cv_dlopen_libs=
6777 ;;
6778
6779 *)
6780 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6781echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6782if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6783 echo $ECHO_N "(cached) $ECHO_C" >&6
6784else
6785 ac_check_lib_save_LIBS=$LIBS
6786LIBS="-ldl $LIBS"
6787cat >conftest.$ac_ext <<_ACEOF
6788/* confdefs.h. */
6789_ACEOF
6790cat confdefs.h >>conftest.$ac_ext
6791cat >>conftest.$ac_ext <<_ACEOF
6792/* end confdefs.h. */
6793
6794/* Override any gcc2 internal prototype to avoid an error. */
6795#ifdef __cplusplus
6796extern "C"
6797#endif
6798/* We use char because int might match the return type of a gcc2
6799 builtin and then its argument prototype would still apply. */
6800char dlopen ();
6801int
6802main ()
6803{
6804dlopen ();
6805 ;
6806 return 0;
6807}
6808_ACEOF
6809rm -f conftest.$ac_objext conftest$ac_exeext
6810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6811 (eval $ac_link) 2>conftest.er1
6812 ac_status=$?
6813 grep -v '^ *+' conftest.er1 >conftest.err
6814 rm -f conftest.er1
6815 cat conftest.err >&5
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); } &&
6818 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6820 (eval $ac_try) 2>&5
6821 ac_status=$?
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); }; } &&
6824 { ac_try='test -s conftest$ac_exeext'
6825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826 (eval $ac_try) 2>&5
6827 ac_status=$?
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); }; }; then
6830 ac_cv_lib_dl_dlopen=yes
6831else
6832 echo "$as_me: failed program was:" >&5
6833sed 's/^/| /' conftest.$ac_ext >&5
6834
6835ac_cv_lib_dl_dlopen=no
6836fi
6837rm -f conftest.err conftest.$ac_objext \
6838 conftest$ac_exeext conftest.$ac_ext
6839LIBS=$ac_check_lib_save_LIBS
6840fi
6841echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6842echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6843if test $ac_cv_lib_dl_dlopen = yes; then
6844 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6845else
6846 echo "$as_me:$LINENO: checking for dlopen" >&5
6847echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6848if test "${ac_cv_func_dlopen+set}" = set; then
6849 echo $ECHO_N "(cached) $ECHO_C" >&6
6850else
6851 cat >conftest.$ac_ext <<_ACEOF
6852/* confdefs.h. */
6853_ACEOF
6854cat confdefs.h >>conftest.$ac_ext
6855cat >>conftest.$ac_ext <<_ACEOF
6856/* end confdefs.h. */
6857/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
6858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6859#define dlopen innocuous_dlopen
6860
6861/* System header to define __stub macros and hopefully few prototypes,
6862 which can conflict with char dlopen (); below.
6863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6864 <limits.h> exists even on freestanding compilers. */
6865
6866#ifdef __STDC__
6867# include <limits.h>
6868#else
6869# include <assert.h>
6870#endif
6871
6872#undef dlopen
6873
6874/* Override any gcc2 internal prototype to avoid an error. */
6875#ifdef __cplusplus
6876extern "C"
6877{
6878#endif
6879/* We use char because int might match the return type of a gcc2
6880 builtin and then its argument prototype would still apply. */
6881char dlopen ();
6882/* The GNU C library defines this for functions which it implements
6883 to always fail with ENOSYS. Some functions are actually named
6884 something starting with __ and the normal name is an alias. */
6885#if defined (__stub_dlopen) || defined (__stub___dlopen)
6886choke me
6887#else
6888char (*f) () = dlopen;
6889#endif
6890#ifdef __cplusplus
6891}
6892#endif
6893
6894int
6895main ()
6896{
6897return f != dlopen;
6898 ;
6899 return 0;
6900}
6901_ACEOF
6902rm -f conftest.$ac_objext conftest$ac_exeext
6903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6904 (eval $ac_link) 2>conftest.er1
6905 ac_status=$?
6906 grep -v '^ *+' conftest.er1 >conftest.err
6907 rm -f conftest.er1
6908 cat conftest.err >&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } &&
6911 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6913 (eval $ac_try) 2>&5
6914 ac_status=$?
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); }; } &&
6917 { ac_try='test -s conftest$ac_exeext'
6918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6919 (eval $ac_try) 2>&5
6920 ac_status=$?
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); }; }; then
6923 ac_cv_func_dlopen=yes
6924else
6925 echo "$as_me: failed program was:" >&5
6926sed 's/^/| /' conftest.$ac_ext >&5
6927
6928ac_cv_func_dlopen=no
6929fi
6930rm -f conftest.err conftest.$ac_objext \
6931 conftest$ac_exeext conftest.$ac_ext
6932fi
6933echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6934echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6935if test $ac_cv_func_dlopen = yes; then
6936 lt_cv_dlopen="dlopen"
6937else
6938 echo "$as_me:$LINENO: checking for shl_load" >&5
6939echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6940if test "${ac_cv_func_shl_load+set}" = set; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
6942else
6943 cat >conftest.$ac_ext <<_ACEOF
6944/* confdefs.h. */
6945_ACEOF
6946cat confdefs.h >>conftest.$ac_ext
6947cat >>conftest.$ac_ext <<_ACEOF
6948/* end confdefs.h. */
6949/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
6950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6951#define shl_load innocuous_shl_load
6952
6953/* System header to define __stub macros and hopefully few prototypes,
6954 which can conflict with char shl_load (); below.
6955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6956 <limits.h> exists even on freestanding compilers. */
6957
6958#ifdef __STDC__
6959# include <limits.h>
6960#else
6961# include <assert.h>
6962#endif
6963
6964#undef shl_load
6965
6966/* Override any gcc2 internal prototype to avoid an error. */
6967#ifdef __cplusplus
6968extern "C"
6969{
6970#endif
6971/* We use char because int might match the return type of a gcc2
6972 builtin and then its argument prototype would still apply. */
6973char shl_load ();
6974/* The GNU C library defines this for functions which it implements
6975 to always fail with ENOSYS. Some functions are actually named
6976 something starting with __ and the normal name is an alias. */
6977#if defined (__stub_shl_load) || defined (__stub___shl_load)
6978choke me
6979#else
6980char (*f) () = shl_load;
6981#endif
6982#ifdef __cplusplus
6983}
6984#endif
6985
6986int
6987main ()
6988{
6989return f != shl_load;
6990 ;
6991 return 0;
6992}
6993_ACEOF
6994rm -f conftest.$ac_objext conftest$ac_exeext
6995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6996 (eval $ac_link) 2>conftest.er1
6997 ac_status=$?
6998 grep -v '^ *+' conftest.er1 >conftest.err
6999 rm -f conftest.er1
7000 cat conftest.err >&5
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); } &&
7003 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7005 (eval $ac_try) 2>&5
7006 ac_status=$?
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); }; } &&
7009 { ac_try='test -s conftest$ac_exeext'
7010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7011 (eval $ac_try) 2>&5
7012 ac_status=$?
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); }; }; then
7015 ac_cv_func_shl_load=yes
7016else
7017 echo "$as_me: failed program was:" >&5
7018sed 's/^/| /' conftest.$ac_ext >&5
7019
7020ac_cv_func_shl_load=no
7021fi
7022rm -f conftest.err conftest.$ac_objext \
7023 conftest$ac_exeext conftest.$ac_ext
7024fi
7025echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7026echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7027if test $ac_cv_func_shl_load = yes; then
7028 lt_cv_dlopen="shl_load"
7029else
7030 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7031echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7032if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7034else
7035 ac_check_lib_save_LIBS=$LIBS
7036LIBS="-lsvld $LIBS"
7037cat >conftest.$ac_ext <<_ACEOF
7038/* confdefs.h. */
7039_ACEOF
7040cat confdefs.h >>conftest.$ac_ext
7041cat >>conftest.$ac_ext <<_ACEOF
7042/* end confdefs.h. */
7043
7044/* Override any gcc2 internal prototype to avoid an error. */
7045#ifdef __cplusplus
7046extern "C"
7047#endif
7048/* We use char because int might match the return type of a gcc2
7049 builtin and then its argument prototype would still apply. */
7050char dlopen ();
7051int
7052main ()
7053{
7054dlopen ();
7055 ;
7056 return 0;
7057}
7058_ACEOF
7059rm -f conftest.$ac_objext conftest$ac_exeext
7060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7061 (eval $ac_link) 2>conftest.er1
7062 ac_status=$?
7063 grep -v '^ *+' conftest.er1 >conftest.err
7064 rm -f conftest.er1
7065 cat conftest.err >&5
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); } &&
7068 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7070 (eval $ac_try) 2>&5
7071 ac_status=$?
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); }; } &&
7074 { ac_try='test -s conftest$ac_exeext'
7075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7076 (eval $ac_try) 2>&5
7077 ac_status=$?
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); }; }; then
7080 ac_cv_lib_svld_dlopen=yes
7081else
7082 echo "$as_me: failed program was:" >&5
7083sed 's/^/| /' conftest.$ac_ext >&5
7084
7085ac_cv_lib_svld_dlopen=no
7086fi
7087rm -f conftest.err conftest.$ac_objext \
7088 conftest$ac_exeext conftest.$ac_ext
7089LIBS=$ac_check_lib_save_LIBS
7090fi
7091echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7092echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7093if test $ac_cv_lib_svld_dlopen = yes; then
7094 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7095else
7096 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7097echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7098if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7099 echo $ECHO_N "(cached) $ECHO_C" >&6
7100else
7101 ac_check_lib_save_LIBS=$LIBS
7102LIBS="-ldld $LIBS"
7103cat >conftest.$ac_ext <<_ACEOF
7104/* confdefs.h. */
7105_ACEOF
7106cat confdefs.h >>conftest.$ac_ext
7107cat >>conftest.$ac_ext <<_ACEOF
7108/* end confdefs.h. */
7109
7110/* Override any gcc2 internal prototype to avoid an error. */
7111#ifdef __cplusplus
7112extern "C"
7113#endif
7114/* We use char because int might match the return type of a gcc2
7115 builtin and then its argument prototype would still apply. */
7116char shl_load ();
7117int
7118main ()
7119{
7120shl_load ();
7121 ;
7122 return 0;
7123}
7124_ACEOF
7125rm -f conftest.$ac_objext conftest$ac_exeext
7126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7127 (eval $ac_link) 2>conftest.er1
7128 ac_status=$?
7129 grep -v '^ *+' conftest.er1 >conftest.err
7130 rm -f conftest.er1
7131 cat conftest.err >&5
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); } &&
7134 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7136 (eval $ac_try) 2>&5
7137 ac_status=$?
7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); }; } &&
7140 { ac_try='test -s conftest$ac_exeext'
7141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7142 (eval $ac_try) 2>&5
7143 ac_status=$?
7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); }; }; then
7146 ac_cv_lib_dld_shl_load=yes
7147else
7148 echo "$as_me: failed program was:" >&5
7149sed 's/^/| /' conftest.$ac_ext >&5
7150
7151ac_cv_lib_dld_shl_load=no
7152fi
7153rm -f conftest.err conftest.$ac_objext \
7154 conftest$ac_exeext conftest.$ac_ext
7155LIBS=$ac_check_lib_save_LIBS
7156fi
7157echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7158echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7159if test $ac_cv_lib_dld_shl_load = yes; then
7160 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7161fi
7162
7163
7164fi
7165
7166
7167fi
7168
7169
7170fi
7171
7172
7173fi
7174
7175 ;;
7176 esac
7177
7178 if test "x$lt_cv_dlopen" != xno; then
7179 enable_dlopen=yes
7180 else
7181 enable_dlopen=no
7182 fi
7183
7184 case "$lt_cv_dlopen" in
7185 dlopen)
7186 save_CPPFLAGS="$CPP_FLAGS"
7187 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7188
7189 save_LDFLAGS="$LDFLAGS"
7190 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7191
7192 save_LIBS="$LIBS"
7193 LIBS="$lt_cv_dlopen_libs $LIBS"
7194
7195 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7196echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7197if test "${lt_cv_dlopen_self+set}" = set; then
7198 echo $ECHO_N "(cached) $ECHO_C" >&6
7199else
7200 if test "$cross_compiling" = yes; then :
7201 lt_cv_dlopen_self=cross
7202else
7203 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7204 lt_status=$lt_dlunknown
7205 cat > conftest.$ac_ext <<EOF
7206#line 7206 "configure"
7207#include "confdefs.h"
7208
7209#if HAVE_DLFCN_H
7210#include <dlfcn.h>
7211#endif
7212
7213#include <stdio.h>
7214
7215#ifdef RTLD_GLOBAL
7216# define LT_DLGLOBAL RTLD_GLOBAL
7217#else
7218# ifdef DL_GLOBAL
7219# define LT_DLGLOBAL DL_GLOBAL
7220# else
7221# define LT_DLGLOBAL 0
7222# endif
7223#endif
7224
7225/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7226 find out it does not work in some platform. */
7227#ifndef LT_DLLAZY_OR_NOW
7228# ifdef RTLD_LAZY
7229# define LT_DLLAZY_OR_NOW RTLD_LAZY
7230# else
7231# ifdef DL_LAZY
7232# define LT_DLLAZY_OR_NOW DL_LAZY
7233# else
7234# ifdef RTLD_NOW
7235# define LT_DLLAZY_OR_NOW RTLD_NOW
7236# else
7237# ifdef DL_NOW
7238# define LT_DLLAZY_OR_NOW DL_NOW
7239# else
7240# define LT_DLLAZY_OR_NOW 0
7241# endif
7242# endif
7243# endif
7244# endif
7245#endif
7246
7247#ifdef __cplusplus
7248extern "C" void exit (int);
7249#endif
7250
7251fnord() { int i=42;}
7252main ()
7253{
7254 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7255 int status = $lt_dlunknown;
7256
7257 if (self)
7258 {
7259 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7260 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7261 /* dlclose (self); */
7262 }
7263
7264 exit (status);
7265}
7266EOF
7267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7268 (eval $ac_link) 2>&5
7269 ac_status=$?
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7272 (./conftest; exit; ) 2>/dev/null
7273 lt_status=$?
7274 case x$lt_status in
7275 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7276 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7277 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7278 esac
7279 else :
7280 # compilation failed
7281 lt_cv_dlopen_self=no
7282 fi
7283fi
7284rm -fr conftest*
7285
7286
7287fi
7288echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7289echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7290
7291 if test "x$lt_cv_dlopen_self" = xyes; then
7292 LDFLAGS="$LDFLAGS $link_static_flag"
7293 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7294echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7295if test "${lt_cv_dlopen_self_static+set}" = set; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
7297else
7298 if test "$cross_compiling" = yes; then :
7299 lt_cv_dlopen_self_static=cross
7300else
7301 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7302 lt_status=$lt_dlunknown
7303 cat > conftest.$ac_ext <<EOF
7304#line 7304 "configure"
7305#include "confdefs.h"
7306
7307#if HAVE_DLFCN_H
7308#include <dlfcn.h>
7309#endif
7310
7311#include <stdio.h>
7312
7313#ifdef RTLD_GLOBAL
7314# define LT_DLGLOBAL RTLD_GLOBAL
7315#else
7316# ifdef DL_GLOBAL
7317# define LT_DLGLOBAL DL_GLOBAL
7318# else
7319# define LT_DLGLOBAL 0
7320# endif
7321#endif
7322
7323/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7324 find out it does not work in some platform. */
7325#ifndef LT_DLLAZY_OR_NOW
7326# ifdef RTLD_LAZY
7327# define LT_DLLAZY_OR_NOW RTLD_LAZY
7328# else
7329# ifdef DL_LAZY
7330# define LT_DLLAZY_OR_NOW DL_LAZY
7331# else
7332# ifdef RTLD_NOW
7333# define LT_DLLAZY_OR_NOW RTLD_NOW
7334# else
7335# ifdef DL_NOW
7336# define LT_DLLAZY_OR_NOW DL_NOW
7337# else
7338# define LT_DLLAZY_OR_NOW 0
7339# endif
7340# endif
7341# endif
7342# endif
7343#endif
7344
7345#ifdef __cplusplus
7346extern "C" void exit (int);
7347#endif
7348
7349fnord() { int i=42;}
7350main ()
7351{
7352 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7353 int status = $lt_dlunknown;
7354
7355 if (self)
7356 {
7357 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7358 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7359 /* dlclose (self); */
7360 }
7361
7362 exit (status);
7363}
7364EOF
7365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7366 (eval $ac_link) 2>&5
7367 ac_status=$?
7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7370 (./conftest; exit; ) 2>/dev/null
7371 lt_status=$?
7372 case x$lt_status in
7373 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7374 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7375 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7376 esac
7377 else :
7378 # compilation failed
7379 lt_cv_dlopen_self_static=no
7380 fi
7381fi
7382rm -fr conftest*
7383
7384
7385fi
7386echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7387echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7388 fi
7389
7390 CPPFLAGS="$save_CPPFLAGS"
7391 LDFLAGS="$save_LDFLAGS"
7392 LIBS="$save_LIBS"
7393 ;;
7394 esac
7395
7396 case "$lt_cv_dlopen_self" in
7397 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7398 *) enable_dlopen_self=unknown ;;
7399 esac
7400
7401 case "$lt_cv_dlopen_self_static" in
7402 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7403 *) enable_dlopen_self_static=unknown ;;
7404 esac
7405fi
7406
7407
7408## FIXME: this should be a separate macro
7409##
7410if test "$enable_shared" = yes && test "$GCC" = yes; then
7411 case "$archive_cmds" in
7412 *'~'*)
7413 # FIXME: we may have to deal with multi-command sequences.
7414 ;;
7415 '$CC '*)
7416 # Test whether the compiler implicitly links with -lc since on some
7417 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7418 # to ld, don't add -lc before -lgcc.
7419 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7420echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7421 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7422 echo $ECHO_N "(cached) $ECHO_C" >&6
7423else
7424 $rm conftest*
7425 echo 'static int dummy;' > conftest.$ac_ext
7426
7427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7428 (eval $ac_compile) 2>&5
7429 ac_status=$?
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); }; then
7432 soname=conftest
7433 lib=conftest
7434 libobjs=conftest.$ac_objext
7435 deplibs=
7436 wl=$lt_cv_prog_cc_wl
7437 compiler_flags=-v
7438 linker_flags=-v
7439 verstring=
7440 output_objdir=.
7441 libname=conftest
7442 save_allow_undefined_flag=$allow_undefined_flag
7443 allow_undefined_flag=
7444 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7445 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7446 ac_status=$?
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); }
7449 then
7450 lt_cv_archive_cmds_need_lc=no
7451 else
7452 lt_cv_archive_cmds_need_lc=yes
7453 fi
7454 allow_undefined_flag=$save_allow_undefined_flag
7455 else
7456 cat conftest.err 1>&5
7457 fi
7458fi
7459
7460 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7461echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7462 ;;
7463 esac
7464fi
7465need_lc=${lt_cv_archive_cmds_need_lc-yes}
7466##
7467## END FIXME
7468
7469## FIXME: this should be a separate macro
7470##
7471# The second clause should only fire when bootstrapping the
7472# libtool distribution, otherwise you forgot to ship ltmain.sh
7473# with your package, and you will get complaints that there are
7474# no rules to generate ltmain.sh.
7475if test -f "$ltmain"; then
7476 :
7477else
7478 # If there is no Makefile yet, we rely on a make rule to execute
7479 # `config.status --recheck' to rerun these tests and create the
7480 # libtool script then.
7481 test -f Makefile && make "$ltmain"
7482fi
7483
7484if test -f "$ltmain"; then
7485 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7486 $rm -f "${ofile}T"
7487
7488 echo creating $ofile
7489
7490 # Now quote all the things that may contain metacharacters while being
7491 # careful not to overquote the AC_SUBSTed values. We take copies of the
7492 # variables and quote the copies for generation of the libtool script.
7493 for var in echo old_CC old_CFLAGS \
7494 AR AR_FLAGS CC LD LN_S NM SHELL \
7495 reload_flag reload_cmds wl \
7496 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7497 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7498 library_names_spec soname_spec \
7499 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7500 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7501 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7502 old_striplib striplib file_magic_cmd export_symbols_cmds \
7503 deplibs_check_method allow_undefined_flag no_undefined_flag \
7504 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7505 hardcode_libdir_flag_spec hardcode_libdir_separator \
7506 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7507 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7508
7509 case "$var" in
7510 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7511 old_postinstall_cmds | old_postuninstall_cmds | \
7512 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7513 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7514 postinstall_cmds | postuninstall_cmds | \
7515 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7516 # Double-quote double-evaled strings.
7517 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7518 ;;
7519 *)
7520 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7521 ;;
7522 esac
7523 done
7524
7525 cat <<__EOF__ > "${ofile}T"
7526#! $SHELL
7527
7528# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7529# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7530# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7531#
7532# Copyright (C) 1996-2000 Free Software Foundation, Inc.
7533# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7534#
7535# This program is free software; you can redistribute it and/or modify
7536# it under the terms of the GNU General Public License as published by
7537# the Free Software Foundation; either version 2 of the License, or
7538# (at your option) any later version.
7539#
7540# This program is distributed in the hope that it will be useful, but
7541# WITHOUT ANY WARRANTY; without even the implied warranty of
7542# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7543# General Public License for more details.
7544#
7545# You should have received a copy of the GNU General Public License
7546# along with this program; if not, write to the Free Software
7547# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7548#
7549# As a special exception to the GNU General Public License, if you
7550# distribute this file as part of a program that contains a
7551# configuration script generated by Autoconf, you may include it under
7552# the same distribution terms that you use for the rest of that program.
7553
7554# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7555Xsed="sed -e s/^X//"
7556
7557# The HP-UX ksh and POSIX shell print the target directory to stdout
7558# if CDPATH is set.
7559if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7560
7561# ### BEGIN LIBTOOL CONFIG
7562
7563# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7564
7565# Shell to use when invoking shell scripts.
7566SHELL=$lt_SHELL
7567
7568# Whether or not to build shared libraries.
7569build_libtool_libs=$enable_shared
7570
7571# Whether or not to add -lc for building shared libraries.
7572build_libtool_need_lc=$need_lc
7573
7574# Whether or not to build static libraries.
7575build_old_libs=$enable_static
7576
7577# Whether or not to optimize for fast installation.
7578fast_install=$enable_fast_install
7579
7580# The host system.
7581host_alias=$host_alias
7582host=$host
7583
7584# An echo program that does not interpret backslashes.
7585echo=$lt_echo
7586
7587# The archiver.
7588AR=$lt_AR
7589AR_FLAGS=$lt_AR_FLAGS
7590
7591# The default C compiler.
7592CC=$lt_CC
7593
7594# Is the compiler the GNU C compiler?
7595with_gcc=$GCC
7596
7597# The linker used to build libraries.
7598LD=$lt_LD
7599
7600# Whether we need hard or soft links.
7601LN_S=$lt_LN_S
7602
7603# A BSD-compatible nm program.
7604NM=$lt_NM
7605
7606# A symbol stripping program
7607STRIP=$STRIP
7608
7609# Used to examine libraries when file_magic_cmd begins "file"
7610MAGIC_CMD=$MAGIC_CMD
7611
7612# Used on cygwin: DLL creation program.
7613DLLTOOL="$DLLTOOL"
7614
7615# Used on cygwin: object dumper.
7616OBJDUMP="$OBJDUMP"
7617
7618# Used on cygwin: assembler.
7619AS="$AS"
7620
7621# The name of the directory that contains temporary libtool files.
7622objdir=$objdir
7623
7624# How to create reloadable object files.
7625reload_flag=$lt_reload_flag
7626reload_cmds=$lt_reload_cmds
7627
7628# How to pass a linker flag through the compiler.
7629wl=$lt_wl
7630
7631# Object file suffix (normally "o").
7632objext="$ac_objext"
7633
7634# Old archive suffix (normally "a").
7635libext="$libext"
7636
7637# Executable file suffix (normally "").
7638exeext="$exeext"
7639
7640# Additional compiler flags for building library objects.
7641pic_flag=$lt_pic_flag
7642pic_mode=$pic_mode
7643
7644# Does compiler simultaneously support -c and -o options?
7645compiler_c_o=$lt_compiler_c_o
7646
7647# Can we write directly to a .lo ?
7648compiler_o_lo=$lt_compiler_o_lo
7649
7650# Must we lock files when doing compilation ?
7651need_locks=$lt_need_locks
7652
7653# Do we need the lib prefix for modules?
7654need_lib_prefix=$need_lib_prefix
7655
7656# Do we need a version for libraries?
7657need_version=$need_version
7658
7659# Whether dlopen is supported.
7660dlopen_support=$enable_dlopen
7661
7662# Whether dlopen of programs is supported.
7663dlopen_self=$enable_dlopen_self
7664
7665# Whether dlopen of statically linked programs is supported.
7666dlopen_self_static=$enable_dlopen_self_static
7667
7668# Compiler flag to prevent dynamic linking.
7669link_static_flag=$lt_link_static_flag
7670
7671# Compiler flag to turn off builtin functions.
7672no_builtin_flag=$lt_no_builtin_flag
7673
7674# Compiler flag to allow reflexive dlopens.
7675export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7676
7677# Compiler flag to generate shared objects directly from archives.
7678whole_archive_flag_spec=$lt_whole_archive_flag_spec
7679
7680# Compiler flag to generate thread-safe objects.
7681thread_safe_flag_spec=$lt_thread_safe_flag_spec
7682
7683# Library versioning type.
7684version_type=$version_type
7685
7686# Format of library name prefix.
7687libname_spec=$lt_libname_spec
7688
7689# List of archive names. First name is the real one, the rest are links.
7690# The last name is the one that the linker finds with -lNAME.
7691library_names_spec=$lt_library_names_spec
7692
7693# The coded name of the library, if different from the real name.
7694soname_spec=$lt_soname_spec
7695
7696# Commands used to build and install an old-style archive.
7697RANLIB=$lt_RANLIB
7698old_archive_cmds=$lt_old_archive_cmds
7699old_postinstall_cmds=$lt_old_postinstall_cmds
7700old_postuninstall_cmds=$lt_old_postuninstall_cmds
7701
7702# Create an old-style archive from a shared archive.
7703old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7704
7705# Create a temporary old-style archive to link instead of a shared archive.
7706old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7707
7708# Commands used to build and install a shared archive.
7709archive_cmds=$lt_archive_cmds
7710archive_expsym_cmds=$lt_archive_expsym_cmds
7711postinstall_cmds=$lt_postinstall_cmds
7712postuninstall_cmds=$lt_postuninstall_cmds
7713
7714# Commands to strip libraries.
7715old_striplib=$lt_old_striplib
7716striplib=$lt_striplib
7717
7718# Method to check whether dependent libraries are shared objects.
7719deplibs_check_method=$lt_deplibs_check_method
7720
7721# Command to use when deplibs_check_method == file_magic.
7722file_magic_cmd=$lt_file_magic_cmd
7723
7724# Flag that allows shared libraries with undefined symbols to be built.
7725allow_undefined_flag=$lt_allow_undefined_flag
7726
7727# Flag that forces no undefined symbols.
7728no_undefined_flag=$lt_no_undefined_flag
7729
7730# Commands used to finish a libtool library installation in a directory.
7731finish_cmds=$lt_finish_cmds
7732
7733# Same as above, but a single script fragment to be evaled but not shown.
7734finish_eval=$lt_finish_eval
7735
7736# Take the output of nm and produce a listing of raw symbols and C names.
7737global_symbol_pipe=$lt_global_symbol_pipe
7738
7739# Transform the output of nm in a proper C declaration
7740global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7741
7742# This is the shared library runtime path variable.
7743runpath_var=$runpath_var
7744
7745# This is the shared library path variable.
7746shlibpath_var=$shlibpath_var
7747
7748# Is shlibpath searched before the hard-coded library search path?
7749shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7750
7751# How to hardcode a shared library path into an executable.
7752hardcode_action=$hardcode_action
7753
7754# Whether we should hardcode library paths into libraries.
7755hardcode_into_libs=$hardcode_into_libs
7756
7757# Flag to hardcode \$libdir into a binary during linking.
7758# This must work even if \$libdir does not exist.
7759hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7760
7761# Whether we need a single -rpath flag with a separated argument.
7762hardcode_libdir_separator=$lt_hardcode_libdir_separator
7763
7764# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7765# resulting binary.
7766hardcode_direct=$hardcode_direct
7767
7768# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7769# resulting binary.
7770hardcode_minus_L=$hardcode_minus_L
7771
7772# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7773# the resulting binary.
7774hardcode_shlibpath_var=$hardcode_shlibpath_var
7775
7776# Variables whose values should be saved in libtool wrapper scripts and
7777# restored at relink time.
7778variables_saved_for_relink="$variables_saved_for_relink"
7779
7780# Whether libtool must link a program against all its dependency libraries.
7781link_all_deplibs=$link_all_deplibs
7782
7783# Compile-time system search path for libraries
7784sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7785
7786# Run-time system search path for libraries
7787sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7788
7789# Fix the shell variable \$srcfile for the compiler.
7790fix_srcfile_path="$fix_srcfile_path"
7791
7792# Set to yes if exported symbols are required.
7793always_export_symbols=$always_export_symbols
7794
7795# The commands to list exported symbols.
7796export_symbols_cmds=$lt_export_symbols_cmds
7797
7798# The commands to extract the exported symbol list from a shared archive.
7799extract_expsyms_cmds=$lt_extract_expsyms_cmds
7800
7801# Symbols that should not be listed in the preloaded symbols.
7802exclude_expsyms=$lt_exclude_expsyms
7803
7804# Symbols that must always be exported.
7805include_expsyms=$lt_include_expsyms
7806
7807# ### END LIBTOOL CONFIG
7808
7809__EOF__
7810
7811 case "$host_os" in
7812 aix3*)
7813 cat <<\EOF >> "${ofile}T"
7814
7815# AIX sometimes has problems with the GCC collect2 program. For some
7816# reason, if we set the COLLECT_NAMES environment variable, the problems
7817# vanish in a puff of smoke.
7818if test "X${COLLECT_NAMES+set}" != Xset; then
7819 COLLECT_NAMES=
7820 export COLLECT_NAMES
7821fi
7822EOF
7823 ;;
7824 esac
7825
7826 case "$host_os" in
7827 cygwin* | mingw* | pw32* | os2*)
7828 cat <<'EOF' >> "${ofile}T"
7829 # This is a source program that is used to create dlls on Windows
7830 # Don't remove nor modify the starting and closing comments
7831# /* ltdll.c starts here */
7832# #define WIN32_LEAN_AND_MEAN
7833# #include <windows.h>
7834# #undef WIN32_LEAN_AND_MEAN
7835# #include <stdio.h>
7836#
7837# #ifndef __CYGWIN__
7838# # ifdef __CYGWIN32__
7839# # define __CYGWIN__ __CYGWIN32__
7840# # endif
7841# #endif
7842#
7843# #ifdef __cplusplus
7844# extern "C" {
7845# #endif
7846# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7847# #ifdef __cplusplus
7848# }
7849# #endif
7850#
7851# #ifdef __CYGWIN__
7852# #include <cygwin/cygwin_dll.h>
7853# DECLARE_CYGWIN_DLL( DllMain );
7854# #endif
7855# HINSTANCE __hDllInstance_base;
7856#
7857# BOOL APIENTRY
7858# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7859# {
7860# __hDllInstance_base = hInst;
7861# return TRUE;
7862# }
7863# /* ltdll.c ends here */
7864 # This is a source program that is used to create import libraries
7865 # on Windows for dlls which lack them. Don't remove nor modify the
7866 # starting and closing comments
7867# /* impgen.c starts here */
7868# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7869#
7870# This file is part of GNU libtool.
7871#
7872# This program is free software; you can redistribute it and/or modify
7873# it under the terms of the GNU General Public License as published by
7874# the Free Software Foundation; either version 2 of the License, or
7875# (at your option) any later version.
7876#
7877# This program is distributed in the hope that it will be useful,
7878# but WITHOUT ANY WARRANTY; without even the implied warranty of
7879# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7880# GNU General Public License for more details.
7881#
7882# You should have received a copy of the GNU General Public License
7883# along with this program; if not, write to the Free Software
7884# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7885# */
7886#
7887# #include <stdio.h> /* for printf() */
7888# #include <unistd.h> /* for open(), lseek(), read() */
7889# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7890# #include <string.h> /* for strdup() */
7891#
7892# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7893# #ifndef O_BINARY
7894# #define O_BINARY 0
7895# #endif
7896#
7897# static unsigned int
7898# pe_get16 (fd, offset)
7899# int fd;
7900# int offset;
7901# {
7902# unsigned char b[2];
7903# lseek (fd, offset, SEEK_SET);
7904# read (fd, b, 2);
7905# return b[0] + (b[1]<<8);
7906# }
7907#
7908# static unsigned int
7909# pe_get32 (fd, offset)
7910# int fd;
7911# int offset;
7912# {
7913# unsigned char b[4];
7914# lseek (fd, offset, SEEK_SET);
7915# read (fd, b, 4);
7916# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7917# }
7918#
7919# static unsigned int
7920# pe_as32 (ptr)
7921# void *ptr;
7922# {
7923# unsigned char *b = ptr;
7924# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7925# }
7926#
7927# int
7928# main (argc, argv)
7929# int argc;
7930# char *argv[];
7931# {
7932# int dll;
7933# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7934# unsigned long export_rva, export_size, nsections, secptr, expptr;
7935# unsigned long name_rvas, nexp;
7936# unsigned char *expdata, *erva;
7937# char *filename, *dll_name;
7938#
7939# filename = argv[1];
7940#
7941# dll = open(filename, O_RDONLY|O_BINARY);
7942# if (!dll)
7943# return 1;
7944#
7945# dll_name = filename;
7946#
7947# for (i=0; filename[i]; i++)
7948# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7949# dll_name = filename + i +1;
7950#
7951# pe_header_offset = pe_get32 (dll, 0x3c);
7952# opthdr_ofs = pe_header_offset + 4 + 20;
7953# num_entries = pe_get32 (dll, opthdr_ofs + 92);
7954#
7955# if (num_entries < 1) /* no exports */
7956# return 1;
7957#
7958# export_rva = pe_get32 (dll, opthdr_ofs + 96);
7959# export_size = pe_get32 (dll, opthdr_ofs + 100);
7960# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7961# secptr = (pe_header_offset + 4 + 20 +
7962# pe_get16 (dll, pe_header_offset + 4 + 16));
7963#
7964# expptr = 0;
7965# for (i = 0; i < nsections; i++)
7966# {
7967# char sname[8];
7968# unsigned long secptr1 = secptr + 40 * i;
7969# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7970# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7971# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7972# lseek(dll, secptr1, SEEK_SET);
7973# read(dll, sname, 8);
7974# if (vaddr <= export_rva && vaddr+vsize > export_rva)
7975# {
7976# expptr = fptr + (export_rva - vaddr);
7977# if (export_rva + export_size > vaddr + vsize)
7978# export_size = vsize - (export_rva - vaddr);
7979# break;
7980# }
7981# }
7982#
7983# expdata = (unsigned char*)malloc(export_size);
7984# lseek (dll, expptr, SEEK_SET);
7985# read (dll, expdata, export_size);
7986# erva = expdata - export_rva;
7987#
7988# nexp = pe_as32 (expdata+24);
7989# name_rvas = pe_as32 (expdata+32);
7990#
7991# printf ("EXPORTS\n");
7992# for (i = 0; i<nexp; i++)
7993# {
7994# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7995# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7996# }
7997#
7998# return 0;
7999# }
8000# /* impgen.c ends here */
8001
8002EOF
8003 ;;
8004 esac
8005
8006 # We use sed instead of cat because bash on DJGPP gets confused if
8007 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8008 # text mode, it properly converts lines to CR/LF. This bash problem
8009 # is reportedly fixed, but why not run on old versions too?
8010 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8011
8012 mv -f "${ofile}T" "$ofile" || \
8013 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8014 chmod +x "$ofile"
8015fi
8016##
8017## END FIXME
8018
8019
8020
8021
8022
8023# This can be used to rebuild libtool when needed
8024LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8025
8026# Always use our own libtool.
8027LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8028
8029# Prevent multiple expansion
8030
8031
8032MALLOC_TYPE=S
8033support_addstrings=no
8034support_frills=no
8035support_linespace=no
8036support_inheritpixmap=no
8037support_keepscrolling=no
8038support_selectionscrolling=no
8039support_menubar=no
8040support_mousewheel=no
8041support_mouseslipwheel=no
8042support_oldselection=no
8043support_utmp=no
8044support_wtmp=no
8045support_lastlog=no
8046support_cursor_blink=no
8047support_text_blink=no
8048support_pointer_blank=no
8049support_scroll_rxvt=no
8050support_scroll_next=no
8051support_scroll_xterm=no
8052support_scroll_plain=no
8053support_xim=no
8054support_xpm=no
8055support_xft=no
8056support_unicode3=no
8057codesets=
8058
8059
8060if test "x$enable_shared" = xyes; then
8061
8062cat >>confdefs.h <<\_ACEOF
8063#define LIBRXVT 1
8064_ACEOF
8065
8066 INSTALL_LIBRXVT=yes
8067fi
8068
8069
8070# Check whether --enable-everything or --disable-everything was given.
8071if test "${enable_everything+set}" = set; then
8072 enableval="$enable_everything"
8073 if test x$enableval = xyes; then
8074 support_24bit=yes
8075 support_frills=yes
8076 support_linespace=yes
8077 support_inheritpixmap=yes
8078 support_keepscrolling=yes
8079 support_selectionscrolling=yes
8080 support_lastlog=yes
8081 support_menubar=yes
8082 support_mousewheel=yes
8083 support_mouseslipwheel=yes
8084 support_oldselection=yes
8085 support_cursor_blink=yes
8086 support_text_blink=yes
8087 support_pointer_blank=yes
8088 support_scroll_rxvt=yes
8089 support_scroll_next=yes
8090 support_scroll_xterm=yes
8091 support_scroll_plain=yes
8092 support_utmp=yes
8093 support_wtmp=yes
8094 support_xim=yes
8095 support_xpm=yes
8096 support_xft=yes
8097 support_unicode3=yes
8098 codesets=all
8099 fi
8100fi;
8101
8102# Check whether --enable-unicode3 or --disable-unicode3 was given.
8103if test "${enable_unicode3+set}" = set; then
8104 enableval="$enable_unicode3"
8105 if test x$enableval = xyes -o x$enableval = xno; then
8106 support_unicode3=yes
8107 fi
8108fi;
8109
8110# Check whether --enable-xft or --disable-xft was given.
8111if test "${enable_xft+set}" = set; then
8112 enableval="$enable_xft"
8113 if test x$enableval = xyes -o x$enableval = xno; then
8114 support_xft=yes
8115 fi
8116fi;
8117
8118# Check whether --enable-utmp or --disable-utmp was given.
8119if test "${enable_utmp+set}" = set; then
8120 enableval="$enable_utmp"
8121 if test x$enableval = xyes -o x$enableval = xno; then
8122 support_utmp=$enableval
8123 fi
8124fi;
8125
8126# Check whether --enable-wtmp or --disable-wtmp was given.
8127if test "${enable_wtmp+set}" = set; then
8128 enableval="$enable_wtmp"
8129 if test x$enableval = xyes -o x$enableval = xno; then
8130 support_wtmp=$enableval
8131 fi
8132fi;
8133
8134# Check whether --enable-lastlog or --disable-lastlog was given.
8135if test "${enable_lastlog+set}" = set; then
8136 enableval="$enable_lastlog"
8137 if test x$enableval = xyes -o x$enableval = xno; then
8138 support_lastlog=$enableval
8139 fi
8140fi;
8141
8142# Check whether --enable-xpm-background or --disable-xpm-background was given.
8143if test "${enable_xpm_background+set}" = set; then
8144 enableval="$enable_xpm_background"
8145 if test x$enableval = xyes -o x$enableval = xno; then
8146 support_xpm=$enableval
8147 fi
8148fi;
8149
8150# Check whether --enable-transparency or --disable-transparency was given.
8151if test "${enable_transparency+set}" = set; then
8152 enableval="$enable_transparency"
8153 if test x$enableval = xyes -o x$enableval = xno; then
8154 support_inheritpixmap=$enableval
8155 fi
8156fi;
8157
8158# Check whether --enable-menubar or --disable-menubar was given.
8159if test "${enable_menubar+set}" = set; then
8160 enableval="$enable_menubar"
8161 if test x$enableval = xyes -o x$enableval = xno; then
8162 support_menubar=$enableval
8163 fi
8164fi;
8165
8166# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
8167if test "${enable_rxvt_scroll+set}" = set; then
8168 enableval="$enable_rxvt_scroll"
8169 if test x$enableval = xyes -o x$enableval = xno; then
8170 support_scroll_rxvt=$enableval
8171 fi
8172fi;
8173
8174# Check whether --enable-next-scroll or --disable-next-scroll was given.
8175if test "${enable_next_scroll+set}" = set; then
8176 enableval="$enable_next_scroll"
8177 if test x$enableval = xyes -o x$enableval = xno; then
8178 support_scroll_next=$enableval
8179 fi
8180fi;
8181
8182# Check whether --enable-xterm-scroll or --disable-xterm-scroll was given.
8183if test "${enable_xterm_scroll+set}" = set; then
8184 enableval="$enable_xterm_scroll"
8185 if test x$enableval = xyes -o x$enableval = xno; then
8186 support_scroll_xterm=$enableval
8187 fi
8188fi;
8189
8190# Check whether --enable-plain-scroll or --disable-plain-scroll was given.
8191if test "${enable_plain_scroll+set}" = set; then
8192 enableval="$enable_plain_scroll"
8193 if test x$enableval = xyes -o x$enableval = xno; then
8194 support_scroll_plain=$enableval
8195 fi
8196fi;
8197
8198# Check whether --enable-half-shadow or --disable-half-shadow was given.
8199if test "${enable_half_shadow+set}" = set; then
8200 enableval="$enable_half_shadow"
8201 if test x$enableval = xyes; then
8202
8203cat >>confdefs.h <<\_ACEOF
8204#define HALFSHADOW 1
8205_ACEOF
8206
8207 fi
8208fi;
8209
8210
8211# Check whether --with-codesets or --without-codesets was given.
8212if test "${with_codesets+set}" = set; then
8213 withval="$with_codesets"
8214 codesets="$withval"
8215fi;
8216
8217# Check whether --enable-xim or --disable-xim was given.
8218if test "${enable_xim+set}" = set; then
8219 enableval="$enable_xim"
8220 if test x$enableval = xyes -o x$enableval = xno; then
8221 support_xim=$enableval
8222 fi
8223fi;
8224
8225# Check whether --enable-ttygid or --disable-ttygid was given.
8226if test "${enable_ttygid+set}" = set; then
8227 enableval="$enable_ttygid"
8228 if test x$enableval = xyes; then
8229
8230cat >>confdefs.h <<\_ACEOF
8231#define TTY_GID_SUPPORT 1
8232_ACEOF
8233
8234 fi
8235fi;
8236
8237# Check whether --enable-backspace-key or --disable-backspace-key was given.
8238if test "${enable_backspace_key+set}" = set; then
8239 enableval="$enable_backspace_key"
8240 if test x$enableval = xno; then
8241
8242cat >>confdefs.h <<\_ACEOF
8243#define NO_BACKSPACE_KEY 1
8244_ACEOF
8245
8246 fi
8247fi;
8248
8249# Check whether --enable-delete-key or --disable-delete-key was given.
8250if test "${enable_delete_key+set}" = set; then
8251 enableval="$enable_delete_key"
8252 if test x$enableval = xno; then
8253
8254cat >>confdefs.h <<\_ACEOF
8255#define NO_DELETE_KEY 1
8256_ACEOF
8257
8258 fi
8259fi;
8260
8261# Check whether --enable-resources or --disable-resources was given.
8262if test "${enable_resources+set}" = set; then
8263 enableval="$enable_resources"
8264 if test x$enableval = xno; then
8265
8266cat >>confdefs.h <<\_ACEOF
8267#define NO_RESOURCES 1
8268_ACEOF
8269
8270 fi
8271fi;
8272
8273# Check whether --enable-xgetdefault or --disable-xgetdefault was given.
8274if test "${enable_xgetdefault+set}" = set; then
8275 enableval="$enable_xgetdefault"
8276 if test x$enableval = xyes; then
8277
8278cat >>confdefs.h <<\_ACEOF
8279#define USE_XGETDEFAULT 1
8280_ACEOF
8281
8282 fi
8283fi;
8284
8285RESFALLBACK=Rxvt
8286# Check whether --enable-fallback or --disable-fallback was given.
8287if test "${enable_fallback+set}" = set; then
8288 enableval="$enable_fallback"
8289
8290 test x$enableval = xyes && enableval=Rxvt
8291 test x$enableval = xno && enableval=
8292 RESFALLBACK="$enableval"
8293
8294fi;
8295
8296if test x$RESFALLBACK != x; then
8297
8298cat >>confdefs.h <<_ACEOF
8299#define RESFALLBACK "$RESFALLBACK"
8300_ACEOF
8301
8302fi
8303
8304RESNAME=urxvt
8305
8306# Check whether --with-res-name or --without-res-name was given.
8307if test "${with_res_name+set}" = set; then
8308 withval="$with_res_name"
8309 RESNAME="$withval"
8310fi;
8311
8312cat >>confdefs.h <<_ACEOF
8313#define RESNAME "$RESNAME"
8314_ACEOF
8315
8316
8317RESCLASS=URxvt
8318
8319# Check whether --with-res-class or --without-res-class was given.
8320if test "${with_res_class+set}" = set; then
8321 withval="$with_res_class"
8322 RESCLASS="$withval"
8323fi;
8324
8325cat >>confdefs.h <<_ACEOF
8326#define RESCLASS "$RESCLASS"
8327_ACEOF
8328
8329
8330RXVTNAME=urxvt
8331
8332# Check whether --with-name or --without-name was given.
8333if test "${with_name+set}" = set; then
8334 withval="$with_name"
8335 RXVTNAME="$withval"
8336fi;
8337
8338RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
8339
8340
8341# Check whether --enable-strings or --disable-strings was given.
8342if test "${enable_strings+set}" = set; then
8343 enableval="$enable_strings"
8344 if test x$enableval = xyes -o x$enableval = xno; then
8345 support_addstrings=$enableval
8346 fi
8347fi;
8348
8349# Check whether --enable-swapscreen or --disable-swapscreen was given.
8350if test "${enable_swapscreen+set}" = set; then
8351 enableval="$enable_swapscreen"
8352 if test x$enableval = xno; then
8353
8354cat >>confdefs.h <<\_ACEOF
8355#define NO_SECONDARY_SCREEN 1
8356_ACEOF
8357
8358 fi
8359fi;
8360
8361# Check whether --enable-frills or --disable-frills was given.
8362if test "${enable_frills+set}" = set; then
8363 enableval="$enable_frills"
8364 if test x$enableval = xyes -o x$enableval = xno; then
8365 support_frills=$enableval
8366 fi
8367fi;
8368
8369# Check whether --enable-linespace or --disable-linespace was given.
8370if test "${enable_linespace+set}" = set; then
8371 enableval="$enable_linespace"
8372 if test x$enableval = xyes -o x$enableval = xno; then
8373 support_linespace=$enableval
8374 fi
8375fi;
8376
8377# Check whether --enable-24bit or --disable-24bit was given.
8378if test "${enable_24bit+set}" = set; then
8379 enableval="$enable_24bit"
8380 if test x$enableval = xyes -o x$enableval = xno; then
8381 support_24bit=$enableval
8382 fi
8383fi;
8384
8385# Check whether --enable-keepscrolling or --disable-keepscrolling was given.
8386if test "${enable_keepscrolling+set}" = set; then
8387 enableval="$enable_keepscrolling"
8388 if test x$enableval = xyes -o x$enableval = xno; then
8389 support_keepscrolling=$enableval
8390 fi
8391fi;
8392
8393# Check whether --enable-selectionscrolling or --disable-selectionscrolling was given.
8394if test "${enable_selectionscrolling+set}" = set; then
8395 enableval="$enable_selectionscrolling"
8396 if test x$enableval = xyes -o x$enableval = xno; then
8397 support_selectionscrolling=$enableval
8398 fi
8399fi;
8400
8401# Check whether --enable-mousewheel or --disable-mousewheel was given.
8402if test "${enable_mousewheel+set}" = set; then
8403 enableval="$enable_mousewheel"
8404 if test x$enableval = xyes -o x$enableval = xno; then
8405 support_mousewheel=$enableval
8406 fi
8407fi;
8408
8409# Check whether --enable-slipwheeling or --disable-slipwheeling was given.
8410if test "${enable_slipwheeling+set}" = set; then
8411 enableval="$enable_slipwheeling"
8412 if test x$enableval = xyes -o x$enableval = xno; then
8413 support_mouseslipwheel=$enableval
8414 fi
8415fi;
8416
8417# Check whether --enable-old-selection or --disable-old-selection was given.
8418if test "${enable_old_selection+set}" = set; then
8419 enableval="$enable_old_selection"
8420 if test x$enableval = xyes -o x$enableval = xno; then
8421 support_oldselection=$enableval
8422 fi
8423fi;
8424
8425# Check whether --enable-new-selection or --disable-new-selection was given.
8426if test "${enable_new_selection+set}" = set; then
8427 enableval="$enable_new_selection"
8428 if test x$enableval = xno; then
8429
8430cat >>confdefs.h <<\_ACEOF
8431#define NO_NEW_SELECTION 1
8432_ACEOF
8433
8434 fi
8435fi;
8436
8437# Check whether --enable-dmalloc or --disable-dmalloc was given.
8438if test "${enable_dmalloc+set}" = set; then
8439 enableval="$enable_dmalloc"
8440 if test x$enableval = xyes; then
8441 MALLOC_TYPE=G
8442 DEBUG=-DDEBUG_MALLOC
8443 DLIB="-L/usr/local/lib -ldmalloc"
8444 DINCLUDE=-I/usr/local/include
8445 fi
8446fi;
8447
8448# Check whether --enable-dlmalloc or --disable-dlmalloc was given.
8449if test "${enable_dlmalloc+set}" = set; then
8450 enableval="$enable_dlmalloc"
8451 if test x$enableval = xyes; then
8452 MALLOC_TYPE=D
8453 DEBUG=
8454 DLIB="-L/usr/local/lib -ldlmalloc"
8455 DINCLUDE=
8456 fi
8457fi;
8458
8459# Check whether --enable-smart-resize or --disable-smart-resize was given.
8460if test "${enable_smart_resize+set}" = set; then
8461 enableval="$enable_smart_resize"
8462 if test x$enableval = xyes; then
8463
8464cat >>confdefs.h <<\_ACEOF
8465#define SMART_RESIZE 1
8466_ACEOF
8467
8468 fi
8469fi;
8470
8471# Check whether --enable-256-color or --disable-256-color was given.
8472if test "${enable_256_color+set}" = set; then
8473 enableval="$enable_256_color"
8474 if test x$enableval = xyes; then
8475
8476cat >>confdefs.h <<\_ACEOF
8477#define TTY_256COLOR 1
8478_ACEOF
8479
8480 fi
8481fi;
8482
8483# Check whether --enable-cursor-blink or --disable-cursor-blink was given.
8484if test "${enable_cursor_blink+set}" = set; then
8485 enableval="$enable_cursor_blink"
8486 if test x$enableval = xyes -o x$enableval = xno; then
8487 support_cursor_blink=$enableval
8488 fi
8489fi;
8490
8491# Check whether --enable-text-blink or --disable-text-blink was given.
8492if test "${enable_text_blink+set}" = set; then
8493 enableval="$enable_text_blink"
8494 if test x$enableval = xyes -o x$enableval = xno; then
8495 support_text_blink=$enableval
8496 fi
8497fi;
8498
8499# Check whether --enable-pointer-blank or --disable-pointer-blank was given.
8500if test "${enable_pointer_blank+set}" = set; then
8501 enableval="$enable_pointer_blank"
8502 if test x$enableval = xyes -o x$enableval = xno; then
8503 support_pointer_blank=$enableval
8504 fi
8505fi;
8506
8507
8508# Check whether --with-term or --without-term was given.
8509if test "${with_term+set}" = set; then
8510 withval="$with_term"
8511 if test x$withval != x; then
8512
8513cat >>confdefs.h <<_ACEOF
8514#define TERMENV "$withval"
8515_ACEOF
8516 term="$withval"
8517 fi
8518fi;
8519
8520
8521# Check whether --with-terminfo or --without-terminfo was given.
8522if test "${with_terminfo+set}" = set; then
8523 withval="$with_terminfo"
8524 if test x$withval != x; then
8525
8526cat >>confdefs.h <<_ACEOF
8527#define RXVT_TERMINFO "$withval"
8528_ACEOF
8529 terminfo="$withval"
8530 fi
8531fi;
8532
8533
8534
8535cat >>confdefs.h <<\_ACEOF
8536#define PROTOTYPES 1
8537_ACEOF
8538
8539
8540if test -z "$CFLAGS"; then
8541 if test -z "$CCOPTS"; then
8542 CCOPTS='-O'
8543 fi
8544 CFLAGS="$CCOPTS"
8545fi
8546
8547# Extract the first word of "mv", so it can be a program name with args.
8548set dummy mv; ac_word=$2
8549echo "$as_me:$LINENO: checking for $ac_word" >&5
8550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8551if test "${ac_cv_path_MV+set}" = set; then
8552 echo $ECHO_N "(cached) $ECHO_C" >&6
8553else
8554 case $MV in
8555 [\\/]* | ?:[\\/]*)
8556 ac_cv_path_MV="$MV" # Let the user override the test with a path.
8557 ;;
8558 *)
8559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8560for as_dir in $PATH
8561do
8562 IFS=$as_save_IFS
8563 test -z "$as_dir" && as_dir=.
8564 for ac_exec_ext in '' $ac_executable_extensions; do
8565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8566 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8568 break 2
8569 fi
8570done
8571done
8572
8573 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
8574 ;;
8575esac
8576fi
8577MV=$ac_cv_path_MV
8578
8579if test -n "$MV"; then
8580 echo "$as_me:$LINENO: result: $MV" >&5
8581echo "${ECHO_T}$MV" >&6
8582else
8583 echo "$as_me:$LINENO: result: no" >&5
8584echo "${ECHO_T}no" >&6
8585fi
8586
8587# Extract the first word of "rm", so it can be a program name with args.
8588set dummy rm; ac_word=$2
8589echo "$as_me:$LINENO: checking for $ac_word" >&5
8590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8591if test "${ac_cv_path_RM+set}" = set; then
8592 echo $ECHO_N "(cached) $ECHO_C" >&6
8593else
8594 case $RM in
8595 [\\/]* | ?:[\\/]*)
8596 ac_cv_path_RM="$RM" # Let the user override the test with a path.
8597 ;;
8598 *)
8599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8600for as_dir in $PATH
8601do
8602 IFS=$as_save_IFS
8603 test -z "$as_dir" && as_dir=.
8604 for ac_exec_ext in '' $ac_executable_extensions; do
8605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8606 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8608 break 2
8609 fi
8610done
8611done
8612
8613 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
8614 ;;
8615esac
8616fi
8617RM=$ac_cv_path_RM
8618
8619if test -n "$RM"; then
8620 echo "$as_me:$LINENO: result: $RM" >&5
8621echo "${ECHO_T}$RM" >&6
8622else
8623 echo "$as_me:$LINENO: result: no" >&5
8624echo "${ECHO_T}no" >&6
8625fi
8626
8627# Extract the first word of "cp", so it can be a program name with args.
8628set dummy cp; ac_word=$2
8629echo "$as_me:$LINENO: checking for $ac_word" >&5
8630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8631if test "${ac_cv_path_CP+set}" = set; then
8632 echo $ECHO_N "(cached) $ECHO_C" >&6
8633else
8634 case $CP in
8635 [\\/]* | ?:[\\/]*)
8636 ac_cv_path_CP="$CP" # Let the user override the test with a path.
8637 ;;
8638 *)
8639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8640for as_dir in $PATH
8641do
8642 IFS=$as_save_IFS
8643 test -z "$as_dir" && as_dir=.
8644 for ac_exec_ext in '' $ac_executable_extensions; do
8645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8646 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
8647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8648 break 2
8649 fi
8650done
8651done
8652
8653 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
8654 ;;
8655esac
8656fi
8657CP=$ac_cv_path_CP
8658
8659if test -n "$CP"; then
8660 echo "$as_me:$LINENO: result: $CP" >&5
8661echo "${ECHO_T}$CP" >&6
8662else
8663 echo "$as_me:$LINENO: result: no" >&5
8664echo "${ECHO_T}no" >&6
8665fi
8666
8667# Extract the first word of "ln", so it can be a program name with args.
8668set dummy ln; ac_word=$2
8669echo "$as_me:$LINENO: checking for $ac_word" >&5
8670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8671if test "${ac_cv_path_LN+set}" = set; then
8672 echo $ECHO_N "(cached) $ECHO_C" >&6
8673else
8674 case $LN in
8675 [\\/]* | ?:[\\/]*)
8676 ac_cv_path_LN="$LN" # Let the user override the test with a path.
8677 ;;
8678 *)
8679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8680for as_dir in $PATH
8681do
8682 IFS=$as_save_IFS
8683 test -z "$as_dir" && as_dir=.
8684 for ac_exec_ext in '' $ac_executable_extensions; do
8685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8686 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8688 break 2
8689 fi
8690done
8691done
8692
8693 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
8694 ;;
8695esac
8696fi
8697LN=$ac_cv_path_LN
8698
8699if test -n "$LN"; then
8700 echo "$as_me:$LINENO: result: $LN" >&5
8701echo "${ECHO_T}$LN" >&6
8702else
8703 echo "$as_me:$LINENO: result: no" >&5
8704echo "${ECHO_T}no" >&6
8705fi
8706
8707# Extract the first word of "sed", so it can be a program name with args.
8708set dummy sed; ac_word=$2
8709echo "$as_me:$LINENO: checking for $ac_word" >&5
8710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8711if test "${ac_cv_path_SED+set}" = set; then
8712 echo $ECHO_N "(cached) $ECHO_C" >&6
8713else
8714 case $SED in
8715 [\\/]* | ?:[\\/]*)
8716 ac_cv_path_SED="$SED" # Let the user override the test with a path.
8717 ;;
8718 *)
8719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8720for as_dir in $PATH
8721do
8722 IFS=$as_save_IFS
8723 test -z "$as_dir" && as_dir=.
8724 for ac_exec_ext in '' $ac_executable_extensions; do
8725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8726 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
8727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8728 break 2
8729 fi
8730done
8731done
8732
8733 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
8734 ;;
8735esac
8736fi
8737SED=$ac_cv_path_SED
8738
8739if test -n "$SED"; then
8740 echo "$as_me:$LINENO: result: $SED" >&5
8741echo "${ECHO_T}$SED" >&6
8742else
8743 echo "$as_me:$LINENO: result: no" >&5
8744echo "${ECHO_T}no" >&6
8745fi
8746
8747# Extract the first word of "echo", so it can be a program name with args.
8748set dummy echo; ac_word=$2
8749echo "$as_me:$LINENO: checking for $ac_word" >&5
8750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8751if test "${ac_cv_path_ECHO+set}" = set; then
8752 echo $ECHO_N "(cached) $ECHO_C" >&6
8753else
8754 case $ECHO in
8755 [\\/]* | ?:[\\/]*)
8756 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
8757 ;;
8758 *)
8759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8760for as_dir in $PATH
8761do
8762 IFS=$as_save_IFS
8763 test -z "$as_dir" && as_dir=.
8764 for ac_exec_ext in '' $ac_executable_extensions; do
8765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8766 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
8767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8768 break 2
8769 fi
8770done
8771done
8772
8773 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
8774 ;;
8775esac
8776fi
8777ECHO=$ac_cv_path_ECHO
8778
8779if test -n "$ECHO"; then
8780 echo "$as_me:$LINENO: result: $ECHO" >&5
8781echo "${ECHO_T}$ECHO" >&6
8782else
8783 echo "$as_me:$LINENO: result: no" >&5
8784echo "${ECHO_T}no" >&6
8785fi
8786
8787# Extract the first word of "cmp", so it can be a program name with args.
8788set dummy cmp; ac_word=$2
8789echo "$as_me:$LINENO: checking for $ac_word" >&5
8790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8791if test "${ac_cv_path_CMP+set}" = set; then
8792 echo $ECHO_N "(cached) $ECHO_C" >&6
8793else
8794 case $CMP in
8795 [\\/]* | ?:[\\/]*)
8796 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
8797 ;;
8798 *)
8799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8800for as_dir in $PATH
8801do
8802 IFS=$as_save_IFS
8803 test -z "$as_dir" && as_dir=.
8804 for ac_exec_ext in '' $ac_executable_extensions; do
8805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8806 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
8807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8808 break 2
8809 fi
8810done
8811done
8812
8813 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
8814 ;;
8815esac
8816fi
8817CMP=$ac_cv_path_CMP
8818
8819if test -n "$CMP"; then
8820 echo "$as_me:$LINENO: result: $CMP" >&5
8821echo "${ECHO_T}$CMP" >&6
8822else
8823 echo "$as_me:$LINENO: result: no" >&5
8824echo "${ECHO_T}no" >&6
8825fi
8826
8827# Extract the first word of "tbl", so it can be a program name with args.
8828set dummy tbl; ac_word=$2
8829echo "$as_me:$LINENO: checking for $ac_word" >&5
8830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8831if test "${ac_cv_path_TBL+set}" = set; then
8832 echo $ECHO_N "(cached) $ECHO_C" >&6
8833else
8834 case $TBL in
8835 [\\/]* | ?:[\\/]*)
8836 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
8837 ;;
8838 *)
8839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8840for as_dir in $PATH
8841do
8842 IFS=$as_save_IFS
8843 test -z "$as_dir" && as_dir=.
8844 for ac_exec_ext in '' $ac_executable_extensions; do
8845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8846 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
8847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8848 break 2
8849 fi
8850done
8851done
8852
8853 ;;
8854esac
8855fi
8856TBL=$ac_cv_path_TBL
8857
8858if test -n "$TBL"; then
8859 echo "$as_me:$LINENO: result: $TBL" >&5
8860echo "${ECHO_T}$TBL" >&6
8861else
8862 echo "$as_me:$LINENO: result: no" >&5
8863echo "${ECHO_T}no" >&6
8864fi
8865
8866
8867 4629
8868 4630
8869echo "$as_me:$LINENO: checking for X" >&5 4631echo "$as_me:$LINENO: checking for X" >&5
8870echo $ECHO_N "checking for X... $ECHO_C" >&6 4632echo $ECHO_N "checking for X... $ECHO_C" >&6
8871 4633
9033 grep -v '^ *+' conftest.er1 >conftest.err 4795 grep -v '^ *+' conftest.er1 >conftest.err
9034 rm -f conftest.er1 4796 rm -f conftest.er1
9035 cat conftest.err >&5 4797 cat conftest.err >&5
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); } && 4799 (exit $ac_status); } &&
9038 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4800 { ac_try='test -z "$ac_cxx_werror_flag"
4801 || test ! -s conftest.err'
9039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9040 (eval $ac_try) 2>&5 4803 (eval $ac_try) 2>&5
9041 ac_status=$? 4804 ac_status=$?
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); }; } && 4806 (exit $ac_status); }; } &&
9144 grep -v '^ *+' conftest.er1 >conftest.err 4907 grep -v '^ *+' conftest.er1 >conftest.err
9145 rm -f conftest.er1 4908 rm -f conftest.er1
9146 cat conftest.err >&5 4909 cat conftest.err >&5
9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 (exit $ac_status); } && 4911 (exit $ac_status); } &&
9149 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4912 { ac_try='test -z "$ac_cxx_werror_flag"
4913 || test ! -s conftest.err'
9150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9151 (eval $ac_try) 2>&5 4915 (eval $ac_try) 2>&5
9152 ac_status=$? 4916 ac_status=$?
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 (exit $ac_status); }; } && 4918 (exit $ac_status); }; } &&
9195 grep -v '^ *+' conftest.er1 >conftest.err 4959 grep -v '^ *+' conftest.er1 >conftest.err
9196 rm -f conftest.er1 4960 rm -f conftest.er1
9197 cat conftest.err >&5 4961 cat conftest.err >&5
9198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199 (exit $ac_status); } && 4963 (exit $ac_status); } &&
9200 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4964 { ac_try='test -z "$ac_cxx_werror_flag"
4965 || test ! -s conftest.err'
9201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9202 (eval $ac_try) 2>&5 4967 (eval $ac_try) 2>&5
9203 ac_status=$? 4968 ac_status=$?
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); }; } && 4970 (exit $ac_status); }; } &&
9271 grep -v '^ *+' conftest.er1 >conftest.err 5036 grep -v '^ *+' conftest.er1 >conftest.err
9272 rm -f conftest.er1 5037 rm -f conftest.er1
9273 cat conftest.err >&5 5038 cat conftest.err >&5
9274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275 (exit $ac_status); } && 5040 (exit $ac_status); } &&
9276 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5041 { ac_try='test -z "$ac_cxx_werror_flag"
5042 || test ! -s conftest.err'
9277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9278 (eval $ac_try) 2>&5 5044 (eval $ac_try) 2>&5
9279 ac_status=$? 5045 ac_status=$?
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); }; } && 5047 (exit $ac_status); }; } &&
9326 grep -v '^ *+' conftest.er1 >conftest.err 5092 grep -v '^ *+' conftest.er1 >conftest.err
9327 rm -f conftest.er1 5093 rm -f conftest.er1
9328 cat conftest.err >&5 5094 cat conftest.err >&5
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); } && 5096 (exit $ac_status); } &&
9331 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5097 { ac_try='test -z "$ac_cxx_werror_flag"
5098 || test ! -s conftest.err'
9332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9333 (eval $ac_try) 2>&5 5100 (eval $ac_try) 2>&5
9334 ac_status=$? 5101 ac_status=$?
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); }; } && 5103 (exit $ac_status); }; } &&
9394 grep -v '^ *+' conftest.er1 >conftest.err 5161 grep -v '^ *+' conftest.er1 >conftest.err
9395 rm -f conftest.er1 5162 rm -f conftest.er1
9396 cat conftest.err >&5 5163 cat conftest.err >&5
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); } && 5165 (exit $ac_status); } &&
9399 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5166 { ac_try='test -z "$ac_cxx_werror_flag"
5167 || test ! -s conftest.err'
9400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401 (eval $ac_try) 2>&5 5169 (eval $ac_try) 2>&5
9402 ac_status=$? 5170 ac_status=$?
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); }; } && 5172 (exit $ac_status); }; } &&
9502 grep -v '^ *+' conftest.er1 >conftest.err 5270 grep -v '^ *+' conftest.er1 >conftest.err
9503 rm -f conftest.er1 5271 rm -f conftest.er1
9504 cat conftest.err >&5 5272 cat conftest.err >&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); } && 5274 (exit $ac_status); } &&
9507 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5275 { ac_try='test -z "$ac_cxx_werror_flag"
5276 || test ! -s conftest.err'
9508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9509 (eval $ac_try) 2>&5 5278 (eval $ac_try) 2>&5
9510 ac_status=$? 5279 ac_status=$?
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); }; } && 5281 (exit $ac_status); }; } &&
9566 grep -v '^ *+' conftest.er1 >conftest.err 5335 grep -v '^ *+' conftest.er1 >conftest.err
9567 rm -f conftest.er1 5336 rm -f conftest.er1
9568 cat conftest.err >&5 5337 cat conftest.err >&5
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); } && 5339 (exit $ac_status); } &&
9571 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5340 { ac_try='test -z "$ac_cxx_werror_flag"
5341 || test ! -s conftest.err'
9572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9573 (eval $ac_try) 2>&5 5343 (eval $ac_try) 2>&5
9574 ac_status=$? 5344 ac_status=$?
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); }; } && 5346 (exit $ac_status); }; } &&
9634 grep -v '^ *+' conftest.er1 >conftest.err 5404 grep -v '^ *+' conftest.er1 >conftest.err
9635 rm -f conftest.er1 5405 rm -f conftest.er1
9636 cat conftest.err >&5 5406 cat conftest.err >&5
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); } && 5408 (exit $ac_status); } &&
9639 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5409 { ac_try='test -z "$ac_cxx_werror_flag"
5410 || test ! -s conftest.err'
9640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9641 (eval $ac_try) 2>&5 5412 (eval $ac_try) 2>&5
9642 ac_status=$? 5413 ac_status=$?
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); }; } && 5415 (exit $ac_status); }; } &&
9738 grep -v '^ *+' conftest.er1 >conftest.err 5509 grep -v '^ *+' conftest.er1 >conftest.err
9739 rm -f conftest.er1 5510 rm -f conftest.er1
9740 cat conftest.err >&5 5511 cat conftest.err >&5
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); } && 5513 (exit $ac_status); } &&
9743 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5514 { ac_try='test -z "$ac_cxx_werror_flag"
5515 || test ! -s conftest.err'
9744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9745 (eval $ac_try) 2>&5 5517 (eval $ac_try) 2>&5
9746 ac_status=$? 5518 ac_status=$?
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); }; } && 5520 (exit $ac_status); }; } &&
9802 grep -v '^ *+' conftest.er1 >conftest.err 5574 grep -v '^ *+' conftest.er1 >conftest.err
9803 rm -f conftest.er1 5575 rm -f conftest.er1
9804 cat conftest.err >&5 5576 cat conftest.err >&5
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); } && 5578 (exit $ac_status); } &&
9807 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5579 { ac_try='test -z "$ac_cxx_werror_flag"
5580 || test ! -s conftest.err'
9808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9809 (eval $ac_try) 2>&5 5582 (eval $ac_try) 2>&5
9810 ac_status=$? 5583 ac_status=$?
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); }; } && 5585 (exit $ac_status); }; } &&
9899 grep -v '^ *+' conftest.er1 >conftest.err 5672 grep -v '^ *+' conftest.er1 >conftest.err
9900 rm -f conftest.er1 5673 rm -f conftest.er1
9901 cat conftest.err >&5 5674 cat conftest.err >&5
9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); } && 5676 (exit $ac_status); } &&
9904 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5677 { ac_try='test -z "$ac_cxx_werror_flag"
5678 || test ! -s conftest.err'
9905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9906 (eval $ac_try) 2>&5 5680 (eval $ac_try) 2>&5
9907 ac_status=$? 5681 ac_status=$?
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); }; } && 5683 (exit $ac_status); }; } &&
9963 grep -v '^ *+' conftest.er1 >conftest.err 5737 grep -v '^ *+' conftest.er1 >conftest.err
9964 rm -f conftest.er1 5738 rm -f conftest.er1
9965 cat conftest.err >&5 5739 cat conftest.err >&5
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); } && 5741 (exit $ac_status); } &&
9968 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5742 { ac_try='test -z "$ac_cxx_werror_flag"
5743 || test ! -s conftest.err'
9969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970 (eval $ac_try) 2>&5 5745 (eval $ac_try) 2>&5
9971 ac_status=$? 5746 ac_status=$?
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); }; } && 5748 (exit $ac_status); }; } &&
10060 grep -v '^ *+' conftest.er1 >conftest.err 5835 grep -v '^ *+' conftest.er1 >conftest.err
10061 rm -f conftest.er1 5836 rm -f conftest.er1
10062 cat conftest.err >&5 5837 cat conftest.err >&5
10063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064 (exit $ac_status); } && 5839 (exit $ac_status); } &&
10065 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5840 { ac_try='test -z "$ac_cxx_werror_flag"
5841 || test ! -s conftest.err'
10066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10067 (eval $ac_try) 2>&5 5843 (eval $ac_try) 2>&5
10068 ac_status=$? 5844 ac_status=$?
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); }; } && 5846 (exit $ac_status); }; } &&
10124 grep -v '^ *+' conftest.er1 >conftest.err 5900 grep -v '^ *+' conftest.er1 >conftest.err
10125 rm -f conftest.er1 5901 rm -f conftest.er1
10126 cat conftest.err >&5 5902 cat conftest.err >&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); } && 5904 (exit $ac_status); } &&
10129 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5905 { ac_try='test -z "$ac_cxx_werror_flag"
5906 || test ! -s conftest.err'
10130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10131 (eval $ac_try) 2>&5 5908 (eval $ac_try) 2>&5
10132 ac_status=$? 5909 ac_status=$?
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); }; } && 5911 (exit $ac_status); }; } &&
10203 grep -v '^ *+' conftest.er1 >conftest.err 5980 grep -v '^ *+' conftest.er1 >conftest.err
10204 rm -f conftest.er1 5981 rm -f conftest.er1
10205 cat conftest.err >&5 5982 cat conftest.err >&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); } && 5984 (exit $ac_status); } &&
10208 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5985 { ac_try='test -z "$ac_cxx_werror_flag"
5986 || test ! -s conftest.err'
10209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210 (eval $ac_try) 2>&5 5988 (eval $ac_try) 2>&5
10211 ac_status=$? 5989 ac_status=$?
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; } && 5991 (exit $ac_status); }; } &&
10238 6016
10239fi 6017fi
10240 6018
10241 6019
10242 6020
6021LIBAFTERIMAGE_CFLAGS=
6022AFTERIMAGE_LIBS=
6023have_afterimage=
6024
10243if test x$support_xpm = xyes; then 6025if test x$support_afterimage = xyes; then
6026 support_afterimage=no
6027
6028 if test "x$afterimage_config" = "x" ; then
6029 # Extract the first word of "afterimage-config", so it can be a program name with args.
6030set dummy afterimage-config; ac_word=$2
6031echo "$as_me:$LINENO: checking for $ac_word" >&5
6032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6033if test "${ac_cv_path_afterimage_config+set}" = set; then
6034 echo $ECHO_N "(cached) $ECHO_C" >&6
6035else
6036 case $afterimage_config in
6037 [\\/]* | ?:[\\/]*)
6038 ac_cv_path_afterimage_config="$afterimage_config" # Let the user override the test with a path.
6039 ;;
6040 *)
6041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042for as_dir in $PATH
6043do
6044 IFS=$as_save_IFS
6045 test -z "$as_dir" && as_dir=.
6046 for ac_exec_ext in '' $ac_executable_extensions; do
6047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6048 ac_cv_path_afterimage_config="$as_dir/$ac_word$ac_exec_ext"
6049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6050 break 2
6051 fi
6052done
6053done
6054
6055 test -z "$ac_cv_path_afterimage_config" && ac_cv_path_afterimage_config="no"
6056 ;;
6057esac
6058fi
6059afterimage_config=$ac_cv_path_afterimage_config
6060
6061if test -n "$afterimage_config"; then
6062 echo "$as_me:$LINENO: result: $afterimage_config" >&5
6063echo "${ECHO_T}$afterimage_config" >&6
6064else
6065 echo "$as_me:$LINENO: result: no" >&5
6066echo "${ECHO_T}no" >&6
6067fi
6068
6069 fi
6070
6071 echo "$as_me:$LINENO: checking for libAfterImage" >&5
6072echo $ECHO_N "checking for libAfterImage... $ECHO_C" >&6
6073 if $afterimage_config --version >/dev/null 2>&1 ; then
6074 LIBAFTERIMAGE_CFLAGS=`$afterimage_config --cflags`
6075 AFTERIMAGE_LIBS=`$afterimage_config --libs`
6076 if test "x$AFTERIMAGE_LIBS" != "x"; then
6077 support_afterimage=yes
6078 fi
6079 fi
6080
6081 if test "x$support_afterimage" = "xyes"; then
6082 echo "$as_me:$LINENO: result: $AFTERIMAGE_LIBS" >&5
6083echo "${ECHO_T}$AFTERIMAGE_LIBS" >&6
6084 else
6085 echo "$as_me:$LINENO: result: no" >&5
6086echo "${ECHO_T}no" >&6
6087 fi
6088fi
6089
6090if test x$support_afterimage != xyes -a x$support_xpm = xyes ; then
10244 6091
10245 6092
10246 6093
10247# Initialize some more variables set by options. 6094# Initialize some more variables set by options.
10248# The variables have the same names as the options, with 6095# The variables have the same names as the options, with
10419 grep -v '^ *+' conftest.er1 >conftest.err 6266 grep -v '^ *+' conftest.er1 >conftest.err
10420 rm -f conftest.er1 6267 rm -f conftest.er1
10421 cat conftest.err >&5 6268 cat conftest.err >&5
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); } && 6270 (exit $ac_status); } &&
10424 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6271 { ac_try='test -z "$ac_cxx_werror_flag"
6272 || test ! -s conftest.err'
10425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10426 (eval $ac_try) 2>&5 6274 (eval $ac_try) 2>&5
10427 ac_status=$? 6275 ac_status=$?
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); }; } && 6277 (exit $ac_status); }; } &&
10633 grep -v '^ *+' conftest.er1 >conftest.err 6481 grep -v '^ *+' conftest.er1 >conftest.err
10634 rm -f conftest.er1 6482 rm -f conftest.er1
10635 cat conftest.err >&5 6483 cat conftest.err >&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); } && 6485 (exit $ac_status); } &&
10638 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6486 { ac_try='test -z "$ac_cxx_werror_flag"
6487 || test ! -s conftest.err'
10639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10640 (eval $ac_try) 2>&5 6489 (eval $ac_try) 2>&5
10641 ac_status=$? 6490 ac_status=$?
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); }; } && 6492 (exit $ac_status); }; } &&
10664#define HAVE_SYS_WAIT_H 1 6513#define HAVE_SYS_WAIT_H 1
10665_ACEOF 6514_ACEOF
10666 6515
10667fi 6516fi
10668 6517
6518echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6519echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6520if test "${ac_cv_header_stdc+set}" = set; then
6521 echo $ECHO_N "(cached) $ECHO_C" >&6
6522else
6523 cat >conftest.$ac_ext <<_ACEOF
6524/* confdefs.h. */
6525_ACEOF
6526cat confdefs.h >>conftest.$ac_ext
6527cat >>conftest.$ac_ext <<_ACEOF
6528/* end confdefs.h. */
6529#include <stdlib.h>
6530#include <stdarg.h>
6531#include <string.h>
6532#include <float.h>
6533
6534int
6535main ()
6536{
6537
6538 ;
6539 return 0;
6540}
6541_ACEOF
6542rm -f conftest.$ac_objext
6543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6544 (eval $ac_compile) 2>conftest.er1
6545 ac_status=$?
6546 grep -v '^ *+' conftest.er1 >conftest.err
6547 rm -f conftest.er1
6548 cat conftest.err >&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } &&
6551 { ac_try='test -z "$ac_cxx_werror_flag"
6552 || test ! -s conftest.err'
6553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6554 (eval $ac_try) 2>&5
6555 ac_status=$?
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }; } &&
6558 { ac_try='test -s conftest.$ac_objext'
6559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6560 (eval $ac_try) 2>&5
6561 ac_status=$?
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); }; }; then
6564 ac_cv_header_stdc=yes
6565else
6566 echo "$as_me: failed program was:" >&5
6567sed 's/^/| /' conftest.$ac_ext >&5
6568
6569ac_cv_header_stdc=no
6570fi
6571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6572
6573if test $ac_cv_header_stdc = yes; then
6574 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6575 cat >conftest.$ac_ext <<_ACEOF
6576/* confdefs.h. */
6577_ACEOF
6578cat confdefs.h >>conftest.$ac_ext
6579cat >>conftest.$ac_ext <<_ACEOF
6580/* end confdefs.h. */
6581#include <string.h>
6582
6583_ACEOF
6584if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6585 $EGREP "memchr" >/dev/null 2>&1; then
6586 :
6587else
6588 ac_cv_header_stdc=no
6589fi
6590rm -f conftest*
6591
6592fi
6593
6594if test $ac_cv_header_stdc = yes; then
6595 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6596 cat >conftest.$ac_ext <<_ACEOF
6597/* confdefs.h. */
6598_ACEOF
6599cat confdefs.h >>conftest.$ac_ext
6600cat >>conftest.$ac_ext <<_ACEOF
6601/* end confdefs.h. */
6602#include <stdlib.h>
6603
6604_ACEOF
6605if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6606 $EGREP "free" >/dev/null 2>&1; then
6607 :
6608else
6609 ac_cv_header_stdc=no
6610fi
6611rm -f conftest*
6612
6613fi
6614
6615if test $ac_cv_header_stdc = yes; then
6616 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6617 if test "$cross_compiling" = yes; then
6618 :
6619else
6620 cat >conftest.$ac_ext <<_ACEOF
6621/* confdefs.h. */
6622_ACEOF
6623cat confdefs.h >>conftest.$ac_ext
6624cat >>conftest.$ac_ext <<_ACEOF
6625/* end confdefs.h. */
6626#include <ctype.h>
6627#if ((' ' & 0x0FF) == 0x020)
6628# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6629# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6630#else
6631# define ISLOWER(c) \
6632 (('a' <= (c) && (c) <= 'i') \
6633 || ('j' <= (c) && (c) <= 'r') \
6634 || ('s' <= (c) && (c) <= 'z'))
6635# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6636#endif
6637
6638#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6639int
6640main ()
6641{
6642 int i;
6643 for (i = 0; i < 256; i++)
6644 if (XOR (islower (i), ISLOWER (i))
6645 || toupper (i) != TOUPPER (i))
6646 exit(2);
6647 exit (0);
6648}
6649_ACEOF
6650rm -f conftest$ac_exeext
6651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6652 (eval $ac_link) 2>&5
6653 ac_status=$?
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6657 (eval $ac_try) 2>&5
6658 ac_status=$?
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); }; }; then
6661 :
6662else
6663 echo "$as_me: program exited with status $ac_status" >&5
6664echo "$as_me: failed program was:" >&5
6665sed 's/^/| /' conftest.$ac_ext >&5
6666
6667( exit $ac_status )
6668ac_cv_header_stdc=no
6669fi
6670rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6671fi
6672fi
6673fi
6674echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6675echo "${ECHO_T}$ac_cv_header_stdc" >&6
6676if test $ac_cv_header_stdc = yes; then
6677
6678cat >>confdefs.h <<\_ACEOF
6679#define STDC_HEADERS 1
6680_ACEOF
6681
6682fi
6683
6684# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6695 inttypes.h stdint.h unistd.h
6696do
6697as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6698echo "$as_me:$LINENO: checking for $ac_header" >&5
6699echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6700if eval "test \"\${$as_ac_Header+set}\" = set"; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6702else
6703 cat >conftest.$ac_ext <<_ACEOF
6704/* confdefs.h. */
6705_ACEOF
6706cat confdefs.h >>conftest.$ac_ext
6707cat >>conftest.$ac_ext <<_ACEOF
6708/* end confdefs.h. */
6709$ac_includes_default
6710
6711#include <$ac_header>
6712_ACEOF
6713rm -f conftest.$ac_objext
6714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6715 (eval $ac_compile) 2>conftest.er1
6716 ac_status=$?
6717 grep -v '^ *+' conftest.er1 >conftest.err
6718 rm -f conftest.er1
6719 cat conftest.err >&5
6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); } &&
6722 { ac_try='test -z "$ac_cxx_werror_flag"
6723 || test ! -s conftest.err'
6724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6725 (eval $ac_try) 2>&5
6726 ac_status=$?
6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); }; } &&
6729 { ac_try='test -s conftest.$ac_objext'
6730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6731 (eval $ac_try) 2>&5
6732 ac_status=$?
6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734 (exit $ac_status); }; }; then
6735 eval "$as_ac_Header=yes"
6736else
6737 echo "$as_me: failed program was:" >&5
6738sed 's/^/| /' conftest.$ac_ext >&5
6739
6740eval "$as_ac_Header=no"
6741fi
6742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6743fi
6744echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6745echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6746if test `eval echo '${'$as_ac_Header'}'` = yes; then
6747 cat >>confdefs.h <<_ACEOF
6748#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6749_ACEOF
6750
6751fi
6752
6753done
10669 6754
10670 6755
10671 6756
10672 6757
10673 6758
10686 6771
10687 6772
10688for ac_header in \ 6773for ac_header in \
10689 assert.h \ 6774 assert.h \
10690 fcntl.h \ 6775 fcntl.h \
10691 grp.h \
10692 libc.h \
10693 lastlog.h \
10694 stdarg.h \ 6776 stdarg.h \
10695 stdlib.h \ 6777 stdlib.h \
10696 string.h \ 6778 string.h \
10697 termios.h \ 6779 termios.h \
10698 unistd.h \ 6780 unistd.h \
10700 sys/ioctl.h \ 6782 sys/ioctl.h \
10701 sys/select.h \ 6783 sys/select.h \
10702 sys/sockio.h \ 6784 sys/sockio.h \
10703 sys/strredir.h \ 6785 sys/strredir.h \
10704 sys/time.h \ 6786 sys/time.h \
10705 utmp.h \ 6787 stdint.h \
10706 utmpx.h \ 6788 wchar.h \
10707 stdint.h \ 6789 cwchar \
6790 clocale \
10708 6791
10709do 6792do
10710as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6793as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10711if eval "test \"\${$as_ac_Header+set}\" = set"; then 6794if eval "test \"\${$as_ac_Header+set}\" = set"; then
10712 echo "$as_me:$LINENO: checking for $ac_header" >&5 6795 echo "$as_me:$LINENO: checking for $ac_header" >&5
10736 grep -v '^ *+' conftest.er1 >conftest.err 6819 grep -v '^ *+' conftest.er1 >conftest.err
10737 rm -f conftest.er1 6820 rm -f conftest.er1
10738 cat conftest.err >&5 6821 cat conftest.err >&5
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); } && 6823 (exit $ac_status); } &&
10741 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6824 { ac_try='test -z "$ac_cxx_werror_flag"
6825 || test ! -s conftest.err'
10742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10743 (eval $ac_try) 2>&5 6827 (eval $ac_try) 2>&5
10744 ac_status=$? 6828 ac_status=$?
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); }; } && 6830 (exit $ac_status); }; } &&
10885 grep -v '^ *+' conftest.er1 >conftest.err 6969 grep -v '^ *+' conftest.er1 >conftest.err
10886 rm -f conftest.er1 6970 rm -f conftest.er1
10887 cat conftest.err >&5 6971 cat conftest.err >&5
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); } && 6973 (exit $ac_status); } &&
10890 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6974 { ac_try='test -z "$ac_cxx_werror_flag"
6975 || test ! -s conftest.err'
10891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10892 (eval $ac_try) 2>&5 6977 (eval $ac_try) 2>&5
10893 ac_status=$? 6978 ac_status=$?
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); }; } && 6980 (exit $ac_status); }; } &&
10950 grep -v '^ *+' conftest.er1 >conftest.err 7035 grep -v '^ *+' conftest.er1 >conftest.err
10951 rm -f conftest.er1 7036 rm -f conftest.er1
10952 cat conftest.err >&5 7037 cat conftest.err >&5
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); } && 7039 (exit $ac_status); } &&
10955 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7040 { ac_try='test -z "$ac_cxx_werror_flag"
7041 || test ! -s conftest.err'
10956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10957 (eval $ac_try) 2>&5 7043 (eval $ac_try) 2>&5
10958 ac_status=$? 7044 ac_status=$?
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); }; } && 7046 (exit $ac_status); }; } &&
11000/* confdefs.h. */ 7086/* confdefs.h. */
11001_ACEOF 7087_ACEOF
11002cat confdefs.h >>conftest.$ac_ext 7088cat confdefs.h >>conftest.$ac_ext
11003cat >>conftest.$ac_ext <<_ACEOF 7089cat >>conftest.$ac_ext <<_ACEOF
11004/* end confdefs.h. */ 7090/* end confdefs.h. */
11005 7091#include <X11/Xlib.h>
7092#include <stdlib.h>
11006main() 7093main()
11007{ 7094{
11008 exit(0); 7095 exit(0);
11009 (void) XOpenDisplay("foobar"); 7096 (void) XOpenDisplay("foobar");
11010} 7097}
11049/* confdefs.h. */ 7136/* confdefs.h. */
11050_ACEOF 7137_ACEOF
11051cat confdefs.h >>conftest.$ac_ext 7138cat confdefs.h >>conftest.$ac_ext
11052cat >>conftest.$ac_ext <<_ACEOF 7139cat >>conftest.$ac_ext <<_ACEOF
11053/* end confdefs.h. */ 7140/* end confdefs.h. */
11054 7141#include <X11/Xlib.h>
7142#include <stdlib.h>
11055main() 7143main()
11056{ 7144{
11057 exit(0); 7145 exit(0);
11058 (void) XOpenDisplay("foobar"); 7146 (void) XOpenDisplay("foobar");
11059} 7147}
11115 grep -v '^ *+' conftest.er1 >conftest.err 7203 grep -v '^ *+' conftest.er1 >conftest.err
11116 rm -f conftest.er1 7204 rm -f conftest.er1
11117 cat conftest.err >&5 7205 cat conftest.err >&5
11118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); } && 7207 (exit $ac_status); } &&
11120 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7208 { ac_try='test -z "$ac_cxx_werror_flag"
7209 || test ! -s conftest.err'
11121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11122 (eval $ac_try) 2>&5 7211 (eval $ac_try) 2>&5
11123 ac_status=$? 7212 ac_status=$?
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); }; } && 7214 (exit $ac_status); }; } &&
11148 7237
11149fi 7238fi
11150LIBS=$ac_save_LIBS 7239LIBS=$ac_save_LIBS
11151CFLAGS=$ac_save_CFLAGS 7240CFLAGS=$ac_save_CFLAGS
11152 7241
7242echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5
7243echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6
7244if test "${rxvt_xlib_illegal_access+set}" = set; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7246else
7247 cat >conftest.$ac_ext <<_ACEOF
7248/* confdefs.h. */
7249_ACEOF
7250cat confdefs.h >>conftest.$ac_ext
7251cat >>conftest.$ac_ext <<_ACEOF
7252/* end confdefs.h. */
7253
7254#define XLIB_ILLEGAL_ACCESS
7255#include <X11/Xlib.h>
7256
7257int
7258main ()
7259{
7260
7261 Display *dpy;
7262 dpy->xdefaults = (char *)0;
7263
7264 ;
7265 return 0;
7266}
7267_ACEOF
7268rm -f conftest.$ac_objext
7269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7270 (eval $ac_compile) 2>conftest.er1
7271 ac_status=$?
7272 grep -v '^ *+' conftest.er1 >conftest.err
7273 rm -f conftest.er1
7274 cat conftest.err >&5
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); } &&
7277 { ac_try='test -z "$ac_cxx_werror_flag"
7278 || test ! -s conftest.err'
7279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280 (eval $ac_try) 2>&5
7281 ac_status=$?
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); }; } &&
7284 { ac_try='test -s conftest.$ac_objext'
7285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7286 (eval $ac_try) 2>&5
7287 ac_status=$?
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); }; }; then
7290 rxvt_xlib_illegal_access=yes
7291else
7292 echo "$as_me: failed program was:" >&5
7293sed 's/^/| /' conftest.$ac_ext >&5
7294
7295rxvt_xlib_illegal_access=no
7296
7297fi
7298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7299fi
7300echo "$as_me:$LINENO: result: $rxvt_xlib_illegal_access" >&5
7301echo "${ECHO_T}$rxvt_xlib_illegal_access" >&6
7302if test x$rxvt_xlib_illegal_access = xyes; then
7303
7304cat >>confdefs.h <<\_ACEOF
7305#define XLIB_ILLEGAL_ACCESS 1
7306_ACEOF
7307
7308fi
11153 7309
11154echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 7310echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11155echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 7311echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11156if test "${ac_cv_c_const+set}" = set; then 7312if test "${ac_cv_c_const+set}" = set; then
11157 echo $ECHO_N "(cached) $ECHO_C" >&6 7313 echo $ECHO_N "(cached) $ECHO_C" >&6
11224 grep -v '^ *+' conftest.er1 >conftest.err 7380 grep -v '^ *+' conftest.er1 >conftest.err
11225 rm -f conftest.er1 7381 rm -f conftest.er1
11226 cat conftest.err >&5 7382 cat conftest.err >&5
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); } && 7384 (exit $ac_status); } &&
11229 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7385 { ac_try='test -z "$ac_cxx_werror_flag"
7386 || test ! -s conftest.err'
11230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11231 (eval $ac_try) 2>&5 7388 (eval $ac_try) 2>&5
11232 ac_status=$? 7389 ac_status=$?
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); }; } && 7391 (exit $ac_status); }; } &&
11284 grep -v '^ *+' conftest.er1 >conftest.err 7441 grep -v '^ *+' conftest.er1 >conftest.err
11285 rm -f conftest.er1 7442 rm -f conftest.er1
11286 cat conftest.err >&5 7443 cat conftest.err >&5
11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); } && 7445 (exit $ac_status); } &&
11289 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7446 { ac_try='test -z "$ac_cxx_werror_flag"
7447 || test ! -s conftest.err'
11290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11291 (eval $ac_try) 2>&5 7449 (eval $ac_try) 2>&5
11292 ac_status=$? 7450 ac_status=$?
11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 (exit $ac_status); }; } && 7452 (exit $ac_status); }; } &&
11359 grep -v '^ *+' conftest.er1 >conftest.err 7517 grep -v '^ *+' conftest.er1 >conftest.err
11360 rm -f conftest.er1 7518 rm -f conftest.er1
11361 cat conftest.err >&5 7519 cat conftest.err >&5
11362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363 (exit $ac_status); } && 7521 (exit $ac_status); } &&
11364 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7522 { ac_try='test -z "$ac_cxx_werror_flag"
7523 || test ! -s conftest.err'
11365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11366 (eval $ac_try) 2>&5 7525 (eval $ac_try) 2>&5
11367 ac_status=$? 7526 ac_status=$?
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); }; } && 7528 (exit $ac_status); }; } &&
11424 grep -v '^ *+' conftest.er1 >conftest.err 7583 grep -v '^ *+' conftest.er1 >conftest.err
11425 rm -f conftest.er1 7584 rm -f conftest.er1
11426 cat conftest.err >&5 7585 cat conftest.err >&5
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); } && 7587 (exit $ac_status); } &&
11429 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7588 { ac_try='test -z "$ac_cxx_werror_flag"
7589 || test ! -s conftest.err'
11430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11431 (eval $ac_try) 2>&5 7591 (eval $ac_try) 2>&5
11432 ac_status=$? 7592 ac_status=$?
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); }; } && 7594 (exit $ac_status); }; } &&
11494cat >>confdefs.h <<\_ACEOF 7654cat >>confdefs.h <<\_ACEOF
11495#define gid_t int 7655#define gid_t int
11496_ACEOF 7656_ACEOF
11497 7657
11498fi 7658fi
11499
11500
11501
11502echo "$as_me:$LINENO: checking for char" >&5
11503echo $ECHO_N "checking for char... $ECHO_C" >&6
11504if test "${ac_cv_type_char+set}" = set; then
11505 echo $ECHO_N "(cached) $ECHO_C" >&6
11506else
11507 cat >conftest.$ac_ext <<_ACEOF
11508/* confdefs.h. */
11509_ACEOF
11510cat confdefs.h >>conftest.$ac_ext
11511cat >>conftest.$ac_ext <<_ACEOF
11512/* end confdefs.h. */
11513$ac_includes_default
11514int
11515main ()
11516{
11517if ((char *) 0)
11518 return 0;
11519if (sizeof (char))
11520 return 0;
11521 ;
11522 return 0;
11523}
11524_ACEOF
11525rm -f conftest.$ac_objext
11526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11527 (eval $ac_compile) 2>conftest.er1
11528 ac_status=$?
11529 grep -v '^ *+' conftest.er1 >conftest.err
11530 rm -f conftest.er1
11531 cat conftest.err >&5
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); } &&
11534 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11536 (eval $ac_try) 2>&5
11537 ac_status=$?
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); }; } &&
11540 { ac_try='test -s conftest.$ac_objext'
11541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11542 (eval $ac_try) 2>&5
11543 ac_status=$?
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); }; }; then
11546 ac_cv_type_char=yes
11547else
11548 echo "$as_me: failed program was:" >&5
11549sed 's/^/| /' conftest.$ac_ext >&5
11550
11551ac_cv_type_char=no
11552fi
11553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11554fi
11555echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11556echo "${ECHO_T}$ac_cv_type_char" >&6
11557
11558echo "$as_me:$LINENO: checking size of char" >&5
11559echo $ECHO_N "checking size of char... $ECHO_C" >&6
11560if test "${ac_cv_sizeof_char+set}" = set; then
11561 echo $ECHO_N "(cached) $ECHO_C" >&6
11562else
11563 if test "$ac_cv_type_char" = yes; then
11564 # The cast to unsigned long works around a bug in the HP C Compiler
11565 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11566 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11567 # This bug is HP SR number 8606223364.
11568 if test "$cross_compiling" = yes; then
11569 # Depending upon the size, compute the lo and hi bounds.
11570cat >conftest.$ac_ext <<_ACEOF
11571/* confdefs.h. */
11572_ACEOF
11573cat confdefs.h >>conftest.$ac_ext
11574cat >>conftest.$ac_ext <<_ACEOF
11575/* end confdefs.h. */
11576$ac_includes_default
11577int
11578main ()
11579{
11580static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11581test_array [0] = 0
11582
11583 ;
11584 return 0;
11585}
11586_ACEOF
11587rm -f conftest.$ac_objext
11588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11589 (eval $ac_compile) 2>conftest.er1
11590 ac_status=$?
11591 grep -v '^ *+' conftest.er1 >conftest.err
11592 rm -f conftest.er1
11593 cat conftest.err >&5
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); } &&
11596 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11598 (eval $ac_try) 2>&5
11599 ac_status=$?
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); }; } &&
11602 { ac_try='test -s conftest.$ac_objext'
11603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11604 (eval $ac_try) 2>&5
11605 ac_status=$?
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); }; }; then
11608 ac_lo=0 ac_mid=0
11609 while :; do
11610 cat >conftest.$ac_ext <<_ACEOF
11611/* confdefs.h. */
11612_ACEOF
11613cat confdefs.h >>conftest.$ac_ext
11614cat >>conftest.$ac_ext <<_ACEOF
11615/* end confdefs.h. */
11616$ac_includes_default
11617int
11618main ()
11619{
11620static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11621test_array [0] = 0
11622
11623 ;
11624 return 0;
11625}
11626_ACEOF
11627rm -f conftest.$ac_objext
11628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11629 (eval $ac_compile) 2>conftest.er1
11630 ac_status=$?
11631 grep -v '^ *+' conftest.er1 >conftest.err
11632 rm -f conftest.er1
11633 cat conftest.err >&5
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); } &&
11636 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11638 (eval $ac_try) 2>&5
11639 ac_status=$?
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); }; } &&
11642 { ac_try='test -s conftest.$ac_objext'
11643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11644 (eval $ac_try) 2>&5
11645 ac_status=$?
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); }; }; then
11648 ac_hi=$ac_mid; break
11649else
11650 echo "$as_me: failed program was:" >&5
11651sed 's/^/| /' conftest.$ac_ext >&5
11652
11653ac_lo=`expr $ac_mid + 1`
11654 if test $ac_lo -le $ac_mid; then
11655 ac_lo= ac_hi=
11656 break
11657 fi
11658 ac_mid=`expr 2 '*' $ac_mid + 1`
11659fi
11660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11661 done
11662else
11663 echo "$as_me: failed program was:" >&5
11664sed 's/^/| /' conftest.$ac_ext >&5
11665
11666cat >conftest.$ac_ext <<_ACEOF
11667/* confdefs.h. */
11668_ACEOF
11669cat confdefs.h >>conftest.$ac_ext
11670cat >>conftest.$ac_ext <<_ACEOF
11671/* end confdefs.h. */
11672$ac_includes_default
11673int
11674main ()
11675{
11676static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
11677test_array [0] = 0
11678
11679 ;
11680 return 0;
11681}
11682_ACEOF
11683rm -f conftest.$ac_objext
11684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11685 (eval $ac_compile) 2>conftest.er1
11686 ac_status=$?
11687 grep -v '^ *+' conftest.er1 >conftest.err
11688 rm -f conftest.er1
11689 cat conftest.err >&5
11690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691 (exit $ac_status); } &&
11692 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11694 (eval $ac_try) 2>&5
11695 ac_status=$?
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); }; } &&
11698 { ac_try='test -s conftest.$ac_objext'
11699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11700 (eval $ac_try) 2>&5
11701 ac_status=$?
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); }; }; then
11704 ac_hi=-1 ac_mid=-1
11705 while :; do
11706 cat >conftest.$ac_ext <<_ACEOF
11707/* confdefs.h. */
11708_ACEOF
11709cat confdefs.h >>conftest.$ac_ext
11710cat >>conftest.$ac_ext <<_ACEOF
11711/* end confdefs.h. */
11712$ac_includes_default
11713int
11714main ()
11715{
11716static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11717test_array [0] = 0
11718
11719 ;
11720 return 0;
11721}
11722_ACEOF
11723rm -f conftest.$ac_objext
11724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11725 (eval $ac_compile) 2>conftest.er1
11726 ac_status=$?
11727 grep -v '^ *+' conftest.er1 >conftest.err
11728 rm -f conftest.er1
11729 cat conftest.err >&5
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); } &&
11732 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734 (eval $ac_try) 2>&5
11735 ac_status=$?
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; } &&
11738 { ac_try='test -s conftest.$ac_objext'
11739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11740 (eval $ac_try) 2>&5
11741 ac_status=$?
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); }; }; then
11744 ac_lo=$ac_mid; break
11745else
11746 echo "$as_me: failed program was:" >&5
11747sed 's/^/| /' conftest.$ac_ext >&5
11748
11749ac_hi=`expr '(' $ac_mid ')' - 1`
11750 if test $ac_mid -le $ac_hi; then
11751 ac_lo= ac_hi=
11752 break
11753 fi
11754 ac_mid=`expr 2 '*' $ac_mid`
11755fi
11756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11757 done
11758else
11759 echo "$as_me: failed program was:" >&5
11760sed 's/^/| /' conftest.$ac_ext >&5
11761
11762ac_lo= ac_hi=
11763fi
11764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11765fi
11766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11767# Binary search between lo and hi bounds.
11768while test "x$ac_lo" != "x$ac_hi"; do
11769 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11770 cat >conftest.$ac_ext <<_ACEOF
11771/* confdefs.h. */
11772_ACEOF
11773cat confdefs.h >>conftest.$ac_ext
11774cat >>conftest.$ac_ext <<_ACEOF
11775/* end confdefs.h. */
11776$ac_includes_default
11777int
11778main ()
11779{
11780static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11781test_array [0] = 0
11782
11783 ;
11784 return 0;
11785}
11786_ACEOF
11787rm -f conftest.$ac_objext
11788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11789 (eval $ac_compile) 2>conftest.er1
11790 ac_status=$?
11791 grep -v '^ *+' conftest.er1 >conftest.err
11792 rm -f conftest.er1
11793 cat conftest.err >&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } &&
11796 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798 (eval $ac_try) 2>&5
11799 ac_status=$?
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); }; } &&
11802 { ac_try='test -s conftest.$ac_objext'
11803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11804 (eval $ac_try) 2>&5
11805 ac_status=$?
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); }; }; then
11808 ac_hi=$ac_mid
11809else
11810 echo "$as_me: failed program was:" >&5
11811sed 's/^/| /' conftest.$ac_ext >&5
11812
11813ac_lo=`expr '(' $ac_mid ')' + 1`
11814fi
11815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11816done
11817case $ac_lo in
11818?*) ac_cv_sizeof_char=$ac_lo;;
11819'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11820See \`config.log' for more details." >&5
11821echo "$as_me: error: cannot compute sizeof (char), 77
11822See \`config.log' for more details." >&2;}
11823 { (exit 1); exit 1; }; } ;;
11824esac
11825else
11826 if test "$cross_compiling" = yes; then
11827 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
11828echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
11829 { (exit 1); exit 1; }; }
11830else
11831 cat >conftest.$ac_ext <<_ACEOF
11832/* confdefs.h. */
11833_ACEOF
11834cat confdefs.h >>conftest.$ac_ext
11835cat >>conftest.$ac_ext <<_ACEOF
11836/* end confdefs.h. */
11837$ac_includes_default
11838long longval () { return (long) (sizeof (char)); }
11839unsigned long ulongval () { return (long) (sizeof (char)); }
11840#include <stdio.h>
11841#include <stdlib.h>
11842int
11843main ()
11844{
11845
11846 FILE *f = fopen ("conftest.val", "w");
11847 if (! f)
11848 exit (1);
11849 if (((long) (sizeof (char))) < 0)
11850 {
11851 long i = longval ();
11852 if (i != ((long) (sizeof (char))))
11853 exit (1);
11854 fprintf (f, "%ld\n", i);
11855 }
11856 else
11857 {
11858 unsigned long i = ulongval ();
11859 if (i != ((long) (sizeof (char))))
11860 exit (1);
11861 fprintf (f, "%lu\n", i);
11862 }
11863 exit (ferror (f) || fclose (f) != 0);
11864
11865 ;
11866 return 0;
11867}
11868_ACEOF
11869rm -f conftest$ac_exeext
11870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11871 (eval $ac_link) 2>&5
11872 ac_status=$?
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11876 (eval $ac_try) 2>&5
11877 ac_status=$?
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); }; }; then
11880 ac_cv_sizeof_char=`cat conftest.val`
11881else
11882 echo "$as_me: program exited with status $ac_status" >&5
11883echo "$as_me: failed program was:" >&5
11884sed 's/^/| /' conftest.$ac_ext >&5
11885
11886( exit $ac_status )
11887{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11888See \`config.log' for more details." >&5
11889echo "$as_me: error: cannot compute sizeof (char), 77
11890See \`config.log' for more details." >&2;}
11891 { (exit 1); exit 1; }; }
11892fi
11893rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11894fi
11895fi
11896rm -f conftest.val
11897else
11898 ac_cv_sizeof_char=0
11899fi
11900fi
11901echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
11902echo "${ECHO_T}$ac_cv_sizeof_char" >&6
11903cat >>confdefs.h <<_ACEOF
11904#define SIZEOF_CHAR $ac_cv_sizeof_char
11905_ACEOF
11906 7659
11907 7660
11908echo "$as_me:$LINENO: checking for short" >&5 7661echo "$as_me:$LINENO: checking for short" >&5
11909echo $ECHO_N "checking for short... $ECHO_C" >&6 7662echo $ECHO_N "checking for short... $ECHO_C" >&6
11910if test "${ac_cv_type_short+set}" = set; then 7663if test "${ac_cv_type_short+set}" = set; then
11935 grep -v '^ *+' conftest.er1 >conftest.err 7688 grep -v '^ *+' conftest.er1 >conftest.err
11936 rm -f conftest.er1 7689 rm -f conftest.er1
11937 cat conftest.err >&5 7690 cat conftest.err >&5
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); } && 7692 (exit $ac_status); } &&
11940 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7693 { ac_try='test -z "$ac_cxx_werror_flag"
7694 || test ! -s conftest.err'
11941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942 (eval $ac_try) 2>&5 7696 (eval $ac_try) 2>&5
11943 ac_status=$? 7697 ac_status=$?
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; } && 7699 (exit $ac_status); }; } &&
11997 grep -v '^ *+' conftest.er1 >conftest.err 7751 grep -v '^ *+' conftest.er1 >conftest.err
11998 rm -f conftest.er1 7752 rm -f conftest.er1
11999 cat conftest.err >&5 7753 cat conftest.err >&5
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); } && 7755 (exit $ac_status); } &&
12002 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7756 { ac_try='test -z "$ac_cxx_werror_flag"
7757 || test ! -s conftest.err'
12003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004 (eval $ac_try) 2>&5 7759 (eval $ac_try) 2>&5
12005 ac_status=$? 7760 ac_status=$?
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); }; } && 7762 (exit $ac_status); }; } &&
12037 grep -v '^ *+' conftest.er1 >conftest.err 7792 grep -v '^ *+' conftest.er1 >conftest.err
12038 rm -f conftest.er1 7793 rm -f conftest.er1
12039 cat conftest.err >&5 7794 cat conftest.err >&5
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); } && 7796 (exit $ac_status); } &&
12042 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7797 { ac_try='test -z "$ac_cxx_werror_flag"
7798 || test ! -s conftest.err'
12043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044 (eval $ac_try) 2>&5 7800 (eval $ac_try) 2>&5
12045 ac_status=$? 7801 ac_status=$?
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }; } && 7803 (exit $ac_status); }; } &&
12093 grep -v '^ *+' conftest.er1 >conftest.err 7849 grep -v '^ *+' conftest.er1 >conftest.err
12094 rm -f conftest.er1 7850 rm -f conftest.er1
12095 cat conftest.err >&5 7851 cat conftest.err >&5
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); } && 7853 (exit $ac_status); } &&
12098 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7854 { ac_try='test -z "$ac_cxx_werror_flag"
7855 || test ! -s conftest.err'
12099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12100 (eval $ac_try) 2>&5 7857 (eval $ac_try) 2>&5
12101 ac_status=$? 7858 ac_status=$?
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); }; } && 7860 (exit $ac_status); }; } &&
12133 grep -v '^ *+' conftest.er1 >conftest.err 7890 grep -v '^ *+' conftest.er1 >conftest.err
12134 rm -f conftest.er1 7891 rm -f conftest.er1
12135 cat conftest.err >&5 7892 cat conftest.err >&5
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); } && 7894 (exit $ac_status); } &&
12138 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7895 { ac_try='test -z "$ac_cxx_werror_flag"
7896 || test ! -s conftest.err'
12139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12140 (eval $ac_try) 2>&5 7898 (eval $ac_try) 2>&5
12141 ac_status=$? 7899 ac_status=$?
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); }; } && 7901 (exit $ac_status); }; } &&
12197 grep -v '^ *+' conftest.er1 >conftest.err 7955 grep -v '^ *+' conftest.er1 >conftest.err
12198 rm -f conftest.er1 7956 rm -f conftest.er1
12199 cat conftest.err >&5 7957 cat conftest.err >&5
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); } && 7959 (exit $ac_status); } &&
12202 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7960 { ac_try='test -z "$ac_cxx_werror_flag"
7961 || test ! -s conftest.err'
12203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12204 (eval $ac_try) 2>&5 7963 (eval $ac_try) 2>&5
12205 ac_status=$? 7964 ac_status=$?
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); }; } && 7966 (exit $ac_status); }; } &&
12228See \`config.log' for more details." >&2;} 7987See \`config.log' for more details." >&2;}
12229 { (exit 1); exit 1; }; } ;; 7988 { (exit 1); exit 1; }; } ;;
12230esac 7989esac
12231else 7990else
12232 if test "$cross_compiling" = yes; then 7991 if test "$cross_compiling" = yes; then
12233 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 7992 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12234echo "$as_me: error: internal error: not reached in cross-compile" >&2;} 7993See \`config.log' for more details." >&5
7994echo "$as_me: error: cannot run test program while cross compiling
7995See \`config.log' for more details." >&2;}
12235 { (exit 1); exit 1; }; } 7996 { (exit 1); exit 1; }; }
12236else 7997else
12237 cat >conftest.$ac_ext <<_ACEOF 7998 cat >conftest.$ac_ext <<_ACEOF
12238/* confdefs.h. */ 7999/* confdefs.h. */
12239_ACEOF 8000_ACEOF
12341 grep -v '^ *+' conftest.er1 >conftest.err 8102 grep -v '^ *+' conftest.er1 >conftest.err
12342 rm -f conftest.er1 8103 rm -f conftest.er1
12343 cat conftest.err >&5 8104 cat conftest.err >&5
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); } && 8106 (exit $ac_status); } &&
12346 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8107 { ac_try='test -z "$ac_cxx_werror_flag"
8108 || test ! -s conftest.err'
12347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12348 (eval $ac_try) 2>&5 8110 (eval $ac_try) 2>&5
12349 ac_status=$? 8111 ac_status=$?
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); }; } && 8113 (exit $ac_status); }; } &&
12403 grep -v '^ *+' conftest.er1 >conftest.err 8165 grep -v '^ *+' conftest.er1 >conftest.err
12404 rm -f conftest.er1 8166 rm -f conftest.er1
12405 cat conftest.err >&5 8167 cat conftest.err >&5
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); } && 8169 (exit $ac_status); } &&
12408 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8170 { ac_try='test -z "$ac_cxx_werror_flag"
8171 || test ! -s conftest.err'
12409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12410 (eval $ac_try) 2>&5 8173 (eval $ac_try) 2>&5
12411 ac_status=$? 8174 ac_status=$?
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); }; } && 8176 (exit $ac_status); }; } &&
12443 grep -v '^ *+' conftest.er1 >conftest.err 8206 grep -v '^ *+' conftest.er1 >conftest.err
12444 rm -f conftest.er1 8207 rm -f conftest.er1
12445 cat conftest.err >&5 8208 cat conftest.err >&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); } && 8210 (exit $ac_status); } &&
12448 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8211 { ac_try='test -z "$ac_cxx_werror_flag"
8212 || test ! -s conftest.err'
12449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450 (eval $ac_try) 2>&5 8214 (eval $ac_try) 2>&5
12451 ac_status=$? 8215 ac_status=$?
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; } && 8217 (exit $ac_status); }; } &&
12499 grep -v '^ *+' conftest.er1 >conftest.err 8263 grep -v '^ *+' conftest.er1 >conftest.err
12500 rm -f conftest.er1 8264 rm -f conftest.er1
12501 cat conftest.err >&5 8265 cat conftest.err >&5
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); } && 8267 (exit $ac_status); } &&
12504 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8268 { ac_try='test -z "$ac_cxx_werror_flag"
8269 || test ! -s conftest.err'
12505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12506 (eval $ac_try) 2>&5 8271 (eval $ac_try) 2>&5
12507 ac_status=$? 8272 ac_status=$?
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); }; } && 8274 (exit $ac_status); }; } &&
12539 grep -v '^ *+' conftest.er1 >conftest.err 8304 grep -v '^ *+' conftest.er1 >conftest.err
12540 rm -f conftest.er1 8305 rm -f conftest.er1
12541 cat conftest.err >&5 8306 cat conftest.err >&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } && 8308 (exit $ac_status); } &&
12544 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8309 { ac_try='test -z "$ac_cxx_werror_flag"
8310 || test ! -s conftest.err'
12545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12546 (eval $ac_try) 2>&5 8312 (eval $ac_try) 2>&5
12547 ac_status=$? 8313 ac_status=$?
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; } && 8315 (exit $ac_status); }; } &&
12603 grep -v '^ *+' conftest.er1 >conftest.err 8369 grep -v '^ *+' conftest.er1 >conftest.err
12604 rm -f conftest.er1 8370 rm -f conftest.er1
12605 cat conftest.err >&5 8371 cat conftest.err >&5
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); } && 8373 (exit $ac_status); } &&
12608 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8374 { ac_try='test -z "$ac_cxx_werror_flag"
8375 || test ! -s conftest.err'
12609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610 (eval $ac_try) 2>&5 8377 (eval $ac_try) 2>&5
12611 ac_status=$? 8378 ac_status=$?
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; } && 8380 (exit $ac_status); }; } &&
12634See \`config.log' for more details." >&2;} 8401See \`config.log' for more details." >&2;}
12635 { (exit 1); exit 1; }; } ;; 8402 { (exit 1); exit 1; }; } ;;
12636esac 8403esac
12637else 8404else
12638 if test "$cross_compiling" = yes; then 8405 if test "$cross_compiling" = yes; then
12639 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 8406 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12640echo "$as_me: error: internal error: not reached in cross-compile" >&2;} 8407See \`config.log' for more details." >&5
8408echo "$as_me: error: cannot run test program while cross compiling
8409See \`config.log' for more details." >&2;}
12641 { (exit 1); exit 1; }; } 8410 { (exit 1); exit 1; }; }
12642else 8411else
12643 cat >conftest.$ac_ext <<_ACEOF 8412 cat >conftest.$ac_ext <<_ACEOF
12644/* confdefs.h. */ 8413/* confdefs.h. */
12645_ACEOF 8414_ACEOF
12715cat >>confdefs.h <<_ACEOF 8484cat >>confdefs.h <<_ACEOF
12716#define SIZEOF_INT $ac_cv_sizeof_int 8485#define SIZEOF_INT $ac_cv_sizeof_int
12717_ACEOF 8486_ACEOF
12718 8487
12719 8488
12720echo "$as_me:$LINENO: checking for long" >&5
12721echo $ECHO_N "checking for long... $ECHO_C" >&6
12722if test "${ac_cv_type_long+set}" = set; then
12723 echo $ECHO_N "(cached) $ECHO_C" >&6
12724else
12725 cat >conftest.$ac_ext <<_ACEOF
12726/* confdefs.h. */
12727_ACEOF
12728cat confdefs.h >>conftest.$ac_ext
12729cat >>conftest.$ac_ext <<_ACEOF
12730/* end confdefs.h. */
12731$ac_includes_default
12732int
12733main ()
12734{
12735if ((long *) 0)
12736 return 0;
12737if (sizeof (long))
12738 return 0;
12739 ;
12740 return 0;
12741}
12742_ACEOF
12743rm -f conftest.$ac_objext
12744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12745 (eval $ac_compile) 2>conftest.er1
12746 ac_status=$?
12747 grep -v '^ *+' conftest.er1 >conftest.err
12748 rm -f conftest.er1
12749 cat conftest.err >&5
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); } &&
12752 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12754 (eval $ac_try) 2>&5
12755 ac_status=$?
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); }; } &&
12758 { ac_try='test -s conftest.$ac_objext'
12759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12760 (eval $ac_try) 2>&5
12761 ac_status=$?
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); }; }; then
12764 ac_cv_type_long=yes
12765else
12766 echo "$as_me: failed program was:" >&5
12767sed 's/^/| /' conftest.$ac_ext >&5
12768
12769ac_cv_type_long=no
12770fi
12771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12772fi
12773echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12774echo "${ECHO_T}$ac_cv_type_long" >&6
12775
12776echo "$as_me:$LINENO: checking size of long" >&5
12777echo $ECHO_N "checking size of long... $ECHO_C" >&6
12778if test "${ac_cv_sizeof_long+set}" = set; then
12779 echo $ECHO_N "(cached) $ECHO_C" >&6
12780else
12781 if test "$ac_cv_type_long" = yes; then
12782 # The cast to unsigned long works around a bug in the HP C Compiler
12783 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12784 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12785 # This bug is HP SR number 8606223364.
12786 if test "$cross_compiling" = yes; then
12787 # Depending upon the size, compute the lo and hi bounds.
12788cat >conftest.$ac_ext <<_ACEOF
12789/* confdefs.h. */
12790_ACEOF
12791cat confdefs.h >>conftest.$ac_ext
12792cat >>conftest.$ac_ext <<_ACEOF
12793/* end confdefs.h. */
12794$ac_includes_default
12795int
12796main ()
12797{
12798static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12799test_array [0] = 0
12800
12801 ;
12802 return 0;
12803}
12804_ACEOF
12805rm -f conftest.$ac_objext
12806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12807 (eval $ac_compile) 2>conftest.er1
12808 ac_status=$?
12809 grep -v '^ *+' conftest.er1 >conftest.err
12810 rm -f conftest.er1
12811 cat conftest.err >&5
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); } &&
12814 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12816 (eval $ac_try) 2>&5
12817 ac_status=$?
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); }; } &&
12820 { ac_try='test -s conftest.$ac_objext'
12821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12822 (eval $ac_try) 2>&5
12823 ac_status=$?
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); }; }; then
12826 ac_lo=0 ac_mid=0
12827 while :; do
12828 cat >conftest.$ac_ext <<_ACEOF
12829/* confdefs.h. */
12830_ACEOF
12831cat confdefs.h >>conftest.$ac_ext
12832cat >>conftest.$ac_ext <<_ACEOF
12833/* end confdefs.h. */
12834$ac_includes_default
12835int
12836main ()
12837{
12838static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12839test_array [0] = 0
12840
12841 ;
12842 return 0;
12843}
12844_ACEOF
12845rm -f conftest.$ac_objext
12846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12847 (eval $ac_compile) 2>conftest.er1
12848 ac_status=$?
12849 grep -v '^ *+' conftest.er1 >conftest.err
12850 rm -f conftest.er1
12851 cat conftest.err >&5
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); } &&
12854 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12856 (eval $ac_try) 2>&5
12857 ac_status=$?
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); }; } &&
12860 { ac_try='test -s conftest.$ac_objext'
12861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12862 (eval $ac_try) 2>&5
12863 ac_status=$?
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); }; }; then
12866 ac_hi=$ac_mid; break
12867else
12868 echo "$as_me: failed program was:" >&5
12869sed 's/^/| /' conftest.$ac_ext >&5
12870
12871ac_lo=`expr $ac_mid + 1`
12872 if test $ac_lo -le $ac_mid; then
12873 ac_lo= ac_hi=
12874 break
12875 fi
12876 ac_mid=`expr 2 '*' $ac_mid + 1`
12877fi
12878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12879 done
12880else
12881 echo "$as_me: failed program was:" >&5
12882sed 's/^/| /' conftest.$ac_ext >&5
12883
12884cat >conftest.$ac_ext <<_ACEOF
12885/* confdefs.h. */
12886_ACEOF
12887cat confdefs.h >>conftest.$ac_ext
12888cat >>conftest.$ac_ext <<_ACEOF
12889/* end confdefs.h. */
12890$ac_includes_default
12891int
12892main ()
12893{
12894static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12895test_array [0] = 0
12896
12897 ;
12898 return 0;
12899}
12900_ACEOF
12901rm -f conftest.$ac_objext
12902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12903 (eval $ac_compile) 2>conftest.er1
12904 ac_status=$?
12905 grep -v '^ *+' conftest.er1 >conftest.err
12906 rm -f conftest.er1
12907 cat conftest.err >&5
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); } &&
12910 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12912 (eval $ac_try) 2>&5
12913 ac_status=$?
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; } &&
12916 { ac_try='test -s conftest.$ac_objext'
12917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12918 (eval $ac_try) 2>&5
12919 ac_status=$?
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); }; }; then
12922 ac_hi=-1 ac_mid=-1
12923 while :; do
12924 cat >conftest.$ac_ext <<_ACEOF
12925/* confdefs.h. */
12926_ACEOF
12927cat confdefs.h >>conftest.$ac_ext
12928cat >>conftest.$ac_ext <<_ACEOF
12929/* end confdefs.h. */
12930$ac_includes_default
12931int
12932main ()
12933{
12934static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12935test_array [0] = 0
12936
12937 ;
12938 return 0;
12939}
12940_ACEOF
12941rm -f conftest.$ac_objext
12942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12943 (eval $ac_compile) 2>conftest.er1
12944 ac_status=$?
12945 grep -v '^ *+' conftest.er1 >conftest.err
12946 rm -f conftest.er1
12947 cat conftest.err >&5
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); } &&
12950 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12952 (eval $ac_try) 2>&5
12953 ac_status=$?
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); }; } &&
12956 { ac_try='test -s conftest.$ac_objext'
12957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12958 (eval $ac_try) 2>&5
12959 ac_status=$?
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); }; }; then
12962 ac_lo=$ac_mid; break
12963else
12964 echo "$as_me: failed program was:" >&5
12965sed 's/^/| /' conftest.$ac_ext >&5
12966
12967ac_hi=`expr '(' $ac_mid ')' - 1`
12968 if test $ac_mid -le $ac_hi; then
12969 ac_lo= ac_hi=
12970 break
12971 fi
12972 ac_mid=`expr 2 '*' $ac_mid`
12973fi
12974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12975 done
12976else
12977 echo "$as_me: failed program was:" >&5
12978sed 's/^/| /' conftest.$ac_ext >&5
12979
12980ac_lo= ac_hi=
12981fi
12982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12983fi
12984rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12985# Binary search between lo and hi bounds.
12986while test "x$ac_lo" != "x$ac_hi"; do
12987 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12988 cat >conftest.$ac_ext <<_ACEOF
12989/* confdefs.h. */
12990_ACEOF
12991cat confdefs.h >>conftest.$ac_ext
12992cat >>conftest.$ac_ext <<_ACEOF
12993/* end confdefs.h. */
12994$ac_includes_default
12995int
12996main ()
12997{
12998static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12999test_array [0] = 0
13000
13001 ;
13002 return 0;
13003}
13004_ACEOF
13005rm -f conftest.$ac_objext
13006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13007 (eval $ac_compile) 2>conftest.er1
13008 ac_status=$?
13009 grep -v '^ *+' conftest.er1 >conftest.err
13010 rm -f conftest.er1
13011 cat conftest.err >&5
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); } &&
13014 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13016 (eval $ac_try) 2>&5
13017 ac_status=$?
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); }; } &&
13020 { ac_try='test -s conftest.$ac_objext'
13021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13022 (eval $ac_try) 2>&5
13023 ac_status=$?
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); }; }; then
13026 ac_hi=$ac_mid
13027else
13028 echo "$as_me: failed program was:" >&5
13029sed 's/^/| /' conftest.$ac_ext >&5
13030
13031ac_lo=`expr '(' $ac_mid ')' + 1`
13032fi
13033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13034done
13035case $ac_lo in
13036?*) ac_cv_sizeof_long=$ac_lo;;
13037'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13038See \`config.log' for more details." >&5
13039echo "$as_me: error: cannot compute sizeof (long), 77
13040See \`config.log' for more details." >&2;}
13041 { (exit 1); exit 1; }; } ;;
13042esac
13043else
13044 if test "$cross_compiling" = yes; then
13045 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13046echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13047 { (exit 1); exit 1; }; }
13048else
13049 cat >conftest.$ac_ext <<_ACEOF
13050/* confdefs.h. */
13051_ACEOF
13052cat confdefs.h >>conftest.$ac_ext
13053cat >>conftest.$ac_ext <<_ACEOF
13054/* end confdefs.h. */
13055$ac_includes_default
13056long longval () { return (long) (sizeof (long)); }
13057unsigned long ulongval () { return (long) (sizeof (long)); }
13058#include <stdio.h>
13059#include <stdlib.h>
13060int
13061main ()
13062{
13063
13064 FILE *f = fopen ("conftest.val", "w");
13065 if (! f)
13066 exit (1);
13067 if (((long) (sizeof (long))) < 0)
13068 {
13069 long i = longval ();
13070 if (i != ((long) (sizeof (long))))
13071 exit (1);
13072 fprintf (f, "%ld\n", i);
13073 }
13074 else
13075 {
13076 unsigned long i = ulongval ();
13077 if (i != ((long) (sizeof (long))))
13078 exit (1);
13079 fprintf (f, "%lu\n", i);
13080 }
13081 exit (ferror (f) || fclose (f) != 0);
13082
13083 ;
13084 return 0;
13085}
13086_ACEOF
13087rm -f conftest$ac_exeext
13088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13089 (eval $ac_link) 2>&5
13090 ac_status=$?
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13094 (eval $ac_try) 2>&5
13095 ac_status=$?
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); }; }; then
13098 ac_cv_sizeof_long=`cat conftest.val`
13099else
13100 echo "$as_me: program exited with status $ac_status" >&5
13101echo "$as_me: failed program was:" >&5
13102sed 's/^/| /' conftest.$ac_ext >&5
13103
13104( exit $ac_status )
13105{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13106See \`config.log' for more details." >&5
13107echo "$as_me: error: cannot compute sizeof (long), 77
13108See \`config.log' for more details." >&2;}
13109 { (exit 1); exit 1; }; }
13110fi
13111rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13112fi
13113fi
13114rm -f conftest.val
13115else
13116 ac_cv_sizeof_long=0
13117fi
13118fi
13119echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13120echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13121cat >>confdefs.h <<_ACEOF
13122#define SIZEOF_LONG $ac_cv_sizeof_long
13123_ACEOF
13124
13125
13126echo "$as_me:$LINENO: checking for long long" >&5 8489echo "$as_me:$LINENO: checking for long long" >&5
13127echo $ECHO_N "checking for long long... $ECHO_C" >&6 8490echo $ECHO_N "checking for long long... $ECHO_C" >&6
13128if test "${ac_cv_type_long_long+set}" = set; then 8491if test "${ac_cv_type_long_long+set}" = set; then
13129 echo $ECHO_N "(cached) $ECHO_C" >&6 8492 echo $ECHO_N "(cached) $ECHO_C" >&6
13130else 8493else
13153 grep -v '^ *+' conftest.er1 >conftest.err 8516 grep -v '^ *+' conftest.er1 >conftest.err
13154 rm -f conftest.er1 8517 rm -f conftest.er1
13155 cat conftest.err >&5 8518 cat conftest.err >&5
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); } && 8520 (exit $ac_status); } &&
13158 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8521 { ac_try='test -z "$ac_cxx_werror_flag"
8522 || test ! -s conftest.err'
13159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13160 (eval $ac_try) 2>&5 8524 (eval $ac_try) 2>&5
13161 ac_status=$? 8525 ac_status=$?
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); }; } && 8527 (exit $ac_status); }; } &&
13215 grep -v '^ *+' conftest.er1 >conftest.err 8579 grep -v '^ *+' conftest.er1 >conftest.err
13216 rm -f conftest.er1 8580 rm -f conftest.er1
13217 cat conftest.err >&5 8581 cat conftest.err >&5
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); } && 8583 (exit $ac_status); } &&
13220 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8584 { ac_try='test -z "$ac_cxx_werror_flag"
8585 || test ! -s conftest.err'
13221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13222 (eval $ac_try) 2>&5 8587 (eval $ac_try) 2>&5
13223 ac_status=$? 8588 ac_status=$?
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); }; } && 8590 (exit $ac_status); }; } &&
13255 grep -v '^ *+' conftest.er1 >conftest.err 8620 grep -v '^ *+' conftest.er1 >conftest.err
13256 rm -f conftest.er1 8621 rm -f conftest.er1
13257 cat conftest.err >&5 8622 cat conftest.err >&5
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); } && 8624 (exit $ac_status); } &&
13260 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8625 { ac_try='test -z "$ac_cxx_werror_flag"
8626 || test ! -s conftest.err'
13261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13262 (eval $ac_try) 2>&5 8628 (eval $ac_try) 2>&5
13263 ac_status=$? 8629 ac_status=$?
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); }; } && 8631 (exit $ac_status); }; } &&
13311 grep -v '^ *+' conftest.er1 >conftest.err 8677 grep -v '^ *+' conftest.er1 >conftest.err
13312 rm -f conftest.er1 8678 rm -f conftest.er1
13313 cat conftest.err >&5 8679 cat conftest.err >&5
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); } && 8681 (exit $ac_status); } &&
13316 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8682 { ac_try='test -z "$ac_cxx_werror_flag"
8683 || test ! -s conftest.err'
13317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13318 (eval $ac_try) 2>&5 8685 (eval $ac_try) 2>&5
13319 ac_status=$? 8686 ac_status=$?
13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321 (exit $ac_status); }; } && 8688 (exit $ac_status); }; } &&
13351 grep -v '^ *+' conftest.er1 >conftest.err 8718 grep -v '^ *+' conftest.er1 >conftest.err
13352 rm -f conftest.er1 8719 rm -f conftest.er1
13353 cat conftest.err >&5 8720 cat conftest.err >&5
13354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 (exit $ac_status); } && 8722 (exit $ac_status); } &&
13356 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8723 { ac_try='test -z "$ac_cxx_werror_flag"
8724 || test ! -s conftest.err'
13357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13358 (eval $ac_try) 2>&5 8726 (eval $ac_try) 2>&5
13359 ac_status=$? 8727 ac_status=$?
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); }; } && 8729 (exit $ac_status); }; } &&
13415 grep -v '^ *+' conftest.er1 >conftest.err 8783 grep -v '^ *+' conftest.er1 >conftest.err
13416 rm -f conftest.er1 8784 rm -f conftest.er1
13417 cat conftest.err >&5 8785 cat conftest.err >&5
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); } && 8787 (exit $ac_status); } &&
13420 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8788 { ac_try='test -z "$ac_cxx_werror_flag"
8789 || test ! -s conftest.err'
13421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13422 (eval $ac_try) 2>&5 8791 (eval $ac_try) 2>&5
13423 ac_status=$? 8792 ac_status=$?
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); }; } && 8794 (exit $ac_status); }; } &&
13446See \`config.log' for more details." >&2;} 8815See \`config.log' for more details." >&2;}
13447 { (exit 1); exit 1; }; } ;; 8816 { (exit 1); exit 1; }; } ;;
13448esac 8817esac
13449else 8818else
13450 if test "$cross_compiling" = yes; then 8819 if test "$cross_compiling" = yes; then
13451 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 8820 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13452echo "$as_me: error: internal error: not reached in cross-compile" >&2;} 8821See \`config.log' for more details." >&5
8822echo "$as_me: error: cannot run test program while cross compiling
8823See \`config.log' for more details." >&2;}
13453 { (exit 1); exit 1; }; } 8824 { (exit 1); exit 1; }; }
13454else 8825else
13455 cat >conftest.$ac_ext <<_ACEOF 8826 cat >conftest.$ac_ext <<_ACEOF
13456/* confdefs.h. */ 8827/* confdefs.h. */
13457_ACEOF 8828_ACEOF
13559 grep -v '^ *+' conftest.er1 >conftest.err 8930 grep -v '^ *+' conftest.er1 >conftest.err
13560 rm -f conftest.er1 8931 rm -f conftest.er1
13561 cat conftest.err >&5 8932 cat conftest.err >&5
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); } && 8934 (exit $ac_status); } &&
13564 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8935 { ac_try='test -z "$ac_cxx_werror_flag"
8936 || test ! -s conftest.err'
13565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13566 (eval $ac_try) 2>&5 8938 (eval $ac_try) 2>&5
13567 ac_status=$? 8939 ac_status=$?
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); }; } && 8941 (exit $ac_status); }; } &&
13621 grep -v '^ *+' conftest.er1 >conftest.err 8993 grep -v '^ *+' conftest.er1 >conftest.err
13622 rm -f conftest.er1 8994 rm -f conftest.er1
13623 cat conftest.err >&5 8995 cat conftest.err >&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); } && 8997 (exit $ac_status); } &&
13626 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8998 { ac_try='test -z "$ac_cxx_werror_flag"
8999 || test ! -s conftest.err'
13627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13628 (eval $ac_try) 2>&5 9001 (eval $ac_try) 2>&5
13629 ac_status=$? 9002 ac_status=$?
13630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); }; } && 9004 (exit $ac_status); }; } &&
13661 grep -v '^ *+' conftest.er1 >conftest.err 9034 grep -v '^ *+' conftest.er1 >conftest.err
13662 rm -f conftest.er1 9035 rm -f conftest.er1
13663 cat conftest.err >&5 9036 cat conftest.err >&5
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); } && 9038 (exit $ac_status); } &&
13666 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9039 { ac_try='test -z "$ac_cxx_werror_flag"
9040 || test ! -s conftest.err'
13667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13668 (eval $ac_try) 2>&5 9042 (eval $ac_try) 2>&5
13669 ac_status=$? 9043 ac_status=$?
13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); }; } && 9045 (exit $ac_status); }; } &&
13717 grep -v '^ *+' conftest.er1 >conftest.err 9091 grep -v '^ *+' conftest.er1 >conftest.err
13718 rm -f conftest.er1 9092 rm -f conftest.er1
13719 cat conftest.err >&5 9093 cat conftest.err >&5
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); } && 9095 (exit $ac_status); } &&
13722 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9096 { ac_try='test -z "$ac_cxx_werror_flag"
9097 || test ! -s conftest.err'
13723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13724 (eval $ac_try) 2>&5 9099 (eval $ac_try) 2>&5
13725 ac_status=$? 9100 ac_status=$?
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); }; } && 9102 (exit $ac_status); }; } &&
13757 grep -v '^ *+' conftest.er1 >conftest.err 9132 grep -v '^ *+' conftest.er1 >conftest.err
13758 rm -f conftest.er1 9133 rm -f conftest.er1
13759 cat conftest.err >&5 9134 cat conftest.err >&5
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); } && 9136 (exit $ac_status); } &&
13762 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9137 { ac_try='test -z "$ac_cxx_werror_flag"
9138 || test ! -s conftest.err'
13763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13764 (eval $ac_try) 2>&5 9140 (eval $ac_try) 2>&5
13765 ac_status=$? 9141 ac_status=$?
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); }; } && 9143 (exit $ac_status); }; } &&
13821 grep -v '^ *+' conftest.er1 >conftest.err 9197 grep -v '^ *+' conftest.er1 >conftest.err
13822 rm -f conftest.er1 9198 rm -f conftest.er1
13823 cat conftest.err >&5 9199 cat conftest.err >&5
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); } && 9201 (exit $ac_status); } &&
13826 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9202 { ac_try='test -z "$ac_cxx_werror_flag"
9203 || test ! -s conftest.err'
13827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13828 (eval $ac_try) 2>&5 9205 (eval $ac_try) 2>&5
13829 ac_status=$? 9206 ac_status=$?
13830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831 (exit $ac_status); }; } && 9208 (exit $ac_status); }; } &&
13852See \`config.log' for more details." >&2;} 9229See \`config.log' for more details." >&2;}
13853 { (exit 1); exit 1; }; } ;; 9230 { (exit 1); exit 1; }; } ;;
13854esac 9231esac
13855else 9232else
13856 if test "$cross_compiling" = yes; then 9233 if test "$cross_compiling" = yes; then
13857 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 9234 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13858echo "$as_me: error: internal error: not reached in cross-compile" >&2;} 9235See \`config.log' for more details." >&5
9236echo "$as_me: error: cannot run test program while cross compiling
9237See \`config.log' for more details." >&2;}
13859 { (exit 1); exit 1; }; } 9238 { (exit 1); exit 1; }; }
13860else 9239else
13861 cat >conftest.$ac_ext <<_ACEOF 9240 cat >conftest.$ac_ext <<_ACEOF
13862/* confdefs.h. */ 9241/* confdefs.h. */
13863_ACEOF 9242_ACEOF
13964 grep -v '^ *+' conftest.er1 >conftest.err 9343 grep -v '^ *+' conftest.er1 >conftest.err
13965 rm -f conftest.er1 9344 rm -f conftest.er1
13966 cat conftest.err >&5 9345 cat conftest.err >&5
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); } && 9347 (exit $ac_status); } &&
13969 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9348 { ac_try='test -z "$ac_cxx_werror_flag"
9349 || test ! -s conftest.err'
13970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13971 (eval $ac_try) 2>&5 9351 (eval $ac_try) 2>&5
13972 ac_status=$? 9352 ac_status=$?
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); }; } && 9354 (exit $ac_status); }; } &&
13981 rxvt_cv_int16_t=yes 9361 rxvt_cv_int16_t=yes
13982else 9362else
13983 echo "$as_me: failed program was:" >&5 9363 echo "$as_me: failed program was:" >&5
13984sed 's/^/| /' conftest.$ac_ext >&5 9364sed 's/^/| /' conftest.$ac_ext >&5
13985 9365
13986if test $ac_cv_sizeof_char -ge 2; then 9366if test "$ac_cv_sizeof_char" -ge 2; then
13987 rxvt_cv_int16_t=" char" 9367 rxvt_cv_int16_t=" char"
13988else 9368else
13989 if test $ac_cv_sizeof_short -ge 2; then 9369 if test "$ac_cv_sizeof_short" -ge 2; then
13990 rxvt_cv_int16_t=" short" 9370 rxvt_cv_int16_t=" short"
13991 else 9371 else
13992 if test $ac_cv_sizeof_int -ge 2; then 9372 if test "$ac_cv_sizeof_int" -ge 2; then
13993 rxvt_cv_int16_t=" int" 9373 rxvt_cv_int16_t=" int"
13994 else 9374 else
13995 if test $ac_cv_sizeof_long -ge 2; then 9375 if test "$ac_cv_sizeof_long" -ge 2; then
13996 rxvt_cv_int16_t=" long" 9376 rxvt_cv_int16_t=" long"
13997 else 9377 else
13998 if test $ac_cv_sizeof_long_long -ge 2; then 9378 if test "$ac_cv_sizeof_long_long" -ge 2; then
13999 rxvt_cv_int16_t=" long long" 9379 rxvt_cv_int16_t=" long long"
14000 else 9380 else
14001 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default 9381 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
14002 fi 9382 fi
14003 fi 9383 fi
14046 grep -v '^ *+' conftest.er1 >conftest.err 9426 grep -v '^ *+' conftest.er1 >conftest.err
14047 rm -f conftest.er1 9427 rm -f conftest.er1
14048 cat conftest.err >&5 9428 cat conftest.err >&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); } && 9430 (exit $ac_status); } &&
14051 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9431 { ac_try='test -z "$ac_cxx_werror_flag"
9432 || test ! -s conftest.err'
14052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14053 (eval $ac_try) 2>&5 9434 (eval $ac_try) 2>&5
14054 ac_status=$? 9435 ac_status=$?
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); }; } && 9437 (exit $ac_status); }; } &&
14063 rxvt_cv_uint16_t=yes 9444 rxvt_cv_uint16_t=yes
14064else 9445else
14065 echo "$as_me: failed program was:" >&5 9446 echo "$as_me: failed program was:" >&5
14066sed 's/^/| /' conftest.$ac_ext >&5 9447sed 's/^/| /' conftest.$ac_ext >&5
14067 9448
14068if test $ac_cv_sizeof_char -ge 2; then 9449if test "$ac_cv_sizeof_char" -ge 2; then
14069 rxvt_cv_uint16_t="unsigned char" 9450 rxvt_cv_uint16_t="unsigned char"
14070else 9451else
14071 if test $ac_cv_sizeof_short -ge 2; then 9452 if test "$ac_cv_sizeof_short" -ge 2; then
14072 rxvt_cv_uint16_t="unsigned short" 9453 rxvt_cv_uint16_t="unsigned short"
14073 else 9454 else
14074 if test $ac_cv_sizeof_int -ge 2; then 9455 if test "$ac_cv_sizeof_int" -ge 2; then
14075 rxvt_cv_uint16_t="unsigned int" 9456 rxvt_cv_uint16_t="unsigned int"
14076 else 9457 else
14077 if test $ac_cv_sizeof_long -ge 2; then 9458 if test "$ac_cv_sizeof_long" -ge 2; then
14078 rxvt_cv_uint16_t="unsigned long" 9459 rxvt_cv_uint16_t="unsigned long"
14079 else 9460 else
14080 if test $ac_cv_sizeof_long_long -ge 2; then 9461 if test "$ac_cv_sizeof_long_long" -ge 2; then
14081 rxvt_cv_uint16_t="unsigned long long" 9462 rxvt_cv_uint16_t="unsigned long long"
14082 else 9463 else
14083 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default 9464 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
14084 fi 9465 fi
14085 fi 9466 fi
14128 grep -v '^ *+' conftest.er1 >conftest.err 9509 grep -v '^ *+' conftest.er1 >conftest.err
14129 rm -f conftest.er1 9510 rm -f conftest.er1
14130 cat conftest.err >&5 9511 cat conftest.err >&5
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); } && 9513 (exit $ac_status); } &&
14133 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9514 { ac_try='test -z "$ac_cxx_werror_flag"
9515 || test ! -s conftest.err'
14134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14135 (eval $ac_try) 2>&5 9517 (eval $ac_try) 2>&5
14136 ac_status=$? 9518 ac_status=$?
14137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138 (exit $ac_status); }; } && 9520 (exit $ac_status); }; } &&
14145 rxvt_cv_int32_t=yes 9527 rxvt_cv_int32_t=yes
14146else 9528else
14147 echo "$as_me: failed program was:" >&5 9529 echo "$as_me: failed program was:" >&5
14148sed 's/^/| /' conftest.$ac_ext >&5 9530sed 's/^/| /' conftest.$ac_ext >&5
14149 9531
14150if test $ac_cv_sizeof_char -ge 4; then 9532if test "$ac_cv_sizeof_char" -ge 4; then
14151 rxvt_cv_int32_t=" char" 9533 rxvt_cv_int32_t=" char"
14152else 9534else
14153 if test $ac_cv_sizeof_short -ge 4; then 9535 if test "$ac_cv_sizeof_short" -ge 4; then
14154 rxvt_cv_int32_t=" short" 9536 rxvt_cv_int32_t=" short"
14155 else 9537 else
14156 if test $ac_cv_sizeof_int -ge 4; then 9538 if test "$ac_cv_sizeof_int" -ge 4; then
14157 rxvt_cv_int32_t=" int" 9539 rxvt_cv_int32_t=" int"
14158 else 9540 else
14159 if test $ac_cv_sizeof_long -ge 4; then 9541 if test "$ac_cv_sizeof_long" -ge 4; then
14160 rxvt_cv_int32_t=" long" 9542 rxvt_cv_int32_t=" long"
14161 else 9543 else
14162 if test $ac_cv_sizeof_long_long -ge 4; then 9544 if test "$ac_cv_sizeof_long_long" -ge 4; then
14163 rxvt_cv_int32_t=" long long" 9545 rxvt_cv_int32_t=" long long"
14164 else 9546 else
14165 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default 9547 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
14166 fi 9548 fi
14167 fi 9549 fi
14210 grep -v '^ *+' conftest.er1 >conftest.err 9592 grep -v '^ *+' conftest.er1 >conftest.err
14211 rm -f conftest.er1 9593 rm -f conftest.er1
14212 cat conftest.err >&5 9594 cat conftest.err >&5
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); } && 9596 (exit $ac_status); } &&
14215 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9597 { ac_try='test -z "$ac_cxx_werror_flag"
9598 || test ! -s conftest.err'
14216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14217 (eval $ac_try) 2>&5 9600 (eval $ac_try) 2>&5
14218 ac_status=$? 9601 ac_status=$?
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); }; } && 9603 (exit $ac_status); }; } &&
14227 rxvt_cv_uint32_t=yes 9610 rxvt_cv_uint32_t=yes
14228else 9611else
14229 echo "$as_me: failed program was:" >&5 9612 echo "$as_me: failed program was:" >&5
14230sed 's/^/| /' conftest.$ac_ext >&5 9613sed 's/^/| /' conftest.$ac_ext >&5
14231 9614
14232if test $ac_cv_sizeof_char -ge 4; then 9615if test "$ac_cv_sizeof_char" -ge 4; then
14233 rxvt_cv_uint32_t="unsigned char" 9616 rxvt_cv_uint32_t="unsigned char"
14234else 9617else
14235 if test $ac_cv_sizeof_short -ge 4; then 9618 if test "$ac_cv_sizeof_short" -ge 4; then
14236 rxvt_cv_uint32_t="unsigned short" 9619 rxvt_cv_uint32_t="unsigned short"
14237 else 9620 else
14238 if test $ac_cv_sizeof_int -ge 4; then 9621 if test "$ac_cv_sizeof_int" -ge 4; then
14239 rxvt_cv_uint32_t="unsigned int" 9622 rxvt_cv_uint32_t="unsigned int"
14240 else 9623 else
14241 if test $ac_cv_sizeof_long -ge 4; then 9624 if test "$ac_cv_sizeof_long" -ge 4; then
14242 rxvt_cv_uint32_t="unsigned long" 9625 rxvt_cv_uint32_t="unsigned long"
14243 else 9626 else
14244 if test $ac_cv_sizeof_long_long -ge 4; then 9627 if test "$ac_cv_sizeof_long_long" -ge 4; then
14245 rxvt_cv_uint32_t="unsigned long long" 9628 rxvt_cv_uint32_t="unsigned long long"
14246 else 9629 else
14247 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default 9630 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
14248 fi 9631 fi
14249 fi 9632 fi
14263 else 9646 else
14264 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" 9647 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
14265 fi 9648 fi
14266fi 9649fi
14267 9650
14268if test $ac_cv_sizeof_int_p -eq 8; then 9651if test "$ac_cv_sizeof_int_p" -eq 8; then
14269 rxvt_intp_define="#define intp_t int64_t" 9652 rxvt_intp_define="#define intp_t int64_t"
14270 rxvt_u_intp_define="#define u_intp_t u_int64_t" 9653 rxvt_u_intp_define="#define u_intp_t u_int64_t"
14271else 9654else
14272 if test $ac_cv_sizeof_int_p -eq 4; then 9655 if test "$ac_cv_sizeof_int_p" -eq 4; then
14273 rxvt_intp_define="#define intp_t int32_t" 9656 rxvt_intp_define="#define intp_t int32_t"
14274 rxvt_u_intp_define="#define u_intp_t u_int32_t" 9657 rxvt_u_intp_define="#define u_intp_t u_int32_t"
14275 else 9658 else
14276 if test $ac_cv_sizeof_int_p -eq 2; then 9659 if test "$ac_cv_sizeof_int_p" -eq 2; then
14277 rxvt_intp_define="#define intp_t int16_t" 9660 rxvt_intp_define="#define intp_t int16_t"
14278 rxvt_u_intp_define="#define u_intp_t u_int16_t" 9661 rxvt_u_intp_define="#define u_intp_t u_int16_t"
14279 else 9662 else
14280 rxvt_intp_define="#error set intp_t" 9663 rxvt_intp_define="#error set intp_t"
14281 rxvt_u_intp_define="#error set u_intp_t" 9664 rxvt_u_intp_define="#error set u_intp_t"
14322 grep -v '^ *+' conftest.er1 >conftest.err 9705 grep -v '^ *+' conftest.er1 >conftest.err
14323 rm -f conftest.er1 9706 rm -f conftest.er1
14324 cat conftest.err >&5 9707 cat conftest.err >&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); } && 9709 (exit $ac_status); } &&
14327 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9710 { ac_try='test -z "$ac_cxx_werror_flag"
9711 || test ! -s conftest.err'
14328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329 (eval $ac_try) 2>&5 9713 (eval $ac_try) 2>&5
14330 ac_status=$? 9714 ac_status=$?
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; } && 9716 (exit $ac_status); }; } &&
14352#define RETSIGTYPE $ac_cv_type_signal 9736#define RETSIGTYPE $ac_cv_type_signal
14353_ACEOF 9737_ACEOF
14354 9738
14355 9739
14356 9740
14357case "$host_alias" in
14358 *ultrix) ac_cv_func_setsid='no' ;;
14359 *) break;;
14360esac
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377 9741
14378 9742
14379 9743
14380for ac_func in \ 9744for ac_func in \
14381 atexit \
14382 revoke \
14383 unsetenv \ 9745 unsetenv \
14384 setutent \ 9746 setutent \
14385 seteuid \
14386 setreuid \
14387 setsid \
14388 setpgrp \
14389 setpgid \
14390 openpty \
14391 _getpty \
14392 grantpt \
14393 unlockpt \
14394 isastream \
14395 on_exit \ 9747 on_exit \
14396 nanosleep \
14397 updwtmp \
14398 ttyslot \
14399 9748
14400do 9749do
14401as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9750as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14402echo "$as_me:$LINENO: checking for $ac_func" >&5 9751echo "$as_me:$LINENO: checking for $ac_func" >&5
14403echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9752echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14462 grep -v '^ *+' conftest.er1 >conftest.err 9811 grep -v '^ *+' conftest.er1 >conftest.err
14463 rm -f conftest.er1 9812 rm -f conftest.er1
14464 cat conftest.err >&5 9813 cat conftest.err >&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); } && 9815 (exit $ac_status); } &&
14467 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9816 { ac_try='test -z "$ac_cxx_werror_flag"
9817 || test ! -s conftest.err'
14468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14469 (eval $ac_try) 2>&5 9819 (eval $ac_try) 2>&5
14470 ac_status=$? 9820 ac_status=$?
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); }; } && 9822 (exit $ac_status); }; } &&
14496fi 9846fi
14497done 9847done
14498 9848
14499 9849
14500 9850
9851support_utmp=yes
9852support_wtmp=yes
9853support_lastlog=yes
9854
9855# Check whether --enable-utmp or --disable-utmp was given.
9856if test "${enable_utmp+set}" = set; then
9857 enableval="$enable_utmp"
9858 if test x$enableval = xyes -o x$enableval = xno; then
9859 support_utmp=$enableval
9860 fi
9861fi;
9862
9863# Check whether --enable-wtmp or --disable-wtmp was given.
9864if test "${enable_wtmp+set}" = set; then
9865 enableval="$enable_wtmp"
9866 if test x$enableval = xyes -o x$enableval = xno; then
9867 support_wtmp=$enableval
9868 fi
9869fi;
9870
9871# Check whether --enable-lastlog or --disable-lastlog was given.
9872if test "${enable_lastlog+set}" = set; then
9873 enableval="$enable_lastlog"
9874 if test x$enableval = xyes -o x$enableval = xno; then
9875 support_lastlog=$enableval
9876 fi
9877fi;
9878
9879if test x$support_utmp = xyes; then
9880
9881cat >>confdefs.h <<\_ACEOF
9882#define UTMP_SUPPORT 1
9883_ACEOF
9884
9885fi
9886if test x$support_wtmp = xyes; then
9887
9888cat >>confdefs.h <<\_ACEOF
9889#define WTMP_SUPPORT 1
9890_ACEOF
9891
9892fi
9893if test x$support_lastlog = xyes; then
9894
9895cat >>confdefs.h <<\_ACEOF
9896#define LASTLOG_SUPPORT 1
9897_ACEOF
9898
9899fi
9900
9901
9902
9903
9904for ac_func in \
9905 ttyslot \
9906 updwtmp \
9907 updwtmpx \
9908
9909do
9910as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9911echo "$as_me:$LINENO: checking for $ac_func" >&5
9912echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9913if eval "test \"\${$as_ac_var+set}\" = set"; then
9914 echo $ECHO_N "(cached) $ECHO_C" >&6
9915else
9916 cat >conftest.$ac_ext <<_ACEOF
9917/* confdefs.h. */
9918_ACEOF
9919cat confdefs.h >>conftest.$ac_ext
9920cat >>conftest.$ac_ext <<_ACEOF
9921/* end confdefs.h. */
9922/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9924#define $ac_func innocuous_$ac_func
9925
9926/* System header to define __stub macros and hopefully few prototypes,
9927 which can conflict with char $ac_func (); below.
9928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9929 <limits.h> exists even on freestanding compilers. */
9930
9931#ifdef __STDC__
9932# include <limits.h>
9933#else
9934# include <assert.h>
9935#endif
9936
9937#undef $ac_func
9938
9939/* Override any gcc2 internal prototype to avoid an error. */
9940#ifdef __cplusplus
9941extern "C"
9942{
9943#endif
9944/* We use char because int might match the return type of a gcc2
9945 builtin and then its argument prototype would still apply. */
9946char $ac_func ();
9947/* The GNU C library defines this for functions which it implements
9948 to always fail with ENOSYS. Some functions are actually named
9949 something starting with __ and the normal name is an alias. */
9950#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9951choke me
9952#else
9953char (*f) () = $ac_func;
9954#endif
9955#ifdef __cplusplus
9956}
9957#endif
9958
9959int
9960main ()
9961{
9962return f != $ac_func;
9963 ;
9964 return 0;
9965}
9966_ACEOF
9967rm -f conftest.$ac_objext conftest$ac_exeext
9968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9969 (eval $ac_link) 2>conftest.er1
9970 ac_status=$?
9971 grep -v '^ *+' conftest.er1 >conftest.err
9972 rm -f conftest.er1
9973 cat conftest.err >&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); } &&
9976 { ac_try='test -z "$ac_cxx_werror_flag"
9977 || test ! -s conftest.err'
9978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9979 (eval $ac_try) 2>&5
9980 ac_status=$?
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); }; } &&
9983 { ac_try='test -s conftest$ac_exeext'
9984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985 (eval $ac_try) 2>&5
9986 ac_status=$?
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; }; then
9989 eval "$as_ac_var=yes"
9990else
9991 echo "$as_me: failed program was:" >&5
9992sed 's/^/| /' conftest.$ac_ext >&5
9993
9994eval "$as_ac_var=no"
9995fi
9996rm -f conftest.err conftest.$ac_objext \
9997 conftest$ac_exeext conftest.$ac_ext
9998fi
9999echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10000echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10001if test `eval echo '${'$as_ac_var'}'` = yes; then
10002 cat >>confdefs.h <<_ACEOF
10003#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10004_ACEOF
10005
10006fi
10007done
10008
10009
10010
10011
10012
10013for ac_header in \
10014 utmp.h \
10015 utmpx.h \
10016 lastlog.h \
10017
10018do
10019as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10020if eval "test \"\${$as_ac_Header+set}\" = set"; then
10021 echo "$as_me:$LINENO: checking for $ac_header" >&5
10022echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10023if eval "test \"\${$as_ac_Header+set}\" = set"; then
10024 echo $ECHO_N "(cached) $ECHO_C" >&6
10025fi
10026echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10027echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10028else
10029 # Is the header compilable?
10030echo "$as_me:$LINENO: checking $ac_header usability" >&5
10031echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10032cat >conftest.$ac_ext <<_ACEOF
10033/* confdefs.h. */
10034_ACEOF
10035cat confdefs.h >>conftest.$ac_ext
10036cat >>conftest.$ac_ext <<_ACEOF
10037/* end confdefs.h. */
10038$ac_includes_default
10039#include <$ac_header>
10040_ACEOF
10041rm -f conftest.$ac_objext
10042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10043 (eval $ac_compile) 2>conftest.er1
10044 ac_status=$?
10045 grep -v '^ *+' conftest.er1 >conftest.err
10046 rm -f conftest.er1
10047 cat conftest.err >&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); } &&
10050 { ac_try='test -z "$ac_cxx_werror_flag"
10051 || test ! -s conftest.err'
10052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10053 (eval $ac_try) 2>&5
10054 ac_status=$?
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); }; } &&
10057 { ac_try='test -s conftest.$ac_objext'
10058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10059 (eval $ac_try) 2>&5
10060 ac_status=$?
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); }; }; then
10063 ac_header_compiler=yes
10064else
10065 echo "$as_me: failed program was:" >&5
10066sed 's/^/| /' conftest.$ac_ext >&5
10067
10068ac_header_compiler=no
10069fi
10070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10071echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10072echo "${ECHO_T}$ac_header_compiler" >&6
10073
10074# Is the header present?
10075echo "$as_me:$LINENO: checking $ac_header presence" >&5
10076echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10077cat >conftest.$ac_ext <<_ACEOF
10078/* confdefs.h. */
10079_ACEOF
10080cat confdefs.h >>conftest.$ac_ext
10081cat >>conftest.$ac_ext <<_ACEOF
10082/* end confdefs.h. */
10083#include <$ac_header>
10084_ACEOF
10085if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10087 ac_status=$?
10088 grep -v '^ *+' conftest.er1 >conftest.err
10089 rm -f conftest.er1
10090 cat conftest.err >&5
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); } >/dev/null; then
10093 if test -s conftest.err; then
10094 ac_cpp_err=$ac_cxx_preproc_warn_flag
10095 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10096 else
10097 ac_cpp_err=
10098 fi
10099else
10100 ac_cpp_err=yes
10101fi
10102if test -z "$ac_cpp_err"; then
10103 ac_header_preproc=yes
10104else
10105 echo "$as_me: failed program was:" >&5
10106sed 's/^/| /' conftest.$ac_ext >&5
10107
10108 ac_header_preproc=no
10109fi
10110rm -f conftest.err conftest.$ac_ext
10111echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10112echo "${ECHO_T}$ac_header_preproc" >&6
10113
10114# So? What about this header?
10115case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10116 yes:no: )
10117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10118echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10120echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10121 ac_header_preproc=yes
10122 ;;
10123 no:yes:* )
10124 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10125echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10126 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10127echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10128 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10129echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10130 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10131echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10133echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10134 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10135echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10136 (
10137 cat <<\_ASBOX
10138## ------------------------------------------ ##
10139## Report this to the AC_PACKAGE_NAME lists. ##
10140## ------------------------------------------ ##
10141_ASBOX
10142 ) |
10143 sed "s/^/$as_me: WARNING: /" >&2
10144 ;;
10145esac
10146echo "$as_me:$LINENO: checking for $ac_header" >&5
10147echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10148if eval "test \"\${$as_ac_Header+set}\" = set"; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10150else
10151 eval "$as_ac_Header=\$ac_header_preproc"
10152fi
10153echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10154echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10155
10156fi
10157if test `eval echo '${'$as_ac_Header'}'` = yes; then
10158 cat >>confdefs.h <<_ACEOF
10159#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10160_ACEOF
10161
10162fi
10163
10164done
10165
10166
10167
14501if test "${ac_cv_header_utmp_h+set}" = set; then 10168if test "${ac_cv_header_utmp_h+set}" = set; then
14502 echo "$as_me:$LINENO: checking for utmp.h" >&5 10169 echo "$as_me:$LINENO: checking for utmp.h" >&5
14503echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6 10170echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
14504if test "${ac_cv_header_utmp_h+set}" = set; then 10171if test "${ac_cv_header_utmp_h+set}" = set; then
14505 echo $ECHO_N "(cached) $ECHO_C" >&6 10172 echo $ECHO_N "(cached) $ECHO_C" >&6
14526 grep -v '^ *+' conftest.er1 >conftest.err 10193 grep -v '^ *+' conftest.er1 >conftest.err
14527 rm -f conftest.er1 10194 rm -f conftest.er1
14528 cat conftest.err >&5 10195 cat conftest.err >&5
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); } && 10197 (exit $ac_status); } &&
14531 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10198 { ac_try='test -z "$ac_cxx_werror_flag"
10199 || test ! -s conftest.err'
14532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14533 (eval $ac_try) 2>&5 10201 (eval $ac_try) 2>&5
14534 ac_status=$? 10202 ac_status=$?
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); }; } && 10204 (exit $ac_status); }; } &&
14635 10303
14636fi 10304fi
14637if test $ac_cv_header_utmp_h = yes; then 10305if test $ac_cv_header_utmp_h = yes; then
14638 echo "$as_me:$LINENO: checking for struct utmp" >&5 10306 echo "$as_me:$LINENO: checking for struct utmp" >&5
14639echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6 10307echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6
14640if test "${rxvt_cv_struct_utmp+set}" = set; then 10308if test "${struct_utmp+set}" = set; then
14641 echo $ECHO_N "(cached) $ECHO_C" >&6 10309 echo $ECHO_N "(cached) $ECHO_C" >&6
14642else 10310else
14643 cat >conftest.$ac_ext <<_ACEOF 10311 cat >conftest.$ac_ext <<_ACEOF
14644/* confdefs.h. */ 10312/* confdefs.h. */
14645_ACEOF 10313_ACEOF
14646cat confdefs.h >>conftest.$ac_ext 10314cat confdefs.h >>conftest.$ac_ext
14647cat >>conftest.$ac_ext <<_ACEOF 10315cat >>conftest.$ac_ext <<_ACEOF
14648/* end confdefs.h. */ 10316/* end confdefs.h. */
14649#include <sys/types.h> 10317#include <sys/types.h>
14650#include <stdint.h>
14651#include <utmp.h> 10318#include <utmp.h>
14652int 10319int
14653main () 10320main ()
14654{ 10321{
14655struct utmp ut; 10322struct utmp ut;
14664 grep -v '^ *+' conftest.er1 >conftest.err 10331 grep -v '^ *+' conftest.er1 >conftest.err
14665 rm -f conftest.er1 10332 rm -f conftest.er1
14666 cat conftest.err >&5 10333 cat conftest.err >&5
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); } && 10335 (exit $ac_status); } &&
14669 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10336 { ac_try='test -z "$ac_cxx_werror_flag"
10337 || test ! -s conftest.err'
14670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14671 (eval $ac_try) 2>&5 10339 (eval $ac_try) 2>&5
14672 ac_status=$? 10340 ac_status=$?
14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 (exit $ac_status); }; } && 10342 (exit $ac_status); }; } &&
14676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14677 (eval $ac_try) 2>&5 10345 (eval $ac_try) 2>&5
14678 ac_status=$? 10346 ac_status=$?
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); }; }; then 10348 (exit $ac_status); }; }; then
14681 rxvt_cv_struct_utmp=yes 10349 struct_utmp=yes
14682else 10350else
14683 echo "$as_me: failed program was:" >&5 10351 echo "$as_me: failed program was:" >&5
14684sed 's/^/| /' conftest.$ac_ext >&5 10352sed 's/^/| /' conftest.$ac_ext >&5
14685 10353
14686rxvt_cv_struct_utmp=no 10354struct_utmp=no
14687fi 10355fi
14688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14689fi 10357fi
14690echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5 10358echo "$as_me:$LINENO: result: $struct_utmp" >&5
14691echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6 10359echo "${ECHO_T}$struct_utmp" >&6
14692if test x$rxvt_cv_struct_utmp = xyes; then 10360if test x$struct_utmp = xyes; then
14693 10361
14694cat >>confdefs.h <<\_ACEOF 10362cat >>confdefs.h <<\_ACEOF
14695#define HAVE_STRUCT_UTMP 1 10363#define HAVE_STRUCT_UTMP 1
14696_ACEOF 10364_ACEOF
14697 10365
14698fi 10366fi
14699 10367
14700 10368
14701echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5 10369echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
14702echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6 10370echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6
14703if test "${rxvt_cv_struct_utmp_host+set}" = set; then 10371if test "${struct_utmp_host+set}" = set; then
14704 echo $ECHO_N "(cached) $ECHO_C" >&6 10372 echo $ECHO_N "(cached) $ECHO_C" >&6
14705else 10373else
14706 cat >conftest.$ac_ext <<_ACEOF 10374 cat >conftest.$ac_ext <<_ACEOF
14707/* confdefs.h. */ 10375/* confdefs.h. */
14708_ACEOF 10376_ACEOF
14726 grep -v '^ *+' conftest.er1 >conftest.err 10394 grep -v '^ *+' conftest.er1 >conftest.err
14727 rm -f conftest.er1 10395 rm -f conftest.er1
14728 cat conftest.err >&5 10396 cat conftest.err >&5
14729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); } && 10398 (exit $ac_status); } &&
14731 { 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'
14732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14733 (eval $ac_try) 2>&5 10402 (eval $ac_try) 2>&5
14734 ac_status=$? 10403 ac_status=$?
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); }; } && 10405 (exit $ac_status); }; } &&
14738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14739 (eval $ac_try) 2>&5 10408 (eval $ac_try) 2>&5
14740 ac_status=$? 10409 ac_status=$?
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); }; }; then 10411 (exit $ac_status); }; }; then
14743 rxvt_cv_struct_utmp_host=yes 10412 struct_utmp_host=yes
14744else 10413else
14745 echo "$as_me: failed program was:" >&5 10414 echo "$as_me: failed program was:" >&5
14746sed 's/^/| /' conftest.$ac_ext >&5 10415sed 's/^/| /' conftest.$ac_ext >&5
14747 10416
14748rxvt_cv_struct_utmp_host=no 10417struct_utmp_host=no
14749fi 10418fi
14750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14751fi 10420fi
14752echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5 10421echo "$as_me:$LINENO: result: $struct_utmp_host" >&5
14753echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6 10422echo "${ECHO_T}$struct_utmp_host" >&6
14754if test x$rxvt_cv_struct_utmp_host = xyes; then 10423if test x$struct_utmp_host = xyes; then
14755 10424
14756cat >>confdefs.h <<\_ACEOF 10425cat >>confdefs.h <<\_ACEOF
14757#define HAVE_UTMP_HOST 1 10426#define HAVE_UTMP_HOST 1
14758_ACEOF 10427_ACEOF
14759 10428
14760fi 10429fi
14761 10430
14762echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5 10431echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
14763echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6 10432echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6
14764if test "${rxvt_cv_struct_utmp_pid+set}" = set; then 10433if test "${struct_utmp_pid+set}" = set; then
14765 echo $ECHO_N "(cached) $ECHO_C" >&6 10434 echo $ECHO_N "(cached) $ECHO_C" >&6
14766else 10435else
14767 cat >conftest.$ac_ext <<_ACEOF 10436 cat >conftest.$ac_ext <<_ACEOF
14768/* confdefs.h. */ 10437/* confdefs.h. */
14769_ACEOF 10438_ACEOF
14787 grep -v '^ *+' conftest.er1 >conftest.err 10456 grep -v '^ *+' conftest.er1 >conftest.err
14788 rm -f conftest.er1 10457 rm -f conftest.er1
14789 cat conftest.err >&5 10458 cat conftest.err >&5
14790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); } && 10460 (exit $ac_status); } &&
14792 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10461 { ac_try='test -z "$ac_cxx_werror_flag"
10462 || test ! -s conftest.err'
14793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14794 (eval $ac_try) 2>&5 10464 (eval $ac_try) 2>&5
14795 ac_status=$? 10465 ac_status=$?
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); }; } && 10467 (exit $ac_status); }; } &&
14799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14800 (eval $ac_try) 2>&5 10470 (eval $ac_try) 2>&5
14801 ac_status=$? 10471 ac_status=$?
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); }; }; then 10473 (exit $ac_status); }; }; then
14804 rxvt_cv_struct_utmp_pid=yes 10474 struct_utmp_pid=yes
14805else 10475else
14806 echo "$as_me: failed program was:" >&5 10476 echo "$as_me: failed program was:" >&5
14807sed 's/^/| /' conftest.$ac_ext >&5 10477sed 's/^/| /' conftest.$ac_ext >&5
14808 10478
14809rxvt_cv_struct_utmp_pid=no 10479struct_utmp_pid=no
14810fi 10480fi
14811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14812fi 10482fi
14813echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5 10483echo "$as_me:$LINENO: result: $struct_utmp_pid" >&5
14814echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6 10484echo "${ECHO_T}$struct_utmp_pid" >&6
14815if test x$rxvt_cv_struct_utmp_pid = xyes; then 10485if test x$struct_utmp_pid = xyes; then
14816 10486
14817cat >>confdefs.h <<\_ACEOF 10487cat >>confdefs.h <<\_ACEOF
14818#define HAVE_UTMP_PID 1 10488#define HAVE_UTMP_PID 1
14819_ACEOF 10489_ACEOF
14820 10490
14852 grep -v '^ *+' conftest.er1 >conftest.err 10522 grep -v '^ *+' conftest.er1 >conftest.err
14853 rm -f conftest.er1 10523 rm -f conftest.er1
14854 cat conftest.err >&5 10524 cat conftest.err >&5
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); } && 10526 (exit $ac_status); } &&
14857 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10527 { ac_try='test -z "$ac_cxx_werror_flag"
10528 || test ! -s conftest.err'
14858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14859 (eval $ac_try) 2>&5 10530 (eval $ac_try) 2>&5
14860 ac_status=$? 10531 ac_status=$?
14861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862 (exit $ac_status); }; } && 10533 (exit $ac_status); }; } &&
14961 10632
14962fi 10633fi
14963if test $ac_cv_header_utmpx_h = yes; then 10634if test $ac_cv_header_utmpx_h = yes; then
14964 echo "$as_me:$LINENO: checking for struct utmpx" >&5 10635 echo "$as_me:$LINENO: checking for struct utmpx" >&5
14965echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6 10636echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6
14966if test "${rxvt_cv_struct_utmpx+set}" = set; then 10637if test "${struct_utmpx+set}" = set; then
14967 echo $ECHO_N "(cached) $ECHO_C" >&6 10638 echo $ECHO_N "(cached) $ECHO_C" >&6
14968else 10639else
14969 cat >conftest.$ac_ext <<_ACEOF 10640 cat >conftest.$ac_ext <<_ACEOF
14970/* confdefs.h. */ 10641/* confdefs.h. */
14971_ACEOF 10642_ACEOF
14989 grep -v '^ *+' conftest.er1 >conftest.err 10660 grep -v '^ *+' conftest.er1 >conftest.err
14990 rm -f conftest.er1 10661 rm -f conftest.er1
14991 cat conftest.err >&5 10662 cat conftest.err >&5
14992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993 (exit $ac_status); } && 10664 (exit $ac_status); } &&
14994 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10665 { ac_try='test -z "$ac_cxx_werror_flag"
10666 || test ! -s conftest.err'
14995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14996 (eval $ac_try) 2>&5 10668 (eval $ac_try) 2>&5
14997 ac_status=$? 10669 ac_status=$?
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); }; } && 10671 (exit $ac_status); }; } &&
15001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15002 (eval $ac_try) 2>&5 10674 (eval $ac_try) 2>&5
15003 ac_status=$? 10675 ac_status=$?
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); }; }; then 10677 (exit $ac_status); }; }; then
15006 rxvt_cv_struct_utmpx=yes 10678 struct_utmpx=yes
15007else 10679else
15008 echo "$as_me: failed program was:" >&5 10680 echo "$as_me: failed program was:" >&5
15009sed 's/^/| /' conftest.$ac_ext >&5 10681sed 's/^/| /' conftest.$ac_ext >&5
15010 10682
15011rxvt_cv_struct_utmpx=no 10683struct_utmpx=no
15012fi 10684fi
15013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15014fi 10686fi
15015echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5 10687echo "$as_me:$LINENO: result: $struct_utmpx" >&5
15016echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6 10688echo "${ECHO_T}$struct_utmpx" >&6
15017if test x$rxvt_cv_struct_utmpx = xyes; then 10689if test x$struct_utmpx = xyes; then
15018 10690
15019cat >>confdefs.h <<\_ACEOF 10691cat >>confdefs.h <<\_ACEOF
15020#define HAVE_STRUCT_UTMPX 1 10692#define HAVE_STRUCT_UTMPX 1
15021_ACEOF 10693_ACEOF
15022 10694
15023fi 10695fi
15024 10696
15025 10697
15026echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 10698echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
15027echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6 10699echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6
15028if test "${rxvt_cv_struct_utmpx_host+set}" = set; then 10700if test "${struct_utmpx_host+set}" = set; then
15029 echo $ECHO_N "(cached) $ECHO_C" >&6 10701 echo $ECHO_N "(cached) $ECHO_C" >&6
15030else 10702else
15031 cat >conftest.$ac_ext <<_ACEOF 10703 cat >conftest.$ac_ext <<_ACEOF
15032/* confdefs.h. */ 10704/* confdefs.h. */
15033_ACEOF 10705_ACEOF
15051 grep -v '^ *+' conftest.er1 >conftest.err 10723 grep -v '^ *+' conftest.er1 >conftest.err
15052 rm -f conftest.er1 10724 rm -f conftest.er1
15053 cat conftest.err >&5 10725 cat conftest.err >&5
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); } && 10727 (exit $ac_status); } &&
15056 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10728 { ac_try='test -z "$ac_cxx_werror_flag"
10729 || test ! -s conftest.err'
15057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15058 (eval $ac_try) 2>&5 10731 (eval $ac_try) 2>&5
15059 ac_status=$? 10732 ac_status=$?
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); }; } && 10734 (exit $ac_status); }; } &&
15063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15064 (eval $ac_try) 2>&5 10737 (eval $ac_try) 2>&5
15065 ac_status=$? 10738 ac_status=$?
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); }; }; then 10740 (exit $ac_status); }; }; then
15068 rxvt_cv_struct_utmpx_host=yes 10741 struct_utmpx_host=yes
15069else 10742else
15070 echo "$as_me: failed program was:" >&5 10743 echo "$as_me: failed program was:" >&5
15071sed 's/^/| /' conftest.$ac_ext >&5 10744sed 's/^/| /' conftest.$ac_ext >&5
15072 10745
15073rxvt_cv_struct_utmpx_host=no 10746struct_utmpx_host=no
15074fi 10747fi
15075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15076fi 10749fi
15077echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5 10750echo "$as_me:$LINENO: result: $struct_utmpx_host" >&5
15078echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6 10751echo "${ECHO_T}$struct_utmpx_host" >&6
15079if test x$rxvt_cv_struct_utmpx_host = xyes; then 10752if test x$struct_utmpx_host = xyes; then
15080 10753
15081cat >>confdefs.h <<\_ACEOF 10754cat >>confdefs.h <<\_ACEOF
15082#define HAVE_UTMPX_HOST 1 10755#define HAVE_UTMPX_HOST 1
15083_ACEOF 10756_ACEOF
15084 10757
15085fi 10758fi
15086 10759
15087fi 10760echo "$as_me:$LINENO: checking for session in utmpx struct" >&5
10761echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6
10762if test "${struct_utmpx_session+set}" = set; then
10763 echo $ECHO_N "(cached) $ECHO_C" >&6
10764else
10765 cat >conftest.$ac_ext <<_ACEOF
10766/* confdefs.h. */
10767_ACEOF
10768cat confdefs.h >>conftest.$ac_ext
10769cat >>conftest.$ac_ext <<_ACEOF
10770/* end confdefs.h. */
10771#include <sys/types.h>
10772#include <utmpx.h>
10773int
10774main ()
10775{
10776struct utmpx utx; utx.ut_session;
10777 ;
10778 return 0;
10779}
10780_ACEOF
10781rm -f conftest.$ac_objext
10782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10783 (eval $ac_compile) 2>conftest.er1
10784 ac_status=$?
10785 grep -v '^ *+' conftest.er1 >conftest.err
10786 rm -f conftest.er1
10787 cat conftest.err >&5
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); } &&
10790 { ac_try='test -z "$ac_cxx_werror_flag"
10791 || test ! -s conftest.err'
10792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10793 (eval $ac_try) 2>&5
10794 ac_status=$?
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); }; } &&
10797 { ac_try='test -s conftest.$ac_objext'
10798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10799 (eval $ac_try) 2>&5
10800 ac_status=$?
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); }; }; then
10803 struct_utmpx_session=yes
10804else
10805 echo "$as_me: failed program was:" >&5
10806sed 's/^/| /' conftest.$ac_ext >&5
15088 10807
10808struct_utmpx_session=no
10809fi
10810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10811fi
10812echo "$as_me:$LINENO: result: $struct_utmpx_session" >&5
10813echo "${ECHO_T}$struct_utmpx_session" >&6
10814if test x$struct_utmpx_session = xyes; then
10815
10816cat >>confdefs.h <<\_ACEOF
10817#define HAVE_UTMPX_SESSION 1
10818_ACEOF
10819
10820fi
10821
10822fi
15089 10823
15090 10824
15091echo "$as_me:$LINENO: checking for struct lastlog" >&5 10825echo "$as_me:$LINENO: checking for struct lastlog" >&5
15092echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 10826echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
15093if test "${rxvt_cv_struct_lastlog+set}" = set; then 10827if test "${struct_lastlog+set}" = set; then
15094 echo $ECHO_N "(cached) $ECHO_C" >&6 10828 echo $ECHO_N "(cached) $ECHO_C" >&6
15095else 10829else
15096 cat >conftest.$ac_ext <<_ACEOF 10830 cat >conftest.$ac_ext <<_ACEOF
15097/* confdefs.h. */ 10831/* confdefs.h. */
15098_ACEOF 10832_ACEOF
15120 grep -v '^ *+' conftest.er1 >conftest.err 10854 grep -v '^ *+' conftest.er1 >conftest.err
15121 rm -f conftest.er1 10855 rm -f conftest.er1
15122 cat conftest.err >&5 10856 cat conftest.err >&5
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); } && 10858 (exit $ac_status); } &&
15125 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10859 { ac_try='test -z "$ac_cxx_werror_flag"
10860 || test ! -s conftest.err'
15126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15127 (eval $ac_try) 2>&5 10862 (eval $ac_try) 2>&5
15128 ac_status=$? 10863 ac_status=$?
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); }; } && 10865 (exit $ac_status); }; } &&
15132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15133 (eval $ac_try) 2>&5 10868 (eval $ac_try) 2>&5
15134 ac_status=$? 10869 ac_status=$?
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); }; }; then 10871 (exit $ac_status); }; }; then
15137 rxvt_cv_struct_lastlog=yes 10872 struct_lastlog=yes
15138else 10873else
15139 echo "$as_me: failed program was:" >&5 10874 echo "$as_me: failed program was:" >&5
15140sed 's/^/| /' conftest.$ac_ext >&5 10875sed 's/^/| /' conftest.$ac_ext >&5
15141 10876
15142rxvt_cv_struct_lastlog=no 10877struct_lastlog=no
15143fi 10878fi
15144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15145fi 10880fi
15146echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5 10881echo "$as_me:$LINENO: result: $struct_lastlog" >&5
15147echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6 10882echo "${ECHO_T}$struct_lastlog" >&6
15148if test x$rxvt_cv_struct_lastlog = xyes; then 10883if test x$struct_lastlog = xyes; then
15149 10884
15150cat >>confdefs.h <<\_ACEOF 10885cat >>confdefs.h <<\_ACEOF
15151#define HAVE_STRUCT_LASTLOG 1 10886#define HAVE_STRUCT_LASTLOG 1
15152_ACEOF 10887_ACEOF
15153 10888
15154fi 10889fi
15155 10890
15156echo "$as_me:$LINENO: checking for struct lastlogx" >&5 10891echo "$as_me:$LINENO: checking for struct lastlogx" >&5
15157echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6 10892echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6
15158if test "${rxvt_cv_struct_lastlogx+set}" = set; then 10893if test "${struct_lastlogx+set}" = set; then
15159 echo $ECHO_N "(cached) $ECHO_C" >&6 10894 echo $ECHO_N "(cached) $ECHO_C" >&6
15160else 10895else
15161 cat >conftest.$ac_ext <<_ACEOF 10896 cat >conftest.$ac_ext <<_ACEOF
15162/* confdefs.h. */ 10897/* confdefs.h. */
15163_ACEOF 10898_ACEOF
15185 grep -v '^ *+' conftest.er1 >conftest.err 10920 grep -v '^ *+' conftest.er1 >conftest.err
15186 rm -f conftest.er1 10921 rm -f conftest.er1
15187 cat conftest.err >&5 10922 cat conftest.err >&5
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); } && 10924 (exit $ac_status); } &&
15190 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10925 { ac_try='test -z "$ac_cxx_werror_flag"
10926 || test ! -s conftest.err'
15191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15192 (eval $ac_try) 2>&5 10928 (eval $ac_try) 2>&5
15193 ac_status=$? 10929 ac_status=$?
15194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195 (exit $ac_status); }; } && 10931 (exit $ac_status); }; } &&
15197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15198 (eval $ac_try) 2>&5 10934 (eval $ac_try) 2>&5
15199 ac_status=$? 10935 ac_status=$?
15200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201 (exit $ac_status); }; }; then 10937 (exit $ac_status); }; }; then
15202 rxvt_cv_struct_lastlogx=yes 10938 struct_lastlogx=yes
15203else 10939else
15204 echo "$as_me: failed program was:" >&5 10940 echo "$as_me: failed program was:" >&5
15205sed 's/^/| /' conftest.$ac_ext >&5 10941sed 's/^/| /' conftest.$ac_ext >&5
15206 10942
15207rxvt_cv_struct_lastlogx=no 10943struct_lastlogx=no
15208fi 10944fi
15209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15210fi 10946fi
15211echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5 10947echo "$as_me:$LINENO: result: $struct_lastlogx" >&5
15212echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6 10948echo "${ECHO_T}$struct_lastlogx" >&6
15213if test x$rxvt_cv_struct_lastlogx = xyes; then 10949if test x$struct_lastlogx = xyes; then
15214 10950
15215cat >>confdefs.h <<\_ACEOF 10951cat >>confdefs.h <<\_ACEOF
15216#define HAVE_STRUCT_LASTLOGX 1 10952#define HAVE_STRUCT_LASTLOGX 1
15217_ACEOF 10953_ACEOF
15218 10954
15219fi 10955fi
15220 10956
15221 10957
15222echo "$as_me:$LINENO: checking where utmp is located" >&5 10958echo "$as_me:$LINENO: checking where utmp is located" >&5
15223echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6 10959echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6
15224if test "${rxvt_cv_path_utmp+set}" = set; then 10960if test "${path_utmp+set}" = set; then
15225 echo $ECHO_N "(cached) $ECHO_C" >&6 10961 echo $ECHO_N "(cached) $ECHO_C" >&6
15226else 10962else
15227 if test "$cross_compiling" = yes; then 10963 if test "$cross_compiling" = yes; then
15228 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5 10964 { echo "$as_me:$LINENO: WARNING: Define UTMP_FILE in config.h manually" >&5
15229echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;} 10965echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;}
15230else 10966else
15231 cat >conftest.$ac_ext <<_ACEOF 10967 cat >conftest.$ac_ext <<_ACEOF
15232/* confdefs.h. */ 10968/* confdefs.h. */
15233_ACEOF 10969_ACEOF
15234cat confdefs.h >>conftest.$ac_ext 10970cat confdefs.h >>conftest.$ac_ext
15235cat >>conftest.$ac_ext <<_ACEOF 10971cat >>conftest.$ac_ext <<_ACEOF
15236/* end confdefs.h. */ 10972/* end confdefs.h. */
15237#include <stdio.h> 10973#include <stdio.h>
10974#include <stdlib.h>
15238#include <sys/types.h> 10975#include <sys/types.h>
15239#include <utmp.h> 10976#include <utmp.h>
15240#include <errno.h> 10977#include <errno.h>
15241main() 10978main()
15242{ 10979{
15270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15271 (eval $ac_try) 2>&5 11008 (eval $ac_try) 2>&5
15272 ac_status=$? 11009 ac_status=$?
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); }; }; then 11011 (exit $ac_status); }; }; then
15275 rxvt_cv_path_utmp=`cat conftestval` 11012 path_utmp=`cat conftestval`
15276else 11013else
15277 echo "$as_me: program exited with status $ac_status" >&5 11014 echo "$as_me: program exited with status $ac_status" >&5
15278echo "$as_me: failed program was:" >&5 11015echo "$as_me: failed program was:" >&5
15279sed 's/^/| /' conftest.$ac_ext >&5 11016sed 's/^/| /' conftest.$ac_ext >&5
15280 11017
15281( exit $ac_status ) 11018( exit $ac_status )
15282rxvt_cv_path_utmp= 11019path_utmp=
15283fi 11020fi
15284rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11021rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15285fi 11022fi
15286fi 11023fi
15287echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5 11024echo "$as_me:$LINENO: result: $path_utmp" >&5
15288echo "${ECHO_T}$rxvt_cv_path_utmp" >&6 11025echo "${ECHO_T}$path_utmp" >&6
15289if test x$rxvt_cv_path_utmp != x; then 11026if test x$path_utmp != x; then
15290 11027
15291cat >>confdefs.h <<_ACEOF 11028cat >>confdefs.h <<_ACEOF
15292#define RXVT_UTMP_FILE "$rxvt_cv_path_utmp" 11029#define UTMP_FILE "$path_utmp"
15293_ACEOF 11030_ACEOF
15294 11031
15295fi 11032fi
15296 11033
15297 11034
15298echo "$as_me:$LINENO: checking where utmpx is located" >&5 11035echo "$as_me:$LINENO: checking where utmpx is located" >&5
15299echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6 11036echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6
15300if test "${rxvt_cv_path_utmpx+set}" = set; then 11037if test "${path_utmpx+set}" = set; then
15301 echo $ECHO_N "(cached) $ECHO_C" >&6 11038 echo $ECHO_N "(cached) $ECHO_C" >&6
15302else 11039else
15303 if test "$cross_compiling" = yes; then 11040 if test "$cross_compiling" = yes; then
15304 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&5 11041 { echo "$as_me:$LINENO: WARNING: Define UTMPX_FILE in config.h manually" >&5
15305echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;} 11042echo "$as_me: WARNING: Define UTMPX_FILE in config.h manually" >&2;}
15306else 11043else
15307 cat >conftest.$ac_ext <<_ACEOF 11044 cat >conftest.$ac_ext <<_ACEOF
15308/* confdefs.h. */ 11045/* confdefs.h. */
15309_ACEOF 11046_ACEOF
15310cat confdefs.h >>conftest.$ac_ext 11047cat confdefs.h >>conftest.$ac_ext
15311cat >>conftest.$ac_ext <<_ACEOF 11048cat >>conftest.$ac_ext <<_ACEOF
15312/* end confdefs.h. */ 11049/* end confdefs.h. */
15313#include <stdio.h> 11050#include <stdio.h>
11051#include <stdlib.h>
15314#include <sys/types.h> 11052#include <sys/types.h>
15315#include <utmpx.h> 11053#include <utmpx.h>
15316#include <errno.h> 11054#include <errno.h>
15317#include <sys/stat.h> 11055#include <sys/stat.h>
15318#ifdef HAVE_STRING_H 11056#ifdef HAVE_STRING_H
15356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15357 (eval $ac_try) 2>&5 11095 (eval $ac_try) 2>&5
15358 ac_status=$? 11096 ac_status=$?
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); }; }; then 11098 (exit $ac_status); }; }; then
15361 rxvt_cv_path_utmpx=`cat conftestval` 11099 path_utmpx=`cat conftestval`
15362else 11100else
15363 echo "$as_me: program exited with status $ac_status" >&5 11101 echo "$as_me: program exited with status $ac_status" >&5
15364echo "$as_me: failed program was:" >&5 11102echo "$as_me: failed program was:" >&5
15365sed 's/^/| /' conftest.$ac_ext >&5 11103sed 's/^/| /' conftest.$ac_ext >&5
15366 11104
15367( exit $ac_status ) 11105( exit $ac_status )
15368rxvt_cv_path_utmpx= 11106path_utmpx=
15369fi 11107fi
15370rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11108rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15371fi 11109fi
15372fi 11110fi
15373echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5 11111echo "$as_me:$LINENO: result: $path_utmpx" >&5
15374echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6 11112echo "${ECHO_T}$path_utmpx" >&6
15375if test x$rxvt_cv_path_utmpx != x; then 11113if test x$path_utmpx != x; then
15376 11114
15377cat >>confdefs.h <<_ACEOF 11115cat >>confdefs.h <<_ACEOF
15378#define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx" 11116#define UTMPX_FILE "$path_utmpx"
15379_ACEOF 11117_ACEOF
15380 11118
15381fi 11119fi
15382 11120
15383 11121
15384echo "$as_me:$LINENO: checking where wtmp is located" >&5 11122echo "$as_me:$LINENO: checking where wtmp is located" >&5
15385echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6 11123echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6
15386if test "${rxvt_cv_path_wtmp+set}" = set; then 11124if test "${path_wtmp+set}" = set; then
15387 echo $ECHO_N "(cached) $ECHO_C" >&6 11125 echo $ECHO_N "(cached) $ECHO_C" >&6
15388else 11126else
15389 if test "$cross_compiling" = yes; then 11127 if test "$cross_compiling" = yes; then
15390 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&5 11128 { echo "$as_me:$LINENO: WARNING: Define WTMP_FILE in config.h manually" >&5
15391echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;} 11129echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;}
15392else 11130else
15393 cat >conftest.$ac_ext <<_ACEOF 11131 cat >conftest.$ac_ext <<_ACEOF
15394/* confdefs.h. */ 11132/* confdefs.h. */
15395_ACEOF 11133_ACEOF
15396cat confdefs.h >>conftest.$ac_ext 11134cat confdefs.h >>conftest.$ac_ext
15397cat >>conftest.$ac_ext <<_ACEOF 11135cat >>conftest.$ac_ext <<_ACEOF
15398/* end confdefs.h. */ 11136/* end confdefs.h. */
15399#include <stdio.h> 11137#include <stdio.h>
11138#include <stdlib.h>
15400#include <sys/types.h> 11139#include <sys/types.h>
15401#ifdef HAVE_UTMP_H 11140#ifdef HAVE_UTMP_H
15402#include <utmp.h> 11141#include <utmp.h>
15403#endif 11142#endif
15404#include <errno.h> 11143#include <errno.h>
15434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15435 (eval $ac_try) 2>&5 11174 (eval $ac_try) 2>&5
15436 ac_status=$? 11175 ac_status=$?
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); }; }; then 11177 (exit $ac_status); }; }; then
15439 rxvt_cv_path_wtmp=`cat conftestval` 11178 path_wtmp=`cat conftestval`
15440else 11179else
15441 echo "$as_me: program exited with status $ac_status" >&5 11180 echo "$as_me: program exited with status $ac_status" >&5
15442echo "$as_me: failed program was:" >&5 11181echo "$as_me: failed program was:" >&5
15443sed 's/^/| /' conftest.$ac_ext >&5 11182sed 's/^/| /' conftest.$ac_ext >&5
15444 11183
15445( exit $ac_status ) 11184( exit $ac_status )
15446rxvt_cv_path_wtmp= 11185path_wtmp=
15447fi 11186fi
15448rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11187rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15449fi 11188fi
15450fi 11189fi
15451echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5 11190echo "$as_me:$LINENO: result: $path_wtmp" >&5
15452echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6 11191echo "${ECHO_T}$path_wtmp" >&6
15453if test x$rxvt_cv_path_wtmp != x; then 11192if test x$path_wtmp != x; then
15454 11193
15455cat >>confdefs.h <<_ACEOF 11194cat >>confdefs.h <<_ACEOF
15456#define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp" 11195#define WTMP_FILE "$path_wtmp"
15457_ACEOF 11196_ACEOF
15458 11197
15459fi 11198fi
15460 11199
15461echo "$as_me:$LINENO: checking where wtmpx is located" >&5 11200echo "$as_me:$LINENO: checking where wtmpx is located" >&5
15462echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6 11201echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6
15463if test "${rxvt_cv_path_wtmpx+set}" = set; then 11202if test "${path_wtmpx+set}" = set; then
15464 echo $ECHO_N "(cached) $ECHO_C" >&6 11203 echo $ECHO_N "(cached) $ECHO_C" >&6
15465else 11204else
15466 if test "$cross_compiling" = yes; then 11205 if test "$cross_compiling" = yes; then
15467 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&5 11206 { echo "$as_me:$LINENO: WARNING: Define WTMPX_FILE in config.h manually" >&5
15468echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;} 11207echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;}
15469else 11208else
15470 cat >conftest.$ac_ext <<_ACEOF 11209 cat >conftest.$ac_ext <<_ACEOF
15471/* confdefs.h. */ 11210/* confdefs.h. */
15472_ACEOF 11211_ACEOF
15473cat confdefs.h >>conftest.$ac_ext 11212cat confdefs.h >>conftest.$ac_ext
15474cat >>conftest.$ac_ext <<_ACEOF 11213cat >>conftest.$ac_ext <<_ACEOF
15475/* end confdefs.h. */ 11214/* end confdefs.h. */
15476#include <stdio.h> 11215#include <stdio.h>
11216#include <stdlib.h>
15477#ifdef HAVE_UTMPX_H 11217#ifdef HAVE_UTMPX_H
15478#include <utmpx.h> 11218#include <utmpx.h>
15479#endif 11219#endif
15480#include <errno.h> 11220#include <errno.h>
15481main() 11221main()
15510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15511 (eval $ac_try) 2>&5 11251 (eval $ac_try) 2>&5
15512 ac_status=$? 11252 ac_status=$?
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); }; }; then 11254 (exit $ac_status); }; }; then
15515 rxvt_cv_path_wtmpx=`cat conftestval` 11255 path_wtmpx=`cat conftestval`
15516else 11256else
15517 echo "$as_me: program exited with status $ac_status" >&5 11257 echo "$as_me: program exited with status $ac_status" >&5
15518echo "$as_me: failed program was:" >&5 11258echo "$as_me: failed program was:" >&5
15519sed 's/^/| /' conftest.$ac_ext >&5 11259sed 's/^/| /' conftest.$ac_ext >&5
15520 11260
15521( exit $ac_status ) 11261( exit $ac_status )
15522rxvt_cv_path_wtmpx= 11262path_wtmpx=
15523fi 11263fi
15524rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11264rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15525fi 11265fi
15526fi 11266fi
15527echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5 11267echo "$as_me:$LINENO: result: $path_wtmpx" >&5
15528echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6 11268echo "${ECHO_T}$path_wtmpx" >&6
15529if test x$rxvt_cv_path_wtmpx != x; then 11269if test x$path_wtmpx != x; then
15530 11270
15531cat >>confdefs.h <<_ACEOF 11271cat >>confdefs.h <<_ACEOF
15532#define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx" 11272#define WTMPX_FILE "$path_wtmpx"
15533_ACEOF 11273_ACEOF
15534 11274
15535fi 11275fi
15536 11276
15537echo "$as_me:$LINENO: checking where lastlog is located" >&5 11277echo "$as_me:$LINENO: checking where lastlog is located" >&5
15538echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6 11278echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6
15539if test "${rxvt_cv_path_lastlog+set}" = set; then 11279if test "${path_lastlog+set}" = set; then
15540 echo $ECHO_N "(cached) $ECHO_C" >&6 11280 echo $ECHO_N "(cached) $ECHO_C" >&6
15541else 11281else
15542 if test "$cross_compiling" = yes; then 11282 if test "$cross_compiling" = yes; then
15543 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&5 11283 { echo "$as_me:$LINENO: WARNING: Define LASTLOG_FILE in config.h manually" >&5
15544echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;} 11284echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;}
15545else 11285else
15546 cat >conftest.$ac_ext <<_ACEOF 11286 cat >conftest.$ac_ext <<_ACEOF
15547/* confdefs.h. */ 11287/* confdefs.h. */
15548_ACEOF 11288_ACEOF
15549cat confdefs.h >>conftest.$ac_ext 11289cat confdefs.h >>conftest.$ac_ext
15550cat >>conftest.$ac_ext <<_ACEOF 11290cat >>conftest.$ac_ext <<_ACEOF
15551/* end confdefs.h. */ 11291/* end confdefs.h. */
15552#include <stdio.h> 11292#include <stdio.h>
11293#include <stdlib.h>
15553#include <sys/types.h> 11294#include <sys/types.h>
15554#ifdef HAVE_UTMPX_H 11295#ifdef HAVE_UTMPX_H
15555#include <utmpx.h> 11296#include <utmpx.h>
15556#elif defined(HAVE_UTMP_H) 11297#elif defined(HAVE_UTMP_H)
15557#include <utmp.h> 11298#include <utmp.h>
15591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15592 (eval $ac_try) 2>&5 11333 (eval $ac_try) 2>&5
15593 ac_status=$? 11334 ac_status=$?
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); }; }; then 11336 (exit $ac_status); }; }; then
15596 rxvt_cv_path_lastlog=`cat conftestval` 11337 path_lastlog=`cat conftestval`
15597else 11338else
15598 echo "$as_me: program exited with status $ac_status" >&5 11339 echo "$as_me: program exited with status $ac_status" >&5
15599echo "$as_me: failed program was:" >&5 11340echo "$as_me: failed program was:" >&5
15600sed 's/^/| /' conftest.$ac_ext >&5 11341sed 's/^/| /' conftest.$ac_ext >&5
15601 11342
15602( exit $ac_status ) 11343( exit $ac_status )
15603rxvt_cv_path_lastlog= 11344path_lastlog=
15604fi 11345fi
15605rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11346rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15606fi 11347fi
15607fi 11348fi
15608echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5 11349echo "$as_me:$LINENO: result: $path_lastlog" >&5
15609echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6 11350echo "${ECHO_T}$path_lastlog" >&6
15610if test x$rxvt_cv_path_lastlog != x; then 11351if test x$path_lastlog != x; then
15611 11352
15612cat >>confdefs.h <<_ACEOF 11353cat >>confdefs.h <<_ACEOF
15613#define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog" 11354#define LASTLOG_FILE "$path_lastlog"
15614_ACEOF 11355_ACEOF
15615 11356
15616 if test -d "$rxvt_cv_path_lastlog"; then 11357 if test -d "$path_lastlog"; then
15617 11358
15618cat >>confdefs.h <<\_ACEOF 11359cat >>confdefs.h <<\_ACEOF
15619#define LASTLOG_IS_DIR 1 11360#define LASTLOG_IS_DIR 1
15620_ACEOF 11361_ACEOF
15621 11362
15622 fi 11363 fi
15623fi 11364fi
15624 11365
15625echo "$as_me:$LINENO: checking where lastlogx is located" >&5 11366echo "$as_me:$LINENO: checking where lastlogx is located" >&5
15626echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6 11367echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6
15627if test "${rxvt_cv_path_lastlogx+set}" = set; then 11368if test "${path_lastlogx+set}" = set; then
15628 echo $ECHO_N "(cached) $ECHO_C" >&6 11369 echo $ECHO_N "(cached) $ECHO_C" >&6
15629else 11370else
15630 if test "$cross_compiling" = yes; then 11371 if test "$cross_compiling" = yes; then
15631 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&5 11372 { echo "$as_me:$LINENO: WARNING: Define LASTLOGX_FILE in config.h manually" >&5
15632echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;} 11373echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;}
15633else 11374else
15634 cat >conftest.$ac_ext <<_ACEOF 11375 cat >conftest.$ac_ext <<_ACEOF
15635/* confdefs.h. */ 11376/* confdefs.h. */
15636_ACEOF 11377_ACEOF
15637cat confdefs.h >>conftest.$ac_ext 11378cat confdefs.h >>conftest.$ac_ext
15638cat >>conftest.$ac_ext <<_ACEOF 11379cat >>conftest.$ac_ext <<_ACEOF
15639/* end confdefs.h. */ 11380/* end confdefs.h. */
15640#include <stdio.h> 11381#include <stdio.h>
11382#include <stdlib.h>
15641#ifdef HAVE_UTMPX_H 11383#ifdef HAVE_UTMPX_H
15642#include <utmpx.h> 11384#include <utmpx.h>
15643#endif 11385#endif
15644#include <errno.h> 11386#include <errno.h>
15645main() 11387main()
15673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15674 (eval $ac_try) 2>&5 11416 (eval $ac_try) 2>&5
15675 ac_status=$? 11417 ac_status=$?
15676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); }; }; then 11419 (exit $ac_status); }; }; then
15678 rxvt_cv_path_lastlogx=`cat conftestval` 11420 path_lastlogx=`cat conftestval`
15679else 11421else
15680 echo "$as_me: program exited with status $ac_status" >&5 11422 echo "$as_me: program exited with status $ac_status" >&5
15681echo "$as_me: failed program was:" >&5 11423echo "$as_me: failed program was:" >&5
15682sed 's/^/| /' conftest.$ac_ext >&5 11424sed 's/^/| /' conftest.$ac_ext >&5
15683 11425
15684( exit $ac_status ) 11426( exit $ac_status )
15685rxvt_cv_path_lastlogx= 11427path_lastlogx=
15686fi 11428fi
15687rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11429rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15688fi 11430fi
15689fi 11431fi
15690echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5 11432echo "$as_me:$LINENO: result: $path_lastlogx" >&5
15691echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6 11433echo "${ECHO_T}$path_lastlogx" >&6
15692if test x$rxvt_cv_path_lastlogx != x; then 11434if test x$path_lastlogx != x; then
15693 11435
15694cat >>confdefs.h <<_ACEOF 11436cat >>confdefs.h <<_ACEOF
15695#define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx" 11437#define LASTLOGX_FILE "$path_lastlogx"
15696_ACEOF 11438_ACEOF
15697 11439
15698fi 11440fi
11441
15699 11442
15700 11443
15701echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 11444echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
15702echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 11445echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6
15703if test "${rxvt_cv_path_ttytab+set}" = set; then 11446if test "${rxvt_cv_path_ttytab+set}" = set; then
15744_ACEOF 11487_ACEOF
15745cat confdefs.h >>conftest.$ac_ext 11488cat confdefs.h >>conftest.$ac_ext
15746cat >>conftest.$ac_ext <<_ACEOF 11489cat >>conftest.$ac_ext <<_ACEOF
15747/* end confdefs.h. */ 11490/* end confdefs.h. */
15748#include <X11/Xlib.h> 11491#include <X11/Xlib.h>
11492#include <stdlib.h>
15749main() { 11493main() {
15750char *p; 11494char *p;
15751if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) 11495if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
15752exit (XSupportsLocale() ? 0 : 1); 11496exit (XSupportsLocale() ? 0 : 1);
15753else 11497else
15814 grep -v '^ *+' conftest.er1 >conftest.err 11558 grep -v '^ *+' conftest.er1 >conftest.err
15815 rm -f conftest.er1 11559 rm -f conftest.er1
15816 cat conftest.err >&5 11560 cat conftest.err >&5
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); } && 11562 (exit $ac_status); } &&
15819 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11563 { ac_try='test -z "$ac_cxx_werror_flag"
11564 || test ! -s conftest.err'
15820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15821 (eval $ac_try) 2>&5 11566 (eval $ac_try) 2>&5
15822 ac_status=$? 11567 ac_status=$?
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); }; } && 11569 (exit $ac_status); }; } &&
15859/* confdefs.h. */ 11604/* confdefs.h. */
15860_ACEOF 11605_ACEOF
15861cat confdefs.h >>conftest.$ac_ext 11606cat confdefs.h >>conftest.$ac_ext
15862cat >>conftest.$ac_ext <<_ACEOF 11607cat >>conftest.$ac_ext <<_ACEOF
15863/* end confdefs.h. */ 11608/* end confdefs.h. */
15864#include <locale.h> 11609#include <clocale>
15865int 11610int
15866main () 11611main ()
15867{ 11612{
15868setlocale(LC_CTYPE, ""); 11613setlocale(LC_CTYPE, "");
15869 ; 11614 ;
15877 grep -v '^ *+' conftest.er1 >conftest.err 11622 grep -v '^ *+' conftest.er1 >conftest.err
15878 rm -f conftest.er1 11623 rm -f conftest.er1
15879 cat conftest.err >&5 11624 cat conftest.err >&5
15880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881 (exit $ac_status); } && 11626 (exit $ac_status); } &&
15882 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11627 { ac_try='test -z "$ac_cxx_werror_flag"
11628 || test ! -s conftest.err'
15883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15884 (eval $ac_try) 2>&5 11630 (eval $ac_try) 2>&5
15885 ac_status=$? 11631 ac_status=$?
15886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 (exit $ac_status); }; } && 11633 (exit $ac_status); }; } &&
15938 grep -v '^ *+' conftest.er1 >conftest.err 11684 grep -v '^ *+' conftest.er1 >conftest.err
15939 rm -f conftest.er1 11685 rm -f conftest.er1
15940 cat conftest.err >&5 11686 cat conftest.err >&5
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); } && 11688 (exit $ac_status); } &&
15943 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11689 { ac_try='test -z "$ac_cxx_werror_flag"
11690 || test ! -s conftest.err'
15944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15945 (eval $ac_try) 2>&5 11692 (eval $ac_try) 2>&5
15946 ac_status=$? 11693 ac_status=$?
15947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); }; } && 11695 (exit $ac_status); }; } &&
15970#define HAVE_NL_LANGINFO 1 11717#define HAVE_NL_LANGINFO 1
15971_ACEOF 11718_ACEOF
15972 11719
15973fi 11720fi
15974 11721
15975echo "$as_me:$LINENO: checking for getpt" >&5 11722
15976echo $ECHO_N "checking for getpt... $ECHO_C" >&6 11723echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5
15977if test "${rxvt_cv_func_getpt+set}" = set; then 11724echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6
11725if test "${can_pass_fds+set}" = set; then
15978 echo $ECHO_N "(cached) $ECHO_C" >&6 11726 echo $ECHO_N "(cached) $ECHO_C" >&6
15979else 11727else
15980 cat >conftest.$ac_ext <<_ACEOF 11728 cat >conftest.$ac_ext <<_ACEOF
15981/* confdefs.h. */ 11729/* confdefs.h. */
15982_ACEOF 11730_ACEOF
15983cat confdefs.h >>conftest.$ac_ext 11731cat confdefs.h >>conftest.$ac_ext
15984cat >>conftest.$ac_ext <<_ACEOF 11732cat >>conftest.$ac_ext <<_ACEOF
15985/* end confdefs.h. */ 11733/* end confdefs.h. */
15986#define _GNU_SOURCE 11734
15987#ifdef HAVE_STDLIB_H 11735#include <cstddef> // broken bsds (is that redundant?) need this
11736#include <sys/types.h>
11737#include <sys/socket.h>
15988# include <stdlib.h> 11738#include <sys/uio.h>
15989#endif 11739
15990int 11740int
15991main () 11741main ()
15992{ 11742{
15993(void)getpt(); 11743
11744{
11745 msghdr msg;
11746 iovec iov;
11747 char buf [100];
11748 char data = 0;
11749
11750 iov.iov_base = &data;
11751 iov.iov_len = 1;
11752
11753 msg.msg_iov = &iov;
11754 msg.msg_iovlen = 1;
11755 msg.msg_control = buf;
11756 msg.msg_controllen = sizeof buf;
11757
11758 cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
11759 cmsg->cmsg_level = SOL_SOCKET;
11760 cmsg->cmsg_type = SCM_RIGHTS;
11761 cmsg->cmsg_len = 100;
11762
11763 *(int *)CMSG_DATA (cmsg) = 5;
11764
11765 return sendmsg (3, &msg, 0);
11766}
11767
15994 ; 11768 ;
15995 return 0; 11769 return 0;
15996} 11770}
15997_ACEOF 11771_ACEOF
15998rm -f conftest.$ac_objext conftest$ac_exeext 11772rm -f conftest.$ac_objext conftest$ac_exeext
16002 grep -v '^ *+' conftest.er1 >conftest.err 11776 grep -v '^ *+' conftest.er1 >conftest.err
16003 rm -f conftest.er1 11777 rm -f conftest.er1
16004 cat conftest.err >&5 11778 cat conftest.err >&5
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); } && 11780 (exit $ac_status); } &&
16007 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11781 { ac_try='test -z "$ac_cxx_werror_flag"
11782 || test ! -s conftest.err'
16008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16009 (eval $ac_try) 2>&5 11784 (eval $ac_try) 2>&5
16010 ac_status=$? 11785 ac_status=$?
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); }; } && 11787 (exit $ac_status); }; } &&
16014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16015 (eval $ac_try) 2>&5 11790 (eval $ac_try) 2>&5
16016 ac_status=$? 11791 ac_status=$?
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); }; }; then 11793 (exit $ac_status); }; }; then
16019 rxvt_cv_func_getpt=yes 11794 can_pass_fds=yes
16020else 11795else
16021 echo "$as_me: failed program was:" >&5 11796 echo "$as_me: failed program was:" >&5
16022sed 's/^/| /' conftest.$ac_ext >&5 11797sed 's/^/| /' conftest.$ac_ext >&5
16023 11798
16024rxvt_cv_func_getpt=no 11799can_pass_fds=no
16025fi 11800fi
16026rm -f conftest.err conftest.$ac_objext \ 11801rm -f conftest.err conftest.$ac_objext \
16027 conftest$ac_exeext conftest.$ac_ext 11802 conftest$ac_exeext conftest.$ac_ext
16028fi 11803fi
16029echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5 11804echo "$as_me:$LINENO: result: $can_pass_fds" >&5
16030echo "${ECHO_T}$rxvt_cv_func_getpt" >&6 11805echo "${ECHO_T}$can_pass_fds" >&6
16031if test x$rxvt_cv_func_getpt = xyes; then 11806if test x$can_pass_fds = xyes; then
16032 11807
16033cat >>confdefs.h <<\_ACEOF 11808cat >>confdefs.h <<\_ACEOF
16034#define HAVE_GETPT 1 11809#define HAVE_UNIX_FDPASS 1
16035_ACEOF 11810_ACEOF
16036 11811
11812else
11813 { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5
11814echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;}
11815 { (exit 1); exit 1; }; }
16037fi 11816fi
16038 11817
16039echo "$as_me:$LINENO: checking for pty/tty type" >&5 11818
11819echo "$as_me:$LINENO: checking for broken XIM callback" >&5
16040echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6 11820echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6
16041if test "${rxvt_cv_ptys+set}" = set; then 11821if test "${rxvt_broken_ximcb+set}" = set; then
16042 echo $ECHO_N "(cached) $ECHO_C" >&6 11822 echo $ECHO_N "(cached) $ECHO_C" >&6
16043else 11823else
16044 if test x$ac_cv_func_openpty = xyes; then
16045 rxvt_cv_ptys=OPENPTY
16046 else if test x$ac_cv_func__getpty = xyes; then
16047 rxvt_cv_ptys=SGI4
16048 else if test -c /dev/ttyp20; then
16049 rxvt_cv_ptys=SCO
16050 else if test -c /dev/ptym/clone; then
16051 rxvt_cv_ptys=HPUX
16052 else if test x$rxvt_cv_func_getpt = xyes; then
16053 rxvt_cv_ptys=GLIBC
16054 else if test -c /dev/ptc -a -c /dev/pts; then
16055 rxvt_cv_ptys=PTC
16056 else if test -c /dev/ptc -a -d /dev/pts; then
16057 rxvt_cv_ptys=PTC
16058 else if test -c /dev/ptmx -a -c /dev/pts/0; then
16059 rxvt_cv_ptys=STREAMS
16060 else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then
16061 rxvt_cv_ptys=STREAMS
16062 else
16063 rxvt_cv_ptys=BSD
16064fi
16065fi
16066fi
16067fi
16068fi
16069fi
16070fi
16071fi
16072fi
16073
16074fi
16075echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
16076echo "${ECHO_T}$rxvt_cv_ptys" >&6
16077
16078if test x$rxvt_cv_ptys = xOPENPTY; then
16079
16080cat >>confdefs.h <<\_ACEOF
16081#define PTYS_ARE_OPENPTY 1
16082_ACEOF
16083
16084fi
16085if test x$rxvt_cv_ptys = xSCO; then
16086
16087cat >>confdefs.h <<\_ACEOF
16088#define PTYS_ARE_NUMERIC 1
16089_ACEOF
16090
16091fi
16092if test x$rxvt_cv_ptys = xSTREAMS; then
16093
16094cat >>confdefs.h <<\_ACEOF
16095#define PTYS_ARE_PTMX 1
16096_ACEOF
16097
16098fi
16099if test x$rxvt_cv_ptys = xPTC; then
16100
16101cat >>confdefs.h <<\_ACEOF
16102#define PTYS_ARE_PTC 1
16103_ACEOF
16104
16105fi
16106if test x$rxvt_cv_ptys = xSGI4; then
16107
16108cat >>confdefs.h <<\_ACEOF
16109#define PTYS_ARE__GETPTY 1
16110_ACEOF
16111
16112fi
16113if test x$rxvt_cv_ptys = xCONVEX; then
16114
16115cat >>confdefs.h <<\_ACEOF
16116#define PTYS_ARE_GETPTY 1
16117_ACEOF
16118
16119fi
16120if test x$rxvt_cv_ptys = xGLIBC; then
16121
16122cat >>confdefs.h <<\_ACEOF
16123#define PTYS_ARE_GETPT 1
16124_ACEOF
16125
16126fi
16127if test x$rxvt_cv_ptys = xHPUX; then
16128
16129cat >>confdefs.h <<\_ACEOF
16130#define PTYS_ARE_CLONE 1
16131_ACEOF
16132
16133fi
16134if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then
16135
16136cat >>confdefs.h <<\_ACEOF
16137#define PTYS_ARE_SEARCHED 1
16138_ACEOF
16139
16140fi
16141
16142
16143{ echo "$as_me:$LINENO: checking for pty ranges..." >&5
16144echo "$as_me: checking for pty ranges..." >&6;}
16145ptys=`echo /dev/pty??`
16146pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
16147pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
16148if test x$pch1 != x; then
16149
16150cat >>confdefs.h <<_ACEOF
16151#define PTYCHAR1 "$pch1"
16152_ACEOF
16153
16154fi
16155if test x$pch2 != x; then
16156
16157cat >>confdefs.h <<_ACEOF
16158#define PTYCHAR2 "$pch2"
16159_ACEOF
16160
16161fi
16162
16163echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
16164echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
16165if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
16166 echo $ECHO_N "(cached) $ECHO_C" >&6
16167else
16168 ac_check_lib_save_LIBS=$LIBS
16169LIBS="-lxpg4 $LIBS"
16170cat >conftest.$ac_ext <<_ACEOF 11824 cat >conftest.$ac_ext <<_ACEOF
16171/* confdefs.h. */
16172_ACEOF
16173cat confdefs.h >>conftest.$ac_ext
16174cat >>conftest.$ac_ext <<_ACEOF
16175/* end confdefs.h. */
16176 11825
16177/* Override any gcc2 internal prototype to avoid an error. */ 11826#include <X11/Xlib.h>
16178#ifdef __cplusplus 11827
16179extern "C" 11828void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
16180#endif 11829
16181/* We use char because int might match the return type of a gcc2 11830void f() {
16182 builtin and then its argument prototype would still apply. */ 11831 XIMCallback cb;
16183char setlocale (); 11832 cb.callback = im_destroy_cb;
16184int
16185main ()
16186{
16187setlocale ();
16188 ;
16189 return 0;
16190} 11833}
11834
16191_ACEOF 11835_ACEOF
16192rm -f conftest.$ac_objext conftest$ac_exeext 11836rm -f conftest.$ac_objext
16193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16194 (eval $ac_link) 2>conftest.er1 11838 (eval $ac_compile) 2>conftest.er1
16195 ac_status=$? 11839 ac_status=$?
16196 grep -v '^ *+' conftest.er1 >conftest.err 11840 grep -v '^ *+' conftest.er1 >conftest.err
16197 rm -f conftest.er1 11841 rm -f conftest.er1
16198 cat conftest.err >&5 11842 cat conftest.err >&5
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); } && 11844 (exit $ac_status); } &&
16201 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11845 { ac_try='test -z "$ac_cxx_werror_flag"
11846 || test ! -s conftest.err'
16202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16203 (eval $ac_try) 2>&5 11848 (eval $ac_try) 2>&5
16204 ac_status=$? 11849 ac_status=$?
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); }; } && 11851 (exit $ac_status); }; } &&
16207 { ac_try='test -s conftest$ac_exeext' 11852 { ac_try='test -s conftest.$ac_objext'
16208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16209 (eval $ac_try) 2>&5 11854 (eval $ac_try) 2>&5
16210 ac_status=$? 11855 ac_status=$?
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); }; }; then 11857 (exit $ac_status); }; }; then
16213 ac_cv_lib_xpg4_setlocale=yes 11858 rxvt_broken_ximcb=yes
16214else 11859else
16215 echo "$as_me: failed program was:" >&5 11860 echo "$as_me: failed program was:" >&5
16216sed 's/^/| /' conftest.$ac_ext >&5 11861sed 's/^/| /' conftest.$ac_ext >&5
16217 11862
16218ac_cv_lib_xpg4_setlocale=no 11863rxvt_broken_ximcb=no
16219fi 11864fi
16220rm -f conftest.err conftest.$ac_objext \ 11865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16221 conftest$ac_exeext conftest.$ac_ext
16222LIBS=$ac_check_lib_save_LIBS
16223fi 11866fi
16224echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5 11867echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
16225echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6 11868echo "${ECHO_T}$rxvt_broken_ximcb" >&6
16226if test $ac_cv_lib_xpg4_setlocale = yes; then
16227 LIBS="$LIBS -lxpg4"
16228fi
16229 11869
16230 11870if test x$rxvt_broken_ximcb = xyes; then
16231if test x$support_inheritpixmap = xyes; then
16232 11871
16233cat >>confdefs.h <<\_ACEOF 11872cat >>confdefs.h <<\_ACEOF
16234#define TRANSPARENT 1 11873#define XIMCB_PROTO_BROKEN 1
16235_ACEOF 11874_ACEOF
16236 11875
16237fi 11876fi
16238if test x$support_keepscrolling = xno; then
16239 11877
16240cat >>confdefs.h <<\_ACEOF
16241#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
16242_ACEOF
16243 11878
16244fi
16245if test x$support_selectionscrolling = xyes; then
16246 11879
16247cat >>confdefs.h <<\_ACEOF
16248#define SELECTION_SCROLLING 1
16249_ACEOF
16250 11880
16251fi
16252if test x$support_menubar = xyes; then
16253 11881
16254cat >>confdefs.h <<\_ACEOF
16255#define MENUBAR 1
16256_ACEOF
16257 11882
16258fi
16259if test x$support_frills = xno; then
16260 11883
16261cat >>confdefs.h <<\_ACEOF 11884for ac_header in \
16262#define NO_FRILLS 1 11885 pty.h \
16263_ACEOF 11886 util.h \
11887 libutil.h \
11888 sys/ioctl.h \
11889 sys/stropts.h \
16264 11890
16265fi
16266if test x$support_linespace = xno; then
16267
16268cat >>confdefs.h <<\_ACEOF
16269#define NO_LINESPACE 1
16270_ACEOF
16271
16272fi
16273if test x$support_24bit = xyes; then
16274
16275cat >>confdefs.h <<\_ACEOF
16276#define PREFER_24BIT 1
16277_ACEOF
16278
16279fi
16280if test x$support_mousewheel = xyes; then
16281
16282cat >>confdefs.h <<\_ACEOF
16283#define MOUSE_WHEEL 1
16284_ACEOF
16285
16286fi
16287if test x$support_mouseslipwheel = xyes; then
16288
16289cat >>confdefs.h <<\_ACEOF
16290#define MOUSE_SLIP_WHEELING 1
16291_ACEOF
16292
16293fi
16294if test x$support_oldselection = xno; then
16295
16296cat >>confdefs.h <<\_ACEOF
16297#define NO_OLD_SELECTION 1
16298_ACEOF
16299
16300fi
16301if test x$support_utmp = xyes; then
16302
16303cat >>confdefs.h <<\_ACEOF
16304#define UTMP_SUPPORT 1
16305_ACEOF
16306
16307fi
16308if test x$support_wtmp = xyes; then
16309
16310cat >>confdefs.h <<\_ACEOF
16311#define WTMP_SUPPORT 1
16312_ACEOF
16313
16314fi
16315if test x$support_lastlog = xyes; then
16316
16317cat >>confdefs.h <<\_ACEOF
16318#define LASTLOG_SUPPORT 1
16319_ACEOF
16320
16321fi
16322if test x$support_xim = xyes -o x$multichar_set = xyes; then
16323 if test x$rxvt_cv_func_xlocale = xyes; then
16324
16325cat >>confdefs.h <<\_ACEOF
16326#define USE_XIM 1
16327_ACEOF
16328
16329 fi
16330fi
16331if test x$support_xpm = xyes; then
16332
16333cat >>confdefs.h <<\_ACEOF
16334#define XPM_BACKGROUND 1
16335_ACEOF
16336
16337fi
16338if test x$support_scroll_rxvt = xyes; then
16339
16340cat >>confdefs.h <<\_ACEOF
16341#define RXVT_SCROLLBAR 1
16342_ACEOF
16343
16344 scrolltypes="rxvt"
16345fi
16346if test x$support_scroll_next = xyes; then
16347
16348cat >>confdefs.h <<\_ACEOF
16349#define NEXT_SCROLLBAR 1
16350_ACEOF
16351
16352 scrolltypes="$scrolltypes next"
16353fi
16354if test x$support_scroll_xterm = xyes; then
16355
16356cat >>confdefs.h <<\_ACEOF
16357#define XTERM_SCROLLBAR 1
16358_ACEOF
16359
16360 scrolltypes="$scrolltypes xterm"
16361fi
16362if test x$support_scroll_plain = xyes; then
16363
16364cat >>confdefs.h <<\_ACEOF
16365#define PLAIN_SCROLLBAR 1
16366_ACEOF
16367
16368 scrolltypes="$scrolltypes plain"
16369fi
16370if test x$support_pointer_blank = xyes; then
16371
16372cat >>confdefs.h <<\_ACEOF
16373#define POINTER_BLANK 1
16374_ACEOF
16375
16376fi
16377if test x$support_cursor_blink = xyes; then
16378
16379cat >>confdefs.h <<\_ACEOF
16380#define CURSOR_BLINK 1
16381_ACEOF
16382
16383fi
16384if test x$support_text_blink = xyes; then
16385
16386cat >>confdefs.h <<\_ACEOF
16387#define TEXT_BLINK 1
16388_ACEOF
16389
16390fi
16391if test x$support_unicode3 = xyes; then
16392
16393cat >>confdefs.h <<\_ACEOF
16394#define UNICODE_3 1
16395_ACEOF
16396
16397fi
16398if test x$codesets = xall; then
16399 codesets=jp,jp-ext,kr,cn,cn-ext,vn
16400fi
16401for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
16402
16403cat >>confdefs.h <<\_ACEOF
16404#define ENCODING_EU 1
16405_ACEOF
16406
16407
16408cat >>confdefs.h <<\_ACEOF
16409#define ENCODING_VN 1
16410_ACEOF
16411
16412 case "$codeset" in
16413 JP )
16414cat >>confdefs.h <<\_ACEOF
16415#define ENCODING_JP 1
16416_ACEOF
16417 ;;
16418 JP_EXT )
16419cat >>confdefs.h <<\_ACEOF
16420#define ENCODING_JP_EXT 1
16421_ACEOF
16422 ;;
16423 KR )
16424cat >>confdefs.h <<\_ACEOF
16425#define ENCODING_KR 1
16426_ACEOF
16427 ;;
16428 CN )
16429cat >>confdefs.h <<\_ACEOF
16430#define ENCODING_CN 1
16431_ACEOF
16432 ;;
16433 CN_EXT )
16434cat >>confdefs.h <<\_ACEOF
16435#define ENCODING_CN_EXT 1
16436_ACEOF
16437 ;;
16438 esac
16439done
16440
16441
16442CFLAGS=${CFLAGS--O}
16443LDFLAGS=${LDFLAGS--O}
16444
16445CPPFLAGS="$CPPFLAGS"
16446
16447
16448
16449
16450
16451
16452
16453if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
16454 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
16455 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
16456 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
16457 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
16458 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
16459fi
16460
16461
16462
16463
16464
16465if test x$support_addstrings = xno; then
16466
16467cat >>confdefs.h <<\_ACEOF
16468#define NO_STRINGS 1
16469_ACEOF
16470
16471fi
16472
16473MCOMMON=./autoconf/Make.common
16474
16475
16476test "$program_prefix" != NONE &&
16477 program_transform_name="s,^,$program_prefix,;$program_transform_name"
16478# Use a double $ so make ignores it.
16479test "$program_suffix" != NONE &&
16480 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
16481# Double any \ or $. echo might interpret backslashes.
16482# By default was `s,x,x', remove it if useless.
16483cat <<\_ACEOF >conftest.sed
16484s/[\\$]/&&/g;s/;s,x,x,$//
16485_ACEOF
16486program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
16487rm conftest.sed
16488
16489
16490
16491
16492
16493if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
16494 include_stdint_h="#include <stdint.h>"
16495else
16496 include_stdint_h="/* #include <stdint.h> */"
16497fi
16498if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
16499 include_stdarg_h="#include <stdarg.h>"
16500else
16501 include_stdarg_h="/* #include <stdarg.h> */"
16502fi
16503if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
16504 include_stdlib_h="#include <stdlib.h>"
16505else
16506 include_stdlib_h="/* #include <stdlib.h> */"
16507fi
16508if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
16509 include_unistd_h="#include <unistd.h>"
16510else
16511 include_unistd_h="/* #include <unistd.h> */"
16512fi
16513if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
16514 include_string_h="#include <string.h>"
16515else
16516 include_string_h="/* #include <string.h> */"
16517fi
16518if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
16519 include_fcntl_h="#include <fcntl.h>"
16520else
16521 include_fcntl_h="/* #include <fcntl.h> */"
16522fi
16523if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
16524 include_util_h="#include <util.h>"
16525else
16526 include_util_h="/* #include <util.h> */"
16527fi
16528if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
16529 include_assert_h="#include <assert.h>"
16530else
16531 include_assert_h="/* #include <assert.h> */"
16532fi
16533if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
16534 include_sys_ioctl_h="#include <sys/ioctl.h>"
16535else
16536 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
16537fi
16538if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
16539 include_sys_select_h="#include <sys/select.h>"
16540else
16541 include_sys_select_h="/* #include <sys/select.h> */"
16542fi
16543if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
16544 include_sys_strredir_h="#include <sys/strredir.h>"
16545else
16546 include_sys_strredir_h="/* #include <sys/strredir.h> */"
16547fi
16548if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
16549 include_sys_time_h="#include <sys/time.h>"
16550else
16551 include_sys_time_h="/* #include <sys/time.h> */"
16552fi
16553if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
16554 include_time_h="#include <time.h>"
16555else
16556 include_time_h="/* #include <time.h> */"
16557fi
16558
16559if test x$support_xft = xyes; then
16560 LIBS="$LIBS `pkg-config xft --libs`"
16561 CFLAGS="$CFLAGS `pkg-config xft --cflags`"
16562 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
16563
16564
16565for ac_header in X11/Xft/Xft.h
16566do 11891do
16567as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11892as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16568if eval "test \"\${$as_ac_Header+set}\" = set"; then 11893if eval "test \"\${$as_ac_Header+set}\" = set"; then
16569 echo "$as_me:$LINENO: checking for $ac_header" >&5 11894 echo "$as_me:$LINENO: checking for $ac_header" >&5
16570echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11895echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16593 grep -v '^ *+' conftest.er1 >conftest.err 11918 grep -v '^ *+' conftest.er1 >conftest.err
16594 rm -f conftest.er1 11919 rm -f conftest.er1
16595 cat conftest.err >&5 11920 cat conftest.err >&5
16596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597 (exit $ac_status); } && 11922 (exit $ac_status); } &&
16598 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11923 { ac_try='test -z "$ac_cxx_werror_flag"
11924 || test ! -s conftest.err'
16599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16600 (eval $ac_try) 2>&5 11926 (eval $ac_try) 2>&5
16601 ac_status=$? 11927 ac_status=$?
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); }; } && 11929 (exit $ac_status); }; } &&
16704if test `eval echo '${'$as_ac_Header'}'` = yes; then 12030if test `eval echo '${'$as_ac_Header'}'` = yes; then
16705 cat >>confdefs.h <<_ACEOF 12031 cat >>confdefs.h <<_ACEOF
16706#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12032#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16707_ACEOF 12033_ACEOF
16708 12034
12035fi
12036
12037done
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049for ac_func in \
12050 revoke \
12051 _getpty \
12052 getpt \
12053 posix_openpt \
12054 isastream \
12055 setuid \
12056 seteuid \
12057 setreuid \
12058 setresuid \
12059
12060do
12061as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12062echo "$as_me:$LINENO: checking for $ac_func" >&5
12063echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12064if eval "test \"\${$as_ac_var+set}\" = set"; then
12065 echo $ECHO_N "(cached) $ECHO_C" >&6
12066else
12067 cat >conftest.$ac_ext <<_ACEOF
12068/* confdefs.h. */
12069_ACEOF
12070cat confdefs.h >>conftest.$ac_ext
12071cat >>conftest.$ac_ext <<_ACEOF
12072/* end confdefs.h. */
12073/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12075#define $ac_func innocuous_$ac_func
12076
12077/* System header to define __stub macros and hopefully few prototypes,
12078 which can conflict with char $ac_func (); below.
12079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12080 <limits.h> exists even on freestanding compilers. */
12081
12082#ifdef __STDC__
12083# include <limits.h>
12084#else
12085# include <assert.h>
12086#endif
12087
12088#undef $ac_func
12089
12090/* Override any gcc2 internal prototype to avoid an error. */
12091#ifdef __cplusplus
12092extern "C"
12093{
12094#endif
12095/* We use char because int might match the return type of a gcc2
12096 builtin and then its argument prototype would still apply. */
12097char $ac_func ();
12098/* The GNU C library defines this for functions which it implements
12099 to always fail with ENOSYS. Some functions are actually named
12100 something starting with __ and the normal name is an alias. */
12101#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12102choke me
12103#else
12104char (*f) () = $ac_func;
12105#endif
12106#ifdef __cplusplus
12107}
12108#endif
12109
12110int
12111main ()
12112{
12113return f != $ac_func;
12114 ;
12115 return 0;
12116}
12117_ACEOF
12118rm -f conftest.$ac_objext conftest$ac_exeext
12119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12120 (eval $ac_link) 2>conftest.er1
12121 ac_status=$?
12122 grep -v '^ *+' conftest.er1 >conftest.err
12123 rm -f conftest.er1
12124 cat conftest.err >&5
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); } &&
12127 { ac_try='test -z "$ac_cxx_werror_flag"
12128 || test ! -s conftest.err'
12129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12130 (eval $ac_try) 2>&5
12131 ac_status=$?
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); }; } &&
12134 { ac_try='test -s conftest$ac_exeext'
12135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136 (eval $ac_try) 2>&5
12137 ac_status=$?
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); }; }; then
12140 eval "$as_ac_var=yes"
12141else
12142 echo "$as_me: failed program was:" >&5
12143sed 's/^/| /' conftest.$ac_ext >&5
12144
12145eval "$as_ac_var=no"
12146fi
12147rm -f conftest.err conftest.$ac_objext \
12148 conftest$ac_exeext conftest.$ac_ext
12149fi
12150echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12151echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12152if test `eval echo '${'$as_ac_var'}'` = yes; then
12153 cat >>confdefs.h <<_ACEOF
12154#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12155_ACEOF
12156
12157fi
12158done
12159
12160
12161have_clone=no
12162
12163echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5
12164echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6
12165if test -e /dev/ptym/clone; then
12166 echo "$as_me:$LINENO: result: yes" >&5
12167echo "${ECHO_T}yes" >&6
12168
12169cat >>confdefs.h <<\_ACEOF
12170#define HAVE_DEV_CLONE 1
12171_ACEOF
12172
12173
12174cat >>confdefs.h <<\_ACEOF
12175#define CLONE_DEVICE "/dev/ptym/clone"
12176_ACEOF
12177
12178 have_clone=yes
12179else
12180 echo "$as_me:$LINENO: result: no" >&5
12181echo "${ECHO_T}no" >&6
12182fi
12183
12184echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12185echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
12186if test -e /dev/ptc; then
12187 echo "$as_me:$LINENO: result: yes" >&5
12188echo "${ECHO_T}yes" >&6
12189
12190cat >>confdefs.h <<\_ACEOF
12191#define HAVE_DEV_PTC 1
12192_ACEOF
12193
12194
12195cat >>confdefs.h <<\_ACEOF
12196#define CLONE_DEVICE "/dev/ptc"
12197_ACEOF
12198
12199 have_clone=yes
12200else
12201 echo "$as_me:$LINENO: result: no" >&5
12202echo "${ECHO_T}no" >&6
12203fi
12204
12205case $host in
12206 *-*-cygwin*)
12207 have_clone=yes
12208
12209cat >>confdefs.h <<\_ACEOF
12210#define CLONE_DEVICE "/dev/ptmx"
12211_ACEOF
12212
12213 ;;
12214 *)
12215 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
12216echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
12217 if test -e /dev/ptmx; then
12218 echo "$as_me:$LINENO: result: yes" >&5
12219echo "${ECHO_T}yes" >&6
12220
12221cat >>confdefs.h <<\_ACEOF
12222#define HAVE_DEV_PTMX 1
12223_ACEOF
12224
12225
12226cat >>confdefs.h <<\_ACEOF
12227#define CLONE_DEVICE "/dev/ptmx"
12228_ACEOF
12229
12230 have_clone=yes
12231 else
12232 echo "$as_me:$LINENO: result: no" >&5
12233echo "${ECHO_T}no" >&6
12234 fi
12235 ;;
12236esac
12237
12238if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then
12239 echo "$as_me:$LINENO: checking for UNIX98 ptys" >&5
12240echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6
12241 cat >conftest.$ac_ext <<_ACEOF
12242/* confdefs.h. */
12243_ACEOF
12244cat confdefs.h >>conftest.$ac_ext
12245cat >>conftest.$ac_ext <<_ACEOF
12246/* end confdefs.h. */
12247#include <stdlib.h>
12248int
12249main ()
12250{
12251grantpt(0);unlockpt(0);ptsname(0);
12252 ;
12253 return 0;
12254}
12255_ACEOF
12256rm -f conftest.$ac_objext conftest$ac_exeext
12257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12258 (eval $ac_link) 2>conftest.er1
12259 ac_status=$?
12260 grep -v '^ *+' conftest.er1 >conftest.err
12261 rm -f conftest.er1
12262 cat conftest.err >&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); } &&
12265 { ac_try='test -z "$ac_cxx_werror_flag"
12266 || test ! -s conftest.err'
12267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12268 (eval $ac_try) 2>&5
12269 ac_status=$?
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); }; } &&
12272 { ac_try='test -s conftest$ac_exeext'
12273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12274 (eval $ac_try) 2>&5
12275 ac_status=$?
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); }; }; then
12278 unix98_pty=yes
12279
12280cat >>confdefs.h <<\_ACEOF
12281#define UNIX98_PTY 1
12282_ACEOF
12283
12284 echo "$as_me:$LINENO: result: yes" >&5
12285echo "${ECHO_T}yes" >&6
12286else
12287 echo "$as_me: failed program was:" >&5
12288sed 's/^/| /' conftest.$ac_ext >&5
12289
12290echo "$as_me:$LINENO: result: no" >&5
12291echo "${ECHO_T}no" >&6
12292fi
12293rm -f conftest.err conftest.$ac_objext \
12294 conftest$ac_exeext conftest.$ac_ext
12295fi
12296
12297if test -z "$unix98_pty"; then
12298
12299for ac_func in openpty
12300do
12301as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12302echo "$as_me:$LINENO: checking for $ac_func" >&5
12303echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12304if eval "test \"\${$as_ac_var+set}\" = set"; then
12305 echo $ECHO_N "(cached) $ECHO_C" >&6
12306else
12307 cat >conftest.$ac_ext <<_ACEOF
12308/* confdefs.h. */
12309_ACEOF
12310cat confdefs.h >>conftest.$ac_ext
12311cat >>conftest.$ac_ext <<_ACEOF
12312/* end confdefs.h. */
12313/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12315#define $ac_func innocuous_$ac_func
12316
12317/* System header to define __stub macros and hopefully few prototypes,
12318 which can conflict with char $ac_func (); below.
12319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12320 <limits.h> exists even on freestanding compilers. */
12321
12322#ifdef __STDC__
12323# include <limits.h>
12324#else
12325# include <assert.h>
12326#endif
12327
12328#undef $ac_func
12329
12330/* Override any gcc2 internal prototype to avoid an error. */
12331#ifdef __cplusplus
12332extern "C"
12333{
12334#endif
12335/* We use char because int might match the return type of a gcc2
12336 builtin and then its argument prototype would still apply. */
12337char $ac_func ();
12338/* The GNU C library defines this for functions which it implements
12339 to always fail with ENOSYS. Some functions are actually named
12340 something starting with __ and the normal name is an alias. */
12341#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12342choke me
12343#else
12344char (*f) () = $ac_func;
12345#endif
12346#ifdef __cplusplus
12347}
12348#endif
12349
12350int
12351main ()
12352{
12353return f != $ac_func;
12354 ;
12355 return 0;
12356}
12357_ACEOF
12358rm -f conftest.$ac_objext conftest$ac_exeext
12359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12360 (eval $ac_link) 2>conftest.er1
12361 ac_status=$?
12362 grep -v '^ *+' conftest.er1 >conftest.err
12363 rm -f conftest.er1
12364 cat conftest.err >&5
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); } &&
12367 { ac_try='test -z "$ac_cxx_werror_flag"
12368 || test ! -s conftest.err'
12369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370 (eval $ac_try) 2>&5
12371 ac_status=$?
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; } &&
12374 { ac_try='test -s conftest$ac_exeext'
12375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12376 (eval $ac_try) 2>&5
12377 ac_status=$?
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); }; }; then
12380 eval "$as_ac_var=yes"
12381else
12382 echo "$as_me: failed program was:" >&5
12383sed 's/^/| /' conftest.$ac_ext >&5
12384
12385eval "$as_ac_var=no"
12386fi
12387rm -f conftest.err conftest.$ac_objext \
12388 conftest$ac_exeext conftest.$ac_ext
12389fi
12390echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12391echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12392if test `eval echo '${'$as_ac_var'}'` = yes; then
12393 cat >>confdefs.h <<_ACEOF
12394#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12395_ACEOF
12396
12397else
12398 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
12399echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
12400if test "${ac_cv_lib_util_openpty+set}" = set; then
12401 echo $ECHO_N "(cached) $ECHO_C" >&6
12402else
12403 ac_check_lib_save_LIBS=$LIBS
12404LIBS="-lutil $LIBS"
12405cat >conftest.$ac_ext <<_ACEOF
12406/* confdefs.h. */
12407_ACEOF
12408cat confdefs.h >>conftest.$ac_ext
12409cat >>conftest.$ac_ext <<_ACEOF
12410/* end confdefs.h. */
12411
12412/* Override any gcc2 internal prototype to avoid an error. */
12413#ifdef __cplusplus
12414extern "C"
12415#endif
12416/* We use char because int might match the return type of a gcc2
12417 builtin and then its argument prototype would still apply. */
12418char openpty ();
12419int
12420main ()
12421{
12422openpty ();
12423 ;
12424 return 0;
12425}
12426_ACEOF
12427rm -f conftest.$ac_objext conftest$ac_exeext
12428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12429 (eval $ac_link) 2>conftest.er1
12430 ac_status=$?
12431 grep -v '^ *+' conftest.er1 >conftest.err
12432 rm -f conftest.er1
12433 cat conftest.err >&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); } &&
12436 { ac_try='test -z "$ac_cxx_werror_flag"
12437 || test ! -s conftest.err'
12438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12439 (eval $ac_try) 2>&5
12440 ac_status=$?
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); }; } &&
12443 { ac_try='test -s conftest$ac_exeext'
12444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12445 (eval $ac_try) 2>&5
12446 ac_status=$?
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); }; }; then
12449 ac_cv_lib_util_openpty=yes
12450else
12451 echo "$as_me: failed program was:" >&5
12452sed 's/^/| /' conftest.$ac_ext >&5
12453
12454ac_cv_lib_util_openpty=no
12455fi
12456rm -f conftest.err conftest.$ac_objext \
12457 conftest$ac_exeext conftest.$ac_ext
12458LIBS=$ac_check_lib_save_LIBS
12459fi
12460echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
12461echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
12462if test $ac_cv_lib_util_openpty = yes; then
12463 cat >>confdefs.h <<\_ACEOF
12464#define HAVE_OPENPTY 1
12465_ACEOF
12466 LIBS="$LIBS -lutil"
12467fi
12468
12469fi
12470done
12471
12472fi
12473
12474
12475
12476echo "$as_me:$LINENO: checking for tty group" >&5
12477echo $ECHO_N "checking for tty group... $ECHO_C" >&6
12478if test "${tty_group+set}" = set; then
12479 echo $ECHO_N "(cached) $ECHO_C" >&6
12480else
12481 if test "$cross_compiling" = yes; then
12482 tty_group=no
12483else
12484 cat >conftest.$ac_ext <<_ACEOF
12485/* confdefs.h. */
12486_ACEOF
12487cat confdefs.h >>conftest.$ac_ext
12488cat >>conftest.$ac_ext <<_ACEOF
12489/* end confdefs.h. */
12490
12491#include <sys/types.h>
12492#include <sys/stat.h>
12493#include <unistd.h>
12494#include <grp.h>
12495
12496main()
12497{
12498 struct stat st;
12499 struct group *gr;
12500 char *tty;
12501 gr = getgrnam("tty");
12502 tty = ttyname(0);
12503 if (gr != 0
12504 && tty != 0
12505 && (stat(tty, &st)) == 0
12506 && st.st_gid == gr->gr_gid)
12507 return 0;
12508 else
12509 return 1;
12510}
12511_ACEOF
12512rm -f conftest$ac_exeext
12513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12514 (eval $ac_link) 2>&5
12515 ac_status=$?
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12519 (eval $ac_try) 2>&5
12520 ac_status=$?
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); }; }; then
12523 tty_group=yes
12524else
12525 echo "$as_me: program exited with status $ac_status" >&5
12526echo "$as_me: failed program was:" >&5
12527sed 's/^/| /' conftest.$ac_ext >&5
12528
12529( exit $ac_status )
12530tty_group=no
12531fi
12532rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12533fi
12534fi
12535echo "$as_me:$LINENO: result: $tty_group" >&5
12536echo "${ECHO_T}$tty_group" >&6
12537if test x$tty_group = xyes; then
12538
12539cat >>confdefs.h <<\_ACEOF
12540#define TTY_GID_SUPPORT 1
12541_ACEOF
12542
12543fi
12544
12545if test x$support_xft = xyes; then
12546 # Extract the first word of "pkg-config", so it can be a program name with args.
12547set dummy pkg-config; ac_word=$2
12548echo "$as_me:$LINENO: checking for $ac_word" >&5
12549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12550if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12551 echo $ECHO_N "(cached) $ECHO_C" >&6
12552else
12553 case $PKG_CONFIG in
12554 [\\/]* | ?:[\\/]*)
12555 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12556 ;;
12557 *)
12558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12559for as_dir in $PATH
12560do
12561 IFS=$as_save_IFS
12562 test -z "$as_dir" && as_dir=.
12563 for ac_exec_ext in '' $ac_executable_extensions; do
12564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12565 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12567 break 2
12568 fi
12569done
12570done
12571
12572 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12573 ;;
12574esac
12575fi
12576PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12577
12578if test -n "$PKG_CONFIG"; then
12579 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12580echo "${ECHO_T}$PKG_CONFIG" >&6
12581else
12582 echo "$as_me:$LINENO: result: no" >&5
12583echo "${ECHO_T}no" >&6
12584fi
12585
12586 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
12587 LIBS="$LIBS `$PKG_CONFIG xft --libs`"
12588 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
12589 else
12590 # Extract the first word of "xft-config", so it can be a program name with args.
12591set dummy xft-config; ac_word=$2
12592echo "$as_me:$LINENO: checking for $ac_word" >&5
12593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12594if test "${ac_cv_path_XFT_CONFIG+set}" = set; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12596else
12597 case $XFT_CONFIG in
12598 [\\/]* | ?:[\\/]*)
12599 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
12600 ;;
12601 *)
12602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12603for as_dir in $PATH
12604do
12605 IFS=$as_save_IFS
12606 test -z "$as_dir" && as_dir=.
12607 for ac_exec_ext in '' $ac_executable_extensions; do
12608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12609 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12611 break 2
12612 fi
12613done
12614done
12615
12616 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
12617 ;;
12618esac
12619fi
12620XFT_CONFIG=$ac_cv_path_XFT_CONFIG
12621
12622if test -n "$XFT_CONFIG"; then
12623 echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5
12624echo "${ECHO_T}$XFT_CONFIG" >&6
12625else
12626 echo "$as_me:$LINENO: result: no" >&5
12627echo "${ECHO_T}no" >&6
12628fi
12629
12630 if test $XFT_CONFIG != no; then
12631 LIBS="$LIBS `$XFT_CONFIG --libs`"
12632 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
12633 fi
12634 fi
12635
12636
12637for ac_header in X11/Xft/Xft.h
12638do
12639as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12640if eval "test \"\${$as_ac_Header+set}\" = set"; then
12641 echo "$as_me:$LINENO: checking for $ac_header" >&5
12642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12643if eval "test \"\${$as_ac_Header+set}\" = set"; then
12644 echo $ECHO_N "(cached) $ECHO_C" >&6
12645fi
12646echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12647echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12648else
12649 # Is the header compilable?
12650echo "$as_me:$LINENO: checking $ac_header usability" >&5
12651echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12652cat >conftest.$ac_ext <<_ACEOF
12653/* confdefs.h. */
12654_ACEOF
12655cat confdefs.h >>conftest.$ac_ext
12656cat >>conftest.$ac_ext <<_ACEOF
12657/* end confdefs.h. */
12658$ac_includes_default
12659#include <$ac_header>
12660_ACEOF
12661rm -f conftest.$ac_objext
12662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12663 (eval $ac_compile) 2>conftest.er1
12664 ac_status=$?
12665 grep -v '^ *+' conftest.er1 >conftest.err
12666 rm -f conftest.er1
12667 cat conftest.err >&5
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); } &&
12670 { ac_try='test -z "$ac_cxx_werror_flag"
12671 || test ! -s conftest.err'
12672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12673 (eval $ac_try) 2>&5
12674 ac_status=$?
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); }; } &&
12677 { ac_try='test -s conftest.$ac_objext'
12678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12679 (eval $ac_try) 2>&5
12680 ac_status=$?
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); }; }; then
12683 ac_header_compiler=yes
12684else
12685 echo "$as_me: failed program was:" >&5
12686sed 's/^/| /' conftest.$ac_ext >&5
12687
12688ac_header_compiler=no
12689fi
12690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12691echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12692echo "${ECHO_T}$ac_header_compiler" >&6
12693
12694# Is the header present?
12695echo "$as_me:$LINENO: checking $ac_header presence" >&5
12696echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12697cat >conftest.$ac_ext <<_ACEOF
12698/* confdefs.h. */
12699_ACEOF
12700cat confdefs.h >>conftest.$ac_ext
12701cat >>conftest.$ac_ext <<_ACEOF
12702/* end confdefs.h. */
12703#include <$ac_header>
12704_ACEOF
12705if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12707 ac_status=$?
12708 grep -v '^ *+' conftest.er1 >conftest.err
12709 rm -f conftest.er1
12710 cat conftest.err >&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); } >/dev/null; then
12713 if test -s conftest.err; then
12714 ac_cpp_err=$ac_cxx_preproc_warn_flag
12715 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12716 else
12717 ac_cpp_err=
12718 fi
12719else
12720 ac_cpp_err=yes
12721fi
12722if test -z "$ac_cpp_err"; then
12723 ac_header_preproc=yes
12724else
12725 echo "$as_me: failed program was:" >&5
12726sed 's/^/| /' conftest.$ac_ext >&5
12727
12728 ac_header_preproc=no
12729fi
12730rm -f conftest.err conftest.$ac_ext
12731echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12732echo "${ECHO_T}$ac_header_preproc" >&6
12733
12734# So? What about this header?
12735case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12736 yes:no: )
12737 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12738echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12740echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12741 ac_header_preproc=yes
12742 ;;
12743 no:yes:* )
12744 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12745echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12746 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12747echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12748 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12749echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12750 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12751echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12753echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12754 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12755echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12756 (
12757 cat <<\_ASBOX
12758## ------------------------------------------ ##
12759## Report this to the AC_PACKAGE_NAME lists. ##
12760## ------------------------------------------ ##
12761_ASBOX
12762 ) |
12763 sed "s/^/$as_me: WARNING: /" >&2
12764 ;;
12765esac
12766echo "$as_me:$LINENO: checking for $ac_header" >&5
12767echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12768if eval "test \"\${$as_ac_Header+set}\" = set"; then
12769 echo $ECHO_N "(cached) $ECHO_C" >&6
12770else
12771 eval "$as_ac_Header=\$ac_header_preproc"
12772fi
12773echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12774echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12775
12776fi
12777if test `eval echo '${'$as_ac_Header'}'` = yes; then
12778 cat >>confdefs.h <<_ACEOF
12779#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12780_ACEOF
12781
16709else 12782else
16710 support_xft=no 12783 support_xft=no
16711fi 12784fi
16712 12785
16713done 12786done
16749 grep -v '^ *+' conftest.er1 >conftest.err 12822 grep -v '^ *+' conftest.er1 >conftest.err
16750 rm -f conftest.er1 12823 rm -f conftest.er1
16751 cat conftest.err >&5 12824 cat conftest.err >&5
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); } && 12826 (exit $ac_status); } &&
16754 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 12827 { ac_try='test -z "$ac_cxx_werror_flag"
12828 || test ! -s conftest.err'
16755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16756 (eval $ac_try) 2>&5 12830 (eval $ac_try) 2>&5
16757 ac_status=$? 12831 ac_status=$?
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); }; } && 12833 (exit $ac_status); }; } &&
16794#define XFT 1 12868#define XFT 1
16795_ACEOF 12869_ACEOF
16796 12870
16797 fi 12871 fi
16798fi 12872fi
12873if test x$support_styles = xyes; then
16799 12874
12875cat >>confdefs.h <<\_ACEOF
12876#define ENABLE_STYLES 1
12877_ACEOF
12878
12879fi
12880if test x$support_iso14755 = xyes; then
12881
12882cat >>confdefs.h <<\_ACEOF
12883#define ISO_14755 1
12884_ACEOF
12885
12886fi
12887if test x$support_8bitctrls = xyes; then
12888
12889cat >>confdefs.h <<\_ACEOF
12890#define EIGHT_BIT_CONTROLS 1
12891_ACEOF
12892
12893fi
12894if test x$support_fading = xyes; then
12895
12896cat >>confdefs.h <<\_ACEOF
12897#define OFF_FOCUS_FADING 1
12898_ACEOF
12899
12900fi
12901if test x$support_tinting = xyes; then
12902
12903cat >>confdefs.h <<\_ACEOF
12904#define TINTING 1
12905_ACEOF
12906
12907fi
12908if test x$support_inheritpixmap = xyes; then
12909
12910cat >>confdefs.h <<\_ACEOF
12911#define TRANSPARENT 1
12912_ACEOF
12913
12914fi
12915if test x$support_keepscrolling = xno; then
12916
12917cat >>confdefs.h <<\_ACEOF
12918#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
12919_ACEOF
12920
12921fi
12922if test x$support_selectionscrolling = xyes; then
12923
12924cat >>confdefs.h <<\_ACEOF
12925#define SELECTION_SCROLLING 1
12926_ACEOF
12927
12928fi
12929if test x$support_frills = xyes; then
12930
12931cat >>confdefs.h <<\_ACEOF
12932#define ENABLE_FRILLS 1
12933_ACEOF
12934
12935fi
12936if test x$support_mousewheel = xyes; then
12937
12938cat >>confdefs.h <<\_ACEOF
12939#define MOUSE_WHEEL 1
12940_ACEOF
12941
12942fi
12943if test x$support_mouseslipwheel = xyes; then
12944
12945cat >>confdefs.h <<\_ACEOF
12946#define MOUSE_SLIP_WHEELING 1
12947_ACEOF
12948
12949fi
12950if test x$support_xim = xyes -o x$multichar_set = xyes; then
12951 if test x$rxvt_cv_func_xlocale = xyes; then
12952
12953cat >>confdefs.h <<\_ACEOF
12954#define USE_XIM 1
12955_ACEOF
12956
12957 fi
12958fi
12959if test x$support_xpm = xyes -o x$support_afterimage = xyes ; then
12960
12961cat >>confdefs.h <<\_ACEOF
12962#define XPM_BACKGROUND 1
12963_ACEOF
12964
12965fi
12966
12967if test x$support_afterimage = xyes; then
12968
12969cat >>confdefs.h <<\_ACEOF
12970#define HAVE_AFTERIMAGE 1
12971_ACEOF
12972
12973fi
12974
12975if test x$support_afterstep = xyes; then
12976
12977cat >>confdefs.h <<\_ACEOF
12978#define AFTERSTEP_INTEGRATION 1
12979_ACEOF
12980
12981fi
12982
12983if test x$support_scroll_rxvt = xyes; then
12984
12985cat >>confdefs.h <<\_ACEOF
12986#define RXVT_SCROLLBAR 1
12987_ACEOF
12988
12989 scrolltypes="rxvt"
12990fi
12991if test x$support_scroll_next = xyes; then
12992
12993cat >>confdefs.h <<\_ACEOF
12994#define NEXT_SCROLLBAR 1
12995_ACEOF
12996
12997 scrolltypes="$scrolltypes next"
12998fi
12999if test x$support_scroll_xterm = xyes; then
13000
13001cat >>confdefs.h <<\_ACEOF
13002#define XTERM_SCROLLBAR 1
13003_ACEOF
13004
13005 scrolltypes="$scrolltypes xterm"
13006fi
13007if test x$support_scroll_plain = xyes; then
13008
13009cat >>confdefs.h <<\_ACEOF
13010#define PLAIN_SCROLLBAR 1
13011_ACEOF
13012
13013 scrolltypes="$scrolltypes plain"
13014fi
13015if test x$support_pointer_blank = xyes; then
13016
13017cat >>confdefs.h <<\_ACEOF
13018#define POINTER_BLANK 1
13019_ACEOF
13020
13021fi
13022if test x$support_text_blink = xyes; then
13023
13024cat >>confdefs.h <<\_ACEOF
13025#define TEXT_BLINK 1
13026_ACEOF
13027
13028fi
13029if test x$support_unicode3 = xyes; then
13030
13031cat >>confdefs.h <<\_ACEOF
13032#define UNICODE_3 1
13033_ACEOF
13034
13035fi
13036if test x$support_combining = xyes; then
13037
13038cat >>confdefs.h <<\_ACEOF
13039#define ENABLE_COMBINING 1
13040_ACEOF
13041
13042fi
13043if test x$codesets = xall; then
13044 codesets=jp,jp-ext,kr,zh,zh-ext
13045fi
13046
13047cat >>confdefs.h <<\_ACEOF
13048#define ENCODING_EU 1
13049_ACEOF
13050
13051
13052cat >>confdefs.h <<\_ACEOF
13053#define ENCODING_VN 1
13054_ACEOF
13055
13056for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
13057 case "$codeset" in
13058 JP )
13059cat >>confdefs.h <<\_ACEOF
13060#define ENCODING_JP 1
13061_ACEOF
13062 ;;
13063 JP_EXT )
13064cat >>confdefs.h <<\_ACEOF
13065#define ENCODING_JP_EXT 1
13066_ACEOF
13067 ;;
13068 KR )
13069cat >>confdefs.h <<\_ACEOF
13070#define ENCODING_KR 1
13071_ACEOF
13072 ;;
13073 ZH )
13074cat >>confdefs.h <<\_ACEOF
13075#define ENCODING_ZH 1
13076_ACEOF
13077 ;;
13078 ZH_EXT )
13079cat >>confdefs.h <<\_ACEOF
13080#define ENCODING_ZH_EXT 1
13081_ACEOF
13082 ;;
13083 esac
13084done
13085
13086IF_PERL=\#
13087if test x$support_perl = xyes; then
13088 # Extract the first word of "perl5", so it can be a program name with args.
13089set dummy perl5; ac_word=$2
13090echo "$as_me:$LINENO: checking for $ac_word" >&5
13091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13092if test "${ac_cv_path_PERL+set}" = set; then
13093 echo $ECHO_N "(cached) $ECHO_C" >&6
13094else
13095 case $PERL in
13096 [\\/]* | ?:[\\/]*)
13097 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13098 ;;
13099 *)
13100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13101for as_dir in $PATH
13102do
13103 IFS=$as_save_IFS
13104 test -z "$as_dir" && as_dir=.
13105 for ac_exec_ext in '' $ac_executable_extensions; do
13106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13107 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13109 break 2
13110 fi
13111done
13112done
13113
13114 ;;
13115esac
13116fi
13117PERL=$ac_cv_path_PERL
13118
13119if test -n "$PERL"; then
13120 echo "$as_me:$LINENO: result: $PERL" >&5
13121echo "${ECHO_T}$PERL" >&6
13122else
13123 echo "$as_me:$LINENO: result: no" >&5
13124echo "${ECHO_T}no" >&6
13125fi
13126
13127 # Extract the first word of "perl", so it can be a program name with args.
13128set dummy perl; ac_word=$2
13129echo "$as_me:$LINENO: checking for $ac_word" >&5
13130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13131if test "${ac_cv_path_PERL+set}" = set; then
13132 echo $ECHO_N "(cached) $ECHO_C" >&6
13133else
13134 case $PERL in
13135 [\\/]* | ?:[\\/]*)
13136 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13137 ;;
13138 *)
13139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13140for as_dir in $PATH
13141do
13142 IFS=$as_save_IFS
13143 test -z "$as_dir" && as_dir=.
13144 for ac_exec_ext in '' $ac_executable_extensions; do
13145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13146 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13148 break 2
13149 fi
13150done
13151done
13152
13153 ;;
13154esac
13155fi
13156PERL=$ac_cv_path_PERL
13157
13158if test -n "$PERL"; then
13159 echo "$as_me:$LINENO: result: $PERL" >&5
13160echo "${ECHO_T}$PERL" >&6
13161else
13162 echo "$as_me:$LINENO: result: no" >&5
13163echo "${ECHO_T}no" >&6
13164fi
13165
13166
13167 echo "$as_me:$LINENO: checking for $PERL suitability" >&5
13168echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6
13169 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
13170
13171 save_CXXFLAGS="$CXXFLAGS"
13172 save_LIBS="$LIBS"
13173 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
13174 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
13175 cat >conftest.$ac_ext <<_ACEOF
13176/* confdefs.h. */
13177_ACEOF
13178cat confdefs.h >>conftest.$ac_ext
13179cat >>conftest.$ac_ext <<_ACEOF
13180/* end confdefs.h. */
13181
13182#include <EXTERN.h>
13183#include <perl.h>
13184#include <XSUB.h>
13185
13186int
13187main ()
13188{
13189
13190 PerlInterpreter *perl = perl_alloc ();
13191
13192 ;
13193 return 0;
13194}
13195_ACEOF
13196rm -f conftest.$ac_objext conftest$ac_exeext
13197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13198 (eval $ac_link) 2>conftest.er1
13199 ac_status=$?
13200 grep -v '^ *+' conftest.er1 >conftest.err
13201 rm -f conftest.er1
13202 cat conftest.err >&5
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); } &&
13205 { ac_try='test -z "$ac_cxx_werror_flag"
13206 || test ! -s conftest.err'
13207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13208 (eval $ac_try) 2>&5
13209 ac_status=$?
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); }; } &&
13212 { ac_try='test -s conftest$ac_exeext'
13213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13214 (eval $ac_try) 2>&5
13215 ac_status=$?
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); }; }; then
13218 rxvt_perl_link=yes
13219else
13220 echo "$as_me: failed program was:" >&5
13221sed 's/^/| /' conftest.$ac_ext >&5
13222
13223rxvt_perl_link=no
13224fi
13225rm -f conftest.err conftest.$ac_objext \
13226 conftest$ac_exeext conftest.$ac_ext
13227 CXXFLAGS="$save_CXXFLAGS"
13228 LIBS="$save_LIBS"
13229
13230 if test x$rxvt_perl_link = xyes; then
13231 echo "$as_me:$LINENO: result: ok" >&5
13232echo "${ECHO_T}ok" >&6
13233
13234cat >>confdefs.h <<\_ACEOF
13235#define ENABLE_PERL 1
13236_ACEOF
13237
13238 IF_PERL=
13239 PERL_O=rxvtperl.o
13240 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
13241 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
13242 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
13243 else
13244 { { echo "$as_me:$LINENO: error: no, unable to link" >&5
13245echo "$as_me: error: no, unable to link" >&2;}
13246 { (exit 1); exit 1; }; }
13247 fi
13248 else
13249 { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5
13250echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;}
13251 { (exit 1); exit 1; }; }
13252 fi
13253fi
13254
13255
13256
13257
13258
13259
13260
13261if test x$support_perl = xyes; then
13262 support_frills=yes
13263fi
13264
13265
13266
13267
13268
13269
13270if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
13271 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
13272 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
13273 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
13274 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
13275fi
13276
13277
13278
13279
13280
13281
13282
13283test "$program_prefix" != NONE &&
13284 program_transform_name="s,^,$program_prefix,;$program_transform_name"
13285# Use a double $ so make ignores it.
13286test "$program_suffix" != NONE &&
13287 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
13288# Double any \ or $. echo might interpret backslashes.
13289# By default was `s,x,x', remove it if useless.
13290cat <<\_ACEOF >conftest.sed
13291s/[\\$]/&&/g;s/;s,x,x,$//
13292_ACEOF
13293program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
13294rm conftest.sed
13295
13296
13297
13298
13299
13300if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
13301 include_stdint_h="#include <stdint.h>"
13302else
13303 include_stdint_h="/* #include <stdint.h> */"
13304fi
13305if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
13306 include_stdarg_h="#include <cstdarg>"
13307else
13308 include_stdarg_h="/* #include <cstdarg> */"
13309fi
13310if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
13311 include_stdlib_h="#include <cstdlib>"
13312else
13313 include_stdlib_h="/* #include <cstdlib> */"
13314fi
13315if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
13316 include_unistd_h="#include <unistd.h>"
13317else
13318 include_unistd_h="/* #include <unistd.h> */"
13319fi
13320if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
13321 include_string_h="#include <cstring>"
13322else
13323 include_string_h="/* #include <cstring> */"
13324fi
13325if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
13326 include_fcntl_h="#include <fcntl.h>"
13327else
13328 include_fcntl_h="/* #include <fcntl.h> */"
13329fi
13330if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
13331 include_util_h="#include <util.h>"
13332else
13333 include_util_h="/* #include <util.h> */"
13334fi
13335if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
13336 include_assert_h="#include <assert.h>"
13337else
13338 include_assert_h="/* #include <assert.h> */"
13339fi
13340if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
13341 include_sys_ioctl_h="#include <sys/ioctl.h>"
13342else
13343 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
13344fi
13345if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
13346 include_sys_select_h="#include <sys/select.h>"
13347else
13348 include_sys_select_h="/* #include <sys/select.h> */"
13349fi
13350if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
13351 include_sys_strredir_h="#include <sys/strredir.h>"
13352else
13353 include_sys_strredir_h="/* #include <sys/strredir.h> */"
13354fi
13355if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
13356 include_sys_time_h="#include <sys/time.h>"
13357else
13358 include_sys_time_h="/* #include <sys/time.h> */"
13359fi
13360if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
13361 include_time_h="#include <time.h>"
13362else
13363 include_time_h="/* #include <time.h> */"
13364fi
13365
16800 ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/test/Makefile src/rxvtlib.h W11/Makefile" 13366 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h"
13367
16801cat >confcache <<\_ACEOF 13368cat >confcache <<\_ACEOF
16802# This file is a shell script that caches the results of configure 13369# This file is a shell script that caches the results of configure
16803# tests run on this system so they can be shared between configure 13370# tests run on this system so they can be shared between configure
16804# scripts and configure runs, see configure's option --config-cache. 13371# scripts and configure runs, see configure's option --config-cache.
16805# It is not useful on other systems. If it contains results you don't 13372# It is not useful on other systems. If it contains results you don't
17321cat >>$CONFIG_STATUS <<\_ACEOF 13888cat >>$CONFIG_STATUS <<\_ACEOF
17322for ac_config_target in $ac_config_targets 13889for ac_config_target in $ac_config_targets
17323do 13890do
17324 case "$ac_config_target" in 13891 case "$ac_config_target" in
17325 # Handling of arguments. 13892 # Handling of arguments.
17326 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
17327 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13893 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17328 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 13894 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17329 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 13895 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17330 "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
17331 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; 13896 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
17332 "W11/Makefile" ) CONFIG_FILES="$CONFIG_FILES W11/Makefile" ;;
17333 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;; 13897 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
17334 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 13898 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17335echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 13899echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17336 { (exit 1); exit 1; }; };; 13900 { (exit 1); exit 1; }; };;
17337 esac 13901 esac
17338done 13902done
17413s,@DEFS@,$DEFS,;t t 13977s,@DEFS@,$DEFS,;t t
17414s,@ECHO_C@,$ECHO_C,;t t 13978s,@ECHO_C@,$ECHO_C,;t t
17415s,@ECHO_N@,$ECHO_N,;t t 13979s,@ECHO_N@,$ECHO_N,;t t
17416s,@ECHO_T@,$ECHO_T,;t t 13980s,@ECHO_T@,$ECHO_T,;t t
17417s,@LIBS@,$LIBS,;t t 13981s,@LIBS@,$LIBS,;t t
13982s,@build@,$build,;t t
13983s,@build_cpu@,$build_cpu,;t t
13984s,@build_vendor@,$build_vendor,;t t
13985s,@build_os@,$build_os,;t t
13986s,@host@,$host,;t t
13987s,@host_cpu@,$host_cpu,;t t
13988s,@host_vendor@,$host_vendor,;t t
13989s,@host_os@,$host_os,;t t
17418s,@VERSION@,$VERSION,;t t 13990s,@VERSION@,$VERSION,;t t
17419s,@DATE@,$DATE,;t t 13991s,@DATE@,$DATE,;t t
17420s,@LSMDATE@,$LSMDATE,;t t 13992s,@LSMDATE@,$LSMDATE,;t t
17421s,@LIBVERSION@,$LIBVERSION,;t t 13993s,@LIBVERSION@,$LIBVERSION,;t t
17422s,@CC@,$CC,;t t 13994s,@CC@,$CC,;t t
17431s,@ac_ct_CXX@,$ac_ct_CXX,;t t 14003s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17432s,@CPP@,$CPP,;t t 14004s,@CPP@,$CPP,;t t
17433s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 14005s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17434s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 14006s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17435s,@INSTALL_DATA@,$INSTALL_DATA,;t t 14007s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17436s,@AWK@,$AWK,;t t 14008s,@EGREP@,$EGREP,;t t
17437s,@LINKER@,$LINKER,;t t 14009s,@LINKER@,$LINKER,;t t
17438s,@CXXCPP@,$CXXCPP,;t t 14010s,@CXXLIB@,$CXXLIB,;t t
17439s,@EGREP@,$EGREP,;t t
17440s,@build@,$build,;t t
17441s,@build_cpu@,$build_cpu,;t t
17442s,@build_vendor@,$build_vendor,;t t
17443s,@build_os@,$build_os,;t t
17444s,@host@,$host,;t t
17445s,@host_cpu@,$host_cpu,;t t
17446s,@host_vendor@,$host_vendor,;t t
17447s,@host_os@,$host_os,;t t
17448s,@LN_S@,$LN_S,;t t
17449s,@ECHO@,$ECHO,;t t
17450s,@RANLIB@,$RANLIB,;t t
17451s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17452s,@STRIP@,$STRIP,;t t
17453s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17454s,@LIBTOOL@,$LIBTOOL,;t t
17455s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t 14011s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
17456s,@RXVTNAME@,$RXVTNAME,;t t 14012s,@RXVTNAME@,$RXVTNAME,;t t
17457s,@MV@,$MV,;t t
17458s,@RM@,$RM,;t t
17459s,@CP@,$CP,;t t 14013s,@TIC@,$TIC,;t t
17460s,@LN@,$LN,;t t
17461s,@SED@,$SED,;t t
17462s,@CMP@,$CMP,;t t 14014s,@CXXCPP@,$CXXCPP,;t t
17463s,@TBL@,$TBL,;t t
17464s,@X_CFLAGS@,$X_CFLAGS,;t t 14015s,@X_CFLAGS@,$X_CFLAGS,;t t
17465s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 14016s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17466s,@X_LIBS@,$X_LIBS,;t t 14017s,@X_LIBS@,$X_LIBS,;t t
17467s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 14018s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
14019s,@afterimage_config@,$afterimage_config,;t t
17468s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t 14020s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
17469s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t 14021s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t
17470s,@XPM_LIBS@,$XPM_LIBS,;t t 14022s,@XPM_LIBS@,$XPM_LIBS,;t t
17471s,@rxvt_int16_typedef@,$rxvt_int16_typedef,;t t 14023s,@rxvt_int16_typedef@,$rxvt_int16_typedef,;t t
17472s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t 14024s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
17473s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t 14025s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
17474s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t 14026s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
17475s,@rxvt_intp_define@,$rxvt_intp_define,;t t 14027s,@rxvt_intp_define@,$rxvt_intp_define,;t t
17476s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t 14028s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
17477s,@DEBUG@,$DEBUG,;t t 14029s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17478s,@DINCLUDE@,$DINCLUDE,;t t 14030s,@XFT_CONFIG@,$XFT_CONFIG,;t t
14031s,@PERL@,$PERL,;t t
17479s,@DLIB@,$DLIB,;t t 14032s,@PERLLIB@,$PERLLIB,;t t
14033s,@PERLFLAGS@,$PERLFLAGS,;t t
14034s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t
14035s,@IF_PERL@,$IF_PERL,;t t
14036s,@PERL_O@,$PERL_O,;t t
14037s,@LIBAFTERIMAGE_CFLAGS@,$LIBAFTERIMAGE_CFLAGS,;t t
14038s,@AFTERIMAGE_LIBS@,$AFTERIMAGE_LIBS,;t t
17480s,@include_stdint_h@,$include_stdint_h,;t t 14039s,@include_stdint_h@,$include_stdint_h,;t t
17481s,@include_stdarg_h@,$include_stdarg_h,;t t 14040s,@include_stdarg_h@,$include_stdarg_h,;t t
17482s,@include_stdlib_h@,$include_stdlib_h,;t t 14041s,@include_stdlib_h@,$include_stdlib_h,;t t
17483s,@include_unistd_h@,$include_unistd_h,;t t 14042s,@include_unistd_h@,$include_unistd_h,;t t
17484s,@include_string_h@,$include_string_h,;t t 14043s,@include_string_h@,$include_string_h,;t t
17490s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t 14049s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t
17491s,@include_sys_time_h@,$include_sys_time_h,;t t 14050s,@include_sys_time_h@,$include_sys_time_h,;t t
17492s,@include_time_h@,$include_time_h,;t t 14051s,@include_time_h@,$include_time_h,;t t
17493s,@LIBOBJS@,$LIBOBJS,;t t 14052s,@LIBOBJS@,$LIBOBJS,;t t
17494s,@LTLIBOBJS@,$LTLIBOBJS,;t t 14053s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17495/@MCOMMON@/r $MCOMMON
17496s,@MCOMMON@,,;t t
17497CEOF 14054CEOF
17498 14055
17499_ACEOF 14056_ACEOF
17500 14057
17501 cat >>$CONFIG_STATUS <<\_ACEOF 14058 cat >>$CONFIG_STATUS <<\_ACEOF
17658 case $INSTALL in 14215 case $INSTALL in
17659 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14216 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17660 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 14217 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17661 esac 14218 esac
17662 14219
14220 if test x"$ac_file" != x-; then
14221 { echo "$as_me:$LINENO: creating $ac_file" >&5
14222echo "$as_me: creating $ac_file" >&6;}
14223 rm -f "$ac_file"
14224 fi
17663 # Let's still pretend it is `configure' which instantiates (i.e., don't 14225 # Let's still pretend it is `configure' which instantiates (i.e., don't
17664 # use $as_me), people would be surprised to read: 14226 # use $as_me), people would be surprised to read:
17665 # /* config.h. Generated by config.status. */ 14227 # /* config.h. Generated by config.status. */
17666 if test x"$ac_file" = x-; then 14228 if test x"$ac_file" = x-; then
17667 configure_input= 14229 configure_input=
17696echo "$as_me: error: cannot find input file: $f" >&2;} 14258echo "$as_me: error: cannot find input file: $f" >&2;}
17697 { (exit 1); exit 1; }; } 14259 { (exit 1); exit 1; }; }
17698 fi;; 14260 fi;;
17699 esac 14261 esac
17700 done` || { (exit 1); exit 1; } 14262 done` || { (exit 1); exit 1; }
17701
17702 if test x"$ac_file" != x-; then
17703 { echo "$as_me:$LINENO: creating $ac_file" >&5
17704echo "$as_me: creating $ac_file" >&6;}
17705 rm -f "$ac_file"
17706 fi
17707_ACEOF 14263_ACEOF
17708cat >>$CONFIG_STATUS <<_ACEOF 14264cat >>$CONFIG_STATUS <<_ACEOF
17709 sed "$ac_vpsub 14265 sed "$ac_vpsub
17710$extrasub 14266$extrasub
17711_ACEOF 14267_ACEOF
17991 14547
17992 Rxvt version: $VERSION : $DATE 14548 Rxvt version: $VERSION : $DATE
17993 Source code location: $srcdir 14549 Source code location: $srcdir
17994 Install path: ${prefix}/bin 14550 Install path: ${prefix}/bin
17995 Compiler: $CXX 14551 Compiler: $CXX
17996 Compiler flags: $CFLAGS 14552 Compiler flags: $CXXFLAGS
17997 Linker: $LINKER" 14553 Linker: $LINKER"
17998
17999if test "$MALLOC_TYPE" = S; then
18000 echo " malloc support: system default"
18001fi
18002if test "$MALLOC_TYPE" = G; then
18003 echo " malloc support: Gray Watson's dmalloc"
18004fi
18005if test "$MALLOC_TYPE" = D; then
18006 echo " malloc support: Doug Lea's malloc"
18007fi
18008 14554
18009if test x$support_xpm = xyes; then 14555if test x$support_xpm = xyes; then
18010 echo " Xpm library: $XPM_LIBS" 14556 echo " Xpm library: $XPM_LIBS"
18011fi 14557fi
18012 14558
18013echo " 14559if test x$support_afterimage = xyes; then
18014The following are set in config.h 14560 echo " AfterImage support: yes"
18015" 14561fi
18016echo " pty/tty type: "$rxvt_cv_ptys 14562
18017if test x$support_utmp != xyes; then 14563if test x$support_afterstep = xyes; then
18018 echo " utmp support: disabled 14564 echo " AfterStep integration: yes"
18019"
18020else
18021 echo " utmp support: enabled
18022 utmp file: $rxvt_cv_path_utmp
18023 utmpx file: $rxvt_cv_path_utmpx
18024 wtmp file: $rxvt_cv_path_wtmp
18025 wtmpx file: $rxvt_cv_path_wtmpx
18026 lastlog file: $rxvt_cv_path_lastlog
18027 ttys/ttytab file: $rxvt_cv_path_ttytab
18028"
18029fi 14565fi
14566
18030if test x$term != x; then 14567if test x$term != x; then
18031 echo " set TERM to: $term 14568 echo " set TERM to: $term"
18032"
18033fi 14569fi
18034if test x$terminfo != x; then 14570if test x$terminfo != x; then
18035 echo " set TERMINFO to: $terminfo 14571 echo " set TERMINFO to: $terminfo"
18036"
18037fi 14572fi
18038if test x$rxvt_cv_ptys = xUNKNOWN; then 14573echo " default resource name: $RESNAME"
18039 echo ".----------------------------------------------------------------." 14574echo " resource class: $RESCLASS"
18040 echo ". WARNING: could not determine pty/tty type. Do not build until ." 14575if test x$RESFALLBACK != x; then
18041 echo ". the appropriate PTYS_ARE_* is defined in config.h ." 14576 echo " resource class fallback: $RESFALLBACK"
18042 echo ".----------------------------------------------------------------."
18043fi 14577fi
14578echo
14579echo " embedded perl: $support_perl"
14580echo
18044if test x$support_xpm = xneedsmanualspecification; then 14581if test x$support_xpm = xneedsmanualspecification; then
18045 echo ".----------------------------------------------------------------." 14582 echo ".----------------------------------------------------------------."
18046 echo ". WARNING: --enable-xpm-background was specified however the ." 14583 echo ". WARNING: --enable-xpm-background was specified however the ."
18047 echo ". XPM includes files and libraries could not be found. ." 14584 echo ". XPM includes files and libraries could not be found. ."
18048 echo ". XPM backgrounds are now being DISABLED! If you want ." 14585 echo ". XPM backgrounds are now being DISABLED! If you want ."
18056 echo ". WARNING: --enable-xim was specified however the locale support ." 14593 echo ". WARNING: --enable-xim was specified however the locale support ."
18057 echo ". functions could not be found. ." 14594 echo ". functions could not be found. ."
18058 echo ". XIM is now being DISABLED! ." 14595 echo ". XIM is now being DISABLED! ."
18059 echo ".----------------------------------------------------------------." 14596 echo ".----------------------------------------------------------------."
18060fi 14597fi
14598
18061echo " *** Please check src/feature.h for further options *** 14599echo "*** Optionally check src/feature.h for further, rarely used options ***"
18062" 14600echo
14601

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines