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

Comparing rxvt-unicode/configure (file contents):
Revision 1.34 by root, Sun Aug 15 04:42:45 2004 UTC vs.
Revision 1.90 by root, Sun Jan 22 17:10:01 2006 UTC

239 239
240# CDPATH. 240# CDPATH.
241$as_unset CDPATH 241$as_unset CDPATH
242 242
243 243
244# Find the correct PATH separator. Usually this is `:', but
245# DJGPP uses `;' like DOS.
246if test "X${PATH_SEPARATOR+set}" != Xset; then
247 UNAME=${UNAME-`uname 2>/dev/null`}
248 case X$UNAME in
249 *-DOS) lt_cv_sys_path_separator=';' ;;
250 *) lt_cv_sys_path_separator=':' ;;
251 esac
252fi
253
254
255# Check that we are running under the correct shell.
256SHELL=${CONFIG_SHELL-/bin/sh}
257
258case "X$ECHO" in
259X*--fallback-echo)
260 # Remove one level of quotation (which was required for Make).
261 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
262 ;;
263esac
264
265echo=${ECHO-echo}
266if test "X$1" = X--no-reexec; then
267 # Discard the --no-reexec flag, and continue.
268 shift
269elif test "X$1" = X--fallback-echo; then
270 # Avoid inline document here, it may be left over
271 :
272elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
273 # Yippee, $echo works!
274 :
275else
276 # Restart under the correct shell.
277 exec $SHELL "$0" --no-reexec ${1+"$@"}
278fi
279
280if test "X$1" = X--fallback-echo; then
281 # used as fallback echo
282 shift
283 cat <<EOF
284
285EOF
286 exit 0
287fi
288
289# The HP-UX ksh and POSIX shell print the target directory to stdout
290# if CDPATH is set.
291if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
292
293if test -z "$ECHO"; then
294if test "X${echo_test_string+set}" != Xset; then
295# find a string as large as possible, as long as the shell can cope with it
296 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
297 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
298 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
299 echo_test_string="`eval $cmd`" &&
300 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301 then
302 break
303 fi
304 done
305fi
306
307if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
308 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
309 test "X$echo_testing_string" = "X$echo_test_string"; then
310 :
311else
312 # The Solaris, AIX, and Digital Unix default echo programs unquote
313 # backslashes. This makes it impossible to quote backslashes using
314 # echo "$something" | sed 's/\\/\\\\/g'
315 #
316 # So, first we look for a working echo in the user's PATH.
317
318 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
319 for dir in $PATH /usr/ucb; do
320 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323 test "X$echo_testing_string" = "X$echo_test_string"; then
324 echo="$dir/echo"
325 break
326 fi
327 done
328 IFS="$save_ifs"
329
330 if test "X$echo" = Xecho; then
331 # We didn't find a better echo, so look for alternatives.
332 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334 test "X$echo_testing_string" = "X$echo_test_string"; then
335 # This shell has a builtin print -r that does the trick.
336 echo='print -r'
337 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338 test "X$CONFIG_SHELL" != X/bin/ksh; then
339 # If we have ksh, try running ltconfig again with it.
340 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341 export ORIGINAL_CONFIG_SHELL
342 CONFIG_SHELL=/bin/ksh
343 export CONFIG_SHELL
344 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345 else
346 # Try using printf.
347 echo='printf %s\n'
348 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350 test "X$echo_testing_string" = "X$echo_test_string"; then
351 # Cool, printf works
352 :
353 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358 export CONFIG_SHELL
359 SHELL="$CONFIG_SHELL"
360 export SHELL
361 echo="$CONFIG_SHELL $0 --fallback-echo"
362 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363 test "X$echo_testing_string" = 'X\t' &&
364 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365 test "X$echo_testing_string" = "X$echo_test_string"; then
366 echo="$CONFIG_SHELL $0 --fallback-echo"
367 else
368 # maybe with a smaller string...
369 prev=:
370
371 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373 then
374 break
375 fi
376 prev="$cmd"
377 done
378
379 if test "$prev" != 'sed 50q "$0"'; then
380 echo_test_string=`eval $prev`
381 export echo_test_string
382 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383 else
384 # Oops. We lost completely, so just stick with echo.
385 echo=echo
386 fi
387 fi
388 fi
389 fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
400
401
402# Name of the host. 244# Name of the host.
403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404# so uname gets run too. 246# so uname gets run too.
405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406 248
465#endif 307#endif
466#if HAVE_UNISTD_H 308#if HAVE_UNISTD_H
467# include <unistd.h> 309# include <unistd.h>
468#endif" 310#endif"
469 311
470ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK LINKER CXXCPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP LIBTOOL INSTALL_LIBRXVT RXVTNAME MV RM CP LN SED CMP TBL X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define DEBUG DINCLUDE DLIB include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS' 312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA EGREP LINKER INSTALL_LIBRXVT RXVTNAME MV RM CP LN SED ECHO CMP TIC CXXCPP 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 PKG_CONFIG XFT_CONFIG PERL PERLLIB PERLFLAGS PERLPRIVLIBEXP IF_PERL PERL_O 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'
471ac_subst_files='MCOMMON' 313ac_subst_files=''
472 314
473# Initialize some variables set by options. 315# Initialize some variables set by options.
474ac_init_help= 316ac_init_help=
475ac_init_version=false 317ac_init_version=false
476# The variables have the same names as the options, with 318# The variables have the same names as the options, with
1021 cat <<\_ACEOF 863 cat <<\_ACEOF
1022 864
1023Optional Features: 865Optional Features:
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 866 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 867 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --enable-shared=PKGS build shared libraries default=no
1027 --enable-static=PKGS build static libraries default=yes
1028 --enable-fast-install=PKGS optimize for fast installation default=yes
1029 --disable-libtool-lock avoid locking (might break parallel builds)
1030 --enable-everything enable standard non-multichoice features 868 --enable-everything enable standard non-multichoice features
1031 NOTE: this option is order dependent 869 NOTE: this option is order dependent
1032 NOTE: automatically enabled with --enable-shared 870 NOTE: automatically enabled with --enable-shared
1033 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters 871 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1034 --enable-combining enable composition of base and combining characters 872 --enable-combining enable composition of base and combining characters
1035 --enable-xft enable xft support on systems that have it 873 --enable-xft enable xft support on systems that have it
874 --enable-font-styles enable bold and italic support
1036 --enable-utmp enable utmp (utmpx) support 875 --enable-utmp enable utmp (utmpx) support
1037 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) 876 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1038 --enable-lastlog enable lastlog support (requires --enable-utmp) 877 --enable-lastlog enable lastlog support (requires --enable-utmp)
1039 --enable-xpm-background enable XPM background pixmaps 878 --enable-xpm-background enable XPM background pixmaps
1040 --enable-transparency enable transparent backgrounds 879 --enable-transparency enable transparent backgrounds
1041 --enable-tinting enable tinting of transparent bg 880 --enable-tinting enable tinting of transparent bg
1042 --enable-fading enable colors fading when off focus 881 --enable-fading enable colors fading when off focus
1043 --enable-menubar enable menubar
1044 --enable-rxvt-scroll enable rxvt style scrollbar 882 --enable-rxvt-scroll enable rxvt style scrollbar
1045 --enable-next-scroll enable NeXT style scrollbar 883 --enable-next-scroll enable NeXT style scrollbar
1046 --enable-xterm-scroll enable Xterm style scrollbar 884 --enable-xterm-scroll enable Xterm style scrollbar
885 --enable-perl enable embedded perl interpreter
1047 --enable-plain-scroll enable plain style scrollbar 886 --enable-plain-scroll enable plain style scrollbar
1048 --enable-half-shadow use half width/height shadow on rxvt scrollbar
1049 --enable-xim XIM (X Input Method) protocol support 887 --enable-xim XIM (X Input Method) protocol support
1050 --enable-ttygid enable tty setting to group named "tty"
1051 --disable-backspace-key disable handling of the backspace key 888 --disable-backspace-key disable handling of the backspace key
1052 --disable-delete-key disable handling of the delete key 889 --disable-delete-key disable handling of the delete key
1053 --disable-resources disable all resource checking 890 --disable-resources disable all resource checking
1054 --enable-xgetdefault enable resources via X instead of our small version
1055 --enable-8bitctrls enable 8 bit control sequences (not recommended) 891 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1056 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) 892 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
1057 --enable-strings enable some replacement system functions
1058 --disable-swapscreen disable swap screen support 893 --disable-swapscreen disable swap screen support
1059 --enable-iso14755 enable support for extended ISO 14755 modes 894 --enable-iso14755 enable support for extended ISO 14755 modes
1060 --enable-frills enable support for rarely used features 895 --enable-frills enable support for rarely used features
1061 --enable-linespace enable support for linespace
1062 --enable-24bit enable support for using 24bit visuals if available 896 --enable-24bit enable support for using 24bit visuals if available
1063 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 897 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1064 --enable-selectionscrolling enable scrolling during selections 898 --enable-selectionscrolling enable scrolling during selections
1065 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 899 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1066 --enable-slipwheeling enable slip wheel scrolling (requires previous) 900 --enable-slipwheeling enable slip wheel scrolling (requires previous)
1067 --enable-dmalloc enable Gray Watson's malloc - for debugging use 901 --enable-dmalloc enable Gray Watson's malloc - for debugging use
1068 --enable-dlmalloc enable Doug Lea's malloc - for production use 902 --enable-dlmalloc enable Doug Lea's malloc - for production use
1069 NOTE: enable only one malloc package 903 NOTE: enable only one malloc package
1070 --enable-smart-resize enable smart growth/shrink behaviour 904 --enable-smart-resize enable smart growth/shrink behaviour
1071 --enable-256-color enable 256-color support
1072 --enable-cursor-blink enable blinking cursor
1073 --enable-text-blink enable blinking text 905 --enable-text-blink enable blinking text
1074 --enable-pointer-blank enable pointer blank when typing or inactive pointer 906 --enable-pointer-blank enable pointer blank when typing or inactive pointer
1075 907
1076Optional Packages: 908Optional Packages:
1077 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 909 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1078 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 910 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1079 --with-gnu-ld assume the C compiler uses GNU ld default=no
1080 --with-pic try to use only PIC/non-PIC objects default=use both
1081 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,all) 911 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
1082 --with-res-name=NAME use this as default resource name (default: urxvt) 912 --with-res-name=NAME use this as default resource name (default: urxvt)
1083 --with-res-class=CLASS use this as the resource class (default: URxvt) 913 --with-res-class=CLASS use this as the resource class (default: URxvt)
1084 --with-name=NAME set the basename for the installed binaries (default: urxvt) 914 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1085 --with-term=NAME set the terminal to NAME (default: rxvt) 915 --with-term=NAME set the terminal to NAME (default: rxvt)
1086 --with-terminfo=PATH set the path to the terminfo tree to PATH 916 --with-terminfo=PATH set the path to the terminfo tree to PATH
1538 1368
1539 1369
1540 1370
1541 1371
1542 1372
1373
1374 ac_config_headers="$ac_config_headers config.h:config.h.in"
1375
1376
1543ac_aux_dir= 1377ac_aux_dir=
1544for ac_dir in autoconf $srcdir/autoconf; do 1378for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1545 if test -f $ac_dir/install-sh; then 1379 if test -f $ac_dir/install-sh; then
1546 ac_aux_dir=$ac_dir 1380 ac_aux_dir=$ac_dir
1547 ac_install_sh="$ac_aux_dir/install-sh -c" 1381 ac_install_sh="$ac_aux_dir/install-sh -c"
1548 break 1382 break
1549 elif test -f $ac_dir/install.sh; then 1383 elif test -f $ac_dir/install.sh; then
1555 ac_install_sh="$ac_aux_dir/shtool install -c" 1389 ac_install_sh="$ac_aux_dir/shtool install -c"
1556 break 1390 break
1557 fi 1391 fi
1558done 1392done
1559if test -z "$ac_aux_dir"; then 1393if test -z "$ac_aux_dir"; then
1560 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 1394 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1561echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} 1395echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1562 { (exit 1); exit 1; }; } 1396 { (exit 1); exit 1; }; }
1563fi 1397fi
1564ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1398ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1565ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1399ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1566ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1400ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1567 1401
1568 ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in" 1402# Make sure we can run config.sub.
1403$ac_config_sub sun4 >/dev/null 2>&1 ||
1404 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1405echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1406 { (exit 1); exit 1; }; }
1407
1408echo "$as_me:$LINENO: checking build system type" >&5
1409echo $ECHO_N "checking build system type... $ECHO_C" >&6
1410if test "${ac_cv_build+set}" = set; then
1411 echo $ECHO_N "(cached) $ECHO_C" >&6
1412else
1413 ac_cv_build_alias=$build_alias
1414test -z "$ac_cv_build_alias" &&
1415 ac_cv_build_alias=`$ac_config_guess`
1416test -z "$ac_cv_build_alias" &&
1417 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1418echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1419 { (exit 1); exit 1; }; }
1420ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1421 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1422echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1423 { (exit 1); exit 1; }; }
1424
1425fi
1426echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1427echo "${ECHO_T}$ac_cv_build" >&6
1428build=$ac_cv_build
1429build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1430build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1431build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1432
1433
1434echo "$as_me:$LINENO: checking host system type" >&5
1435echo $ECHO_N "checking host system type... $ECHO_C" >&6
1436if test "${ac_cv_host+set}" = set; then
1437 echo $ECHO_N "(cached) $ECHO_C" >&6
1438else
1439 ac_cv_host_alias=$host_alias
1440test -z "$ac_cv_host_alias" &&
1441 ac_cv_host_alias=$ac_cv_build_alias
1442ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1443 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1444echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1445 { (exit 1); exit 1; }; }
1446
1447fi
1448echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1449echo "${ECHO_T}$ac_cv_host" >&6
1450host=$ac_cv_host
1451host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1452host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1453host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1454
1569 1455
1570 1456
1571VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1457VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1572DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1458DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1573LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1574LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1575echo "" 1459echo ""
1576echo "configuring for rxvt $VERSION" 1460echo "configuring for rxvt $VERSION"
1577echo "" 1461echo ""
1462
1463orig_CXXFLAGS="$CXXFLAGS"
1578 1464
1579 1465
1580ac_ext=c 1466ac_ext=c
1581ac_cpp='$CPP $CPPFLAGS' 1467ac_cpp='$CPP $CPPFLAGS'
1582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3163 3049
3164test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3050test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3165 3051
3166test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3052test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3167 3053
3168for ac_prog in gawk mawk nawk awk
3169do
3170 # Extract the first word of "$ac_prog", so it can be a program name with args.
3171set dummy $ac_prog; ac_word=$2
3172echo "$as_me:$LINENO: checking for $ac_word" >&5
3173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3174if test "${ac_cv_prog_AWK+set}" = set; then
3175 echo $ECHO_N "(cached) $ECHO_C" >&6
3176else
3177 if test -n "$AWK"; then
3178 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3179else
3180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181for as_dir in $PATH
3182do
3183 IFS=$as_save_IFS
3184 test -z "$as_dir" && as_dir=.
3185 for ac_exec_ext in '' $ac_executable_extensions; do
3186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3187 ac_cv_prog_AWK="$ac_prog"
3188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3189 break 2
3190 fi
3191done
3192done
3193 3054
3194fi
3195fi
3196AWK=$ac_cv_prog_AWK
3197if test -n "$AWK"; then
3198 echo "$as_me:$LINENO: result: $AWK" >&5
3199echo "${ECHO_T}$AWK" >&6
3200else
3201 echo "$as_me:$LINENO: result: no" >&5
3202echo "${ECHO_T}no" >&6
3203fi
3204
3205 test -n "$AWK" && break
3206done
3207
3208
3209ac_ext=c
3210ac_cpp='$CPP $CPPFLAGS'
3211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3213ac_compiler_gnu=$ac_cv_c_compiler_gnu
3214
3215
3216LINKER="$CXX"
3217if test x$GCC = xyes && test x$GXX = xyes; then
3218
3219echo "$as_me:$LINENO: checking for main in -lsupc++" >&5
3220echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6
3221if test "${ac_cv_lib_supcpp_main+set}" = set; then
3222 echo $ECHO_N "(cached) $ECHO_C" >&6
3223else
3224 ac_check_lib_save_LIBS=$LIBS
3225LIBS="-lsupc++ $LIBS"
3226cat >conftest.$ac_ext <<_ACEOF
3227/* confdefs.h. */
3228_ACEOF
3229cat confdefs.h >>conftest.$ac_ext
3230cat >>conftest.$ac_ext <<_ACEOF
3231/* end confdefs.h. */
3232
3233
3234int
3235main ()
3236{
3237main ();
3238 ;
3239 return 0;
3240}
3241_ACEOF
3242rm -f conftest.$ac_objext conftest$ac_exeext
3243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3244 (eval $ac_link) 2>conftest.er1
3245 ac_status=$?
3246 grep -v '^ *+' conftest.er1 >conftest.err
3247 rm -f conftest.er1
3248 cat conftest.err >&5
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); } &&
3251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3253 (eval $ac_try) 2>&5
3254 ac_status=$?
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); }; } &&
3257 { ac_try='test -s conftest$ac_exeext'
3258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3259 (eval $ac_try) 2>&5
3260 ac_status=$?
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }; }; then
3263 ac_cv_lib_supcpp_main=yes
3264else
3265 echo "$as_me: failed program was:" >&5
3266sed 's/^/| /' conftest.$ac_ext >&5
3267
3268ac_cv_lib_supcpp_main=no
3269fi
3270rm -f conftest.err conftest.$ac_objext \
3271 conftest$ac_exeext conftest.$ac_ext
3272LIBS=$ac_check_lib_save_LIBS
3273fi
3274echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5
3275echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6
3276if test $ac_cv_lib_supcpp_main = yes; then
3277
3278 LINKER="$CC"
3279 LIBS="$LIBS -lsupc++"
3280
3281fi
3282
3283fi
3284LINKER=$LINKER
3285
3286
3287CPPFLAGS="-D_GNU_SOURCE -D_XOPEN_SOURCE"
3288
3289
3290ac_ext=cc
3291ac_cpp='$CXXCPP $CPPFLAGS'
3292ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3293ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3294ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3295
3296
3297
3298ac_ext=cc
3299ac_cpp='$CXXCPP $CPPFLAGS'
3300ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3301ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3302ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3303echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3304echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3305if test -z "$CXXCPP"; then
3306 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3307 echo $ECHO_N "(cached) $ECHO_C" >&6
3308else
3309 # Double quotes because CXXCPP needs to be expanded
3310 for CXXCPP in "$CXX -E" "/lib/cpp"
3311 do
3312 ac_preproc_ok=false
3313for ac_cxx_preproc_warn_flag in '' yes
3314do
3315 # Use a header file that comes with gcc, so configuring glibc
3316 # with a fresh cross-compiler works.
3317 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3318 # <limits.h> exists even on freestanding compilers.
3319 # On the NeXT, cc -E runs the code through the compiler's parser,
3320 # not just through cpp. "Syntax error" is here to catch this case.
3321 cat >conftest.$ac_ext <<_ACEOF
3322/* confdefs.h. */
3323_ACEOF
3324cat confdefs.h >>conftest.$ac_ext
3325cat >>conftest.$ac_ext <<_ACEOF
3326/* end confdefs.h. */
3327#ifdef __STDC__
3328# include <limits.h>
3329#else
3330# include <assert.h>
3331#endif
3332 Syntax error
3333_ACEOF
3334if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3335 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3336 ac_status=$?
3337 grep -v '^ *+' conftest.er1 >conftest.err
3338 rm -f conftest.er1
3339 cat conftest.err >&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); } >/dev/null; then
3342 if test -s conftest.err; then
3343 ac_cpp_err=$ac_cxx_preproc_warn_flag
3344 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3345 else
3346 ac_cpp_err=
3347 fi
3348else
3349 ac_cpp_err=yes
3350fi
3351if test -z "$ac_cpp_err"; then
3352 :
3353else
3354 echo "$as_me: failed program was:" >&5
3355sed 's/^/| /' conftest.$ac_ext >&5
3356
3357 # Broken: fails on valid input.
3358continue
3359fi
3360rm -f conftest.err conftest.$ac_ext
3361
3362 # OK, works on sane cases. Now check whether non-existent headers
3363 # can be detected and how.
3364 cat >conftest.$ac_ext <<_ACEOF
3365/* confdefs.h. */
3366_ACEOF
3367cat confdefs.h >>conftest.$ac_ext
3368cat >>conftest.$ac_ext <<_ACEOF
3369/* end confdefs.h. */
3370#include <ac_nonexistent.h>
3371_ACEOF
3372if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3374 ac_status=$?
3375 grep -v '^ *+' conftest.er1 >conftest.err
3376 rm -f conftest.er1
3377 cat conftest.err >&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); } >/dev/null; then
3380 if test -s conftest.err; then
3381 ac_cpp_err=$ac_cxx_preproc_warn_flag
3382 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3383 else
3384 ac_cpp_err=
3385 fi
3386else
3387 ac_cpp_err=yes
3388fi
3389if test -z "$ac_cpp_err"; then
3390 # Broken: success on invalid input.
3391continue
3392else
3393 echo "$as_me: failed program was:" >&5
3394sed 's/^/| /' conftest.$ac_ext >&5
3395
3396 # Passes both tests.
3397ac_preproc_ok=:
3398break
3399fi
3400rm -f conftest.err conftest.$ac_ext
3401
3402done
3403# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3404rm -f conftest.err conftest.$ac_ext
3405if $ac_preproc_ok; then
3406 break
3407fi
3408
3409 done
3410 ac_cv_prog_CXXCPP=$CXXCPP
3411
3412fi
3413 CXXCPP=$ac_cv_prog_CXXCPP
3414else
3415 ac_cv_prog_CXXCPP=$CXXCPP
3416fi
3417echo "$as_me:$LINENO: result: $CXXCPP" >&5
3418echo "${ECHO_T}$CXXCPP" >&6
3419ac_preproc_ok=false
3420for ac_cxx_preproc_warn_flag in '' yes
3421do
3422 # Use a header file that comes with gcc, so configuring glibc
3423 # with a fresh cross-compiler works.
3424 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3425 # <limits.h> exists even on freestanding compilers.
3426 # On the NeXT, cc -E runs the code through the compiler's parser,
3427 # not just through cpp. "Syntax error" is here to catch this case.
3428 cat >conftest.$ac_ext <<_ACEOF
3429/* confdefs.h. */
3430_ACEOF
3431cat confdefs.h >>conftest.$ac_ext
3432cat >>conftest.$ac_ext <<_ACEOF
3433/* end confdefs.h. */
3434#ifdef __STDC__
3435# include <limits.h>
3436#else
3437# include <assert.h>
3438#endif
3439 Syntax error
3440_ACEOF
3441if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3443 ac_status=$?
3444 grep -v '^ *+' conftest.er1 >conftest.err
3445 rm -f conftest.er1
3446 cat conftest.err >&5
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); } >/dev/null; then
3449 if test -s conftest.err; then
3450 ac_cpp_err=$ac_cxx_preproc_warn_flag
3451 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3452 else
3453 ac_cpp_err=
3454 fi
3455else
3456 ac_cpp_err=yes
3457fi
3458if test -z "$ac_cpp_err"; then
3459 :
3460else
3461 echo "$as_me: failed program was:" >&5
3462sed 's/^/| /' conftest.$ac_ext >&5
3463
3464 # Broken: fails on valid input.
3465continue
3466fi
3467rm -f conftest.err conftest.$ac_ext
3468
3469 # OK, works on sane cases. Now check whether non-existent headers
3470 # can be detected and how.
3471 cat >conftest.$ac_ext <<_ACEOF
3472/* confdefs.h. */
3473_ACEOF
3474cat confdefs.h >>conftest.$ac_ext
3475cat >>conftest.$ac_ext <<_ACEOF
3476/* end confdefs.h. */
3477#include <ac_nonexistent.h>
3478_ACEOF
3479if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3481 ac_status=$?
3482 grep -v '^ *+' conftest.er1 >conftest.err
3483 rm -f conftest.er1
3484 cat conftest.err >&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); } >/dev/null; then
3487 if test -s conftest.err; then
3488 ac_cpp_err=$ac_cxx_preproc_warn_flag
3489 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3490 else
3491 ac_cpp_err=
3492 fi
3493else
3494 ac_cpp_err=yes
3495fi
3496if test -z "$ac_cpp_err"; then
3497 # Broken: success on invalid input.
3498continue
3499else
3500 echo "$as_me: failed program was:" >&5
3501sed 's/^/| /' conftest.$ac_ext >&5
3502
3503 # Passes both tests.
3504ac_preproc_ok=:
3505break
3506fi
3507rm -f conftest.err conftest.$ac_ext
3508
3509done
3510# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3511rm -f conftest.err conftest.$ac_ext
3512if $ac_preproc_ok; then
3513 :
3514else
3515 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3516See \`config.log' for more details." >&5
3517echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3518See \`config.log' for more details." >&2;}
3519 { (exit 1); exit 1; }; }
3520fi
3521
3522ac_ext=cc
3523ac_cpp='$CXXCPP $CPPFLAGS'
3524ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3525ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3526ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3527 3055
3528 3056
3529echo "$as_me:$LINENO: checking for egrep" >&5 3057echo "$as_me:$LINENO: checking for egrep" >&5
3530echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3058echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3531if test "${ac_cv_prog_egrep+set}" = set; then 3059if test "${ac_cv_prog_egrep+set}" = set; then
3606 grep -v '^ *+' conftest.er1 >conftest.err 3134 grep -v '^ *+' conftest.er1 >conftest.err
3607 rm -f conftest.er1 3135 rm -f conftest.er1
3608 cat conftest.err >&5 3136 cat conftest.err >&5
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); } && 3138 (exit $ac_status); } &&
3611 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613 (eval $ac_try) 2>&5 3141 (eval $ac_try) 2>&5
3614 ac_status=$? 3142 ac_status=$?
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); }; } && 3144 (exit $ac_status); }; } &&
3660 grep -v '^ *+' conftest.er1 >conftest.err 3188 grep -v '^ *+' conftest.er1 >conftest.err
3661 rm -f conftest.er1 3189 rm -f conftest.er1
3662 cat conftest.err >&5 3190 cat conftest.err >&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); } && 3192 (exit $ac_status); } &&
3665 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3667 (eval $ac_try) 2>&5 3195 (eval $ac_try) 2>&5
3668 ac_status=$? 3196 ac_status=$?
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); }; } && 3198 (exit $ac_status); }; } &&
3692if test "$ac_cv_search_strerror" != no; then 3220if test "$ac_cv_search_strerror" != no; then
3693 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 3221 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3694 3222
3695fi 3223fi
3696 3224
3225ac_ext=cc
3226ac_cpp='$CXXCPP $CPPFLAGS'
3227ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3228ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3229ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3697 3230
3231
3232if test x$GCC = xyes && test x$GXX = xyes; then
3233 echo "$as_me:$LINENO: checking for working libsupc++" >&5
3234echo $ECHO_N "checking for working libsupc++... $ECHO_C" >&6
3235 save_CXX="$CXX"
3236 save_LIBS="$LIBS"
3237 CXX="$CC"
3238 LIBS="$LIBS -lsupc++"
3239 LINKER="$CC"
3240
3241cat >conftest.$ac_ext <<_ACEOF
3242/* confdefs.h. */
3243_ACEOF
3244cat confdefs.h >>conftest.$ac_ext
3245cat >>conftest.$ac_ext <<_ACEOF
3246/* end confdefs.h. */
3247struct test { }; void f() try { throw new test; } catch (...) { throw; }
3248int
3249main ()
3250{
3251
3252 ;
3253 return 0;
3254}
3255_ACEOF
3256rm -f conftest.$ac_objext conftest$ac_exeext
3257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3258 (eval $ac_link) 2>conftest.er1
3259 ac_status=$?
3260 grep -v '^ *+' conftest.er1 >conftest.err
3261 rm -f conftest.er1
3262 cat conftest.err >&5
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); } &&
3265 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267 (eval $ac_try) 2>&5
3268 ac_status=$?
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); }; } &&
3271 { ac_try='test -s conftest$ac_exeext'
3272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273 (eval $ac_try) 2>&5
3274 ac_status=$?
3275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); }; }; then
3277 echo "$as_me:$LINENO: result: ok" >&5
3278echo "${ECHO_T}ok" >&6
3279else
3280 echo "$as_me: failed program was:" >&5
3281sed 's/^/| /' conftest.$ac_ext >&5
3282
3283
3284 echo "$as_me:$LINENO: result: no, making everything bigger and slower" >&5
3285echo "${ECHO_T}no, making everything bigger and slower" >&6
3286 LIBS="$save_LIBS"
3287 LINKER="$save_CXX"
3288
3289
3290fi
3291rm -f conftest.err conftest.$ac_objext \
3292 conftest$ac_exeext conftest.$ac_ext
3293 CXX="$save_CXX"
3294fi
3295LINKER=$LINKER
3296
3297
3298ac_ext=cc
3299ac_cpp='$CXXCPP $CPPFLAGS'
3300ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3301ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3302ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3303
3304if test -z "$orig_CXXFLAGS"; then
3305 if test x$GCC = xyes && test "x$GXX" = xyes; then
3306 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs"
3307 cat >conftest.$ac_ext <<_ACEOF
3308/* confdefs.h. */
3309_ACEOF
3310cat confdefs.h >>conftest.$ac_ext
3311cat >>conftest.$ac_ext <<_ACEOF
3312/* end confdefs.h. */
3313
3314int
3315main ()
3316{
3317
3318 ;
3319 return 0;
3320}
3321_ACEOF
3322rm -f conftest.$ac_objext
3323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3324 (eval $ac_compile) 2>conftest.er1
3325 ac_status=$?
3326 grep -v '^ *+' conftest.er1 >conftest.err
3327 rm -f conftest.er1
3328 cat conftest.err >&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } &&
3331 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3333 (eval $ac_try) 2>&5
3334 ac_status=$?
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); }; } &&
3337 { ac_try='test -s conftest.$ac_objext'
3338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3339 (eval $ac_try) 2>&5
3340 ac_status=$?
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); }; }; then
3343 :
3344else
3345 echo "$as_me: failed program was:" >&5
3346sed 's/^/| /' conftest.$ac_ext >&5
3347
3348CXXFLAGS="-g -O3"
3349fi
3350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3351 else
3352 CXXFLAGS="-O"
3353 fi
3354 CFLAGS="$CXXFLAGS"
3355fi
3356
3357
3358cat >>confdefs.h <<\_ACEOF
3359#define _GNU_SOURCE 1
3360_ACEOF
3361
3362
3363case $host in
3364 *-*-solaris* )
3365
3366cat >>confdefs.h <<\_ACEOF
3367#define _XOPEN_SOURCE_EXTENDED 1
3368_ACEOF
3369
3370
3371cat >>confdefs.h <<\_ACEOF
3372#define _XOPEN_SOURCE 2
3373_ACEOF
3374
3375
3376cat >>confdefs.h <<\_ACEOF
3377#define __EXTENSIONS__ 1
3378_ACEOF
3379
3380 ;;
3381esac
3382
3383
3384echo "$as_me:$LINENO: checking for setlocale" >&5
3385echo $ECHO_N "checking for setlocale... $ECHO_C" >&6
3386if test "${ac_cv_func_setlocale+set}" = set; then
3387 echo $ECHO_N "(cached) $ECHO_C" >&6
3388else
3389 cat >conftest.$ac_ext <<_ACEOF
3390/* confdefs.h. */
3391_ACEOF
3392cat confdefs.h >>conftest.$ac_ext
3393cat >>conftest.$ac_ext <<_ACEOF
3394/* end confdefs.h. */
3395/* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale.
3396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3397#define setlocale innocuous_setlocale
3398
3399/* System header to define __stub macros and hopefully few prototypes,
3400 which can conflict with char setlocale (); below.
3401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3402 <limits.h> exists even on freestanding compilers. */
3403
3404#ifdef __STDC__
3405# include <limits.h>
3406#else
3407# include <assert.h>
3408#endif
3409
3410#undef setlocale
3411
3412/* Override any gcc2 internal prototype to avoid an error. */
3413#ifdef __cplusplus
3414extern "C"
3415{
3416#endif
3417/* We use char because int might match the return type of a gcc2
3418 builtin and then its argument prototype would still apply. */
3419char setlocale ();
3420/* The GNU C library defines this for functions which it implements
3421 to always fail with ENOSYS. Some functions are actually named
3422 something starting with __ and the normal name is an alias. */
3423#if defined (__stub_setlocale) || defined (__stub___setlocale)
3424choke me
3425#else
3426char (*f) () = setlocale;
3427#endif
3428#ifdef __cplusplus
3429}
3430#endif
3431
3432int
3433main ()
3434{
3435return f != setlocale;
3436 ;
3437 return 0;
3438}
3439_ACEOF
3440rm -f conftest.$ac_objext conftest$ac_exeext
3441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3442 (eval $ac_link) 2>conftest.er1
3443 ac_status=$?
3444 grep -v '^ *+' conftest.er1 >conftest.err
3445 rm -f conftest.er1
3446 cat conftest.err >&5
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); } &&
3449 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451 (eval $ac_try) 2>&5
3452 ac_status=$?
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); }; } &&
3455 { ac_try='test -s conftest$ac_exeext'
3456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457 (eval $ac_try) 2>&5
3458 ac_status=$?
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); }; }; then
3461 ac_cv_func_setlocale=yes
3462else
3463 echo "$as_me: failed program was:" >&5
3464sed 's/^/| /' conftest.$ac_ext >&5
3465
3466ac_cv_func_setlocale=no
3467fi
3468rm -f conftest.err conftest.$ac_objext \
3469 conftest$ac_exeext conftest.$ac_ext
3470fi
3471echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5
3472echo "${ECHO_T}$ac_cv_func_setlocale" >&6
3473if test $ac_cv_func_setlocale = yes; then
3474 :
3475else
3698echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5 3476 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
3699echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6 3477echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
3700if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then 3478if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6 3479 echo $ECHO_N "(cached) $ECHO_C" >&6
3702else 3480else
3703 ac_check_lib_save_LIBS=$LIBS 3481 ac_check_lib_save_LIBS=$LIBS
3760echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6 3538echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
3761if test $ac_cv_lib_xpg4_setlocale = yes; then 3539if test $ac_cv_lib_xpg4_setlocale = yes; then
3762 LIBS="$LIBS -lxpg4" 3540 LIBS="$LIBS -lxpg4"
3763fi 3541fi
3764 3542
3543fi
3765 3544
3545
3546echo "$as_me:$LINENO: checking for gethostbyname" >&5
3547echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3548if test "${ac_cv_func_gethostbyname+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3550else
3551 cat >conftest.$ac_ext <<_ACEOF
3552/* confdefs.h. */
3553_ACEOF
3554cat confdefs.h >>conftest.$ac_ext
3555cat >>conftest.$ac_ext <<_ACEOF
3556/* end confdefs.h. */
3557/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3559#define gethostbyname innocuous_gethostbyname
3560
3561/* System header to define __stub macros and hopefully few prototypes,
3562 which can conflict with char gethostbyname (); below.
3563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3564 <limits.h> exists even on freestanding compilers. */
3565
3566#ifdef __STDC__
3567# include <limits.h>
3568#else
3569# include <assert.h>
3570#endif
3571
3572#undef gethostbyname
3573
3574/* Override any gcc2 internal prototype to avoid an error. */
3575#ifdef __cplusplus
3576extern "C"
3577{
3578#endif
3579/* We use char because int might match the return type of a gcc2
3580 builtin and then its argument prototype would still apply. */
3581char gethostbyname ();
3582/* The GNU C library defines this for functions which it implements
3583 to always fail with ENOSYS. Some functions are actually named
3584 something starting with __ and the normal name is an alias. */
3585#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3586choke me
3587#else
3588char (*f) () = gethostbyname;
3589#endif
3590#ifdef __cplusplus
3591}
3592#endif
3593
3594int
3595main ()
3596{
3597return f != gethostbyname;
3598 ;
3599 return 0;
3600}
3601_ACEOF
3602rm -f conftest.$ac_objext conftest$ac_exeext
3603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3604 (eval $ac_link) 2>conftest.er1
3605 ac_status=$?
3606 grep -v '^ *+' conftest.er1 >conftest.err
3607 rm -f conftest.er1
3608 cat conftest.err >&5
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); } &&
3611 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613 (eval $ac_try) 2>&5
3614 ac_status=$?
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); }; } &&
3617 { ac_try='test -s conftest$ac_exeext'
3618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619 (eval $ac_try) 2>&5
3620 ac_status=$?
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); }; }; then
3623 ac_cv_func_gethostbyname=yes
3624else
3625 echo "$as_me: failed program was:" >&5
3626sed 's/^/| /' conftest.$ac_ext >&5
3627
3628ac_cv_func_gethostbyname=no
3629fi
3630rm -f conftest.err conftest.$ac_objext \
3631 conftest$ac_exeext conftest.$ac_ext
3632fi
3633echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3634echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3635if test $ac_cv_func_gethostbyname = yes; then
3636 :
3637else
3766echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 3638 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3767echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 3639echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3768if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 3640if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3769 echo $ECHO_N "(cached) $ECHO_C" >&6 3641 echo $ECHO_N "(cached) $ECHO_C" >&6
3770else 3642else
3771 ac_check_lib_save_LIBS=$LIBS 3643 ac_check_lib_save_LIBS=$LIBS
3828echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 3700echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3829if test $ac_cv_lib_nsl_gethostbyname = yes; then 3701if test $ac_cv_lib_nsl_gethostbyname = yes; then
3830 LIBS="$LIBS -lnsl" 3702 LIBS="$LIBS -lnsl"
3831fi 3703fi
3832 3704
3705fi
3706
3707echo "$as_me:$LINENO: checking for socket" >&5
3708echo $ECHO_N "checking for socket... $ECHO_C" >&6
3709if test "${ac_cv_func_socket+set}" = set; then
3710 echo $ECHO_N "(cached) $ECHO_C" >&6
3711else
3712 cat >conftest.$ac_ext <<_ACEOF
3713/* confdefs.h. */
3714_ACEOF
3715cat confdefs.h >>conftest.$ac_ext
3716cat >>conftest.$ac_ext <<_ACEOF
3717/* end confdefs.h. */
3718/* Define socket to an innocuous variant, in case <limits.h> declares socket.
3719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3720#define socket innocuous_socket
3721
3722/* System header to define __stub macros and hopefully few prototypes,
3723 which can conflict with char socket (); below.
3724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3725 <limits.h> exists even on freestanding compilers. */
3726
3727#ifdef __STDC__
3728# include <limits.h>
3729#else
3730# include <assert.h>
3731#endif
3732
3733#undef socket
3734
3735/* Override any gcc2 internal prototype to avoid an error. */
3736#ifdef __cplusplus
3737extern "C"
3738{
3739#endif
3740/* We use char because int might match the return type of a gcc2
3741 builtin and then its argument prototype would still apply. */
3742char socket ();
3743/* The GNU C library defines this for functions which it implements
3744 to always fail with ENOSYS. Some functions are actually named
3745 something starting with __ and the normal name is an alias. */
3746#if defined (__stub_socket) || defined (__stub___socket)
3747choke me
3748#else
3749char (*f) () = socket;
3750#endif
3751#ifdef __cplusplus
3752}
3753#endif
3754
3755int
3756main ()
3757{
3758return f != socket;
3759 ;
3760 return 0;
3761}
3762_ACEOF
3763rm -f conftest.$ac_objext conftest$ac_exeext
3764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3765 (eval $ac_link) 2>conftest.er1
3766 ac_status=$?
3767 grep -v '^ *+' conftest.er1 >conftest.err
3768 rm -f conftest.er1
3769 cat conftest.err >&5
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); } &&
3772 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3774 (eval $ac_try) 2>&5
3775 ac_status=$?
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); }; } &&
3778 { ac_try='test -s conftest$ac_exeext'
3779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3780 (eval $ac_try) 2>&5
3781 ac_status=$?
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); }; }; then
3784 ac_cv_func_socket=yes
3785else
3786 echo "$as_me: failed program was:" >&5
3787sed 's/^/| /' conftest.$ac_ext >&5
3788
3789ac_cv_func_socket=no
3790fi
3791rm -f conftest.err conftest.$ac_objext \
3792 conftest$ac_exeext conftest.$ac_ext
3793fi
3794echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3795echo "${ECHO_T}$ac_cv_func_socket" >&6
3796if test $ac_cv_func_socket = yes; then
3797 :
3798else
3833echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 3799 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3834echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 3800echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3835if test "${ac_cv_lib_socket_socket+set}" = set; then 3801if test "${ac_cv_lib_socket_socket+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6 3802 echo $ECHO_N "(cached) $ECHO_C" >&6
3837else 3803else
3838 ac_check_lib_save_LIBS=$LIBS 3804 ac_check_lib_save_LIBS=$LIBS
3895echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 3861echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3896if test $ac_cv_lib_socket_socket = yes; then 3862if test $ac_cv_lib_socket_socket = yes; then
3897 LIBS="$LIBS -lsocket" 3863 LIBS="$LIBS -lsocket"
3898fi 3864fi
3899 3865
3900
3901# Check whether --enable-shared or --disable-shared was given.
3902if test "${enable_shared+set}" = set; then
3903 enableval="$enable_shared"
3904 p=${PACKAGE-default}
3905case "$enableval" in
3906yes) enable_shared=yes ;;
3907no) enable_shared=no ;;
3908*)
3909 enable_shared=no
3910 # Look at the argument we got. We use all the common list separators.
3911 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3912 for pkg in $enableval; do
3913 if test "X$pkg" = "X$p"; then
3914 enable_shared=yes
3915 fi
3916 done
3917 IFS="$ac_save_ifs"
3918 ;;
3919esac
3920else
3921 enable_shared=no
3922fi; # Check whether --enable-static or --disable-static was given.
3923if test "${enable_static+set}" = set; then
3924 enableval="$enable_static"
3925 p=${PACKAGE-default}
3926case "$enableval" in
3927yes) enable_static=yes ;;
3928no) enable_static=no ;;
3929*)
3930 enable_static=no
3931 # Look at the argument we got. We use all the common list separators.
3932 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3933 for pkg in $enableval; do
3934 if test "X$pkg" = "X$p"; then
3935 enable_static=yes
3936 fi
3937 done
3938 IFS="$ac_save_ifs"
3939 ;;
3940esac
3941else
3942 enable_static=yes
3943fi; # Check whether --enable-fast-install or --disable-fast-install was given.
3944if test "${enable_fast_install+set}" = set; then
3945 enableval="$enable_fast_install"
3946 p=${PACKAGE-default}
3947case "$enableval" in
3948yes) enable_fast_install=yes ;;
3949no) enable_fast_install=no ;;
3950*)
3951 enable_fast_install=no
3952 # Look at the argument we got. We use all the common list separators.
3953 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3954 for pkg in $enableval; do
3955 if test "X$pkg" = "X$p"; then
3956 enable_fast_install=yes
3957 fi
3958 done
3959 IFS="$ac_save_ifs"
3960 ;;
3961esac
3962else
3963 enable_fast_install=yes
3964fi; 3866fi
3965# Make sure we can run config.sub.
3966$ac_config_sub sun4 >/dev/null 2>&1 ||
3967 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3968echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3969 { (exit 1); exit 1; }; }
3970 3867
3971echo "$as_me:$LINENO: checking build system type" >&5
3972echo $ECHO_N "checking build system type... $ECHO_C" >&6
3973if test "${ac_cv_build+set}" = set; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3975else
3976 ac_cv_build_alias=$build_alias
3977test -z "$ac_cv_build_alias" &&
3978 ac_cv_build_alias=`$ac_config_guess`
3979test -z "$ac_cv_build_alias" &&
3980 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3981echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3982 { (exit 1); exit 1; }; }
3983ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3984 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3985echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3986 { (exit 1); exit 1; }; }
3987 3868
3988fi
3989echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3990echo "${ECHO_T}$ac_cv_build" >&6
3991build=$ac_cv_build
3992build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3993build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3994build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3995
3996
3997echo "$as_me:$LINENO: checking host system type" >&5
3998echo $ECHO_N "checking host system type... $ECHO_C" >&6
3999if test "${ac_cv_host+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4001else
4002 ac_cv_host_alias=$host_alias
4003test -z "$ac_cv_host_alias" &&
4004 ac_cv_host_alias=$ac_cv_build_alias
4005ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4006 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4007echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4008 { (exit 1); exit 1; }; }
4009
4010fi
4011echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4012echo "${ECHO_T}$ac_cv_host" >&6
4013host=$ac_cv_host
4014host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4015host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4016host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4017
4018
4019
4020# Check whether --with-gnu-ld or --without-gnu-ld was given.
4021if test "${with_gnu_ld+set}" = set; then
4022 withval="$with_gnu_ld"
4023 test "$withval" = no || with_gnu_ld=yes
4024else
4025 with_gnu_ld=no
4026fi;
4027ac_prog=ld
4028if test "$GCC" = yes; then
4029 # Check if gcc -print-prog-name=ld gives a path.
4030 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4031echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4032 case $host in
4033 *-*-mingw*)
4034 # gcc leaves a trailing carriage return which upsets mingw
4035 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4036 *)
4037 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4038 esac
4039 case "$ac_prog" in
4040 # Accept absolute paths.
4041 [\\/]* | [A-Za-z]:[\\/]*)
4042 re_direlt='/[^/][^/]*/\.\./'
4043 # Canonicalize the path of ld
4044 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4045 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4046 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4047 done
4048 test -z "$LD" && LD="$ac_prog"
4049 ;;
4050 "")
4051 # If it fails, then pretend we aren't using GCC.
4052 ac_prog=ld
4053 ;;
4054 *)
4055 # If it is relative, then search for the first ld in PATH.
4056 with_gnu_ld=unknown
4057 ;;
4058 esac
4059elif test "$with_gnu_ld" = yes; then
4060 echo "$as_me:$LINENO: checking for GNU ld" >&5 3869echo "$as_me:$LINENO: checking for sched_yield" >&5
4061echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3870echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
4062else
4063 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4064echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4065fi
4066if test "${lt_cv_path_LD+set}" = set; then
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
4068else
4069 if test -z "$LD"; then
4070 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4071 for ac_dir in $PATH; do
4072 test -z "$ac_dir" && ac_dir=.
4073 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4074 lt_cv_path_LD="$ac_dir/$ac_prog"
4075 # Check to see if the program is GNU ld. I'd rather use --version,
4076 # but apparently some GNU ld's only accept -v.
4077 # Break only if it was the GNU/non-GNU ld that we prefer.
4078 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4079 test "$with_gnu_ld" != no && break
4080 else
4081 test "$with_gnu_ld" != yes && break
4082 fi
4083 fi
4084 done
4085 IFS="$ac_save_ifs"
4086else
4087 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4088fi
4089fi
4090
4091LD="$lt_cv_path_LD"
4092if test -n "$LD"; then
4093 echo "$as_me:$LINENO: result: $LD" >&5
4094echo "${ECHO_T}$LD" >&6
4095else
4096 echo "$as_me:$LINENO: result: no" >&5
4097echo "${ECHO_T}no" >&6
4098fi
4099test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4100echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4101 { (exit 1); exit 1; }; }
4102echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4103echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4104if test "${lt_cv_prog_gnu_ld+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4106else
4107 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4108if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4109 lt_cv_prog_gnu_ld=yes
4110else
4111 lt_cv_prog_gnu_ld=no
4112fi
4113fi
4114echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4115echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4116with_gnu_ld=$lt_cv_prog_gnu_ld
4117
4118
4119echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4120echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4121if test "${lt_cv_ld_reload_flag+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4123else
4124 lt_cv_ld_reload_flag='-r'
4125fi
4126echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4127echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4128reload_flag=$lt_cv_ld_reload_flag
4129test -n "$reload_flag" && reload_flag=" $reload_flag"
4130
4131echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4132echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4133if test "${lt_cv_path_NM+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4135else
4136 if test -n "$NM"; then
4137 # Let the user override the test.
4138 lt_cv_path_NM="$NM"
4139else
4140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4141 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4142 test -z "$ac_dir" && ac_dir=.
4143 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4144 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4145 # Check to see if the nm accepts a BSD-compat flag.
4146 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4147 # nm: unknown option "B" ignored
4148 # Tru64's nm complains that /dev/null is an invalid object file
4149 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4150 lt_cv_path_NM="$tmp_nm -B"
4151 break
4152 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4153 lt_cv_path_NM="$tmp_nm -p"
4154 break
4155 else
4156 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4157 continue # so that we can try to find one that supports BSD flags
4158 fi
4159 fi
4160 done
4161 IFS="$ac_save_ifs"
4162 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4163fi
4164fi
4165
4166NM="$lt_cv_path_NM"
4167echo "$as_me:$LINENO: result: $NM" >&5
4168echo "${ECHO_T}$NM" >&6
4169
4170echo "$as_me:$LINENO: checking whether ln -s works" >&5
4171echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4172LN_S=$as_ln_s
4173if test "$LN_S" = "ln -s"; then
4174 echo "$as_me:$LINENO: result: yes" >&5
4175echo "${ECHO_T}yes" >&6
4176else
4177 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4178echo "${ECHO_T}no, using $LN_S" >&6
4179fi
4180
4181echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4182echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4183if test "${lt_cv_deplibs_check_method+set}" = set; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4185else
4186 lt_cv_file_magic_cmd='$MAGIC_CMD'
4187lt_cv_file_magic_test_file=
4188lt_cv_deplibs_check_method='unknown'
4189# Need to set the preceding variable on all platforms that support
4190# interlibrary dependencies.
4191# 'none' -- dependencies not supported.
4192# `unknown' -- same as none, but documents that we really don't know.
4193# 'pass_all' -- all dependencies passed with no checks.
4194# 'test_compile' -- check by making test program.
4195# ['file_magic [regex]'] -- check by looking for files in library path
4196# which responds to the $file_magic_cmd with a given egrep regex.
4197# If you have `file' or equivalent on your system and you're not sure
4198# whether `pass_all' will *always* work, you probably want this one.
4199
4200case "$host_os" in
4201aix4*)
4202 lt_cv_deplibs_check_method=pass_all
4203 ;;
4204
4205beos*)
4206 lt_cv_deplibs_check_method=pass_all
4207 ;;
4208
4209bsdi4*)
4210 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4211 lt_cv_file_magic_cmd='/usr/bin/file -L'
4212 lt_cv_file_magic_test_file=/shlib/libc.so
4213 ;;
4214
4215cygwin* | mingw* | pw32*)
4216 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4217 lt_cv_file_magic_cmd='$OBJDUMP -f'
4218 ;;
4219
4220darwin*|rhapsody*)
4221 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4222 lt_cv_file_magiic_cmd=/usr/bin/file
4223 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4224 ;;
4225
4226freebsd*)
4227 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4228 case "$host_cpu" in
4229 i*86 )
4230 # Not sure whether the presence of OpenBSD here was a mistake.
4231 # Let's accept both of them until this is cleared up.
4232 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4233 lt_cv_file_magic_cmd=/usr/bin/file
4234 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4235 ;;
4236 esac
4237 else
4238 lt_cv_deplibs_check_method=pass_all
4239 fi
4240 ;;
4241
4242gnu*)
4243 lt_cv_deplibs_check_method=pass_all
4244 ;;
4245
4246hpux10.20*|hpux11*)
4247 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4248 lt_cv_file_magic_cmd=/usr/bin/file
4249 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4250 ;;
4251
4252irix5* | irix6*)
4253 case "$host_os" in
4254 irix5*)
4255 # this will be overridden with pass_all, but let us keep it just in case
4256 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4257 ;;
4258 *)
4259 case "$LD" in
4260 *-32|*"-32 ") libmagic=32-bit;;
4261 *-n32|*"-n32 ") libmagic=N32;;
4262 *-64|*"-64 ") libmagic=64-bit;;
4263 *) libmagic=never-match;;
4264 esac
4265 # this will be overridden with pass_all, but let us keep it just in case
4266 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4267 ;;
4268 esac
4269 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4270 lt_cv_deplibs_check_method=pass_all
4271 ;;
4272
4273# This must be Linux ELF.
4274linux-gnu*)
4275 case "$host_cpu" in
4276 alpha* | i*86 | powerpc* | sparc* | ia64* )
4277 lt_cv_deplibs_check_method=pass_all ;;
4278 *)
4279 # glibc up to 2.1.1 does not perform some relocations on ARM
4280 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4281 esac
4282 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4283 ;;
4284
4285netbsd*)
4286 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4287 lt_cv_deplibs_check_method='file_magic NetBSD/[a-z0-9]* demand paged shared library'
4288 else
4289 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4290 fi
4291 lt_cv_file_magic_cmd='/usr/bin/file -L'
4292 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4293 ;;
4294
4295newos6*)
4296 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4297 lt_cv_file_magic_cmd=/usr/bin/file
4298 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4299 ;;
4300
4301osf3* | osf4* | osf5*)
4302 # this will be overridden with pass_all, but let us keep it just in case
4303 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4304 lt_cv_file_magic_test_file=/shlib/libc.so
4305 lt_cv_deplibs_check_method=pass_all
4306 ;;
4307
4308sco3.2v5*)
4309 lt_cv_deplibs_check_method=pass_all
4310 ;;
4311
4312solaris*)
4313 lt_cv_deplibs_check_method=pass_all
4314 lt_cv_file_magic_test_file=/lib/libc.so
4315 ;;
4316
4317sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4318 case "$host_vendor" in
4319 motorola)
4320 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4321 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4322 ;;
4323 ncr)
4324 lt_cv_deplibs_check_method=pass_all
4325 ;;
4326 sequent)
4327 lt_cv_file_magic_cmd='/bin/file'
4328 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4329 ;;
4330 sni)
4331 lt_cv_file_magic_cmd='/bin/file'
4332 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4333 lt_cv_file_magic_test_file=/lib/libc.so
4334 ;;
4335 esac
4336 ;;
4337esac
4338
4339fi
4340echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4341echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4342file_magic_cmd=$lt_cv_file_magic_cmd
4343deplibs_check_method=$lt_cv_deplibs_check_method
4344
4345
4346
4347
4348
4349
4350
4351# Check for command to grab the raw symbol name followed by C symbol from nm.
4352echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4353echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4354if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4356else
4357
4358# These are sane defaults that work on at least a few old systems.
4359# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4360
4361# Character class describing NM global symbol codes.
4362symcode='[BCDEGRST]'
4363
4364# Regexp to match symbols that can be accessed directly from C.
4365sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4366
4367# Transform the above into a raw symbol and a C symbol.
4368symxfrm='\1 \2\3 \3'
4369
4370# Transform an extracted symbol line into a proper C declaration
4371lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4372
4373# Define system-specific variables.
4374case "$host_os" in
4375aix*)
4376 symcode='[BCDT]'
4377 ;;
4378cygwin* | mingw* | pw32*)
4379 symcode='[ABCDGISTW]'
4380 ;;
4381hpux*) # Its linker distinguishes data from code symbols
4382 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
4383 ;;
4384irix*)
4385 symcode='[BCDEGRST]'
4386 ;;
4387solaris* | sysv5*)
4388 symcode='[BDT]'
4389 ;;
4390sysv4)
4391 symcode='[DFNSTU]'
4392 ;;
4393esac
4394
4395# Handle CRLF in mingw tool chain
4396opt_cr=
4397case "$host_os" in
4398mingw*)
4399 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4400 ;;
4401esac
4402
4403# If we're using GNU nm, then use its standard symbol codes.
4404if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4405 symcode='[ABCDGISTW]'
4406fi
4407
4408# Try without a prefix undercore, then with it.
4409for ac_symprfx in "" "_"; do
4410
4411 # Write the raw and C identifiers.
4412lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4413
4414 # Check to see that the pipe works correctly.
4415 pipe_works=no
4416 rm -f conftest*
4417 cat > conftest.$ac_ext <<EOF
4418#ifdef __cplusplus
4419extern "C" {
4420#endif
4421char nm_test_var;
4422void nm_test_func(){}
4423#ifdef __cplusplus
4424}
4425#endif
4426main(){nm_test_var='a';nm_test_func();return(0);}
4427EOF
4428
4429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4430 (eval $ac_compile) 2>&5
4431 ac_status=$?
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); }; then
4434 # Now try to grab the symbols.
4435 nlist=conftest.nm
4436 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4437 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4438 ac_status=$?
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); } && test -s "$nlist"; then
4441 # Try sorting and uniquifying the output.
4442 if sort "$nlist" | uniq > "$nlist"T; then
4443 mv -f "$nlist"T "$nlist"
4444 else
4445 rm -f "$nlist"T
4446 fi
4447
4448 # Make sure that we snagged all the symbols we need.
4449 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4450 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4451 cat <<EOF > conftest.$ac_ext
4452#ifdef __cplusplus
4453extern "C" {
4454#endif
4455
4456EOF
4457 # Now generate the symbol file.
4458 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4459
4460 cat <<EOF >> conftest.$ac_ext
4461#if defined (__STDC__) && __STDC__
4462# define lt_ptr_t void *
4463#else
4464# define lt_ptr_t char *
4465# define const
4466#endif
4467
4468/* The mapping between symbol names and symbols. */
4469const struct {
4470 const char *name;
4471 lt_ptr_t address;
4472}
4473lt_preloaded_symbols[] =
4474{
4475EOF
4476 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$nlist" >> conftest.$ac_ext
4477 cat <<\EOF >> conftest.$ac_ext
4478 {0, (lt_ptr_t) 0}
4479};
4480
4481#ifdef __cplusplus
4482}
4483#endif
4484EOF
4485 # Now try linking the two files.
4486 mv conftest.$ac_objext conftstm.$ac_objext
4487 save_LIBS="$LIBS"
4488 save_CFLAGS="$CFLAGS"
4489 LIBS="conftstm.$ac_objext"
4490 CFLAGS="$CFLAGS$no_builtin_flag"
4491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4492 (eval $ac_link) 2>&5
4493 ac_status=$?
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); } && test -s conftest; then
4496 pipe_works=yes
4497 fi
4498 LIBS="$save_LIBS"
4499 CFLAGS="$save_CFLAGS"
4500 else
4501 echo "cannot find nm_test_func in $nlist" >&5
4502 fi
4503 else
4504 echo "cannot find nm_test_var in $nlist" >&5
4505 fi
4506 else
4507 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4508 fi
4509 else
4510 echo "$progname: failed program was:" >&5
4511 cat conftest.$ac_ext >&5
4512 fi
4513 rm -f conftest* conftst*
4514
4515 # Do not use the global_symbol_pipe unless it works.
4516 if test "$pipe_works" = yes; then
4517 break
4518 else
4519 lt_cv_sys_global_symbol_pipe=
4520 fi
4521done
4522
4523fi
4524
4525global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4526if test -z "$lt_cv_sys_global_symbol_pipe"; then
4527 global_symbol_to_cdecl=
4528else
4529 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4530fi
4531if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
4532 echo "$as_me:$LINENO: result: failed" >&5
4533echo "${ECHO_T}failed" >&6
4534else
4535 echo "$as_me:$LINENO: result: ok" >&5
4536echo "${ECHO_T}ok" >&6
4537fi
4538
4539echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4540echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4541if test "${ac_cv_header_stdc+set}" = set; then 3871if test "${ac_cv_func_sched_yield+set}" = set; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6 3872 echo $ECHO_N "(cached) $ECHO_C" >&6
4543else 3873else
4544 cat >conftest.$ac_ext <<_ACEOF 3874 cat >conftest.$ac_ext <<_ACEOF
4545/* confdefs.h. */ 3875/* confdefs.h. */
4546_ACEOF 3876_ACEOF
4547cat confdefs.h >>conftest.$ac_ext 3877cat confdefs.h >>conftest.$ac_ext
4548cat >>conftest.$ac_ext <<_ACEOF 3878cat >>conftest.$ac_ext <<_ACEOF
4549/* end confdefs.h. */ 3879/* end confdefs.h. */
4550#include <stdlib.h>
4551#include <stdarg.h>
4552#include <string.h>
4553#include <float.h>
4554
4555int
4556main ()
4557{
4558
4559 ;
4560 return 0;
4561}
4562_ACEOF
4563rm -f conftest.$ac_objext
4564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4565 (eval $ac_compile) 2>conftest.er1
4566 ac_status=$?
4567 grep -v '^ *+' conftest.er1 >conftest.err
4568 rm -f conftest.er1
4569 cat conftest.err >&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); } &&
4572 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574 (eval $ac_try) 2>&5
4575 ac_status=$?
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; } &&
4578 { ac_try='test -s conftest.$ac_objext'
4579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4580 (eval $ac_try) 2>&5
4581 ac_status=$?
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); }; }; then
4584 ac_cv_header_stdc=yes
4585else
4586 echo "$as_me: failed program was:" >&5
4587sed 's/^/| /' conftest.$ac_ext >&5
4588
4589ac_cv_header_stdc=no
4590fi
4591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4592
4593if test $ac_cv_header_stdc = yes; then
4594 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4595 cat >conftest.$ac_ext <<_ACEOF
4596/* confdefs.h. */
4597_ACEOF
4598cat confdefs.h >>conftest.$ac_ext
4599cat >>conftest.$ac_ext <<_ACEOF
4600/* end confdefs.h. */
4601#include <string.h>
4602
4603_ACEOF
4604if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4605 $EGREP "memchr" >/dev/null 2>&1; then
4606 :
4607else
4608 ac_cv_header_stdc=no
4609fi
4610rm -f conftest*
4611
4612fi
4613
4614if test $ac_cv_header_stdc = yes; then
4615 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4616 cat >conftest.$ac_ext <<_ACEOF
4617/* confdefs.h. */
4618_ACEOF
4619cat confdefs.h >>conftest.$ac_ext
4620cat >>conftest.$ac_ext <<_ACEOF
4621/* end confdefs.h. */
4622#include <stdlib.h>
4623
4624_ACEOF
4625if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4626 $EGREP "free" >/dev/null 2>&1; then
4627 :
4628else
4629 ac_cv_header_stdc=no
4630fi
4631rm -f conftest*
4632
4633fi
4634
4635if test $ac_cv_header_stdc = yes; then
4636 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4637 if test "$cross_compiling" = yes; then
4638 :
4639else
4640 cat >conftest.$ac_ext <<_ACEOF
4641/* confdefs.h. */
4642_ACEOF
4643cat confdefs.h >>conftest.$ac_ext
4644cat >>conftest.$ac_ext <<_ACEOF
4645/* end confdefs.h. */
4646#include <ctype.h>
4647#if ((' ' & 0x0FF) == 0x020)
4648# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4649# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4650#else
4651# define ISLOWER(c) \
4652 (('a' <= (c) && (c) <= 'i') \
4653 || ('j' <= (c) && (c) <= 'r') \
4654 || ('s' <= (c) && (c) <= 'z'))
4655# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4656#endif
4657
4658#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4659int
4660main ()
4661{
4662 int i;
4663 for (i = 0; i < 256; i++)
4664 if (XOR (islower (i), ISLOWER (i))
4665 || toupper (i) != TOUPPER (i))
4666 exit(2);
4667 exit (0);
4668}
4669_ACEOF
4670rm -f conftest$ac_exeext
4671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4672 (eval $ac_link) 2>&5
4673 ac_status=$?
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4677 (eval $ac_try) 2>&5
4678 ac_status=$?
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }; }; then
4681 :
4682else
4683 echo "$as_me: program exited with status $ac_status" >&5
4684echo "$as_me: failed program was:" >&5
4685sed 's/^/| /' conftest.$ac_ext >&5
4686
4687( exit $ac_status )
4688ac_cv_header_stdc=no
4689fi
4690rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4691fi
4692fi
4693fi
4694echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4695echo "${ECHO_T}$ac_cv_header_stdc" >&6
4696if test $ac_cv_header_stdc = yes; then
4697
4698cat >>confdefs.h <<\_ACEOF
4699#define STDC_HEADERS 1
4700_ACEOF
4701
4702fi
4703
4704# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4715 inttypes.h stdint.h unistd.h
4716do
4717as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4718echo "$as_me:$LINENO: checking for $ac_header" >&5
4719echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4720if eval "test \"\${$as_ac_Header+set}\" = set"; then
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4722else
4723 cat >conftest.$ac_ext <<_ACEOF
4724/* confdefs.h. */
4725_ACEOF
4726cat confdefs.h >>conftest.$ac_ext
4727cat >>conftest.$ac_ext <<_ACEOF
4728/* end confdefs.h. */
4729$ac_includes_default
4730
4731#include <$ac_header>
4732_ACEOF
4733rm -f conftest.$ac_objext
4734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4735 (eval $ac_compile) 2>conftest.er1
4736 ac_status=$?
4737 grep -v '^ *+' conftest.er1 >conftest.err
4738 rm -f conftest.er1
4739 cat conftest.err >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } &&
4742 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744 (eval $ac_try) 2>&5
4745 ac_status=$?
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; } &&
4748 { ac_try='test -s conftest.$ac_objext'
4749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750 (eval $ac_try) 2>&5
4751 ac_status=$?
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; }; then
4754 eval "$as_ac_Header=yes"
4755else
4756 echo "$as_me: failed program was:" >&5
4757sed 's/^/| /' conftest.$ac_ext >&5
4758
4759eval "$as_ac_Header=no"
4760fi
4761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4762fi
4763echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4764echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4765if test `eval echo '${'$as_ac_Header'}'` = yes; then
4766 cat >>confdefs.h <<_ACEOF
4767#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4768_ACEOF
4769
4770fi
4771
4772done
4773
4774
4775
4776for ac_header in dlfcn.h
4777do
4778as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4779if eval "test \"\${$as_ac_Header+set}\" = set"; then
4780 echo "$as_me:$LINENO: checking for $ac_header" >&5
4781echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4782if eval "test \"\${$as_ac_Header+set}\" = set"; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4784fi
4785echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4786echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4787else
4788 # Is the header compilable?
4789echo "$as_me:$LINENO: checking $ac_header usability" >&5
4790echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4791cat >conftest.$ac_ext <<_ACEOF
4792/* confdefs.h. */
4793_ACEOF
4794cat confdefs.h >>conftest.$ac_ext
4795cat >>conftest.$ac_ext <<_ACEOF
4796/* end confdefs.h. */
4797$ac_includes_default
4798#include <$ac_header>
4799_ACEOF
4800rm -f conftest.$ac_objext
4801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4802 (eval $ac_compile) 2>conftest.er1
4803 ac_status=$?
4804 grep -v '^ *+' conftest.er1 >conftest.err
4805 rm -f conftest.er1
4806 cat conftest.err >&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); } &&
4809 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4811 (eval $ac_try) 2>&5
4812 ac_status=$?
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); }; } &&
4815 { ac_try='test -s conftest.$ac_objext'
4816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4817 (eval $ac_try) 2>&5
4818 ac_status=$?
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }; }; then
4821 ac_header_compiler=yes
4822else
4823 echo "$as_me: failed program was:" >&5
4824sed 's/^/| /' conftest.$ac_ext >&5
4825
4826ac_header_compiler=no
4827fi
4828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4829echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4830echo "${ECHO_T}$ac_header_compiler" >&6
4831
4832# Is the header present?
4833echo "$as_me:$LINENO: checking $ac_header presence" >&5
4834echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4835cat >conftest.$ac_ext <<_ACEOF
4836/* confdefs.h. */
4837_ACEOF
4838cat confdefs.h >>conftest.$ac_ext
4839cat >>conftest.$ac_ext <<_ACEOF
4840/* end confdefs.h. */
4841#include <$ac_header>
4842_ACEOF
4843if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4844 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4845 ac_status=$?
4846 grep -v '^ *+' conftest.er1 >conftest.err
4847 rm -f conftest.er1
4848 cat conftest.err >&5
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); } >/dev/null; then
4851 if test -s conftest.err; then
4852 ac_cpp_err=$ac_cxx_preproc_warn_flag
4853 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4854 else
4855 ac_cpp_err=
4856 fi
4857else
4858 ac_cpp_err=yes
4859fi
4860if test -z "$ac_cpp_err"; then
4861 ac_header_preproc=yes
4862else
4863 echo "$as_me: failed program was:" >&5
4864sed 's/^/| /' conftest.$ac_ext >&5
4865
4866 ac_header_preproc=no
4867fi
4868rm -f conftest.err conftest.$ac_ext
4869echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4870echo "${ECHO_T}$ac_header_preproc" >&6
4871
4872# So? What about this header?
4873case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4874 yes:no: )
4875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4876echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4878echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4879 ac_header_preproc=yes
4880 ;;
4881 no:yes:* )
4882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4883echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4885echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4887echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4889echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4891echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4893echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4894 (
4895 cat <<\_ASBOX
4896## ------------------------------------------ ##
4897## Report this to the AC_PACKAGE_NAME lists. ##
4898## ------------------------------------------ ##
4899_ASBOX
4900 ) |
4901 sed "s/^/$as_me: WARNING: /" >&2
4902 ;;
4903esac
4904echo "$as_me:$LINENO: checking for $ac_header" >&5
4905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4906if eval "test \"\${$as_ac_Header+set}\" = set"; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4908else
4909 eval "$as_ac_Header=\$ac_header_preproc"
4910fi
4911echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4912echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4913
4914fi
4915if test `eval echo '${'$as_ac_Header'}'` = yes; then
4916 cat >>confdefs.h <<_ACEOF
4917#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4918_ACEOF
4919
4920fi
4921
4922done
4923
4924
4925
4926
4927
4928# Only perform the check for file, if the check method requires it
4929case "$deplibs_check_method" in
4930file_magic*)
4931 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4932 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4933echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4934if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4935 echo $ECHO_N "(cached) $ECHO_C" >&6
4936else
4937 case "$MAGIC_CMD" in
4938 /*)
4939 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4940 ;;
4941 ?:/*)
4942 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4943 ;;
4944 *)
4945 ac_save_MAGIC_CMD="$MAGIC_CMD"
4946 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4947 ac_dummy="/usr/bin:$PATH"
4948 for ac_dir in $ac_dummy; do
4949 test -z "$ac_dir" && ac_dir=.
4950 if test -f $ac_dir/${ac_tool_prefix}file; then
4951 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4952 if test -n "$file_magic_test_file"; then
4953 case "$deplibs_check_method" in
4954 "file_magic "*)
4955 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4956 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4957 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4958 egrep "$file_magic_regex" > /dev/null; then
4959 :
4960 else
4961 cat <<EOF 1>&2
4962
4963*** Warning: the command libtool uses to detect shared libraries,
4964*** $file_magic_cmd, produces output that libtool cannot recognize.
4965*** The result is that libtool may fail to recognize shared libraries
4966*** as such. This will affect the creation of libtool libraries that
4967*** depend on shared libraries, but programs linked with such libtool
4968*** libraries will work regardless of this problem. Nevertheless, you
4969*** may want to report the problem to your system manager and/or to
4970*** bug-libtool@gnu.org
4971
4972EOF
4973 fi ;;
4974 esac
4975 fi
4976 break
4977 fi
4978 done
4979 IFS="$ac_save_ifs"
4980 MAGIC_CMD="$ac_save_MAGIC_CMD"
4981 ;;
4982esac
4983fi
4984
4985MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4986if test -n "$MAGIC_CMD"; then
4987 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4988echo "${ECHO_T}$MAGIC_CMD" >&6
4989else
4990 echo "$as_me:$LINENO: result: no" >&5
4991echo "${ECHO_T}no" >&6
4992fi
4993
4994if test -z "$lt_cv_path_MAGIC_CMD"; then
4995 if test -n "$ac_tool_prefix"; then
4996 echo "$as_me:$LINENO: checking for file" >&5
4997echo $ECHO_N "checking for file... $ECHO_C" >&6
4998if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4999 echo $ECHO_N "(cached) $ECHO_C" >&6
5000else
5001 case "$MAGIC_CMD" in
5002 /*)
5003 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5004 ;;
5005 ?:/*)
5006 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5007 ;;
5008 *)
5009 ac_save_MAGIC_CMD="$MAGIC_CMD"
5010 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5011 ac_dummy="/usr/bin:$PATH"
5012 for ac_dir in $ac_dummy; do
5013 test -z "$ac_dir" && ac_dir=.
5014 if test -f $ac_dir/file; then
5015 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5016 if test -n "$file_magic_test_file"; then
5017 case "$deplibs_check_method" in
5018 "file_magic "*)
5019 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5020 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5021 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5022 egrep "$file_magic_regex" > /dev/null; then
5023 :
5024 else
5025 cat <<EOF 1>&2
5026
5027*** Warning: the command libtool uses to detect shared libraries,
5028*** $file_magic_cmd, produces output that libtool cannot recognize.
5029*** The result is that libtool may fail to recognize shared libraries
5030*** as such. This will affect the creation of libtool libraries that
5031*** depend on shared libraries, but programs linked with such libtool
5032*** libraries will work regardless of this problem. Nevertheless, you
5033*** may want to report the problem to your system manager and/or to
5034*** bug-libtool@gnu.org
5035
5036EOF
5037 fi ;;
5038 esac
5039 fi
5040 break
5041 fi
5042 done
5043 IFS="$ac_save_ifs"
5044 MAGIC_CMD="$ac_save_MAGIC_CMD"
5045 ;;
5046esac
5047fi
5048
5049MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5050if test -n "$MAGIC_CMD"; then
5051 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5052echo "${ECHO_T}$MAGIC_CMD" >&6
5053else
5054 echo "$as_me:$LINENO: result: no" >&5
5055echo "${ECHO_T}no" >&6
5056fi
5057
5058 else
5059 MAGIC_CMD=:
5060 fi
5061fi
5062
5063 fi
5064 ;;
5065esac
5066
5067if test -n "$ac_tool_prefix"; then
5068 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5069set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5070echo "$as_me:$LINENO: checking for $ac_word" >&5
5071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5072if test "${ac_cv_prog_RANLIB+set}" = set; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5074else
5075 if test -n "$RANLIB"; then
5076 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5077else
5078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079for as_dir in $PATH
5080do
5081 IFS=$as_save_IFS
5082 test -z "$as_dir" && as_dir=.
5083 for ac_exec_ext in '' $ac_executable_extensions; do
5084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5085 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5087 break 2
5088 fi
5089done
5090done
5091
5092fi
5093fi
5094RANLIB=$ac_cv_prog_RANLIB
5095if test -n "$RANLIB"; then
5096 echo "$as_me:$LINENO: result: $RANLIB" >&5
5097echo "${ECHO_T}$RANLIB" >&6
5098else
5099 echo "$as_me:$LINENO: result: no" >&5
5100echo "${ECHO_T}no" >&6
5101fi
5102
5103fi
5104if test -z "$ac_cv_prog_RANLIB"; then
5105 ac_ct_RANLIB=$RANLIB
5106 # Extract the first word of "ranlib", so it can be a program name with args.
5107set dummy ranlib; ac_word=$2
5108echo "$as_me:$LINENO: checking for $ac_word" >&5
5109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5110if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5111 echo $ECHO_N "(cached) $ECHO_C" >&6
5112else
5113 if test -n "$ac_ct_RANLIB"; then
5114 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5115else
5116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117for as_dir in $PATH
5118do
5119 IFS=$as_save_IFS
5120 test -z "$as_dir" && as_dir=.
5121 for ac_exec_ext in '' $ac_executable_extensions; do
5122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5123 ac_cv_prog_ac_ct_RANLIB="ranlib"
5124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5125 break 2
5126 fi
5127done
5128done
5129
5130 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5131fi
5132fi
5133ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5134if test -n "$ac_ct_RANLIB"; then
5135 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5136echo "${ECHO_T}$ac_ct_RANLIB" >&6
5137else
5138 echo "$as_me:$LINENO: result: no" >&5
5139echo "${ECHO_T}no" >&6
5140fi
5141
5142 RANLIB=$ac_ct_RANLIB
5143else
5144 RANLIB="$ac_cv_prog_RANLIB"
5145fi
5146
5147if test -n "$ac_tool_prefix"; then
5148 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5149set dummy ${ac_tool_prefix}strip; ac_word=$2
5150echo "$as_me:$LINENO: checking for $ac_word" >&5
5151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5152if test "${ac_cv_prog_STRIP+set}" = set; then
5153 echo $ECHO_N "(cached) $ECHO_C" >&6
5154else
5155 if test -n "$STRIP"; then
5156 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5157else
5158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159for as_dir in $PATH
5160do
5161 IFS=$as_save_IFS
5162 test -z "$as_dir" && as_dir=.
5163 for ac_exec_ext in '' $ac_executable_extensions; do
5164 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5165 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5167 break 2
5168 fi
5169done
5170done
5171
5172fi
5173fi
5174STRIP=$ac_cv_prog_STRIP
5175if test -n "$STRIP"; then
5176 echo "$as_me:$LINENO: result: $STRIP" >&5
5177echo "${ECHO_T}$STRIP" >&6
5178else
5179 echo "$as_me:$LINENO: result: no" >&5
5180echo "${ECHO_T}no" >&6
5181fi
5182
5183fi
5184if test -z "$ac_cv_prog_STRIP"; then
5185 ac_ct_STRIP=$STRIP
5186 # Extract the first word of "strip", so it can be a program name with args.
5187set dummy strip; ac_word=$2
5188echo "$as_me:$LINENO: checking for $ac_word" >&5
5189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5190if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5191 echo $ECHO_N "(cached) $ECHO_C" >&6
5192else
5193 if test -n "$ac_ct_STRIP"; then
5194 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5195else
5196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197for as_dir in $PATH
5198do
5199 IFS=$as_save_IFS
5200 test -z "$as_dir" && as_dir=.
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5203 ac_cv_prog_ac_ct_STRIP="strip"
5204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 break 2
5206 fi
5207done
5208done
5209
5210 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5211fi
5212fi
5213ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5214if test -n "$ac_ct_STRIP"; then
5215 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5216echo "${ECHO_T}$ac_ct_STRIP" >&6
5217else
5218 echo "$as_me:$LINENO: result: no" >&5
5219echo "${ECHO_T}no" >&6
5220fi
5221
5222 STRIP=$ac_ct_STRIP
5223else
5224 STRIP="$ac_cv_prog_STRIP"
5225fi
5226
5227
5228enable_dlopen=no
5229enable_win32_dll=no
5230
5231# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5232if test "${enable_libtool_lock+set}" = set; then
5233 enableval="$enable_libtool_lock"
5234
5235fi;
5236test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5237
5238# Some flags need to be propagated to the compiler or linker for good
5239# libtool support.
5240case "$host" in
5241*-*-irix6*)
5242 # Find out which ABI we are using.
5243 echo '#line 5243 "configure"' > conftest.$ac_ext
5244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5245 (eval $ac_compile) 2>&5
5246 ac_status=$?
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); }; then
5249 case "`/usr/bin/file conftest.$ac_objext`" in
5250 *32-bit*)
5251 LD="${LD-ld} -32"
5252 ;;
5253 *N32*)
5254 LD="${LD-ld} -n32"
5255 ;;
5256 *64-bit*)
5257 LD="${LD-ld} -64"
5258 ;;
5259 esac
5260 fi
5261 rm -rf conftest*
5262 ;;
5263
5264*-*-sco3.2v5*)
5265 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5266 SAVE_CFLAGS="$CFLAGS"
5267 CFLAGS="$CFLAGS -belf"
5268 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5269echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5270if test "${lt_cv_cc_needs_belf+set}" = set; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5272else
5273
5274
5275 ac_ext=c
5276ac_cpp='$CPP $CPPFLAGS'
5277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5279ac_compiler_gnu=$ac_cv_c_compiler_gnu
5280
5281 cat >conftest.$ac_ext <<_ACEOF
5282/* confdefs.h. */
5283_ACEOF
5284cat confdefs.h >>conftest.$ac_ext
5285cat >>conftest.$ac_ext <<_ACEOF
5286/* end confdefs.h. */
5287
5288int
5289main ()
5290{
5291
5292 ;
5293 return 0;
5294}
5295_ACEOF
5296rm -f conftest.$ac_objext conftest$ac_exeext
5297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5298 (eval $ac_link) 2>conftest.er1
5299 ac_status=$?
5300 grep -v '^ *+' conftest.er1 >conftest.err
5301 rm -f conftest.er1
5302 cat conftest.err >&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); } &&
5305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307 (eval $ac_try) 2>&5
5308 ac_status=$?
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); }; } &&
5311 { ac_try='test -s conftest$ac_exeext'
5312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313 (eval $ac_try) 2>&5
5314 ac_status=$?
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); }; }; then
5317 lt_cv_cc_needs_belf=yes
5318else
5319 echo "$as_me: failed program was:" >&5
5320sed 's/^/| /' conftest.$ac_ext >&5
5321
5322lt_cv_cc_needs_belf=no
5323fi
5324rm -f conftest.err conftest.$ac_objext \
5325 conftest$ac_exeext conftest.$ac_ext
5326 ac_ext=cc
5327ac_cpp='$CXXCPP $CPPFLAGS'
5328ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5329ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5330ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5331
5332fi
5333echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5334echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5335 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5336 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5337 CFLAGS="$SAVE_CFLAGS"
5338 fi
5339 ;;
5340
5341
5342esac
5343
5344# Sed substitution that helps us do robust quoting. It backslashifies
5345# metacharacters that are still active within double-quoted strings.
5346Xsed='sed -e s/^X//'
5347sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5348
5349# Same as above, but do not quote variable references.
5350double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5351
5352# Sed substitution to delay expansion of an escaped shell variable in a
5353# double_quote_subst'ed string.
5354delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5355
5356# Constants:
5357rm="rm -f"
5358
5359# Global variables:
5360default_ofile=libtool
5361can_build_shared=yes
5362
5363# All known linkers require a `.a' archive for static linking (except M$VC,
5364# which needs '.lib').
5365libext=a
5366ltmain="$ac_aux_dir/ltmain.sh"
5367ofile="$default_ofile"
5368with_gnu_ld="$lt_cv_prog_gnu_ld"
5369need_locks="$enable_libtool_lock"
5370
5371old_CC="$CC"
5372old_CFLAGS="$CFLAGS"
5373
5374# Set sane defaults for various variables
5375test -z "$AR" && AR=ar
5376test -z "$AR_FLAGS" && AR_FLAGS=cru
5377test -z "$AS" && AS=as
5378test -z "$CC" && CC=cc
5379test -z "$DLLTOOL" && DLLTOOL=dlltool
5380test -z "$LD" && LD=ld
5381test -z "$LN_S" && LN_S="ln -s"
5382test -z "$MAGIC_CMD" && MAGIC_CMD=file
5383test -z "$NM" && NM=nm
5384test -z "$OBJDUMP" && OBJDUMP=objdump
5385test -z "$RANLIB" && RANLIB=:
5386test -z "$STRIP" && STRIP=:
5387test -z "$ac_objext" && ac_objext=o
5388
5389if test x"$host" != x"$build"; then
5390 ac_tool_prefix=${host_alias}-
5391else
5392 ac_tool_prefix=
5393fi
5394
5395# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5396case "$host_os" in
5397linux-gnu*) ;;
5398linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5399esac
5400
5401case "$host_os" in
5402aix3*)
5403 # AIX sometimes has problems with the GCC collect2 program. For some
5404 # reason, if we set the COLLECT_NAMES environment variable, the problems
5405 # vanish in a puff of smoke.
5406 if test "X${COLLECT_NAMES+set}" != Xset; then
5407 COLLECT_NAMES=
5408 export COLLECT_NAMES
5409 fi
5410 ;;
5411esac
5412
5413# Determine commands to create old-style static archives.
5414old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5415old_postinstall_cmds='chmod 644 $oldlib'
5416old_postuninstall_cmds=
5417
5418if test -n "$RANLIB"; then
5419 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5420 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5421fi
5422
5423# Allow CC to be a program name with arguments.
5424set dummy $CC
5425compiler="$2"
5426
5427## FIXME: this should be a separate macro
5428##
5429echo "$as_me:$LINENO: checking for objdir" >&5
5430echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5431rm -f .libs 2>/dev/null
5432mkdir .libs 2>/dev/null
5433if test -d .libs; then
5434 objdir=.libs
5435else
5436 # MS-DOS does not allow filenames that begin with a dot.
5437 objdir=_libs
5438fi
5439rmdir .libs 2>/dev/null
5440echo "$as_me:$LINENO: result: $objdir" >&5
5441echo "${ECHO_T}$objdir" >&6
5442##
5443## END FIXME
5444
5445
5446## FIXME: this should be a separate macro
5447##
5448
5449# Check whether --with-pic or --without-pic was given.
5450if test "${with_pic+set}" = set; then
5451 withval="$with_pic"
5452 pic_mode="$withval"
5453else
5454 pic_mode=default
5455fi;
5456test -z "$pic_mode" && pic_mode=default
5457
5458# We assume here that the value for lt_cv_prog_cc_pic will not be cached
5459# in isolation, and that seeing it set (from the cache) indicates that
5460# the associated values are set (in the cache) correctly too.
5461echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5462echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5463if test "${lt_cv_prog_cc_pic+set}" = set; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5465else
5466 lt_cv_prog_cc_pic=
5467 lt_cv_prog_cc_shlib=
5468 lt_cv_prog_cc_wl=
5469 lt_cv_prog_cc_static=
5470 lt_cv_prog_cc_no_builtin=
5471 lt_cv_prog_cc_can_build_shared=$can_build_shared
5472
5473 if test "$GCC" = yes; then
5474 lt_cv_prog_cc_wl='-Wl,'
5475 lt_cv_prog_cc_static='-static'
5476
5477 case "$host_os" in
5478 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
5479 # PIC is the default for these OSes.
5480 ;;
5481 aix*)
5482 # Below there is a dirty hack to force normal static linking with -ldl
5483 # The problem is because libdl dynamically linked with both libc and
5484 # libC (AIX C++ library), which obviously doesn't included in libraries
5485 # list by gcc. This cause undefined symbols with -static flags.
5486 # This hack allows C programs to be linked with "-static -ldl", but
5487 # we not sure about C++ programs.
5488 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5489 ;;
5490 cygwin* | mingw* | pw32* | os2*)
5491 # This hack is so that the source file can tell whether it is being
5492 # built for inclusion in a dll (and should export symbols for example).
5493 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5494 ;;
5495 amigaos*)
5496 # FIXME: we need at least 68020 code to build shared libraries, but
5497 # adding the `-m68020' flag to GCC prevents building anything better,
5498 # like `-m68040'.
5499 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5500 ;;
5501 sysv4*MP*)
5502 if test -d /usr/nec; then
5503 lt_cv_prog_cc_pic=-Kconform_pic
5504 fi
5505 ;;
5506 *)
5507 lt_cv_prog_cc_pic='-fPIC'
5508 ;;
5509 esac
5510 else
5511 # PORTME Check for PIC flags for the system compiler.
5512 case "$host_os" in
5513 aix3* | aix4*)
5514 # All AIX code is PIC.
5515 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5516 ;;
5517
5518 hpux9* | hpux10* | hpux11*)
5519 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5520 lt_cv_prog_cc_wl='-Wl,'
5521 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5522 lt_cv_prog_cc_pic='+Z'
5523 ;;
5524
5525 irix5* | irix6*)
5526 lt_cv_prog_cc_wl='-Wl,'
5527 lt_cv_prog_cc_static='-non_shared'
5528 # PIC (with -KPIC) is the default.
5529 ;;
5530
5531 cygwin* | mingw* | pw32* | os2*)
5532 # This hack is so that the source file can tell whether it is being
5533 # built for inclusion in a dll (and should export symbols for example).
5534 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5535 ;;
5536
5537 newsos6)
5538 lt_cv_prog_cc_pic='-KPIC'
5539 lt_cv_prog_cc_static='-Bstatic'
5540 ;;
5541
5542 osf3* | osf4* | osf5*)
5543 # All OSF/1 code is PIC.
5544 lt_cv_prog_cc_wl='-Wl,'
5545 lt_cv_prog_cc_static='-non_shared'
5546 ;;
5547
5548 sco3.2v5*)
5549 lt_cv_prog_cc_pic='-Kpic'
5550 lt_cv_prog_cc_static='-dn'
5551 lt_cv_prog_cc_shlib='-belf'
5552 ;;
5553
5554 solaris*)
5555 lt_cv_prog_cc_pic='-KPIC'
5556 lt_cv_prog_cc_static='-Bstatic'
5557 lt_cv_prog_cc_wl='-Wl,'
5558 ;;
5559
5560 sunos4*)
5561 lt_cv_prog_cc_pic='-PIC'
5562 lt_cv_prog_cc_static='-Bstatic'
5563 lt_cv_prog_cc_wl='-Qoption ld '
5564 ;;
5565
5566 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5567 lt_cv_prog_cc_pic='-KPIC'
5568 lt_cv_prog_cc_static='-Bstatic'
5569 if test "x$host_vendor" = xsni; then
5570 lt_cv_prog_cc_wl='-LD'
5571 else
5572 lt_cv_prog_cc_wl='-Wl,'
5573 fi
5574 ;;
5575
5576 uts4*)
5577 lt_cv_prog_cc_pic='-pic'
5578 lt_cv_prog_cc_static='-Bstatic'
5579 ;;
5580
5581 sysv4*MP*)
5582 if test -d /usr/nec ;then
5583 lt_cv_prog_cc_pic='-Kconform_pic'
5584 lt_cv_prog_cc_static='-Bstatic'
5585 fi
5586 ;;
5587
5588 *)
5589 lt_cv_prog_cc_can_build_shared=no
5590 ;;
5591 esac
5592 fi
5593
5594fi
5595
5596if test -z "$lt_cv_prog_cc_pic"; then
5597 echo "$as_me:$LINENO: result: none" >&5
5598echo "${ECHO_T}none" >&6
5599else
5600 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5601echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5602
5603 # Check to make sure the pic_flag actually works.
5604 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5605echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5606 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5607 echo $ECHO_N "(cached) $ECHO_C" >&6
5608else
5609 save_CFLAGS="$CFLAGS"
5610 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5611 cat >conftest.$ac_ext <<_ACEOF
5612/* confdefs.h. */
5613_ACEOF
5614cat confdefs.h >>conftest.$ac_ext
5615cat >>conftest.$ac_ext <<_ACEOF
5616/* end confdefs.h. */
5617
5618int
5619main ()
5620{
5621
5622 ;
5623 return 0;
5624}
5625_ACEOF
5626rm -f conftest.$ac_objext
5627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5628 (eval $ac_compile) 2>conftest.er1
5629 ac_status=$?
5630 grep -v '^ *+' conftest.er1 >conftest.err
5631 rm -f conftest.er1
5632 cat conftest.err >&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } &&
5635 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637 (eval $ac_try) 2>&5
5638 ac_status=$?
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); }; } &&
5641 { ac_try='test -s conftest.$ac_objext'
5642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643 (eval $ac_try) 2>&5
5644 ac_status=$?
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); }; }; then
5647 case "$host_os" in
5648 hpux9* | hpux10* | hpux11*)
5649 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5650 # they create non-PIC objects. So, if there were any warnings, we
5651 # assume that PIC is not supported.
5652 if test -s conftest.err; then
5653 lt_cv_prog_cc_pic_works=no
5654 else
5655 lt_cv_prog_cc_pic_works=yes
5656 fi
5657 ;;
5658 *)
5659 lt_cv_prog_cc_pic_works=yes
5660 ;;
5661 esac
5662
5663else
5664 echo "$as_me: failed program was:" >&5
5665sed 's/^/| /' conftest.$ac_ext >&5
5666
5667 lt_cv_prog_cc_pic_works=no
5668
5669fi
5670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5671 CFLAGS="$save_CFLAGS"
5672
5673fi
5674
5675
5676 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5677 lt_cv_prog_cc_pic=
5678 lt_cv_prog_cc_can_build_shared=no
5679 else
5680 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5681 fi
5682
5683 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5684echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5685fi
5686##
5687## END FIXME
5688
5689# Check for any special shared library compilation flags.
5690if test -n "$lt_cv_prog_cc_shlib"; then
5691 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5692echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5693 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5694 else
5695 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5696echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5697 lt_cv_prog_cc_can_build_shared=no
5698 fi
5699fi
5700
5701## FIXME: this should be a separate macro
5702##
5703echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5704echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5705if test "${lt_cv_prog_cc_static_works+set}" = set; then
5706 echo $ECHO_N "(cached) $ECHO_C" >&6
5707else
5708 lt_cv_prog_cc_static_works=no
5709 save_LDFLAGS="$LDFLAGS"
5710 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5711 cat >conftest.$ac_ext <<_ACEOF
5712/* confdefs.h. */
5713_ACEOF
5714cat confdefs.h >>conftest.$ac_ext
5715cat >>conftest.$ac_ext <<_ACEOF
5716/* end confdefs.h. */
5717
5718int
5719main ()
5720{
5721
5722 ;
5723 return 0;
5724}
5725_ACEOF
5726rm -f conftest.$ac_objext conftest$ac_exeext
5727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5728 (eval $ac_link) 2>conftest.er1
5729 ac_status=$?
5730 grep -v '^ *+' conftest.er1 >conftest.err
5731 rm -f conftest.er1
5732 cat conftest.err >&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } &&
5735 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5737 (eval $ac_try) 2>&5
5738 ac_status=$?
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); }; } &&
5741 { ac_try='test -s conftest$ac_exeext'
5742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5743 (eval $ac_try) 2>&5
5744 ac_status=$?
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); }; }; then
5747 lt_cv_prog_cc_static_works=yes
5748else
5749 echo "$as_me: failed program was:" >&5
5750sed 's/^/| /' conftest.$ac_ext >&5
5751
5752fi
5753rm -f conftest.err conftest.$ac_objext \
5754 conftest$ac_exeext conftest.$ac_ext
5755 LDFLAGS="$save_LDFLAGS"
5756
5757fi
5758
5759
5760# Belt *and* braces to stop my trousers falling down:
5761test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5762echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5763echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5764
5765pic_flag="$lt_cv_prog_cc_pic"
5766special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5767wl="$lt_cv_prog_cc_wl"
5768link_static_flag="$lt_cv_prog_cc_static"
5769no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5770can_build_shared="$lt_cv_prog_cc_can_build_shared"
5771##
5772## END FIXME
5773
5774
5775## FIXME: this should be a separate macro
5776##
5777# Check to see if options -o and -c are simultaneously supported by compiler
5778echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5779echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5780$rm -r conftest 2>/dev/null
5781mkdir conftest
5782cd conftest
5783echo "int some_variable = 0;" > conftest.$ac_ext
5784mkdir out
5785# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5786# that will create temporary files in the current directory regardless of
5787# the output directory. Thus, making CWD read-only will cause this test
5788# to fail, enabling locking or at least warning the user not to do parallel
5789# builds.
5790chmod -w .
5791save_CFLAGS="$CFLAGS"
5792CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5793compiler_c_o=no
5794if { (eval echo configure:5794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5795 # The compiler can only warn and ignore the option if not recognized
5796 # So say no if there are warnings
5797 if test -s out/conftest.err; then
5798 compiler_c_o=no
5799 else
5800 compiler_c_o=yes
5801 fi
5802else
5803 # Append any errors to the config.log.
5804 cat out/conftest.err 1>&5
5805 compiler_c_o=no
5806fi
5807echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5808echo "${ECHO_T}$compiler_c_o" >&6
5809CFLAGS="$save_CFLAGS"
5810chmod u+w .
5811$rm conftest* out/*
5812rmdir out
5813cd ..
5814rmdir conftest
5815$rm -r conftest 2>/dev/null
5816
5817if test x"$compiler_c_o" = x"yes"; then
5818 # Check to see if we can write to a .lo
5819 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5820echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5821 compiler_o_lo=no
5822 save_CFLAGS="$CFLAGS"
5823 CFLAGS="$CFLAGS -c -o conftest.lo"
5824 cat >conftest.$ac_ext <<_ACEOF
5825/* confdefs.h. */
5826_ACEOF
5827cat confdefs.h >>conftest.$ac_ext
5828cat >>conftest.$ac_ext <<_ACEOF
5829/* end confdefs.h. */
5830
5831int
5832main ()
5833{
5834int some_variable = 0;
5835 ;
5836 return 0;
5837}
5838_ACEOF
5839rm -f conftest.$ac_objext
5840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5841 (eval $ac_compile) 2>conftest.er1
5842 ac_status=$?
5843 grep -v '^ *+' conftest.er1 >conftest.err
5844 rm -f conftest.er1
5845 cat conftest.err >&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); } &&
5848 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850 (eval $ac_try) 2>&5
5851 ac_status=$?
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); }; } &&
5854 { ac_try='test -s conftest.$ac_objext'
5855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856 (eval $ac_try) 2>&5
5857 ac_status=$?
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }; }; then
5860 # The compiler can only warn and ignore the option if not recognized
5861 # So say no if there are warnings
5862 if test -s conftest.err; then
5863 compiler_o_lo=no
5864 else
5865 compiler_o_lo=yes
5866 fi
5867
5868else
5869 echo "$as_me: failed program was:" >&5
5870sed 's/^/| /' conftest.$ac_ext >&5
5871
5872fi
5873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5874 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5875echo "${ECHO_T}$compiler_c_o" >&6
5876 CFLAGS="$save_CFLAGS"
5877else
5878 compiler_o_lo=no
5879fi
5880##
5881## END FIXME
5882
5883## FIXME: this should be a separate macro
5884##
5885# Check to see if we can do hard links to lock some files if needed
5886hard_links="nottested"
5887if test "$compiler_c_o" = no && test "$need_locks" != no; then
5888 # do not overwrite the value of need_locks provided by the user
5889 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5890echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5891 hard_links=yes
5892 $rm conftest*
5893 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5894 touch conftest.a
5895 ln conftest.a conftest.b 2>&5 || hard_links=no
5896 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5897 echo "$as_me:$LINENO: result: $hard_links" >&5
5898echo "${ECHO_T}$hard_links" >&6
5899 if test "$hard_links" = no; then
5900 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5901echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5902 need_locks=warn
5903 fi
5904else
5905 need_locks=no
5906fi
5907##
5908## END FIXME
5909
5910## FIXME: this should be a separate macro
5911##
5912if test "$GCC" = yes; then
5913 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5914 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5915echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5916 echo "int some_variable = 0;" > conftest.$ac_ext
5917 save_CFLAGS="$CFLAGS"
5918 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5919 compiler_rtti_exceptions=no
5920 cat >conftest.$ac_ext <<_ACEOF
5921/* confdefs.h. */
5922_ACEOF
5923cat confdefs.h >>conftest.$ac_ext
5924cat >>conftest.$ac_ext <<_ACEOF
5925/* end confdefs.h. */
5926
5927int
5928main ()
5929{
5930int some_variable = 0;
5931 ;
5932 return 0;
5933}
5934_ACEOF
5935rm -f conftest.$ac_objext
5936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5937 (eval $ac_compile) 2>conftest.er1
5938 ac_status=$?
5939 grep -v '^ *+' conftest.er1 >conftest.err
5940 rm -f conftest.er1
5941 cat conftest.err >&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); } &&
5944 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 (eval $ac_try) 2>&5
5947 ac_status=$?
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; } &&
5950 { ac_try='test -s conftest.$ac_objext'
5951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5952 (eval $ac_try) 2>&5
5953 ac_status=$?
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); }; }; then
5956 # The compiler can only warn and ignore the option if not recognized
5957 # So say no if there are warnings
5958 if test -s conftest.err; then
5959 compiler_rtti_exceptions=no
5960 else
5961 compiler_rtti_exceptions=yes
5962 fi
5963
5964else
5965 echo "$as_me: failed program was:" >&5
5966sed 's/^/| /' conftest.$ac_ext >&5
5967
5968fi
5969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5970 CFLAGS="$save_CFLAGS"
5971 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5972echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5973
5974 if test "$compiler_rtti_exceptions" = "yes"; then
5975 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5976 else
5977 no_builtin_flag=' -fno-builtin'
5978 fi
5979fi
5980##
5981## END FIXME
5982
5983## FIXME: this should be a separate macro
5984##
5985# See if the linker supports building shared libraries.
5986echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5987echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5988
5989allow_undefined_flag=
5990no_undefined_flag=
5991need_lib_prefix=unknown
5992need_version=unknown
5993# when you set need_version to no, make sure it does not cause -set_version
5994# flags to be left without arguments
5995archive_cmds=
5996archive_expsym_cmds=
5997old_archive_from_new_cmds=
5998old_archive_from_expsyms_cmds=
5999export_dynamic_flag_spec=
6000whole_archive_flag_spec=
6001thread_safe_flag_spec=
6002hardcode_into_libs=no
6003hardcode_libdir_flag_spec=
6004hardcode_libdir_separator=
6005hardcode_direct=no
6006hardcode_minus_L=no
6007hardcode_shlibpath_var=unsupported
6008runpath_var=
6009link_all_deplibs=unknown
6010always_export_symbols=no
6011export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6012# include_expsyms should be a list of space-separated symbols to be *always*
6013# included in the symbol list
6014include_expsyms=
6015# exclude_expsyms can be an egrep regular expression of symbols to exclude
6016# it will be wrapped by ` (' and `)$', so one must not match beginning or
6017# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6018# as well as any symbol that contains `d'.
6019exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6020# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6021# platforms (ab)use it in PIC code, but their linkers get confused if
6022# the symbol is explicitly referenced. Since portable code cannot
6023# rely on this symbol name, it's probably fine to never include it in
6024# preloaded symbol tables.
6025extract_expsyms_cmds=
6026
6027case "$host_os" in
6028cygwin* | mingw* | pw32* )
6029 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6030 # When not using gcc, we currently assume that we are using
6031 # Microsoft Visual C++.
6032 if test "$GCC" != yes; then
6033 with_gnu_ld=no
6034 fi
6035 ;;
6036
6037esac
6038
6039ld_shlibs=yes
6040if test "$with_gnu_ld" = yes; then
6041 # If archive_cmds runs LD, not CC, wlarc should be empty
6042 wlarc='${wl}'
6043
6044 # See if GNU ld supports shared libraries.
6045 case "$host_os" in
6046 aix3* | aix4*)
6047 # On AIX, the GNU linker is very broken
6048 ld_shlibs=no
6049 cat <<EOF 1>&2
6050
6051*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6052*** to be unable to reliably create shared libraries on AIX.
6053*** Therefore, libtool is disabling shared libraries support. If you
6054*** really care for shared libraries, you may want to modify your PATH
6055*** so that a non-GNU linker is found, and then restart.
6056
6057EOF
6058 ;;
6059
6060 amigaos*)
6061 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6062 hardcode_libdir_flag_spec='-L$libdir'
6063 hardcode_minus_L=yes
6064
6065 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6066 # that the semantics of dynamic libraries on AmigaOS, at least up
6067 # to version 4, is to share data among multiple programs linked
6068 # with the same dynamic library. Since this doesn't match the
6069 # behavior of shared libraries on other platforms, we can use
6070 # them.
6071 ld_shlibs=no
6072 ;;
6073
6074 beos*)
6075 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6076 allow_undefined_flag=unsupported
6077 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6078 # support --undefined. This deserves some investigation. FIXME
6079 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6080 else
6081 ld_shlibs=no
6082 fi
6083 ;;
6084
6085 cygwin* | mingw* | pw32*)
6086 # hardcode_libdir_flag_spec is actually meaningless, as there is
6087 # no search path for DLLs.
6088 hardcode_libdir_flag_spec='-L$libdir'
6089 allow_undefined_flag=unsupported
6090 always_export_symbols=yes
6091
6092 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6093 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6094 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6095 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6096 else $CC -o impgen impgen.c ; fi)~
6097 $output_objdir/impgen $dir/$soname > $output_objdir/$soname-def'
6098
6099 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6100
6101 # cygwin and mingw dlls have different entry points and sets of symbols
6102 # to exclude.
6103 # FIXME: what about values for MSVC?
6104 dll_entry=__cygwin_dll_entry@12
6105 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6106 case "$host_os" in
6107 mingw*)
6108 # mingw values
6109 dll_entry=_DllMainCRTStartup@12
6110 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6111 ;;
6112 esac
6113
6114 # mingw and cygwin differ, and it's simplest to just exclude the union
6115 # of the two symbol sets.
6116 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6117
6118 # recent cygwin and mingw systems supply a stub DllMain which the user
6119 # can override, but on older systems we have to supply one (in ltdll.c)
6120 if test "x$lt_cv_need_dllmain" = "xyes"; then
6121 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6122 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < [$]0 > $output_objdir/$soname-ltdll.c~
6123 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6124 else
6125 ltdll_obj=
6126 ltdll_cmds=
6127 fi
6128
6129 # Extract the symbol export list from an `--export-all' def file,
6130 # then regenerate the def file from the symbol export list, so that
6131 # the compiled dll only exports the symbol export list.
6132 # Be careful not to strip the DATA tag left be newer dlltools.
6133 export_symbols_cmds="$ltdll_cmds"'
6134 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6135 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6136
6137 # If DATA tags from a recent dlltool are present, honour them!
6138 archive_expsym_cmds='echo EXPORTS > $output_objdir/$soname-def~
6139 _lt_hint=1;
6140 cat $export_symbols | while read symbol; do
6141 set dummy \$symbol;
6142 case \$# in
6143 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6144 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6145 esac;
6146 _lt_hint=`expr 1 + \$_lt_hint`;
6147 done~
6148 '"$ltdll_cmds"'
6149 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6150 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
6151 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6152 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
6153 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6154 ;;
6155
6156 netbsd*)
6157 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6158 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6159 wlarc=
6160 else
6161 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6162 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6163 fi
6164 ;;
6165
6166 solaris* | sysv5*)
6167 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6168 ld_shlibs=no
6169 cat <<EOF 1>&2
6170
6171*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6172*** create shared libraries on Solaris systems. Therefore, libtool
6173*** is disabling shared libraries support. We urge you to upgrade GNU
6174*** binutils to release 2.9.1 or newer. Another option is to modify
6175*** your PATH or compiler configuration so that the native linker is
6176*** used, and then restart.
6177
6178EOF
6179 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6180 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6181 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6182 else
6183 ld_shlibs=no
6184 fi
6185 ;;
6186
6187 sunos4*)
6188 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6189 wlarc=
6190 hardcode_direct=yes
6191 hardcode_shlibpath_var=no
6192 ;;
6193
6194 *)
6195 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6196 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6197 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6198 else
6199 ld_shlibs=no
6200 fi
6201 ;;
6202 esac
6203
6204 if test "$ld_shlibs" = yes; then
6205 runpath_var=LD_RUN_PATH
6206 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6207 export_dynamic_flag_spec='${wl}--export-dynamic'
6208 case $host_os in
6209 cygwin* | mingw* | pw32*)
6210 # dlltool doesn't understand --whole-archive et. al.
6211 whole_archive_flag_spec=
6212 ;;
6213 *)
6214 # ancient GNU ld didn't support --whole-archive et. al.
6215 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6216 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6217 else
6218 whole_archive_flag_spec=
6219 fi
6220 ;;
6221 esac
6222 fi
6223else
6224 # PORTME fill in a description of your system's linker (not GNU ld)
6225 case "$host_os" in
6226 aix3*)
6227 allow_undefined_flag=unsupported
6228 always_export_symbols=yes
6229 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6230 # Note: this linker hardcodes the directories in LIBPATH if there
6231 # are no directories specified by -L.
6232 hardcode_minus_L=yes
6233 if test "$GCC" = yes && test -z "$link_static_flag"; then
6234 # Neither direct hardcoding nor static linking is supported with a
6235 # broken collect2.
6236 hardcode_direct=unsupported
6237 fi
6238 ;;
6239
6240 aix4*)
6241 hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib'
6242 hardcode_libdir_separator=':'
6243 if test "$GCC" = yes; then
6244 collect2name=`${CC} -print-prog-name=collect2`
6245 if test -f "$collect2name" && \
6246 strings "$collect2name" | grep resolve_lib_name >/dev/null
6247 then
6248 # We have reworked collect2
6249 hardcode_direct=yes
6250 else
6251 # We have old collect2
6252 hardcode_direct=unsupported
6253 # It fails to find uninstalled libraries when the uninstalled
6254 # path is not listed in the libpath. Setting hardcode_minus_L
6255 # to unsupported forces relinking
6256 hardcode_minus_L=yes
6257 hardcode_libdir_flag_spec='-L$libdir'
6258 hardcode_libdir_separator=
6259 fi
6260 shared_flag='-shared'
6261 else
6262 shared_flag='${wl}-bM:SRE'
6263 hardcode_direct=yes
6264 fi
6265 allow_undefined_flag=' ${wl}-berok'
6266 archive_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}'
6267 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}'
6268 case "$host_os" in aix4.[01]|aix4.[01].*)
6269 # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on
6270 always_export_symbols=yes ;;
6271 esac
6272
6273 # We don't want to build shared libraries on unknown CPU types.
6274 case $host_cpu in
6275 powerpc | rs6000) ;;
6276 *) ld_shlibs=no ;;
6277 esac
6278 ;;
6279
6280 amigaos*)
6281 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6282 hardcode_libdir_flag_spec='-L$libdir'
6283 hardcode_minus_L=yes
6284 # see comment about different semantics on the GNU ld section
6285 ld_shlibs=no
6286 ;;
6287
6288 cygwin* | mingw* | pw32*)
6289 # When not using gcc, we currently assume that we are using
6290 # Microsoft Visual C++.
6291 # hardcode_libdir_flag_spec is actually meaningless, as there is
6292 # no search path for DLLs.
6293 hardcode_libdir_flag_spec=' '
6294 allow_undefined_flag=unsupported
6295 # Tell ltmain to make .lib files, not .a files.
6296 libext=lib
6297 # FIXME: Setting linknames here is a bad hack.
6298 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6299 # The linker will automatically build a .lib file if we build a DLL.
6300 old_archive_from_new_cmds='true'
6301 # FIXME: Should let the user specify the lib program.
6302 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6303 fix_srcfile_path='`cygpath -w "$srcfile"`'
6304 ;;
6305
6306 darwin* | rhapsody*)
6307 allow_undefined_flag='-undefined warning'
6308 archive_cmds='$CC `if test "$module" = "yes"; then echo -bundle; else
6309 echo -dynamiclib; fi` -o $lib $libobjs $deplibs $linkopts'
6310 archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6311 ## What we need is to hardcode the path to the library, not the search path
6312 #hardcode_direct=yes
6313 #hardcode_libdir_flag_spec='-install_name $libdir/$lib'
6314 hardcode_shlibpath_var=no
6315 whole_archive_flag_spec='-all_load'
6316 ;;
6317
6318 freebsd1*)
6319 ld_shlibs=no
6320 ;;
6321
6322 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6323 # support. Future versions do this automatically, but an explicit c++rt0.o
6324 # does not break anything, and helps significantly (at the cost of a little
6325 # extra space).
6326 freebsd2.2*)
6327 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6328 hardcode_libdir_flag_spec='-R$libdir'
6329 hardcode_direct=yes
6330 hardcode_shlibpath_var=no
6331 ;;
6332
6333 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6334 freebsd2*)
6335 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6336 hardcode_direct=yes
6337 hardcode_minus_L=yes
6338 hardcode_shlibpath_var=no
6339 ;;
6340
6341 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6342 freebsd*)
6343 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6344 hardcode_libdir_flag_spec='-R$libdir'
6345 hardcode_direct=yes
6346 hardcode_shlibpath_var=no
6347 ;;
6348
6349 hpux9* | hpux10* | hpux11*)
6350 case "$host_os" in
6351 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
6352 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6353 esac
6354 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6355 hardcode_libdir_separator=:
6356 hardcode_direct=yes
6357 hardcode_minus_L=yes # Not in the search PATH, but as the default
6358 # location of the library.
6359 export_dynamic_flag_spec='${wl}-E'
6360 ;;
6361
6362 irix5* | irix6*)
6363 if test "$GCC" = yes; then
6364 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6365 else
6366 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6367 fi
6368 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6369 hardcode_libdir_separator=:
6370 link_all_deplibs=yes
6371 ;;
6372
6373 netbsd*)
6374 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6375 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6376 else
6377 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6378 fi
6379 hardcode_libdir_flag_spec='-R$libdir'
6380 hardcode_direct=yes
6381 hardcode_shlibpath_var=no
6382 ;;
6383
6384 newsos6)
6385 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
6386 hardcode_direct=yes
6387 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6388 hardcode_libdir_separator=:
6389 hardcode_shlibpath_var=no
6390 ;;
6391
6392 openbsd*)
6393 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6394 hardcode_libdir_flag_spec='-R$libdir'
6395 hardcode_direct=yes
6396 hardcode_shlibpath_var=no
6397 ;;
6398
6399 os2*)
6400 hardcode_libdir_flag_spec='-L$libdir'
6401 hardcode_minus_L=yes
6402 allow_undefined_flag=unsupported
6403 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6404 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6405 ;;
6406
6407 osf3*)
6408 if test "$GCC" = yes; then
6409 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6410 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6411 else
6412 allow_undefined_flag=' -expect_unresolved \*'
6413 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6414 fi
6415 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6416 hardcode_libdir_separator=:
6417 ;;
6418
6419 osf4* | osf5*) # as osf3* with the addition of -msym flag
6420 if test "$GCC" = yes; then
6421 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6422 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6423 else
6424 allow_undefined_flag=' -expect_unresolved \*'
6425 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6426 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6427 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6428 fi
6429#Both c and cxx compiler support -rpath directly
6430 hardcode_libdir_flag_spec='-rpath $libdir'
6431 hardcode_libdir_separator=:
6432 ;;
6433
6434 sco3.2v5*)
6435 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6436 hardcode_shlibpath_var=no
6437 runpath_var=LD_RUN_PATH
6438 hardcode_runpath_var=yes
6439 ;;
6440
6441 solaris*)
6442 no_undefined_flag=' -z text'
6443 # $CC -shared without GNU ld will not create a library from C++
6444 # object files and a static libstdc++, better avoid it by now
6445 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6446 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6447 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6448 hardcode_libdir_flag_spec='-R$libdir'
6449 hardcode_shlibpath_var=no
6450 case "$host_os" in
6451 solaris2.[0-5] | solaris2.[0-5].*) ;;
6452 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6453 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6454 esac
6455 link_all_deplibs=yes
6456 ;;
6457
6458 sunos4*)
6459 if test "x$host_vendor" = xsequent; then
6460 # Use $CC to link under sequent, because it throws in some extra .o
6461 # files that make .init and .fini sections work.
6462 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6463 else
6464 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6465 fi
6466 hardcode_libdir_flag_spec='-L$libdir'
6467 hardcode_direct=yes
6468 hardcode_minus_L=yes
6469 hardcode_shlibpath_var=no
6470 ;;
6471
6472 sysv4)
6473 if test "x$host_vendor" = xsno; then
6474 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
6475 hardcode_direct=yes # is this really true???
6476 else
6477 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6478 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6479 fi
6480 runpath_var='LD_RUN_PATH'
6481 hardcode_shlibpath_var=no
6482 ;;
6483
6484 sysv4.3*)
6485 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6486 hardcode_shlibpath_var=no
6487 export_dynamic_flag_spec='-Bexport'
6488 ;;
6489
6490 sysv5*)
6491 no_undefined_flag=' -z text'
6492 # $CC -shared without GNU ld will not create a library from C++
6493 # object files and a static libstdc++, better avoid it by now
6494 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6495 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6496 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6497 hardcode_libdir_flag_spec=
6498 hardcode_shlibpath_var=no
6499 runpath_var='LD_RUN_PATH'
6500 ;;
6501
6502 uts4*)
6503 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6504 hardcode_libdir_flag_spec='-L$libdir'
6505 hardcode_shlibpath_var=no
6506 ;;
6507
6508 dgux*)
6509 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6510 hardcode_libdir_flag_spec='-L$libdir'
6511 hardcode_shlibpath_var=no
6512 ;;
6513
6514 sysv4*MP*)
6515 if test -d /usr/nec; then
6516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6517 hardcode_shlibpath_var=no
6518 runpath_var=LD_RUN_PATH
6519 hardcode_runpath_var=yes
6520 ld_shlibs=yes
6521 fi
6522 ;;
6523
6524 sysv4.2uw2*)
6525 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6526 hardcode_direct=yes
6527 hardcode_minus_L=no
6528 hardcode_shlibpath_var=no
6529 hardcode_runpath_var=yes
6530 runpath_var=LD_RUN_PATH
6531 ;;
6532
6533 unixware7*)
6534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6535 runpath_var='LD_RUN_PATH'
6536 hardcode_shlibpath_var=no
6537 ;;
6538
6539 *)
6540 ld_shlibs=no
6541 ;;
6542 esac
6543fi
6544echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6545echo "${ECHO_T}$ld_shlibs" >&6
6546test "$ld_shlibs" = no && can_build_shared=no
6547##
6548## END FIXME
6549
6550## FIXME: this should be a separate macro
6551##
6552# Check hardcoding attributes.
6553echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6554echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6555hardcode_action=
6556if test -n "$hardcode_libdir_flag_spec" || \
6557 test -n "$runpath_var"; then
6558
6559 # We can hardcode non-existant directories.
6560 if test "$hardcode_direct" != no &&
6561 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6562 # have to relink, otherwise we might link with an installed library
6563 # when we should be linking with a yet-to-be-installed one
6564 ## test "$hardcode_shlibpath_var" != no &&
6565 test "$hardcode_minus_L" != no; then
6566 # Linking always hardcodes the temporary library directory.
6567 hardcode_action=relink
6568 else
6569 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6570 hardcode_action=immediate
6571 fi
6572else
6573 # We cannot hardcode anything, or else we can only hardcode existing
6574 # directories.
6575 hardcode_action=unsupported
6576fi
6577echo "$as_me:$LINENO: result: $hardcode_action" >&5
6578echo "${ECHO_T}$hardcode_action" >&6
6579##
6580## END FIXME
6581
6582## FIXME: this should be a separate macro
6583##
6584striplib=
6585old_striplib=
6586echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6587echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6588if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6589 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6590 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6591 echo "$as_me:$LINENO: result: yes" >&5
6592echo "${ECHO_T}yes" >&6
6593else
6594 echo "$as_me:$LINENO: result: no" >&5
6595echo "${ECHO_T}no" >&6
6596fi
6597##
6598## END FIXME
6599
6600reload_cmds='$LD$reload_flag -o $output$reload_objs'
6601test -z "$deplibs_check_method" && deplibs_check_method=unknown
6602
6603## FIXME: this should be a separate macro
6604##
6605# PORTME Fill in your ld.so characteristics
6606echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6607echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6608library_names_spec=
6609libname_spec='lib$name'
6610soname_spec=
6611postinstall_cmds=
6612postuninstall_cmds=
6613finish_cmds=
6614finish_eval=
6615shlibpath_var=
6616shlibpath_overrides_runpath=unknown
6617version_type=none
6618dynamic_linker="$host_os ld.so"
6619sys_lib_dlsearch_path_spec="/lib /usr/lib"
6620sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6621
6622case "$host_os" in
6623aix3*)
6624 version_type=linux
6625 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6626 shlibpath_var=LIBPATH
6627
6628 # AIX has no versioning support, so we append a major version to the name.
6629 soname_spec='${libname}${release}.so$major'
6630 ;;
6631
6632aix4*)
6633 version_type=linux
6634 # AIX has no versioning support, so currently we can not hardcode correct
6635 # soname into executable. Probably we can add versioning support to
6636 # collect2, so additional links can be useful in future.
6637 # We preserve .a as extension for shared libraries though AIX4.2
6638 # and later linker supports .so
6639 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.a'
6640 shlibpath_var=LIBPATH
6641 ;;
6642
6643amigaos*)
6644 library_names_spec='$libname.ixlibrary $libname.a'
6645 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6646 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
6647 ;;
6648
6649beos*)
6650 library_names_spec='${libname}.so'
6651 dynamic_linker="$host_os ld.so"
6652 shlibpath_var=LIBRARY_PATH
6653 ;;
6654
6655bsdi4*)
6656 version_type=linux
6657 need_version=no
6658 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6659 soname_spec='${libname}${release}.so$major'
6660 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6661 shlibpath_var=LD_LIBRARY_PATH
6662 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6663 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6664 export_dynamic_flag_spec=-rdynamic
6665 # the default ld.so.conf also contains /usr/contrib/lib and
6666 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6667 # libtool to hard-code these into programs
6668 ;;
6669
6670cygwin* | mingw* | pw32*)
6671 version_type=windows
6672 need_version=no
6673 need_lib_prefix=no
6674 if test "$GCC" = yes; then
6675 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6676 else
6677 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6678 fi
6679 dynamic_linker='Win32 ld.exe'
6680 # FIXME: first we should search . and the directory the executable is in
6681 shlibpath_var=PATH
6682 ;;
6683
6684darwin* | rhapsody*)
6685 need_lib_prefix=no
6686 need_version=no
6687 library_names_spec='${libname}.`if test "$module" = "yes"; then echo so; else echo dylib; fi`'
6688 shlibpath_overrides_runpath=yes
6689 shlibpath_var=DYLD_LIBRARY_PATH
6690 postinstall_cmds='chmod +x $lib'
6691 ;;
6692
6693freebsd1*)
6694 dynamic_linker=no
6695 ;;
6696
6697freebsd*)
6698 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6699 version_type=freebsd-$objformat
6700 case "$version_type" in
6701 freebsd-elf*)
6702 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6703 need_version=no
6704 need_lib_prefix=no
6705 ;;
6706 freebsd-*)
6707 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6708 need_version=yes
6709 ;;
6710 esac
6711 shlibpath_var=LD_LIBRARY_PATH
6712 case "$host_os" in
6713 freebsd2*)
6714 shlibpath_overrides_runpath=yes
6715 ;;
6716 *)
6717 shlibpath_overrides_runpath=no
6718 hardcode_into_libs=yes
6719 ;;
6720 esac
6721 ;;
6722
6723gnu*)
6724 version_type=linux
6725 need_lib_prefix=no
6726 need_version=no
6727 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6728 soname_spec='${libname}${release}.so$major'
6729 shlibpath_var=LD_LIBRARY_PATH
6730 hardcode_into_libs=yes
6731 ;;
6732
6733hpux9* | hpux10* | hpux11*)
6734 # Give a soname corresponding to the major version so that dld.sl refuses to
6735 # link against other versions.
6736 dynamic_linker="$host_os dld.sl"
6737 version_type=sunos
6738 need_lib_prefix=no
6739 need_version=no
6740 shlibpath_var=SHLIB_PATH
6741 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6742 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6743 soname_spec='${libname}${release}.sl$major'
6744 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6745 postinstall_cmds='chmod 555 $lib'
6746 ;;
6747
6748irix5* | irix6*)
6749 version_type=irix
6750 need_lib_prefix=no
6751 need_version=no
6752 soname_spec='${libname}${release}.so$major'
6753 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6754 case "$host_os" in
6755 irix5*)
6756 libsuff= shlibsuff=
6757 ;;
6758 *)
6759 case "$LD" in # libtool.m4 will add one of these switches to LD
6760 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6761 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6762 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6763 *) libsuff= shlibsuff= libmagic=never-match;;
6764 esac
6765 ;;
6766 esac
6767 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6768 shlibpath_overrides_runpath=no
6769 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6770 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6771 ;;
6772
6773# No shared lib support for Linux oldld, aout, or coff.
6774linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6775 dynamic_linker=no
6776 ;;
6777
6778# This must be Linux ELF.
6779linux-gnu*)
6780 version_type=linux
6781 need_lib_prefix=no
6782 need_version=no
6783 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6784 soname_spec='${libname}${release}.so$major'
6785 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6786 shlibpath_var=LD_LIBRARY_PATH
6787 shlibpath_overrides_runpath=no
6788 # This implies no fast_install, which is unacceptable.
6789 # Some rework will be needed to allow for fast_install
6790 # before this can be enabled.
6791 hardcode_into_libs=yes
6792
6793 # We used to test for /lib/ld.so.1 and disable shared libraries on
6794 # powerpc, because MkLinux only supported shared libraries with the
6795 # GNU dynamic linker. Since this was broken with cross compilers,
6796 # most powerpc-linux boxes support dynamic linking these days and
6797 # people can always --disable-shared, the test was removed, and we
6798 # assume the GNU/Linux dynamic linker is in use.
6799 dynamic_linker='GNU/Linux ld.so'
6800 ;;
6801
6802netbsd*)
6803 version_type=sunos
6804 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6805 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6806 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6807 dynamic_linker='NetBSD (a.out) ld.so'
6808 else
6809 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6810 soname_spec='${libname}${release}.so$major'
6811 dynamic_linker='NetBSD ld.elf_so'
6812 fi
6813 shlibpath_var=LD_LIBRARY_PATH
6814 shlibpath_overrides_runpath=yes
6815 hardcode_into_libs=yes
6816 ;;
6817
6818newsos6)
6819 version_type=linux
6820 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6821 shlibpath_var=LD_LIBRARY_PATH
6822 shlibpath_overrides_runpath=yes
6823 ;;
6824
6825openbsd*)
6826 version_type=sunos
6827 if test "$with_gnu_ld" = yes; then
6828 need_lib_prefix=no
6829 need_version=no
6830 fi
6831 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6832 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6833 shlibpath_var=LD_LIBRARY_PATH
6834 ;;
6835
6836os2*)
6837 libname_spec='$name'
6838 need_lib_prefix=no
6839 library_names_spec='$libname.dll $libname.a'
6840 dynamic_linker='OS/2 ld.exe'
6841 shlibpath_var=LIBPATH
6842 ;;
6843
6844osf3* | osf4* | osf5*)
6845 version_type=osf
6846 need_version=no
6847 soname_spec='${libname}${release}.so'
6848 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6849 shlibpath_var=LD_LIBRARY_PATH
6850 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6851 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6852 ;;
6853
6854sco3.2v5*)
6855 version_type=osf
6856 soname_spec='${libname}${release}.so$major'
6857 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6858 shlibpath_var=LD_LIBRARY_PATH
6859 ;;
6860
6861solaris*)
6862 version_type=linux
6863 need_lib_prefix=no
6864 need_version=no
6865 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6866 soname_spec='${libname}${release}.so$major'
6867 shlibpath_var=LD_LIBRARY_PATH
6868 shlibpath_overrides_runpath=yes
6869 hardcode_into_libs=yes
6870 # ldd complains unless libraries are executable
6871 postinstall_cmds='chmod +x $lib'
6872 ;;
6873
6874sunos4*)
6875 version_type=sunos
6876 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6877 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6878 shlibpath_var=LD_LIBRARY_PATH
6879 shlibpath_overrides_runpath=yes
6880 if test "$with_gnu_ld" = yes; then
6881 need_lib_prefix=no
6882 fi
6883 need_version=yes
6884 ;;
6885
6886sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6887 version_type=linux
6888 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6889 soname_spec='${libname}${release}.so$major'
6890 shlibpath_var=LD_LIBRARY_PATH
6891 case "$host_vendor" in
6892 sni)
6893 shlibpath_overrides_runpath=no
6894 ;;
6895 motorola)
6896 need_lib_prefix=no
6897 need_version=no
6898 shlibpath_overrides_runpath=no
6899 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6900 ;;
6901 esac
6902 ;;
6903
6904uts4*)
6905 version_type=linux
6906 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6907 soname_spec='${libname}${release}.so$major'
6908 shlibpath_var=LD_LIBRARY_PATH
6909 ;;
6910
6911dgux*)
6912 version_type=linux
6913 need_lib_prefix=no
6914 need_version=no
6915 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6916 soname_spec='${libname}${release}.so$major'
6917 shlibpath_var=LD_LIBRARY_PATH
6918 ;;
6919
6920sysv4*MP*)
6921 if test -d /usr/nec ;then
6922 version_type=linux
6923 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6924 soname_spec='$libname.so.$major'
6925 shlibpath_var=LD_LIBRARY_PATH
6926 fi
6927 ;;
6928
6929*)
6930 dynamic_linker=no
6931 ;;
6932esac
6933echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6934echo "${ECHO_T}$dynamic_linker" >&6
6935test "$dynamic_linker" = no && can_build_shared=no
6936##
6937## END FIXME
6938
6939## FIXME: this should be a separate macro
6940##
6941# Report the final consequences.
6942echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6943echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6944echo "$as_me:$LINENO: result: $can_build_shared" >&5
6945echo "${ECHO_T}$can_build_shared" >&6
6946##
6947## END FIXME
6948
6949if test "$hardcode_action" = relink; then
6950 # Fast installation is not supported
6951 enable_fast_install=no
6952elif test "$shlibpath_overrides_runpath" = yes ||
6953 test "$enable_shared" = no; then
6954 # Fast installation is not necessary
6955 enable_fast_install=needless
6956fi
6957
6958variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6959if test "$GCC" = yes; then
6960 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6961fi
6962
6963if test "x$enable_dlopen" != xyes; then
6964 enable_dlopen=unknown
6965 enable_dlopen_self=unknown
6966 enable_dlopen_self_static=unknown
6967else
6968 lt_cv_dlopen=no
6969 lt_cv_dlopen_libs=
6970
6971 case "$host_os" in
6972 beos*)
6973 lt_cv_dlopen="load_add_on"
6974 lt_cv_dlopen_libs=
6975 lt_cv_dlopen_self=yes
6976 ;;
6977
6978 cygwin* | mingw* | pw32*)
6979 lt_cv_dlopen="LoadLibrary"
6980 lt_cv_dlopen_libs=
6981 ;;
6982
6983 *)
6984 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6985echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6986if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6988else
6989 ac_check_lib_save_LIBS=$LIBS
6990LIBS="-ldl $LIBS"
6991cat >conftest.$ac_ext <<_ACEOF
6992/* confdefs.h. */
6993_ACEOF
6994cat confdefs.h >>conftest.$ac_ext
6995cat >>conftest.$ac_ext <<_ACEOF
6996/* end confdefs.h. */
6997
6998/* Override any gcc2 internal prototype to avoid an error. */
6999#ifdef __cplusplus
7000extern "C"
7001#endif
7002/* We use char because int might match the return type of a gcc2
7003 builtin and then its argument prototype would still apply. */
7004char dlopen ();
7005int
7006main ()
7007{
7008dlopen ();
7009 ;
7010 return 0;
7011}
7012_ACEOF
7013rm -f conftest.$ac_objext conftest$ac_exeext
7014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7015 (eval $ac_link) 2>conftest.er1
7016 ac_status=$?
7017 grep -v '^ *+' conftest.er1 >conftest.err
7018 rm -f conftest.er1
7019 cat conftest.err >&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } &&
7022 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024 (eval $ac_try) 2>&5
7025 ac_status=$?
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); }; } &&
7028 { ac_try='test -s conftest$ac_exeext'
7029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030 (eval $ac_try) 2>&5
7031 ac_status=$?
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); }; }; then
7034 ac_cv_lib_dl_dlopen=yes
7035else
7036 echo "$as_me: failed program was:" >&5
7037sed 's/^/| /' conftest.$ac_ext >&5
7038
7039ac_cv_lib_dl_dlopen=no
7040fi
7041rm -f conftest.err conftest.$ac_objext \
7042 conftest$ac_exeext conftest.$ac_ext
7043LIBS=$ac_check_lib_save_LIBS
7044fi
7045echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7046echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7047if test $ac_cv_lib_dl_dlopen = yes; then
7048 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7049else
7050 echo "$as_me:$LINENO: checking for dlopen" >&5
7051echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7052if test "${ac_cv_func_dlopen+set}" = set; then
7053 echo $ECHO_N "(cached) $ECHO_C" >&6
7054else
7055 cat >conftest.$ac_ext <<_ACEOF
7056/* confdefs.h. */
7057_ACEOF
7058cat confdefs.h >>conftest.$ac_ext
7059cat >>conftest.$ac_ext <<_ACEOF
7060/* end confdefs.h. */
7061/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 3880/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
7062 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7063#define dlopen innocuous_dlopen 3882#define sched_yield innocuous_sched_yield
7064 3883
7065/* System header to define __stub macros and hopefully few prototypes, 3884/* System header to define __stub macros and hopefully few prototypes,
7066 which can conflict with char dlopen (); below. 3885 which can conflict with char sched_yield (); below.
7067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7068 <limits.h> exists even on freestanding compilers. */ 3887 <limits.h> exists even on freestanding compilers. */
7069 3888
7070#ifdef __STDC__ 3889#ifdef __STDC__
7071# include <limits.h> 3890# include <limits.h>
7072#else 3891#else
7073# include <assert.h> 3892# include <assert.h>
7074#endif 3893#endif
7075 3894
7076#undef dlopen 3895#undef sched_yield
7077 3896
7078/* Override any gcc2 internal prototype to avoid an error. */ 3897/* Override any gcc2 internal prototype to avoid an error. */
7079#ifdef __cplusplus 3898#ifdef __cplusplus
7080extern "C" 3899extern "C"
7081{ 3900{
7082#endif 3901#endif
7083/* We use char because int might match the return type of a gcc2 3902/* We use char because int might match the return type of a gcc2
7084 builtin and then its argument prototype would still apply. */ 3903 builtin and then its argument prototype would still apply. */
7085char dlopen (); 3904char sched_yield ();
7086/* The GNU C library defines this for functions which it implements 3905/* The GNU C library defines this for functions which it implements
7087 to always fail with ENOSYS. Some functions are actually named 3906 to always fail with ENOSYS. Some functions are actually named
7088 something starting with __ and the normal name is an alias. */ 3907 something starting with __ and the normal name is an alias. */
7089#if defined (__stub_dlopen) || defined (__stub___dlopen) 3908#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
7090choke me 3909choke me
7091#else 3910#else
7092char (*f) () = dlopen; 3911char (*f) () = sched_yield;
7093#endif 3912#endif
7094#ifdef __cplusplus 3913#ifdef __cplusplus
7095} 3914}
7096#endif 3915#endif
7097 3916
7098int 3917int
7099main () 3918main ()
7100{ 3919{
7101return f != dlopen; 3920return f != sched_yield;
7102 ; 3921 ;
7103 return 0; 3922 return 0;
7104} 3923}
7105_ACEOF 3924_ACEOF
7106rm -f conftest.$ac_objext conftest$ac_exeext 3925rm -f conftest.$ac_objext conftest$ac_exeext
7122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123 (eval $ac_try) 2>&5 3942 (eval $ac_try) 2>&5
7124 ac_status=$? 3943 ac_status=$?
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); }; }; then 3945 (exit $ac_status); }; }; then
7127 ac_cv_func_dlopen=yes 3946 ac_cv_func_sched_yield=yes
7128else 3947else
7129 echo "$as_me: failed program was:" >&5 3948 echo "$as_me: failed program was:" >&5
7130sed 's/^/| /' conftest.$ac_ext >&5 3949sed 's/^/| /' conftest.$ac_ext >&5
7131 3950
7132ac_cv_func_dlopen=no 3951ac_cv_func_sched_yield=no
7133fi 3952fi
7134rm -f conftest.err conftest.$ac_objext \ 3953rm -f conftest.err conftest.$ac_objext \
7135 conftest$ac_exeext conftest.$ac_ext 3954 conftest$ac_exeext conftest.$ac_ext
7136fi 3955fi
7137echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 3956echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
7138echo "${ECHO_T}$ac_cv_func_dlopen" >&6 3957echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
7139if test $ac_cv_func_dlopen = yes; then 3958if test $ac_cv_func_sched_yield = yes; then
7140 lt_cv_dlopen="dlopen" 3959 :
7141else 3960else
7142 echo "$as_me:$LINENO: checking for shl_load" >&5 3961 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
7143echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 3962echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
7144if test "${ac_cv_func_shl_load+set}" = set; then 3963if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6 3964 echo $ECHO_N "(cached) $ECHO_C" >&6
7146else 3965else
7147 cat >conftest.$ac_ext <<_ACEOF
7148/* confdefs.h. */
7149_ACEOF
7150cat confdefs.h >>conftest.$ac_ext
7151cat >>conftest.$ac_ext <<_ACEOF
7152/* end confdefs.h. */
7153/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7155#define shl_load innocuous_shl_load
7156
7157/* System header to define __stub macros and hopefully few prototypes,
7158 which can conflict with char shl_load (); below.
7159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7160 <limits.h> exists even on freestanding compilers. */
7161
7162#ifdef __STDC__
7163# include <limits.h>
7164#else
7165# include <assert.h>
7166#endif
7167
7168#undef shl_load
7169
7170/* Override any gcc2 internal prototype to avoid an error. */
7171#ifdef __cplusplus
7172extern "C"
7173{
7174#endif
7175/* We use char because int might match the return type of a gcc2
7176 builtin and then its argument prototype would still apply. */
7177char shl_load ();
7178/* The GNU C library defines this for functions which it implements
7179 to always fail with ENOSYS. Some functions are actually named
7180 something starting with __ and the normal name is an alias. */
7181#if defined (__stub_shl_load) || defined (__stub___shl_load)
7182choke me
7183#else
7184char (*f) () = shl_load;
7185#endif
7186#ifdef __cplusplus
7187}
7188#endif
7189
7190int
7191main ()
7192{
7193return f != shl_load;
7194 ;
7195 return 0;
7196}
7197_ACEOF
7198rm -f conftest.$ac_objext conftest$ac_exeext
7199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7200 (eval $ac_link) 2>conftest.er1
7201 ac_status=$?
7202 grep -v '^ *+' conftest.er1 >conftest.err
7203 rm -f conftest.er1
7204 cat conftest.err >&5
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); } &&
7207 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7209 (eval $ac_try) 2>&5
7210 ac_status=$?
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); }; } &&
7213 { ac_try='test -s conftest$ac_exeext'
7214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7215 (eval $ac_try) 2>&5
7216 ac_status=$?
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); }; }; then
7219 ac_cv_func_shl_load=yes
7220else
7221 echo "$as_me: failed program was:" >&5
7222sed 's/^/| /' conftest.$ac_ext >&5
7223
7224ac_cv_func_shl_load=no
7225fi
7226rm -f conftest.err conftest.$ac_objext \
7227 conftest$ac_exeext conftest.$ac_ext
7228fi
7229echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7230echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7231if test $ac_cv_func_shl_load = yes; then
7232 lt_cv_dlopen="shl_load"
7233else
7234 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7235echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7236if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7238else
7239 ac_check_lib_save_LIBS=$LIBS 3966 ac_check_lib_save_LIBS=$LIBS
7240LIBS="-lsvld $LIBS" 3967LIBS="-lrt $LIBS"
7241cat >conftest.$ac_ext <<_ACEOF 3968cat >conftest.$ac_ext <<_ACEOF
7242/* confdefs.h. */ 3969/* confdefs.h. */
7243_ACEOF 3970_ACEOF
7244cat confdefs.h >>conftest.$ac_ext 3971cat confdefs.h >>conftest.$ac_ext
7245cat >>conftest.$ac_ext <<_ACEOF 3972cat >>conftest.$ac_ext <<_ACEOF
7249#ifdef __cplusplus 3976#ifdef __cplusplus
7250extern "C" 3977extern "C"
7251#endif 3978#endif
7252/* We use char because int might match the return type of a gcc2 3979/* We use char because int might match the return type of a gcc2
7253 builtin and then its argument prototype would still apply. */ 3980 builtin and then its argument prototype would still apply. */
7254char dlopen (); 3981char sched_yield ();
7255int 3982int
7256main () 3983main ()
7257{ 3984{
7258dlopen (); 3985sched_yield ();
7259 ; 3986 ;
7260 return 0; 3987 return 0;
7261} 3988}
7262_ACEOF 3989_ACEOF
7263rm -f conftest.$ac_objext conftest$ac_exeext 3990rm -f conftest.$ac_objext conftest$ac_exeext
7279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280 (eval $ac_try) 2>&5 4007 (eval $ac_try) 2>&5
7281 ac_status=$? 4008 ac_status=$?
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); }; }; then 4010 (exit $ac_status); }; }; then
7284 ac_cv_lib_svld_dlopen=yes 4011 ac_cv_lib_rt_sched_yield=yes
7285else 4012else
7286 echo "$as_me: failed program was:" >&5 4013 echo "$as_me: failed program was:" >&5
7287sed 's/^/| /' conftest.$ac_ext >&5 4014sed 's/^/| /' conftest.$ac_ext >&5
7288 4015
7289ac_cv_lib_svld_dlopen=no 4016ac_cv_lib_rt_sched_yield=no
7290fi 4017fi
7291rm -f conftest.err conftest.$ac_objext \ 4018rm -f conftest.err conftest.$ac_objext \
7292 conftest$ac_exeext conftest.$ac_ext 4019 conftest$ac_exeext conftest.$ac_ext
7293LIBS=$ac_check_lib_save_LIBS 4020LIBS=$ac_check_lib_save_LIBS
7294fi 4021fi
7295echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 4022echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
7296echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 4023echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
7297if test $ac_cv_lib_svld_dlopen = yes; then 4024if test $ac_cv_lib_rt_sched_yield = yes; then
7298 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 4025 LIBS="$LIBS -lrt"
7299else 4026fi
4027
4028fi
4029
4030
7300 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 4031echo "$as_me:$LINENO: checking for sched_yield support" >&5
7301echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 4032echo $ECHO_N "checking for sched_yield support... $ECHO_C" >&6
7302if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7303 echo $ECHO_N "(cached) $ECHO_C" >&6
7304else
7305 ac_check_lib_save_LIBS=$LIBS
7306LIBS="-ldld $LIBS"
7307cat >conftest.$ac_ext <<_ACEOF 4033cat >conftest.$ac_ext <<_ACEOF
7308/* confdefs.h. */ 4034/* confdefs.h. */
7309_ACEOF 4035_ACEOF
7310cat confdefs.h >>conftest.$ac_ext 4036cat confdefs.h >>conftest.$ac_ext
7311cat >>conftest.$ac_ext <<_ACEOF 4037cat >>conftest.$ac_ext <<_ACEOF
7312/* end confdefs.h. */ 4038/* end confdefs.h. */
7313 4039#include <sched.h>
7314/* Override any gcc2 internal prototype to avoid an error. */
7315#ifdef __cplusplus
7316extern "C"
7317#endif
7318/* We use char because int might match the return type of a gcc2
7319 builtin and then its argument prototype would still apply. */
7320char shl_load ();
7321int 4040int
7322main () 4041main ()
7323{ 4042{
7324shl_load (); 4043sched_yield ()
7325 ; 4044 ;
7326 return 0; 4045 return 0;
7327} 4046}
7328_ACEOF 4047_ACEOF
7329rm -f conftest.$ac_objext conftest$ac_exeext 4048rm -f conftest.$ac_objext conftest$ac_exeext
7345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346 (eval $ac_try) 2>&5 4065 (eval $ac_try) 2>&5
7347 ac_status=$? 4066 ac_status=$?
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); }; }; then 4068 (exit $ac_status); }; }; then
7350 ac_cv_lib_dld_shl_load=yes 4069 echo "$as_me:$LINENO: result: yes" >&5
4070echo "${ECHO_T}yes" >&6
4071
4072cat >>confdefs.h <<\_ACEOF
4073#define HAVE_SCHED_YIELD 1
4074_ACEOF
4075
7351else 4076else
7352 echo "$as_me: failed program was:" >&5 4077 echo "$as_me: failed program was:" >&5
7353sed 's/^/| /' conftest.$ac_ext >&5 4078sed 's/^/| /' conftest.$ac_ext >&5
7354 4079
7355ac_cv_lib_dld_shl_load=no 4080echo "$as_me:$LINENO: result: no" >&5
4081echo "${ECHO_T}no" >&6
7356fi 4082fi
7357rm -f conftest.err conftest.$ac_objext \ 4083rm -f conftest.err conftest.$ac_objext \
7358 conftest$ac_exeext conftest.$ac_ext 4084 conftest$ac_exeext conftest.$ac_ext
7359LIBS=$ac_check_lib_save_LIBS
7360fi
7361echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7362echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7363if test $ac_cv_lib_dld_shl_load = yes; then
7364 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7365fi
7366
7367
7368fi
7369
7370
7371fi
7372
7373
7374fi
7375
7376
7377fi
7378
7379 ;;
7380 esac
7381
7382 if test "x$lt_cv_dlopen" != xno; then
7383 enable_dlopen=yes
7384 else
7385 enable_dlopen=no
7386 fi
7387
7388 case "$lt_cv_dlopen" in
7389 dlopen)
7390 save_CPPFLAGS="$CPP_FLAGS"
7391 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7392
7393 save_LDFLAGS="$LDFLAGS"
7394 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7395
7396 save_LIBS="$LIBS"
7397 LIBS="$lt_cv_dlopen_libs $LIBS"
7398
7399 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7400echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7401if test "${lt_cv_dlopen_self+set}" = set; then
7402 echo $ECHO_N "(cached) $ECHO_C" >&6
7403else
7404 if test "$cross_compiling" = yes; then :
7405 lt_cv_dlopen_self=cross
7406else
7407 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7408 lt_status=$lt_dlunknown
7409 cat > conftest.$ac_ext <<EOF
7410#line 7410 "configure"
7411#include "confdefs.h"
7412
7413#if HAVE_DLFCN_H
7414#include <dlfcn.h>
7415#endif
7416
7417#include <stdio.h>
7418
7419#ifdef RTLD_GLOBAL
7420# define LT_DLGLOBAL RTLD_GLOBAL
7421#else
7422# ifdef DL_GLOBAL
7423# define LT_DLGLOBAL DL_GLOBAL
7424# else
7425# define LT_DLGLOBAL 0
7426# endif
7427#endif
7428
7429/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7430 find out it does not work in some platform. */
7431#ifndef LT_DLLAZY_OR_NOW
7432# ifdef RTLD_LAZY
7433# define LT_DLLAZY_OR_NOW RTLD_LAZY
7434# else
7435# ifdef DL_LAZY
7436# define LT_DLLAZY_OR_NOW DL_LAZY
7437# else
7438# ifdef RTLD_NOW
7439# define LT_DLLAZY_OR_NOW RTLD_NOW
7440# else
7441# ifdef DL_NOW
7442# define LT_DLLAZY_OR_NOW DL_NOW
7443# else
7444# define LT_DLLAZY_OR_NOW 0
7445# endif
7446# endif
7447# endif
7448# endif
7449#endif
7450
7451#ifdef __cplusplus
7452extern "C" void exit (int);
7453#endif
7454
7455fnord() { int i=42;}
7456main ()
7457{
7458 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7459 int status = $lt_dlunknown;
7460
7461 if (self)
7462 {
7463 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7464 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7465 /* dlclose (self); */
7466 }
7467
7468 exit (status);
7469}
7470EOF
7471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7472 (eval $ac_link) 2>&5
7473 ac_status=$?
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7476 (./conftest; exit; ) 2>/dev/null
7477 lt_status=$?
7478 case x$lt_status in
7479 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7480 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7481 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7482 esac
7483 else :
7484 # compilation failed
7485 lt_cv_dlopen_self=no
7486 fi
7487fi
7488rm -fr conftest*
7489
7490
7491fi
7492echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7493echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7494
7495 if test "x$lt_cv_dlopen_self" = xyes; then
7496 LDFLAGS="$LDFLAGS $link_static_flag"
7497 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7498echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7499if test "${lt_cv_dlopen_self_static+set}" = set; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7501else
7502 if test "$cross_compiling" = yes; then :
7503 lt_cv_dlopen_self_static=cross
7504else
7505 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7506 lt_status=$lt_dlunknown
7507 cat > conftest.$ac_ext <<EOF
7508#line 7508 "configure"
7509#include "confdefs.h"
7510
7511#if HAVE_DLFCN_H
7512#include <dlfcn.h>
7513#endif
7514
7515#include <stdio.h>
7516
7517#ifdef RTLD_GLOBAL
7518# define LT_DLGLOBAL RTLD_GLOBAL
7519#else
7520# ifdef DL_GLOBAL
7521# define LT_DLGLOBAL DL_GLOBAL
7522# else
7523# define LT_DLGLOBAL 0
7524# endif
7525#endif
7526
7527/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7528 find out it does not work in some platform. */
7529#ifndef LT_DLLAZY_OR_NOW
7530# ifdef RTLD_LAZY
7531# define LT_DLLAZY_OR_NOW RTLD_LAZY
7532# else
7533# ifdef DL_LAZY
7534# define LT_DLLAZY_OR_NOW DL_LAZY
7535# else
7536# ifdef RTLD_NOW
7537# define LT_DLLAZY_OR_NOW RTLD_NOW
7538# else
7539# ifdef DL_NOW
7540# define LT_DLLAZY_OR_NOW DL_NOW
7541# else
7542# define LT_DLLAZY_OR_NOW 0
7543# endif
7544# endif
7545# endif
7546# endif
7547#endif
7548
7549#ifdef __cplusplus
7550extern "C" void exit (int);
7551#endif
7552
7553fnord() { int i=42;}
7554main ()
7555{
7556 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7557 int status = $lt_dlunknown;
7558
7559 if (self)
7560 {
7561 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7562 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7563 /* dlclose (self); */
7564 }
7565
7566 exit (status);
7567}
7568EOF
7569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7570 (eval $ac_link) 2>&5
7571 ac_status=$?
7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7574 (./conftest; exit; ) 2>/dev/null
7575 lt_status=$?
7576 case x$lt_status in
7577 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7578 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7579 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7580 esac
7581 else :
7582 # compilation failed
7583 lt_cv_dlopen_self_static=no
7584 fi
7585fi
7586rm -fr conftest*
7587
7588
7589fi
7590echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7591echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7592 fi
7593
7594 CPPFLAGS="$save_CPPFLAGS"
7595 LDFLAGS="$save_LDFLAGS"
7596 LIBS="$save_LIBS"
7597 ;;
7598 esac
7599
7600 case "$lt_cv_dlopen_self" in
7601 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7602 *) enable_dlopen_self=unknown ;;
7603 esac
7604
7605 case "$lt_cv_dlopen_self_static" in
7606 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7607 *) enable_dlopen_self_static=unknown ;;
7608 esac
7609fi
7610
7611
7612## FIXME: this should be a separate macro
7613##
7614if test "$enable_shared" = yes && test "$GCC" = yes; then
7615 case "$archive_cmds" in
7616 *'~'*)
7617 # FIXME: we may have to deal with multi-command sequences.
7618 ;;
7619 '$CC '*)
7620 # Test whether the compiler implicitly links with -lc since on some
7621 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7622 # to ld, don't add -lc before -lgcc.
7623 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7624echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7625 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7626 echo $ECHO_N "(cached) $ECHO_C" >&6
7627else
7628 $rm conftest*
7629 echo 'static int dummy;' > conftest.$ac_ext
7630
7631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7632 (eval $ac_compile) 2>&5
7633 ac_status=$?
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); }; then
7636 soname=conftest
7637 lib=conftest
7638 libobjs=conftest.$ac_objext
7639 deplibs=
7640 wl=$lt_cv_prog_cc_wl
7641 compiler_flags=-v
7642 linker_flags=-v
7643 verstring=
7644 output_objdir=.
7645 libname=conftest
7646 save_allow_undefined_flag=$allow_undefined_flag
7647 allow_undefined_flag=
7648 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7649 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7650 ac_status=$?
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); }
7653 then
7654 lt_cv_archive_cmds_need_lc=no
7655 else
7656 lt_cv_archive_cmds_need_lc=yes
7657 fi
7658 allow_undefined_flag=$save_allow_undefined_flag
7659 else
7660 cat conftest.err 1>&5
7661 fi
7662fi
7663
7664 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7665echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7666 ;;
7667 esac
7668fi
7669need_lc=${lt_cv_archive_cmds_need_lc-yes}
7670##
7671## END FIXME
7672
7673## FIXME: this should be a separate macro
7674##
7675# The second clause should only fire when bootstrapping the
7676# libtool distribution, otherwise you forgot to ship ltmain.sh
7677# with your package, and you will get complaints that there are
7678# no rules to generate ltmain.sh.
7679if test -f "$ltmain"; then
7680 :
7681else
7682 # If there is no Makefile yet, we rely on a make rule to execute
7683 # `config.status --recheck' to rerun these tests and create the
7684 # libtool script then.
7685 test -f Makefile && make "$ltmain"
7686fi
7687
7688if test -f "$ltmain"; then
7689 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7690 $rm -f "${ofile}T"
7691
7692 echo creating $ofile
7693
7694 # Now quote all the things that may contain metacharacters while being
7695 # careful not to overquote the AC_SUBSTed values. We take copies of the
7696 # variables and quote the copies for generation of the libtool script.
7697 for var in echo old_CC old_CFLAGS \
7698 AR AR_FLAGS CC LD LN_S NM SHELL \
7699 reload_flag reload_cmds wl \
7700 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7701 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7702 library_names_spec soname_spec \
7703 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7704 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7705 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7706 old_striplib striplib file_magic_cmd export_symbols_cmds \
7707 deplibs_check_method allow_undefined_flag no_undefined_flag \
7708 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7709 hardcode_libdir_flag_spec hardcode_libdir_separator \
7710 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7711 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7712
7713 case "$var" in
7714 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7715 old_postinstall_cmds | old_postuninstall_cmds | \
7716 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7717 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7718 postinstall_cmds | postuninstall_cmds | \
7719 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7720 # Double-quote double-evaled strings.
7721 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7722 ;;
7723 *)
7724 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7725 ;;
7726 esac
7727 done
7728
7729 cat <<__EOF__ > "${ofile}T"
7730#! $SHELL
7731
7732# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7733# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7734# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7735#
7736# Copyright (C) 1996-2000 Free Software Foundation, Inc.
7737# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7738#
7739# This program is free software; you can redistribute it and/or modify
7740# it under the terms of the GNU General Public License as published by
7741# the Free Software Foundation; either version 2 of the License, or
7742# (at your option) any later version.
7743#
7744# This program is distributed in the hope that it will be useful, but
7745# WITHOUT ANY WARRANTY; without even the implied warranty of
7746# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7747# General Public License for more details.
7748#
7749# You should have received a copy of the GNU General Public License
7750# along with this program; if not, write to the Free Software
7751# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7752#
7753# As a special exception to the GNU General Public License, if you
7754# distribute this file as part of a program that contains a
7755# configuration script generated by Autoconf, you may include it under
7756# the same distribution terms that you use for the rest of that program.
7757
7758# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7759Xsed="sed -e s/^X//"
7760
7761# The HP-UX ksh and POSIX shell print the target directory to stdout
7762# if CDPATH is set.
7763if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7764
7765# ### BEGIN LIBTOOL CONFIG
7766
7767# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7768
7769# Shell to use when invoking shell scripts.
7770SHELL=$lt_SHELL
7771
7772# Whether or not to build shared libraries.
7773build_libtool_libs=$enable_shared
7774
7775# Whether or not to add -lc for building shared libraries.
7776build_libtool_need_lc=$need_lc
7777
7778# Whether or not to build static libraries.
7779build_old_libs=$enable_static
7780
7781# Whether or not to optimize for fast installation.
7782fast_install=$enable_fast_install
7783
7784# The host system.
7785host_alias=$host_alias
7786host=$host
7787
7788# An echo program that does not interpret backslashes.
7789echo=$lt_echo
7790
7791# The archiver.
7792AR=$lt_AR
7793AR_FLAGS=$lt_AR_FLAGS
7794
7795# The default C compiler.
7796CC=$lt_CC
7797
7798# Is the compiler the GNU C compiler?
7799with_gcc=$GCC
7800
7801# The linker used to build libraries.
7802LD=$lt_LD
7803
7804# Whether we need hard or soft links.
7805LN_S=$lt_LN_S
7806
7807# A BSD-compatible nm program.
7808NM=$lt_NM
7809
7810# A symbol stripping program
7811STRIP=$STRIP
7812
7813# Used to examine libraries when file_magic_cmd begins "file"
7814MAGIC_CMD=$MAGIC_CMD
7815
7816# Used on cygwin: DLL creation program.
7817DLLTOOL="$DLLTOOL"
7818
7819# Used on cygwin: object dumper.
7820OBJDUMP="$OBJDUMP"
7821
7822# Used on cygwin: assembler.
7823AS="$AS"
7824
7825# The name of the directory that contains temporary libtool files.
7826objdir=$objdir
7827
7828# How to create reloadable object files.
7829reload_flag=$lt_reload_flag
7830reload_cmds=$lt_reload_cmds
7831
7832# How to pass a linker flag through the compiler.
7833wl=$lt_wl
7834
7835# Object file suffix (normally "o").
7836objext="$ac_objext"
7837
7838# Old archive suffix (normally "a").
7839libext="$libext"
7840
7841# Executable file suffix (normally "").
7842exeext="$exeext"
7843
7844# Additional compiler flags for building library objects.
7845pic_flag=$lt_pic_flag
7846pic_mode=$pic_mode
7847
7848# Does compiler simultaneously support -c and -o options?
7849compiler_c_o=$lt_compiler_c_o
7850
7851# Can we write directly to a .lo ?
7852compiler_o_lo=$lt_compiler_o_lo
7853
7854# Must we lock files when doing compilation ?
7855need_locks=$lt_need_locks
7856
7857# Do we need the lib prefix for modules?
7858need_lib_prefix=$need_lib_prefix
7859
7860# Do we need a version for libraries?
7861need_version=$need_version
7862
7863# Whether dlopen is supported.
7864dlopen_support=$enable_dlopen
7865
7866# Whether dlopen of programs is supported.
7867dlopen_self=$enable_dlopen_self
7868
7869# Whether dlopen of statically linked programs is supported.
7870dlopen_self_static=$enable_dlopen_self_static
7871
7872# Compiler flag to prevent dynamic linking.
7873link_static_flag=$lt_link_static_flag
7874
7875# Compiler flag to turn off builtin functions.
7876no_builtin_flag=$lt_no_builtin_flag
7877
7878# Compiler flag to allow reflexive dlopens.
7879export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7880
7881# Compiler flag to generate shared objects directly from archives.
7882whole_archive_flag_spec=$lt_whole_archive_flag_spec
7883
7884# Compiler flag to generate thread-safe objects.
7885thread_safe_flag_spec=$lt_thread_safe_flag_spec
7886
7887# Library versioning type.
7888version_type=$version_type
7889
7890# Format of library name prefix.
7891libname_spec=$lt_libname_spec
7892
7893# List of archive names. First name is the real one, the rest are links.
7894# The last name is the one that the linker finds with -lNAME.
7895library_names_spec=$lt_library_names_spec
7896
7897# The coded name of the library, if different from the real name.
7898soname_spec=$lt_soname_spec
7899
7900# Commands used to build and install an old-style archive.
7901RANLIB=$lt_RANLIB
7902old_archive_cmds=$lt_old_archive_cmds
7903old_postinstall_cmds=$lt_old_postinstall_cmds
7904old_postuninstall_cmds=$lt_old_postuninstall_cmds
7905
7906# Create an old-style archive from a shared archive.
7907old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7908
7909# Create a temporary old-style archive to link instead of a shared archive.
7910old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7911
7912# Commands used to build and install a shared archive.
7913archive_cmds=$lt_archive_cmds
7914archive_expsym_cmds=$lt_archive_expsym_cmds
7915postinstall_cmds=$lt_postinstall_cmds
7916postuninstall_cmds=$lt_postuninstall_cmds
7917
7918# Commands to strip libraries.
7919old_striplib=$lt_old_striplib
7920striplib=$lt_striplib
7921
7922# Method to check whether dependent libraries are shared objects.
7923deplibs_check_method=$lt_deplibs_check_method
7924
7925# Command to use when deplibs_check_method == file_magic.
7926file_magic_cmd=$lt_file_magic_cmd
7927
7928# Flag that allows shared libraries with undefined symbols to be built.
7929allow_undefined_flag=$lt_allow_undefined_flag
7930
7931# Flag that forces no undefined symbols.
7932no_undefined_flag=$lt_no_undefined_flag
7933
7934# Commands used to finish a libtool library installation in a directory.
7935finish_cmds=$lt_finish_cmds
7936
7937# Same as above, but a single script fragment to be evaled but not shown.
7938finish_eval=$lt_finish_eval
7939
7940# Take the output of nm and produce a listing of raw symbols and C names.
7941global_symbol_pipe=$lt_global_symbol_pipe
7942
7943# Transform the output of nm in a proper C declaration
7944global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7945
7946# This is the shared library runtime path variable.
7947runpath_var=$runpath_var
7948
7949# This is the shared library path variable.
7950shlibpath_var=$shlibpath_var
7951
7952# Is shlibpath searched before the hard-coded library search path?
7953shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7954
7955# How to hardcode a shared library path into an executable.
7956hardcode_action=$hardcode_action
7957
7958# Whether we should hardcode library paths into libraries.
7959hardcode_into_libs=$hardcode_into_libs
7960
7961# Flag to hardcode \$libdir into a binary during linking.
7962# This must work even if \$libdir does not exist.
7963hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7964
7965# Whether we need a single -rpath flag with a separated argument.
7966hardcode_libdir_separator=$lt_hardcode_libdir_separator
7967
7968# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7969# resulting binary.
7970hardcode_direct=$hardcode_direct
7971
7972# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7973# resulting binary.
7974hardcode_minus_L=$hardcode_minus_L
7975
7976# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7977# the resulting binary.
7978hardcode_shlibpath_var=$hardcode_shlibpath_var
7979
7980# Variables whose values should be saved in libtool wrapper scripts and
7981# restored at relink time.
7982variables_saved_for_relink="$variables_saved_for_relink"
7983
7984# Whether libtool must link a program against all its dependency libraries.
7985link_all_deplibs=$link_all_deplibs
7986
7987# Compile-time system search path for libraries
7988sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7989
7990# Run-time system search path for libraries
7991sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7992
7993# Fix the shell variable \$srcfile for the compiler.
7994fix_srcfile_path="$fix_srcfile_path"
7995
7996# Set to yes if exported symbols are required.
7997always_export_symbols=$always_export_symbols
7998
7999# The commands to list exported symbols.
8000export_symbols_cmds=$lt_export_symbols_cmds
8001
8002# The commands to extract the exported symbol list from a shared archive.
8003extract_expsyms_cmds=$lt_extract_expsyms_cmds
8004
8005# Symbols that should not be listed in the preloaded symbols.
8006exclude_expsyms=$lt_exclude_expsyms
8007
8008# Symbols that must always be exported.
8009include_expsyms=$lt_include_expsyms
8010
8011# ### END LIBTOOL CONFIG
8012
8013__EOF__
8014
8015 case "$host_os" in
8016 aix3*)
8017 cat <<\EOF >> "${ofile}T"
8018
8019# AIX sometimes has problems with the GCC collect2 program. For some
8020# reason, if we set the COLLECT_NAMES environment variable, the problems
8021# vanish in a puff of smoke.
8022if test "X${COLLECT_NAMES+set}" != Xset; then
8023 COLLECT_NAMES=
8024 export COLLECT_NAMES
8025fi
8026EOF
8027 ;;
8028 esac
8029
8030 case "$host_os" in
8031 cygwin* | mingw* | pw32* | os2*)
8032 cat <<'EOF' >> "${ofile}T"
8033 # This is a source program that is used to create dlls on Windows
8034 # Don't remove nor modify the starting and closing comments
8035# /* ltdll.c starts here */
8036# #define WIN32_LEAN_AND_MEAN
8037# #include <windows.h>
8038# #undef WIN32_LEAN_AND_MEAN
8039# #include <stdio.h>
8040#
8041# #ifndef __CYGWIN__
8042# # ifdef __CYGWIN32__
8043# # define __CYGWIN__ __CYGWIN32__
8044# # endif
8045# #endif
8046#
8047# #ifdef __cplusplus
8048# extern "C" {
8049# #endif
8050# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8051# #ifdef __cplusplus
8052# }
8053# #endif
8054#
8055# #ifdef __CYGWIN__
8056# #include <cygwin/cygwin_dll.h>
8057# DECLARE_CYGWIN_DLL( DllMain );
8058# #endif
8059# HINSTANCE __hDllInstance_base;
8060#
8061# BOOL APIENTRY
8062# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8063# {
8064# __hDllInstance_base = hInst;
8065# return TRUE;
8066# }
8067# /* ltdll.c ends here */
8068 # This is a source program that is used to create import libraries
8069 # on Windows for dlls which lack them. Don't remove nor modify the
8070 # starting and closing comments
8071# /* impgen.c starts here */
8072# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8073#
8074# This file is part of GNU libtool.
8075#
8076# This program is free software; you can redistribute it and/or modify
8077# it under the terms of the GNU General Public License as published by
8078# the Free Software Foundation; either version 2 of the License, or
8079# (at your option) any later version.
8080#
8081# This program is distributed in the hope that it will be useful,
8082# but WITHOUT ANY WARRANTY; without even the implied warranty of
8083# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8084# GNU General Public License for more details.
8085#
8086# You should have received a copy of the GNU General Public License
8087# along with this program; if not, write to the Free Software
8088# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8089# */
8090#
8091# #include <stdio.h> /* for printf() */
8092# #include <unistd.h> /* for open(), lseek(), read() */
8093# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8094# #include <string.h> /* for strdup() */
8095#
8096# /* O_BINARY isn't required (or even defined sometimes) under Unix */
8097# #ifndef O_BINARY
8098# #define O_BINARY 0
8099# #endif
8100#
8101# static unsigned int
8102# pe_get16 (fd, offset)
8103# int fd;
8104# int offset;
8105# {
8106# unsigned char b[2];
8107# lseek (fd, offset, SEEK_SET);
8108# read (fd, b, 2);
8109# return b[0] + (b[1]<<8);
8110# }
8111#
8112# static unsigned int
8113# pe_get32 (fd, offset)
8114# int fd;
8115# int offset;
8116# {
8117# unsigned char b[4];
8118# lseek (fd, offset, SEEK_SET);
8119# read (fd, b, 4);
8120# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8121# }
8122#
8123# static unsigned int
8124# pe_as32 (ptr)
8125# void *ptr;
8126# {
8127# unsigned char *b = ptr;
8128# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8129# }
8130#
8131# int
8132# main (argc, argv)
8133# int argc;
8134# char *argv[];
8135# {
8136# int dll;
8137# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8138# unsigned long export_rva, export_size, nsections, secptr, expptr;
8139# unsigned long name_rvas, nexp;
8140# unsigned char *expdata, *erva;
8141# char *filename, *dll_name;
8142#
8143# filename = argv[1];
8144#
8145# dll = open(filename, O_RDONLY|O_BINARY);
8146# if (!dll)
8147# return 1;
8148#
8149# dll_name = filename;
8150#
8151# for (i=0; filename[i]; i++)
8152# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8153# dll_name = filename + i +1;
8154#
8155# pe_header_offset = pe_get32 (dll, 0x3c);
8156# opthdr_ofs = pe_header_offset + 4 + 20;
8157# num_entries = pe_get32 (dll, opthdr_ofs + 92);
8158#
8159# if (num_entries < 1) /* no exports */
8160# return 1;
8161#
8162# export_rva = pe_get32 (dll, opthdr_ofs + 96);
8163# export_size = pe_get32 (dll, opthdr_ofs + 100);
8164# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8165# secptr = (pe_header_offset + 4 + 20 +
8166# pe_get16 (dll, pe_header_offset + 4 + 16));
8167#
8168# expptr = 0;
8169# for (i = 0; i < nsections; i++)
8170# {
8171# char sname[8];
8172# unsigned long secptr1 = secptr + 40 * i;
8173# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8174# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8175# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8176# lseek(dll, secptr1, SEEK_SET);
8177# read(dll, sname, 8);
8178# if (vaddr <= export_rva && vaddr+vsize > export_rva)
8179# {
8180# expptr = fptr + (export_rva - vaddr);
8181# if (export_rva + export_size > vaddr + vsize)
8182# export_size = vsize - (export_rva - vaddr);
8183# break;
8184# }
8185# }
8186#
8187# expdata = (unsigned char*)malloc(export_size);
8188# lseek (dll, expptr, SEEK_SET);
8189# read (dll, expdata, export_size);
8190# erva = expdata - export_rva;
8191#
8192# nexp = pe_as32 (expdata+24);
8193# name_rvas = pe_as32 (expdata+32);
8194#
8195# printf ("EXPORTS\n");
8196# for (i = 0; i<nexp; i++)
8197# {
8198# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8199# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8200# }
8201#
8202# return 0;
8203# }
8204# /* impgen.c ends here */
8205
8206EOF
8207 ;;
8208 esac
8209
8210 # We use sed instead of cat because bash on DJGPP gets confused if
8211 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8212 # text mode, it properly converts lines to CR/LF. This bash problem
8213 # is reportedly fixed, but why not run on old versions too?
8214 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8215
8216 mv -f "${ofile}T" "$ofile" || \
8217 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8218 chmod +x "$ofile"
8219fi
8220##
8221## END FIXME
8222
8223
8224
8225
8226
8227# This can be used to rebuild libtool when needed
8228LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8229
8230# Always use our own libtool.
8231LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8232
8233# Prevent multiple expansion
8234 4085
8235 4086
8236MALLOC_TYPE=S 4087MALLOC_TYPE=S
8237support_addstrings=no 4088
8238support_frills=no 4089support_frills=yes
8239support_linespace=no
8240support_inheritpixmap=no 4090support_inheritpixmap=yes
8241support_tinting=no 4091support_tinting=yes
8242support_fading=no 4092support_fading=yes
8243support_keepscrolling=no 4093support_keepscrolling=yes
8244support_selectionscrolling=no 4094support_selectionscrolling=yes
8245support_menubar=no
8246support_mousewheel=no 4095support_mousewheel=yes
8247support_mouseslipwheel=no 4096support_mouseslipwheel=yes
8248support_utmp=no 4097support_utmp=yes
8249support_wtmp=no 4098support_wtmp=yes
8250support_lastlog=no 4099support_lastlog=yes
8251support_cursor_blink=no
8252support_text_blink=no 4100support_text_blink=yes
8253support_pointer_blank=no 4101support_pointer_blank=yes
8254support_scroll_rxvt=no 4102support_scroll_rxvt=yes
8255support_scroll_next=no 4103support_scroll_next=yes
8256support_scroll_xterm=no 4104support_scroll_xterm=yes
8257support_scroll_plain=no 4105support_scroll_plain=yes
8258support_xim=no 4106support_xim=yes
8259support_xpm=no 4107support_xpm=yes
8260support_xft=no 4108support_xft=yes
8261support_unicode3=no 4109support_unicode3=no
8262support_combining=no 4110support_combining=yes
8263support_8bitctrls=no 4111support_8bitctrls=no
8264support_iso14755=no 4112support_iso14755=yes
4113support_styles=yes
4114support_perl=yes
8265codesets= 4115codesets=all
8266 4116
8267 4117
8268if test "x$enable_shared" = xyes; then 4118if test "x$enable_shared" = xyes; then
8269 4119
8270cat >>confdefs.h <<\_ACEOF 4120cat >>confdefs.h <<\_ACEOF
8276 4126
8277 4127
8278# Check whether --enable-everything or --disable-everything was given. 4128# Check whether --enable-everything or --disable-everything was given.
8279if test "${enable_everything+set}" = set; then 4129if test "${enable_everything+set}" = set; then
8280 enableval="$enable_everything" 4130 enableval="$enable_everything"
4131
4132 if test x$enableval = xno; then
4133 support_24bit=no
4134 support_frills=no
4135 support_inheritpixmap=no
4136 support_tinting=no
4137 support_fading=no
4138 support_keepscrolling=no
4139 support_selectionscrolling=no
4140 support_lastlog=no
4141 support_mousewheel=no
4142 support_mouseslipwheel=no
4143 support_text_blink=no
4144 support_pointer_blank=no
4145 support_scroll_rxvt=no
4146 support_scroll_next=no
4147 support_scroll_xterm=no
4148 support_scroll_plain=no
4149 support_utmp=no
4150 support_wtmp=no
4151 support_xim=no
4152 support_xpm=no
4153 support_xft=no
4154 support_unicode3=no
4155 support_combining=no
4156 support_8bitctrls=no
4157 support_iso14755=no
4158 support_styles=no
4159 support_perl=no
4160 codesets=
4161 fi
8281 if test x$enableval = xyes; then 4162 if test x$enableval = xyes; then
8282 support_24bit=yes 4163 support_24bit=yes
8283 support_frills=yes 4164 support_frills=yes
8284 support_linespace=yes
8285 support_inheritpixmap=yes 4165 support_inheritpixmap=yes
8286 support_tinting=yes 4166 support_tinting=yes
8287 support_fading=yes 4167 support_fading=yes
8288 support_keepscrolling=yes 4168 support_keepscrolling=yes
8289 support_selectionscrolling=yes 4169 support_selectionscrolling=yes
8290 support_lastlog=yes 4170 support_lastlog=yes
8291 support_menubar=yes
8292 support_mousewheel=yes 4171 support_mousewheel=yes
8293 support_mouseslipwheel=yes 4172 support_mouseslipwheel=yes
8294 support_cursor_blink=yes
8295 support_text_blink=yes 4173 support_text_blink=yes
8296 support_pointer_blank=yes 4174 support_pointer_blank=yes
8297 support_scroll_rxvt=yes 4175 support_scroll_rxvt=yes
8298 support_scroll_next=yes 4176 support_scroll_next=yes
8299 support_scroll_xterm=yes 4177 support_scroll_xterm=yes
8300 support_scroll_plain=yes 4178 support_scroll_plain=yes
8301 support_utmp=yes 4179 support_utmp=yes
8302 support_wtmp=yes 4180 support_wtmp=yes
8303 support_xim=yes 4181 support_xim=yes
8304 support_xpm=yes 4182 support_xpm=yes
8305 support_xft=yes 4183 support_xft=yes
8306 support_unicode3=yes 4184 support_unicode3=yes
8307 support_combining=yes 4185 support_combining=yes
8308 #support_8bitctrls=yes 4186 #support_8bitctrls=yes
8309 support_iso14755=yes 4187 support_iso14755=yes
4188 support_styles=yes
4189 support_perl=yes
8310 codesets=all 4190 codesets=all
8311 fi 4191 fi
4192
8312fi; 4193fi;
8313 4194
8314# Check whether --enable-unicode3 or --disable-unicode3 was given. 4195# Check whether --enable-unicode3 or --disable-unicode3 was given.
8315if test "${enable_unicode3+set}" = set; then 4196if test "${enable_unicode3+set}" = set; then
8316 enableval="$enable_unicode3" 4197 enableval="$enable_unicode3"
8317 if test x$enableval = xyes -o x$enableval = xno; then 4198 if test x$enableval = xyes -o x$enableval = xno; then
8318 support_unicode3=yes 4199 support_unicode3=$enableval
8319 fi 4200 fi
8320fi; 4201fi;
8321 4202
8322# Check whether --enable-combining or --disable-combining was given. 4203# Check whether --enable-combining or --disable-combining was given.
8323if test "${enable_combining+set}" = set; then 4204if test "${enable_combining+set}" = set; then
8324 enableval="$enable_combining" 4205 enableval="$enable_combining"
8325 if test x$enableval = xyes -o x$enableval = xno; then 4206 if test x$enableval = xyes -o x$enableval = xno; then
8326 support_combining=yes 4207 support_combining=$enableval
8327 fi 4208 fi
8328fi; 4209fi;
8329 4210
8330# Check whether --enable-xft or --disable-xft was given. 4211# Check whether --enable-xft or --disable-xft was given.
8331if test "${enable_xft+set}" = set; then 4212if test "${enable_xft+set}" = set; then
8332 enableval="$enable_xft" 4213 enableval="$enable_xft"
8333 if test x$enableval = xyes -o x$enableval = xno; then 4214 if test x$enableval = xyes -o x$enableval = xno; then
8334 support_xft=yes 4215 support_xft=$enableval
4216 fi
4217fi;
4218
4219# Check whether --enable-font-styles or --disable-font-styles was given.
4220if test "${enable_font_styles+set}" = set; then
4221 enableval="$enable_font_styles"
4222 if test x$enableval = xyes -o x$enableval = xno; then
4223 support_styles=$enableval
8335 fi 4224 fi
8336fi; 4225fi;
8337 4226
8338# Check whether --enable-utmp or --disable-utmp was given. 4227# Check whether --enable-utmp or --disable-utmp was given.
8339if test "${enable_utmp+set}" = set; then 4228if test "${enable_utmp+set}" = set; then
8389 if test x$enableval = xyes -o x$enableval = xno; then 4278 if test x$enableval = xyes -o x$enableval = xno; then
8390 support_fading=$enableval 4279 support_fading=$enableval
8391 fi 4280 fi
8392fi; 4281fi;
8393 4282
8394# Check whether --enable-menubar or --disable-menubar was given.
8395if test "${enable_menubar+set}" = set; then
8396 enableval="$enable_menubar"
8397 if test x$enableval = xyes -o x$enableval = xno; then
8398 support_menubar=$enableval
8399 fi
8400fi;
8401
8402# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given. 4283# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
8403if test "${enable_rxvt_scroll+set}" = set; then 4284if test "${enable_rxvt_scroll+set}" = set; then
8404 enableval="$enable_rxvt_scroll" 4285 enableval="$enable_rxvt_scroll"
8405 if test x$enableval = xyes -o x$enableval = xno; then 4286 if test x$enableval = xyes -o x$enableval = xno; then
8406 support_scroll_rxvt=$enableval 4287 support_scroll_rxvt=$enableval
8421 if test x$enableval = xyes -o x$enableval = xno; then 4302 if test x$enableval = xyes -o x$enableval = xno; then
8422 support_scroll_xterm=$enableval 4303 support_scroll_xterm=$enableval
8423 fi 4304 fi
8424fi; 4305fi;
8425 4306
4307# Check whether --enable-perl or --disable-perl was given.
4308if test "${enable_perl+set}" = set; then
4309 enableval="$enable_perl"
4310 if test x$enableval = xyes -o x$enableval = xno; then
4311 support_perl=$enableval
4312 fi
4313fi;
4314
8426# Check whether --enable-plain-scroll or --disable-plain-scroll was given. 4315# Check whether --enable-plain-scroll or --disable-plain-scroll was given.
8427if test "${enable_plain_scroll+set}" = set; then 4316if test "${enable_plain_scroll+set}" = set; then
8428 enableval="$enable_plain_scroll" 4317 enableval="$enable_plain_scroll"
8429 if test x$enableval = xyes -o x$enableval = xno; then 4318 if test x$enableval = xyes -o x$enableval = xno; then
8430 support_scroll_plain=$enableval 4319 support_scroll_plain=$enableval
8431 fi 4320 fi
8432fi; 4321fi;
8433 4322
8434# Check whether --enable-half-shadow or --disable-half-shadow was given.
8435if test "${enable_half_shadow+set}" = set; then
8436 enableval="$enable_half_shadow"
8437 if test x$enableval = xyes; then
8438
8439cat >>confdefs.h <<\_ACEOF
8440#define HALFSHADOW 1
8441_ACEOF
8442
8443 fi
8444fi;
8445 4323
8446 4324
8447# Check whether --with-codesets or --without-codesets was given. 4325# Check whether --with-codesets or --without-codesets was given.
8448if test "${with_codesets+set}" = set; then 4326if test "${with_codesets+set}" = set; then
8449 withval="$with_codesets" 4327 withval="$with_codesets"
8456 if test x$enableval = xyes -o x$enableval = xno; then 4334 if test x$enableval = xyes -o x$enableval = xno; then
8457 support_xim=$enableval 4335 support_xim=$enableval
8458 fi 4336 fi
8459fi; 4337fi;
8460 4338
8461# Check whether --enable-ttygid or --disable-ttygid was given.
8462if test "${enable_ttygid+set}" = set; then
8463 enableval="$enable_ttygid"
8464 if test x$enableval = xyes; then
8465
8466cat >>confdefs.h <<\_ACEOF
8467#define TTY_GID_SUPPORT 1
8468_ACEOF
8469
8470 fi
8471fi;
8472
8473# Check whether --enable-backspace-key or --disable-backspace-key was given. 4339# Check whether --enable-backspace-key or --disable-backspace-key was given.
8474if test "${enable_backspace_key+set}" = set; then 4340if test "${enable_backspace_key+set}" = set; then
8475 enableval="$enable_backspace_key" 4341 enableval="$enable_backspace_key"
8476 if test x$enableval = xno; then 4342 if test x$enableval = xno; then
8477 4343
8504_ACEOF 4370_ACEOF
8505 4371
8506 fi 4372 fi
8507fi; 4373fi;
8508 4374
8509# Check whether --enable-xgetdefault or --disable-xgetdefault was given.
8510if test "${enable_xgetdefault+set}" = set; then
8511 enableval="$enable_xgetdefault"
8512 if test x$enableval = xyes; then
8513
8514cat >>confdefs.h <<\_ACEOF
8515#define USE_XGETDEFAULT 1
8516_ACEOF
8517
8518 fi
8519fi;
8520
8521# Check whether --enable-8bitctrls or --disable-8bitctrls was given. 4375# Check whether --enable-8bitctrls or --disable-8bitctrls was given.
8522if test "${enable_8bitctrls+set}" = set; then 4376if test "${enable_8bitctrls+set}" = set; then
8523 enableval="$enable_8bitctrls" 4377 enableval="$enable_8bitctrls"
8524 if test x$enableval = xyes -o x$enableval = xno; then 4378 if test x$enableval = xyes -o x$enableval = xno; then
8525 support_8bitctrls=yes 4379 support_8bitctrls=$enableval
8526 fi 4380 fi
8527fi; 4381fi;
8528 4382
8529RESFALLBACK=Rxvt 4383RESFALLBACK=Rxvt
8530# Check whether --enable-fallback or --disable-fallback was given. 4384# Check whether --enable-fallback or --disable-fallback was given.
8577if test "${with_name+set}" = set; then 4431if test "${with_name+set}" = set; then
8578 withval="$with_name" 4432 withval="$with_name"
8579 RXVTNAME="$withval" 4433 RXVTNAME="$withval"
8580fi; 4434fi;
8581 4435
4436cat >>confdefs.h <<_ACEOF
4437#define RXVTNAME "$RXVTNAME"
4438_ACEOF
4439
4440
8582RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` 4441RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
8583 4442
8584
8585# Check whether --enable-strings or --disable-strings was given.
8586if test "${enable_strings+set}" = set; then
8587 enableval="$enable_strings"
8588 if test x$enableval = xyes -o x$enableval = xno; then
8589 support_addstrings=$enableval
8590 fi
8591fi;
8592 4443
8593# Check whether --enable-swapscreen or --disable-swapscreen was given. 4444# Check whether --enable-swapscreen or --disable-swapscreen was given.
8594if test "${enable_swapscreen+set}" = set; then 4445if test "${enable_swapscreen+set}" = set; then
8595 enableval="$enable_swapscreen" 4446 enableval="$enable_swapscreen"
8596 if test x$enableval = xno; then 4447 if test x$enableval = xno; then
8613# Check whether --enable-frills or --disable-frills was given. 4464# Check whether --enable-frills or --disable-frills was given.
8614if test "${enable_frills+set}" = set; then 4465if test "${enable_frills+set}" = set; then
8615 enableval="$enable_frills" 4466 enableval="$enable_frills"
8616 if test x$enableval = xyes -o x$enableval = xno; then 4467 if test x$enableval = xyes -o x$enableval = xno; then
8617 support_frills=$enableval 4468 support_frills=$enableval
8618 fi
8619fi;
8620
8621# Check whether --enable-linespace or --disable-linespace was given.
8622if test "${enable_linespace+set}" = set; then
8623 enableval="$enable_linespace"
8624 if test x$enableval = xyes -o x$enableval = xno; then
8625 support_linespace=$enableval
8626 fi 4469 fi
8627fi; 4470fi;
8628 4471
8629# Check whether --enable-24bit or --disable-24bit was given. 4472# Check whether --enable-24bit or --disable-24bit was given.
8630if test "${enable_24bit+set}" = set; then 4473if test "${enable_24bit+set}" = set; then
8698_ACEOF 4541_ACEOF
8699 4542
8700 fi 4543 fi
8701fi; 4544fi;
8702 4545
8703# Check whether --enable-256-color or --disable-256-color was given.
8704if test "${enable_256_color+set}" = set; then
8705 enableval="$enable_256_color"
8706 if test x$enableval = xyes; then
8707
8708cat >>confdefs.h <<\_ACEOF
8709#define TTY_256COLOR 1
8710_ACEOF
8711
8712 fi
8713fi;
8714
8715# Check whether --enable-cursor-blink or --disable-cursor-blink was given.
8716if test "${enable_cursor_blink+set}" = set; then
8717 enableval="$enable_cursor_blink"
8718 if test x$enableval = xyes -o x$enableval = xno; then
8719 support_cursor_blink=$enableval
8720 fi
8721fi;
8722
8723# Check whether --enable-text-blink or --disable-text-blink was given. 4546# Check whether --enable-text-blink or --disable-text-blink was given.
8724if test "${enable_text_blink+set}" = set; then 4547if test "${enable_text_blink+set}" = set; then
8725 enableval="$enable_text_blink" 4548 enableval="$enable_text_blink"
8726 if test x$enableval = xyes -o x$enableval = xno; then 4549 if test x$enableval = xyes -o x$enableval = xno; then
8727 support_text_blink=$enableval 4550 support_text_blink=$enableval
8760_ACEOF 4583_ACEOF
8761 terminfo="$withval" 4584 terminfo="$withval"
8762 fi 4585 fi
8763fi; 4586fi;
8764 4587
8765
8766
8767cat >>confdefs.h <<\_ACEOF
8768#define PROTOTYPES 1
8769_ACEOF
8770
8771
8772if test -z "$CFLAGS"; then
8773 if test -z "$CCOPTS"; then
8774 CCOPTS='-O'
8775 fi
8776 CFLAGS="$CCOPTS"
8777fi
8778 4588
8779# Extract the first word of "mv", so it can be a program name with args. 4589# Extract the first word of "mv", so it can be a program name with args.
8780set dummy mv; ac_word=$2 4590set dummy mv; ac_word=$2
8781echo "$as_me:$LINENO: checking for $ac_word" >&5 4591echo "$as_me:$LINENO: checking for $ac_word" >&5
8782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9054else 4864else
9055 echo "$as_me:$LINENO: result: no" >&5 4865 echo "$as_me:$LINENO: result: no" >&5
9056echo "${ECHO_T}no" >&6 4866echo "${ECHO_T}no" >&6
9057fi 4867fi
9058 4868
9059# Extract the first word of "tbl", so it can be a program name with args. 4869# Extract the first word of "tic", so it can be a program name with args.
9060set dummy tbl; ac_word=$2 4870set dummy tic; ac_word=$2
9061echo "$as_me:$LINENO: checking for $ac_word" >&5 4871echo "$as_me:$LINENO: checking for $ac_word" >&5
9062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9063if test "${ac_cv_path_TBL+set}" = set; then 4873if test "${ac_cv_path_TIC+set}" = set; then
9064 echo $ECHO_N "(cached) $ECHO_C" >&6 4874 echo $ECHO_N "(cached) $ECHO_C" >&6
9065else 4875else
9066 case $TBL in 4876 case $TIC in
9067 [\\/]* | ?:[\\/]*) 4877 [\\/]* | ?:[\\/]*)
9068 ac_cv_path_TBL="$TBL" # Let the user override the test with a path. 4878 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
9069 ;; 4879 ;;
9070 *) 4880 *)
9071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9072for as_dir in $PATH 4882for as_dir in $PATH
9073do 4883do
9074 IFS=$as_save_IFS 4884 IFS=$as_save_IFS
9075 test -z "$as_dir" && as_dir=. 4885 test -z "$as_dir" && as_dir=.
9076 for ac_exec_ext in '' $ac_executable_extensions; do 4886 for ac_exec_ext in '' $ac_executable_extensions; do
9077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9078 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext" 4888 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
9079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9080 break 2 4890 break 2
9081 fi 4891 fi
9082done 4892done
9083done 4893done
9084 4894
9085 ;; 4895 ;;
9086esac 4896esac
9087fi 4897fi
9088TBL=$ac_cv_path_TBL 4898TIC=$ac_cv_path_TIC
9089 4899
9090if test -n "$TBL"; then 4900if test -n "$TIC"; then
9091 echo "$as_me:$LINENO: result: $TBL" >&5 4901 echo "$as_me:$LINENO: result: $TIC" >&5
9092echo "${ECHO_T}$TBL" >&6 4902echo "${ECHO_T}$TIC" >&6
9093else 4903else
9094 echo "$as_me:$LINENO: result: no" >&5 4904 echo "$as_me:$LINENO: result: no" >&5
9095echo "${ECHO_T}no" >&6 4905echo "${ECHO_T}no" >&6
9096fi 4906fi
9097 4907
9098 4908
4909
4910
4911ac_ext=cc
4912ac_cpp='$CXXCPP $CPPFLAGS'
4913ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4914ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4915ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4916echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4917echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4918if test -z "$CXXCPP"; then
4919 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4920 echo $ECHO_N "(cached) $ECHO_C" >&6
4921else
4922 # Double quotes because CXXCPP needs to be expanded
4923 for CXXCPP in "$CXX -E" "/lib/cpp"
4924 do
4925 ac_preproc_ok=false
4926for ac_cxx_preproc_warn_flag in '' yes
4927do
4928 # Use a header file that comes with gcc, so configuring glibc
4929 # with a fresh cross-compiler works.
4930 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4931 # <limits.h> exists even on freestanding compilers.
4932 # On the NeXT, cc -E runs the code through the compiler's parser,
4933 # not just through cpp. "Syntax error" is here to catch this case.
4934 cat >conftest.$ac_ext <<_ACEOF
4935/* confdefs.h. */
4936_ACEOF
4937cat confdefs.h >>conftest.$ac_ext
4938cat >>conftest.$ac_ext <<_ACEOF
4939/* end confdefs.h. */
4940#ifdef __STDC__
4941# include <limits.h>
4942#else
4943# include <assert.h>
4944#endif
4945 Syntax error
4946_ACEOF
4947if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4948 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4949 ac_status=$?
4950 grep -v '^ *+' conftest.er1 >conftest.err
4951 rm -f conftest.er1
4952 cat conftest.err >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); } >/dev/null; then
4955 if test -s conftest.err; then
4956 ac_cpp_err=$ac_cxx_preproc_warn_flag
4957 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4958 else
4959 ac_cpp_err=
4960 fi
4961else
4962 ac_cpp_err=yes
4963fi
4964if test -z "$ac_cpp_err"; then
4965 :
4966else
4967 echo "$as_me: failed program was:" >&5
4968sed 's/^/| /' conftest.$ac_ext >&5
4969
4970 # Broken: fails on valid input.
4971continue
4972fi
4973rm -f conftest.err conftest.$ac_ext
4974
4975 # OK, works on sane cases. Now check whether non-existent headers
4976 # can be detected and how.
4977 cat >conftest.$ac_ext <<_ACEOF
4978/* confdefs.h. */
4979_ACEOF
4980cat confdefs.h >>conftest.$ac_ext
4981cat >>conftest.$ac_ext <<_ACEOF
4982/* end confdefs.h. */
4983#include <ac_nonexistent.h>
4984_ACEOF
4985if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4987 ac_status=$?
4988 grep -v '^ *+' conftest.er1 >conftest.err
4989 rm -f conftest.er1
4990 cat conftest.err >&5
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); } >/dev/null; then
4993 if test -s conftest.err; then
4994 ac_cpp_err=$ac_cxx_preproc_warn_flag
4995 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4996 else
4997 ac_cpp_err=
4998 fi
4999else
5000 ac_cpp_err=yes
5001fi
5002if test -z "$ac_cpp_err"; then
5003 # Broken: success on invalid input.
5004continue
5005else
5006 echo "$as_me: failed program was:" >&5
5007sed 's/^/| /' conftest.$ac_ext >&5
5008
5009 # Passes both tests.
5010ac_preproc_ok=:
5011break
5012fi
5013rm -f conftest.err conftest.$ac_ext
5014
5015done
5016# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5017rm -f conftest.err conftest.$ac_ext
5018if $ac_preproc_ok; then
5019 break
5020fi
5021
5022 done
5023 ac_cv_prog_CXXCPP=$CXXCPP
5024
5025fi
5026 CXXCPP=$ac_cv_prog_CXXCPP
5027else
5028 ac_cv_prog_CXXCPP=$CXXCPP
5029fi
5030echo "$as_me:$LINENO: result: $CXXCPP" >&5
5031echo "${ECHO_T}$CXXCPP" >&6
5032ac_preproc_ok=false
5033for ac_cxx_preproc_warn_flag in '' yes
5034do
5035 # Use a header file that comes with gcc, so configuring glibc
5036 # with a fresh cross-compiler works.
5037 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5038 # <limits.h> exists even on freestanding compilers.
5039 # On the NeXT, cc -E runs the code through the compiler's parser,
5040 # not just through cpp. "Syntax error" is here to catch this case.
5041 cat >conftest.$ac_ext <<_ACEOF
5042/* confdefs.h. */
5043_ACEOF
5044cat confdefs.h >>conftest.$ac_ext
5045cat >>conftest.$ac_ext <<_ACEOF
5046/* end confdefs.h. */
5047#ifdef __STDC__
5048# include <limits.h>
5049#else
5050# include <assert.h>
5051#endif
5052 Syntax error
5053_ACEOF
5054if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5055 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5056 ac_status=$?
5057 grep -v '^ *+' conftest.er1 >conftest.err
5058 rm -f conftest.er1
5059 cat conftest.err >&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); } >/dev/null; then
5062 if test -s conftest.err; then
5063 ac_cpp_err=$ac_cxx_preproc_warn_flag
5064 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5065 else
5066 ac_cpp_err=
5067 fi
5068else
5069 ac_cpp_err=yes
5070fi
5071if test -z "$ac_cpp_err"; then
5072 :
5073else
5074 echo "$as_me: failed program was:" >&5
5075sed 's/^/| /' conftest.$ac_ext >&5
5076
5077 # Broken: fails on valid input.
5078continue
5079fi
5080rm -f conftest.err conftest.$ac_ext
5081
5082 # OK, works on sane cases. Now check whether non-existent headers
5083 # can be detected and how.
5084 cat >conftest.$ac_ext <<_ACEOF
5085/* confdefs.h. */
5086_ACEOF
5087cat confdefs.h >>conftest.$ac_ext
5088cat >>conftest.$ac_ext <<_ACEOF
5089/* end confdefs.h. */
5090#include <ac_nonexistent.h>
5091_ACEOF
5092if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5094 ac_status=$?
5095 grep -v '^ *+' conftest.er1 >conftest.err
5096 rm -f conftest.er1
5097 cat conftest.err >&5
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); } >/dev/null; then
5100 if test -s conftest.err; then
5101 ac_cpp_err=$ac_cxx_preproc_warn_flag
5102 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5103 else
5104 ac_cpp_err=
5105 fi
5106else
5107 ac_cpp_err=yes
5108fi
5109if test -z "$ac_cpp_err"; then
5110 # Broken: success on invalid input.
5111continue
5112else
5113 echo "$as_me: failed program was:" >&5
5114sed 's/^/| /' conftest.$ac_ext >&5
5115
5116 # Passes both tests.
5117ac_preproc_ok=:
5118break
5119fi
5120rm -f conftest.err conftest.$ac_ext
5121
5122done
5123# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5124rm -f conftest.err conftest.$ac_ext
5125if $ac_preproc_ok; then
5126 :
5127else
5128 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5129See \`config.log' for more details." >&5
5130echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5131See \`config.log' for more details." >&2;}
5132 { (exit 1); exit 1; }; }
5133fi
5134
5135ac_ext=cc
5136ac_cpp='$CXXCPP $CPPFLAGS'
5137ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5138ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5139ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9099 5140
9100 5141
9101 5142
9102if test "x$ac_path_x_has_been_run" != xyes; then 5143if test "x$ac_path_x_has_been_run" != xyes; then
9103 echo "$as_me:$LINENO: checking for X" >&5 5144 echo "$as_me:$LINENO: checking for X" >&5
9202/* confdefs.h. */ 5243/* confdefs.h. */
9203_ACEOF 5244_ACEOF
9204cat confdefs.h >>conftest.$ac_ext 5245cat confdefs.h >>conftest.$ac_ext
9205cat >>conftest.$ac_ext <<_ACEOF 5246cat >>conftest.$ac_ext <<_ACEOF
9206/* end confdefs.h. */ 5247/* end confdefs.h. */
9207#include <X11/Intrinsic.h> 5248#include <X11/Xlib.h>
9208_ACEOF 5249_ACEOF
9209if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5250if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9210 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5251 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9211 ac_status=$? 5252 ac_status=$?
9212 grep -v '^ *+' conftest.er1 >conftest.err 5253 grep -v '^ *+' conftest.er1 >conftest.err
9229else 5270else
9230 echo "$as_me: failed program was:" >&5 5271 echo "$as_me: failed program was:" >&5
9231sed 's/^/| /' conftest.$ac_ext >&5 5272sed 's/^/| /' conftest.$ac_ext >&5
9232 5273
9233 for ac_dir in $ac_x_header_dirs; do 5274 for ac_dir in $ac_x_header_dirs; do
9234 if test -r "$ac_dir/X11/Intrinsic.h"; then 5275 if test -r "$ac_dir/X11/Xlib.h"; then
9235 ac_x_includes=$ac_dir 5276 ac_x_includes=$ac_dir
9236 break 5277 break
9237 fi 5278 fi
9238done 5279done
9239fi 5280fi
9243if test "$ac_x_libraries" = no; then 5284if test "$ac_x_libraries" = no; then
9244 # Check for the libraries. 5285 # Check for the libraries.
9245 # See if we find them without any special options. 5286 # See if we find them without any special options.
9246 # Don't add to $LIBS permanently. 5287 # Don't add to $LIBS permanently.
9247 ac_save_LIBS=$LIBS 5288 ac_save_LIBS=$LIBS
9248 LIBS="-lXt $LIBS" 5289 LIBS="-lX11 $LIBS"
9249 cat >conftest.$ac_ext <<_ACEOF 5290 cat >conftest.$ac_ext <<_ACEOF
9250/* confdefs.h. */ 5291/* confdefs.h. */
9251_ACEOF 5292_ACEOF
9252cat confdefs.h >>conftest.$ac_ext 5293cat confdefs.h >>conftest.$ac_ext
9253cat >>conftest.$ac_ext <<_ACEOF 5294cat >>conftest.$ac_ext <<_ACEOF
9254/* end confdefs.h. */ 5295/* end confdefs.h. */
9255#include <X11/Intrinsic.h> 5296#include <X11/Xlib.h>
9256int 5297int
9257main () 5298main ()
9258{ 5299{
9259XtMalloc (0) 5300XrmInitialize ()
9260 ; 5301 ;
9261 return 0; 5302 return 0;
9262} 5303}
9263_ACEOF 5304_ACEOF
9264rm -f conftest.$ac_objext conftest$ac_exeext 5305rm -f conftest.$ac_objext conftest$ac_exeext
9292LIBS=$ac_save_LIBS 5333LIBS=$ac_save_LIBS
9293for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 5334for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9294do 5335do
9295 # Don't even attempt the hair of trying to link an X program! 5336 # Don't even attempt the hair of trying to link an X program!
9296 for ac_extension in a so sl; do 5337 for ac_extension in a so sl; do
9297 if test -r $ac_dir/libXt.$ac_extension; then 5338 if test -r $ac_dir/libX11.$ac_extension; then
9298 ac_x_libraries=$ac_dir 5339 ac_x_libraries=$ac_dir
9299 break 2 5340 break 2
9300 fi 5341 fi
9301 done 5342 done
9302done 5343done
10904#define HAVE_SYS_WAIT_H 1 6945#define HAVE_SYS_WAIT_H 1
10905_ACEOF 6946_ACEOF
10906 6947
10907fi 6948fi
10908 6949
6950echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6951echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6952if test "${ac_cv_header_stdc+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6954else
6955 cat >conftest.$ac_ext <<_ACEOF
6956/* confdefs.h. */
6957_ACEOF
6958cat confdefs.h >>conftest.$ac_ext
6959cat >>conftest.$ac_ext <<_ACEOF
6960/* end confdefs.h. */
6961#include <stdlib.h>
6962#include <stdarg.h>
6963#include <string.h>
6964#include <float.h>
10909 6965
6966int
6967main ()
6968{
6969
6970 ;
6971 return 0;
6972}
6973_ACEOF
6974rm -f conftest.$ac_objext
6975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6976 (eval $ac_compile) 2>conftest.er1
6977 ac_status=$?
6978 grep -v '^ *+' conftest.er1 >conftest.err
6979 rm -f conftest.er1
6980 cat conftest.err >&5
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); } &&
6983 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985 (eval $ac_try) 2>&5
6986 ac_status=$?
6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988 (exit $ac_status); }; } &&
6989 { ac_try='test -s conftest.$ac_objext'
6990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6991 (eval $ac_try) 2>&5
6992 ac_status=$?
6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994 (exit $ac_status); }; }; then
6995 ac_cv_header_stdc=yes
6996else
6997 echo "$as_me: failed program was:" >&5
6998sed 's/^/| /' conftest.$ac_ext >&5
6999
7000ac_cv_header_stdc=no
7001fi
7002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7003
7004if test $ac_cv_header_stdc = yes; then
7005 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7006 cat >conftest.$ac_ext <<_ACEOF
7007/* confdefs.h. */
7008_ACEOF
7009cat confdefs.h >>conftest.$ac_ext
7010cat >>conftest.$ac_ext <<_ACEOF
7011/* end confdefs.h. */
7012#include <string.h>
7013
7014_ACEOF
7015if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7016 $EGREP "memchr" >/dev/null 2>&1; then
7017 :
7018else
7019 ac_cv_header_stdc=no
7020fi
7021rm -f conftest*
7022
7023fi
7024
7025if test $ac_cv_header_stdc = yes; then
7026 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7027 cat >conftest.$ac_ext <<_ACEOF
7028/* confdefs.h. */
7029_ACEOF
7030cat confdefs.h >>conftest.$ac_ext
7031cat >>conftest.$ac_ext <<_ACEOF
7032/* end confdefs.h. */
7033#include <stdlib.h>
7034
7035_ACEOF
7036if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7037 $EGREP "free" >/dev/null 2>&1; then
7038 :
7039else
7040 ac_cv_header_stdc=no
7041fi
7042rm -f conftest*
7043
7044fi
7045
7046if test $ac_cv_header_stdc = yes; then
7047 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7048 if test "$cross_compiling" = yes; then
7049 :
7050else
7051 cat >conftest.$ac_ext <<_ACEOF
7052/* confdefs.h. */
7053_ACEOF
7054cat confdefs.h >>conftest.$ac_ext
7055cat >>conftest.$ac_ext <<_ACEOF
7056/* end confdefs.h. */
7057#include <ctype.h>
7058#if ((' ' & 0x0FF) == 0x020)
7059# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7060# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7061#else
7062# define ISLOWER(c) \
7063 (('a' <= (c) && (c) <= 'i') \
7064 || ('j' <= (c) && (c) <= 'r') \
7065 || ('s' <= (c) && (c) <= 'z'))
7066# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7067#endif
7068
7069#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7070int
7071main ()
7072{
7073 int i;
7074 for (i = 0; i < 256; i++)
7075 if (XOR (islower (i), ISLOWER (i))
7076 || toupper (i) != TOUPPER (i))
7077 exit(2);
7078 exit (0);
7079}
7080_ACEOF
7081rm -f conftest$ac_exeext
7082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7083 (eval $ac_link) 2>&5
7084 ac_status=$?
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7088 (eval $ac_try) 2>&5
7089 ac_status=$?
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); }; }; then
7092 :
7093else
7094 echo "$as_me: program exited with status $ac_status" >&5
7095echo "$as_me: failed program was:" >&5
7096sed 's/^/| /' conftest.$ac_ext >&5
7097
7098( exit $ac_status )
7099ac_cv_header_stdc=no
7100fi
7101rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7102fi
7103fi
7104fi
7105echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7106echo "${ECHO_T}$ac_cv_header_stdc" >&6
7107if test $ac_cv_header_stdc = yes; then
7108
7109cat >>confdefs.h <<\_ACEOF
7110#define STDC_HEADERS 1
7111_ACEOF
7112
7113fi
7114
7115# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7126 inttypes.h stdint.h unistd.h
7127do
7128as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7129echo "$as_me:$LINENO: checking for $ac_header" >&5
7130echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7131if eval "test \"\${$as_ac_Header+set}\" = set"; then
7132 echo $ECHO_N "(cached) $ECHO_C" >&6
7133else
7134 cat >conftest.$ac_ext <<_ACEOF
7135/* confdefs.h. */
7136_ACEOF
7137cat confdefs.h >>conftest.$ac_ext
7138cat >>conftest.$ac_ext <<_ACEOF
7139/* end confdefs.h. */
7140$ac_includes_default
7141
7142#include <$ac_header>
7143_ACEOF
7144rm -f conftest.$ac_objext
7145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7146 (eval $ac_compile) 2>conftest.er1
7147 ac_status=$?
7148 grep -v '^ *+' conftest.er1 >conftest.err
7149 rm -f conftest.er1
7150 cat conftest.err >&5
7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 (exit $ac_status); } &&
7153 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7155 (eval $ac_try) 2>&5
7156 ac_status=$?
7157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158 (exit $ac_status); }; } &&
7159 { ac_try='test -s conftest.$ac_objext'
7160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7161 (eval $ac_try) 2>&5
7162 ac_status=$?
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); }; }; then
7165 eval "$as_ac_Header=yes"
7166else
7167 echo "$as_me: failed program was:" >&5
7168sed 's/^/| /' conftest.$ac_ext >&5
7169
7170eval "$as_ac_Header=no"
7171fi
7172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7173fi
7174echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7175echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7176if test `eval echo '${'$as_ac_Header'}'` = yes; then
7177 cat >>confdefs.h <<_ACEOF
7178#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7179_ACEOF
7180
7181fi
7182
7183done
10910 7184
10911 7185
10912 7186
10913 7187
10914 7188
10927 7201
10928 7202
10929for ac_header in \ 7203for ac_header in \
10930 assert.h \ 7204 assert.h \
10931 fcntl.h \ 7205 fcntl.h \
10932 grp.h \
10933 libc.h \
10934 lastlog.h \
10935 stdarg.h \ 7206 stdarg.h \
10936 stdlib.h \ 7207 stdlib.h \
10937 string.h \ 7208 string.h \
10938 termios.h \ 7209 termios.h \
10939 unistd.h \ 7210 unistd.h \
10940 sys/byteorder.h \ 7211 sys/byteorder.h \
10941 sys/ioctl.h \ 7212 sys/ioctl.h \
10942 sys/select.h \ 7213 sys/select.h \
10943 sys/sockio.h \ 7214 sys/sockio.h \
10944 sys/strredir.h \ 7215 sys/strredir.h \
10945 sys/stropts.h \
10946 sys/time.h \ 7216 sys/time.h \
10947 utmp.h \ 7217 stdint.h \
10948 utmpx.h \ 7218 wchar.h \
10949 stdint.h \ 7219 cwchar \
7220 clocale \
10950 7221
10951do 7222do
10952as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7223as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10953if eval "test \"\${$as_ac_Header+set}\" = set"; then 7224if eval "test \"\${$as_ac_Header+set}\" = set"; then
10954 echo "$as_me:$LINENO: checking for $ac_header" >&5 7225 echo "$as_me:$LINENO: checking for $ac_header" >&5
11738_ACEOF 8009_ACEOF
11739 8010
11740fi 8011fi
11741 8012
11742 8013
11743echo "$as_me:$LINENO: checking for char" >&5
11744echo $ECHO_N "checking for char... $ECHO_C" >&6
11745if test "${ac_cv_type_char+set}" = set; then
11746 echo $ECHO_N "(cached) $ECHO_C" >&6
11747else
11748 cat >conftest.$ac_ext <<_ACEOF
11749/* confdefs.h. */
11750_ACEOF
11751cat confdefs.h >>conftest.$ac_ext
11752cat >>conftest.$ac_ext <<_ACEOF
11753/* end confdefs.h. */
11754$ac_includes_default
11755int
11756main ()
11757{
11758if ((char *) 0)
11759 return 0;
11760if (sizeof (char))
11761 return 0;
11762 ;
11763 return 0;
11764}
11765_ACEOF
11766rm -f conftest.$ac_objext
11767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11768 (eval $ac_compile) 2>conftest.er1
11769 ac_status=$?
11770 grep -v '^ *+' conftest.er1 >conftest.err
11771 rm -f conftest.er1
11772 cat conftest.err >&5
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); } &&
11775 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11777 (eval $ac_try) 2>&5
11778 ac_status=$?
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); }; } &&
11781 { ac_try='test -s conftest.$ac_objext'
11782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11783 (eval $ac_try) 2>&5
11784 ac_status=$?
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); }; }; then
11787 ac_cv_type_char=yes
11788else
11789 echo "$as_me: failed program was:" >&5
11790sed 's/^/| /' conftest.$ac_ext >&5
11791
11792ac_cv_type_char=no
11793fi
11794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11795fi
11796echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11797echo "${ECHO_T}$ac_cv_type_char" >&6
11798
11799echo "$as_me:$LINENO: checking size of char" >&5
11800echo $ECHO_N "checking size of char... $ECHO_C" >&6
11801if test "${ac_cv_sizeof_char+set}" = set; then
11802 echo $ECHO_N "(cached) $ECHO_C" >&6
11803else
11804 if test "$ac_cv_type_char" = yes; then
11805 # The cast to unsigned long works around a bug in the HP C Compiler
11806 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11807 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11808 # This bug is HP SR number 8606223364.
11809 if test "$cross_compiling" = yes; then
11810 # Depending upon the size, compute the lo and hi bounds.
11811cat >conftest.$ac_ext <<_ACEOF
11812/* confdefs.h. */
11813_ACEOF
11814cat confdefs.h >>conftest.$ac_ext
11815cat >>conftest.$ac_ext <<_ACEOF
11816/* end confdefs.h. */
11817$ac_includes_default
11818int
11819main ()
11820{
11821static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11822test_array [0] = 0
11823
11824 ;
11825 return 0;
11826}
11827_ACEOF
11828rm -f conftest.$ac_objext
11829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11830 (eval $ac_compile) 2>conftest.er1
11831 ac_status=$?
11832 grep -v '^ *+' conftest.er1 >conftest.err
11833 rm -f conftest.er1
11834 cat conftest.err >&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); } &&
11837 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11839 (eval $ac_try) 2>&5
11840 ac_status=$?
11841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842 (exit $ac_status); }; } &&
11843 { ac_try='test -s conftest.$ac_objext'
11844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11845 (eval $ac_try) 2>&5
11846 ac_status=$?
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); }; }; then
11849 ac_lo=0 ac_mid=0
11850 while :; do
11851 cat >conftest.$ac_ext <<_ACEOF
11852/* confdefs.h. */
11853_ACEOF
11854cat confdefs.h >>conftest.$ac_ext
11855cat >>conftest.$ac_ext <<_ACEOF
11856/* end confdefs.h. */
11857$ac_includes_default
11858int
11859main ()
11860{
11861static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11862test_array [0] = 0
11863
11864 ;
11865 return 0;
11866}
11867_ACEOF
11868rm -f conftest.$ac_objext
11869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11870 (eval $ac_compile) 2>conftest.er1
11871 ac_status=$?
11872 grep -v '^ *+' conftest.er1 >conftest.err
11873 rm -f conftest.er1
11874 cat conftest.err >&5
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); } &&
11877 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11879 (eval $ac_try) 2>&5
11880 ac_status=$?
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); }; } &&
11883 { ac_try='test -s conftest.$ac_objext'
11884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11885 (eval $ac_try) 2>&5
11886 ac_status=$?
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); }; }; then
11889 ac_hi=$ac_mid; break
11890else
11891 echo "$as_me: failed program was:" >&5
11892sed 's/^/| /' conftest.$ac_ext >&5
11893
11894ac_lo=`expr $ac_mid + 1`
11895 if test $ac_lo -le $ac_mid; then
11896 ac_lo= ac_hi=
11897 break
11898 fi
11899 ac_mid=`expr 2 '*' $ac_mid + 1`
11900fi
11901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11902 done
11903else
11904 echo "$as_me: failed program was:" >&5
11905sed 's/^/| /' conftest.$ac_ext >&5
11906
11907cat >conftest.$ac_ext <<_ACEOF
11908/* confdefs.h. */
11909_ACEOF
11910cat confdefs.h >>conftest.$ac_ext
11911cat >>conftest.$ac_ext <<_ACEOF
11912/* end confdefs.h. */
11913$ac_includes_default
11914int
11915main ()
11916{
11917static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
11918test_array [0] = 0
11919
11920 ;
11921 return 0;
11922}
11923_ACEOF
11924rm -f conftest.$ac_objext
11925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11926 (eval $ac_compile) 2>conftest.er1
11927 ac_status=$?
11928 grep -v '^ *+' conftest.er1 >conftest.err
11929 rm -f conftest.er1
11930 cat conftest.err >&5
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); } &&
11933 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11935 (eval $ac_try) 2>&5
11936 ac_status=$?
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); }; } &&
11939 { ac_try='test -s conftest.$ac_objext'
11940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11941 (eval $ac_try) 2>&5
11942 ac_status=$?
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); }; }; then
11945 ac_hi=-1 ac_mid=-1
11946 while :; do
11947 cat >conftest.$ac_ext <<_ACEOF
11948/* confdefs.h. */
11949_ACEOF
11950cat confdefs.h >>conftest.$ac_ext
11951cat >>conftest.$ac_ext <<_ACEOF
11952/* end confdefs.h. */
11953$ac_includes_default
11954int
11955main ()
11956{
11957static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11958test_array [0] = 0
11959
11960 ;
11961 return 0;
11962}
11963_ACEOF
11964rm -f conftest.$ac_objext
11965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11966 (eval $ac_compile) 2>conftest.er1
11967 ac_status=$?
11968 grep -v '^ *+' conftest.er1 >conftest.err
11969 rm -f conftest.er1
11970 cat conftest.err >&5
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); } &&
11973 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11975 (eval $ac_try) 2>&5
11976 ac_status=$?
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); }; } &&
11979 { ac_try='test -s conftest.$ac_objext'
11980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981 (eval $ac_try) 2>&5
11982 ac_status=$?
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; }; then
11985 ac_lo=$ac_mid; break
11986else
11987 echo "$as_me: failed program was:" >&5
11988sed 's/^/| /' conftest.$ac_ext >&5
11989
11990ac_hi=`expr '(' $ac_mid ')' - 1`
11991 if test $ac_mid -le $ac_hi; then
11992 ac_lo= ac_hi=
11993 break
11994 fi
11995 ac_mid=`expr 2 '*' $ac_mid`
11996fi
11997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11998 done
11999else
12000 echo "$as_me: failed program was:" >&5
12001sed 's/^/| /' conftest.$ac_ext >&5
12002
12003ac_lo= ac_hi=
12004fi
12005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12006fi
12007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12008# Binary search between lo and hi bounds.
12009while test "x$ac_lo" != "x$ac_hi"; do
12010 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12011 cat >conftest.$ac_ext <<_ACEOF
12012/* confdefs.h. */
12013_ACEOF
12014cat confdefs.h >>conftest.$ac_ext
12015cat >>conftest.$ac_ext <<_ACEOF
12016/* end confdefs.h. */
12017$ac_includes_default
12018int
12019main ()
12020{
12021static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12022test_array [0] = 0
12023
12024 ;
12025 return 0;
12026}
12027_ACEOF
12028rm -f conftest.$ac_objext
12029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12030 (eval $ac_compile) 2>conftest.er1
12031 ac_status=$?
12032 grep -v '^ *+' conftest.er1 >conftest.err
12033 rm -f conftest.er1
12034 cat conftest.err >&5
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); } &&
12037 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12039 (eval $ac_try) 2>&5
12040 ac_status=$?
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); }; } &&
12043 { ac_try='test -s conftest.$ac_objext'
12044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12045 (eval $ac_try) 2>&5
12046 ac_status=$?
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); }; }; then
12049 ac_hi=$ac_mid
12050else
12051 echo "$as_me: failed program was:" >&5
12052sed 's/^/| /' conftest.$ac_ext >&5
12053
12054ac_lo=`expr '(' $ac_mid ')' + 1`
12055fi
12056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12057done
12058case $ac_lo in
12059?*) ac_cv_sizeof_char=$ac_lo;;
12060'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12061See \`config.log' for more details." >&5
12062echo "$as_me: error: cannot compute sizeof (char), 77
12063See \`config.log' for more details." >&2;}
12064 { (exit 1); exit 1; }; } ;;
12065esac
12066else
12067 if test "$cross_compiling" = yes; then
12068 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12069echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12070 { (exit 1); exit 1; }; }
12071else
12072 cat >conftest.$ac_ext <<_ACEOF
12073/* confdefs.h. */
12074_ACEOF
12075cat confdefs.h >>conftest.$ac_ext
12076cat >>conftest.$ac_ext <<_ACEOF
12077/* end confdefs.h. */
12078$ac_includes_default
12079long longval () { return (long) (sizeof (char)); }
12080unsigned long ulongval () { return (long) (sizeof (char)); }
12081#include <stdio.h>
12082#include <stdlib.h>
12083int
12084main ()
12085{
12086
12087 FILE *f = fopen ("conftest.val", "w");
12088 if (! f)
12089 exit (1);
12090 if (((long) (sizeof (char))) < 0)
12091 {
12092 long i = longval ();
12093 if (i != ((long) (sizeof (char))))
12094 exit (1);
12095 fprintf (f, "%ld\n", i);
12096 }
12097 else
12098 {
12099 unsigned long i = ulongval ();
12100 if (i != ((long) (sizeof (char))))
12101 exit (1);
12102 fprintf (f, "%lu\n", i);
12103 }
12104 exit (ferror (f) || fclose (f) != 0);
12105
12106 ;
12107 return 0;
12108}
12109_ACEOF
12110rm -f conftest$ac_exeext
12111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12112 (eval $ac_link) 2>&5
12113 ac_status=$?
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12117 (eval $ac_try) 2>&5
12118 ac_status=$?
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); }; }; then
12121 ac_cv_sizeof_char=`cat conftest.val`
12122else
12123 echo "$as_me: program exited with status $ac_status" >&5
12124echo "$as_me: failed program was:" >&5
12125sed 's/^/| /' conftest.$ac_ext >&5
12126
12127( exit $ac_status )
12128{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12129See \`config.log' for more details." >&5
12130echo "$as_me: error: cannot compute sizeof (char), 77
12131See \`config.log' for more details." >&2;}
12132 { (exit 1); exit 1; }; }
12133fi
12134rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12135fi
12136fi
12137rm -f conftest.val
12138else
12139 ac_cv_sizeof_char=0
12140fi
12141fi
12142echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12143echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12144cat >>confdefs.h <<_ACEOF
12145#define SIZEOF_CHAR $ac_cv_sizeof_char
12146_ACEOF
12147
12148
12149echo "$as_me:$LINENO: checking for short" >&5 8014echo "$as_me:$LINENO: checking for short" >&5
12150echo $ECHO_N "checking for short... $ECHO_C" >&6 8015echo $ECHO_N "checking for short... $ECHO_C" >&6
12151if test "${ac_cv_type_short+set}" = set; then 8016if test "${ac_cv_type_short+set}" = set; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6 8017 echo $ECHO_N "(cached) $ECHO_C" >&6
12153else 8018else
12956cat >>confdefs.h <<_ACEOF 8821cat >>confdefs.h <<_ACEOF
12957#define SIZEOF_INT $ac_cv_sizeof_int 8822#define SIZEOF_INT $ac_cv_sizeof_int
12958_ACEOF 8823_ACEOF
12959 8824
12960 8825
12961echo "$as_me:$LINENO: checking for long" >&5
12962echo $ECHO_N "checking for long... $ECHO_C" >&6
12963if test "${ac_cv_type_long+set}" = set; then
12964 echo $ECHO_N "(cached) $ECHO_C" >&6
12965else
12966 cat >conftest.$ac_ext <<_ACEOF
12967/* confdefs.h. */
12968_ACEOF
12969cat confdefs.h >>conftest.$ac_ext
12970cat >>conftest.$ac_ext <<_ACEOF
12971/* end confdefs.h. */
12972$ac_includes_default
12973int
12974main ()
12975{
12976if ((long *) 0)
12977 return 0;
12978if (sizeof (long))
12979 return 0;
12980 ;
12981 return 0;
12982}
12983_ACEOF
12984rm -f conftest.$ac_objext
12985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12986 (eval $ac_compile) 2>conftest.er1
12987 ac_status=$?
12988 grep -v '^ *+' conftest.er1 >conftest.err
12989 rm -f conftest.er1
12990 cat conftest.err >&5
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); } &&
12993 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12995 (eval $ac_try) 2>&5
12996 ac_status=$?
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); }; } &&
12999 { ac_try='test -s conftest.$ac_objext'
13000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13001 (eval $ac_try) 2>&5
13002 ac_status=$?
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); }; }; then
13005 ac_cv_type_long=yes
13006else
13007 echo "$as_me: failed program was:" >&5
13008sed 's/^/| /' conftest.$ac_ext >&5
13009
13010ac_cv_type_long=no
13011fi
13012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13013fi
13014echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13015echo "${ECHO_T}$ac_cv_type_long" >&6
13016
13017echo "$as_me:$LINENO: checking size of long" >&5
13018echo $ECHO_N "checking size of long... $ECHO_C" >&6
13019if test "${ac_cv_sizeof_long+set}" = set; then
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
13021else
13022 if test "$ac_cv_type_long" = yes; then
13023 # The cast to unsigned long works around a bug in the HP C Compiler
13024 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13025 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13026 # This bug is HP SR number 8606223364.
13027 if test "$cross_compiling" = yes; then
13028 # Depending upon the size, compute the lo and hi bounds.
13029cat >conftest.$ac_ext <<_ACEOF
13030/* confdefs.h. */
13031_ACEOF
13032cat confdefs.h >>conftest.$ac_ext
13033cat >>conftest.$ac_ext <<_ACEOF
13034/* end confdefs.h. */
13035$ac_includes_default
13036int
13037main ()
13038{
13039static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
13040test_array [0] = 0
13041
13042 ;
13043 return 0;
13044}
13045_ACEOF
13046rm -f conftest.$ac_objext
13047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13048 (eval $ac_compile) 2>conftest.er1
13049 ac_status=$?
13050 grep -v '^ *+' conftest.er1 >conftest.err
13051 rm -f conftest.er1
13052 cat conftest.err >&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); } &&
13055 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13057 (eval $ac_try) 2>&5
13058 ac_status=$?
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); }; } &&
13061 { ac_try='test -s conftest.$ac_objext'
13062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13063 (eval $ac_try) 2>&5
13064 ac_status=$?
13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); }; }; then
13067 ac_lo=0 ac_mid=0
13068 while :; do
13069 cat >conftest.$ac_ext <<_ACEOF
13070/* confdefs.h. */
13071_ACEOF
13072cat confdefs.h >>conftest.$ac_ext
13073cat >>conftest.$ac_ext <<_ACEOF
13074/* end confdefs.h. */
13075$ac_includes_default
13076int
13077main ()
13078{
13079static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13080test_array [0] = 0
13081
13082 ;
13083 return 0;
13084}
13085_ACEOF
13086rm -f conftest.$ac_objext
13087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13088 (eval $ac_compile) 2>conftest.er1
13089 ac_status=$?
13090 grep -v '^ *+' conftest.er1 >conftest.err
13091 rm -f conftest.er1
13092 cat conftest.err >&5
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); } &&
13095 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13097 (eval $ac_try) 2>&5
13098 ac_status=$?
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); }; } &&
13101 { ac_try='test -s conftest.$ac_objext'
13102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13103 (eval $ac_try) 2>&5
13104 ac_status=$?
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); }; }; then
13107 ac_hi=$ac_mid; break
13108else
13109 echo "$as_me: failed program was:" >&5
13110sed 's/^/| /' conftest.$ac_ext >&5
13111
13112ac_lo=`expr $ac_mid + 1`
13113 if test $ac_lo -le $ac_mid; then
13114 ac_lo= ac_hi=
13115 break
13116 fi
13117 ac_mid=`expr 2 '*' $ac_mid + 1`
13118fi
13119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13120 done
13121else
13122 echo "$as_me: failed program was:" >&5
13123sed 's/^/| /' conftest.$ac_ext >&5
13124
13125cat >conftest.$ac_ext <<_ACEOF
13126/* confdefs.h. */
13127_ACEOF
13128cat confdefs.h >>conftest.$ac_ext
13129cat >>conftest.$ac_ext <<_ACEOF
13130/* end confdefs.h. */
13131$ac_includes_default
13132int
13133main ()
13134{
13135static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
13136test_array [0] = 0
13137
13138 ;
13139 return 0;
13140}
13141_ACEOF
13142rm -f conftest.$ac_objext
13143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13144 (eval $ac_compile) 2>conftest.er1
13145 ac_status=$?
13146 grep -v '^ *+' conftest.er1 >conftest.err
13147 rm -f conftest.er1
13148 cat conftest.err >&5
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); } &&
13151 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13153 (eval $ac_try) 2>&5
13154 ac_status=$?
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; } &&
13157 { ac_try='test -s conftest.$ac_objext'
13158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13159 (eval $ac_try) 2>&5
13160 ac_status=$?
13161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162 (exit $ac_status); }; }; then
13163 ac_hi=-1 ac_mid=-1
13164 while :; do
13165 cat >conftest.$ac_ext <<_ACEOF
13166/* confdefs.h. */
13167_ACEOF
13168cat confdefs.h >>conftest.$ac_ext
13169cat >>conftest.$ac_ext <<_ACEOF
13170/* end confdefs.h. */
13171$ac_includes_default
13172int
13173main ()
13174{
13175static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
13176test_array [0] = 0
13177
13178 ;
13179 return 0;
13180}
13181_ACEOF
13182rm -f conftest.$ac_objext
13183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13184 (eval $ac_compile) 2>conftest.er1
13185 ac_status=$?
13186 grep -v '^ *+' conftest.er1 >conftest.err
13187 rm -f conftest.er1
13188 cat conftest.err >&5
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); } &&
13191 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13193 (eval $ac_try) 2>&5
13194 ac_status=$?
13195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 (exit $ac_status); }; } &&
13197 { ac_try='test -s conftest.$ac_objext'
13198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13199 (eval $ac_try) 2>&5
13200 ac_status=$?
13201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 (exit $ac_status); }; }; then
13203 ac_lo=$ac_mid; break
13204else
13205 echo "$as_me: failed program was:" >&5
13206sed 's/^/| /' conftest.$ac_ext >&5
13207
13208ac_hi=`expr '(' $ac_mid ')' - 1`
13209 if test $ac_mid -le $ac_hi; then
13210 ac_lo= ac_hi=
13211 break
13212 fi
13213 ac_mid=`expr 2 '*' $ac_mid`
13214fi
13215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13216 done
13217else
13218 echo "$as_me: failed program was:" >&5
13219sed 's/^/| /' conftest.$ac_ext >&5
13220
13221ac_lo= ac_hi=
13222fi
13223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13224fi
13225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13226# Binary search between lo and hi bounds.
13227while test "x$ac_lo" != "x$ac_hi"; do
13228 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13229 cat >conftest.$ac_ext <<_ACEOF
13230/* confdefs.h. */
13231_ACEOF
13232cat confdefs.h >>conftest.$ac_ext
13233cat >>conftest.$ac_ext <<_ACEOF
13234/* end confdefs.h. */
13235$ac_includes_default
13236int
13237main ()
13238{
13239static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13240test_array [0] = 0
13241
13242 ;
13243 return 0;
13244}
13245_ACEOF
13246rm -f conftest.$ac_objext
13247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13248 (eval $ac_compile) 2>conftest.er1
13249 ac_status=$?
13250 grep -v '^ *+' conftest.er1 >conftest.err
13251 rm -f conftest.er1
13252 cat conftest.err >&5
13253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); } &&
13255 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13257 (eval $ac_try) 2>&5
13258 ac_status=$?
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); }; } &&
13261 { ac_try='test -s conftest.$ac_objext'
13262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13263 (eval $ac_try) 2>&5
13264 ac_status=$?
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); }; }; then
13267 ac_hi=$ac_mid
13268else
13269 echo "$as_me: failed program was:" >&5
13270sed 's/^/| /' conftest.$ac_ext >&5
13271
13272ac_lo=`expr '(' $ac_mid ')' + 1`
13273fi
13274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13275done
13276case $ac_lo in
13277?*) ac_cv_sizeof_long=$ac_lo;;
13278'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13279See \`config.log' for more details." >&5
13280echo "$as_me: error: cannot compute sizeof (long), 77
13281See \`config.log' for more details." >&2;}
13282 { (exit 1); exit 1; }; } ;;
13283esac
13284else
13285 if test "$cross_compiling" = yes; then
13286 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13287echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13288 { (exit 1); exit 1; }; }
13289else
13290 cat >conftest.$ac_ext <<_ACEOF
13291/* confdefs.h. */
13292_ACEOF
13293cat confdefs.h >>conftest.$ac_ext
13294cat >>conftest.$ac_ext <<_ACEOF
13295/* end confdefs.h. */
13296$ac_includes_default
13297long longval () { return (long) (sizeof (long)); }
13298unsigned long ulongval () { return (long) (sizeof (long)); }
13299#include <stdio.h>
13300#include <stdlib.h>
13301int
13302main ()
13303{
13304
13305 FILE *f = fopen ("conftest.val", "w");
13306 if (! f)
13307 exit (1);
13308 if (((long) (sizeof (long))) < 0)
13309 {
13310 long i = longval ();
13311 if (i != ((long) (sizeof (long))))
13312 exit (1);
13313 fprintf (f, "%ld\n", i);
13314 }
13315 else
13316 {
13317 unsigned long i = ulongval ();
13318 if (i != ((long) (sizeof (long))))
13319 exit (1);
13320 fprintf (f, "%lu\n", i);
13321 }
13322 exit (ferror (f) || fclose (f) != 0);
13323
13324 ;
13325 return 0;
13326}
13327_ACEOF
13328rm -f conftest$ac_exeext
13329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13330 (eval $ac_link) 2>&5
13331 ac_status=$?
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13335 (eval $ac_try) 2>&5
13336 ac_status=$?
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); }; }; then
13339 ac_cv_sizeof_long=`cat conftest.val`
13340else
13341 echo "$as_me: program exited with status $ac_status" >&5
13342echo "$as_me: failed program was:" >&5
13343sed 's/^/| /' conftest.$ac_ext >&5
13344
13345( exit $ac_status )
13346{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13347See \`config.log' for more details." >&5
13348echo "$as_me: error: cannot compute sizeof (long), 77
13349See \`config.log' for more details." >&2;}
13350 { (exit 1); exit 1; }; }
13351fi
13352rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13353fi
13354fi
13355rm -f conftest.val
13356else
13357 ac_cv_sizeof_long=0
13358fi
13359fi
13360echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13361echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13362cat >>confdefs.h <<_ACEOF
13363#define SIZEOF_LONG $ac_cv_sizeof_long
13364_ACEOF
13365
13366
13367echo "$as_me:$LINENO: checking for long long" >&5 8826echo "$as_me:$LINENO: checking for long long" >&5
13368echo $ECHO_N "checking for long long... $ECHO_C" >&6 8827echo $ECHO_N "checking for long long... $ECHO_C" >&6
13369if test "${ac_cv_type_long_long+set}" = set; then 8828if test "${ac_cv_type_long_long+set}" = set; then
13370 echo $ECHO_N "(cached) $ECHO_C" >&6 8829 echo $ECHO_N "(cached) $ECHO_C" >&6
13371else 8830else
14222 rxvt_cv_int16_t=yes 9681 rxvt_cv_int16_t=yes
14223else 9682else
14224 echo "$as_me: failed program was:" >&5 9683 echo "$as_me: failed program was:" >&5
14225sed 's/^/| /' conftest.$ac_ext >&5 9684sed 's/^/| /' conftest.$ac_ext >&5
14226 9685
14227if test $ac_cv_sizeof_char -ge 2; then 9686if test "$ac_cv_sizeof_char" -ge 2; then
14228 rxvt_cv_int16_t=" char" 9687 rxvt_cv_int16_t=" char"
14229else 9688else
14230 if test $ac_cv_sizeof_short -ge 2; then 9689 if test "$ac_cv_sizeof_short" -ge 2; then
14231 rxvt_cv_int16_t=" short" 9690 rxvt_cv_int16_t=" short"
14232 else 9691 else
14233 if test $ac_cv_sizeof_int -ge 2; then 9692 if test "$ac_cv_sizeof_int" -ge 2; then
14234 rxvt_cv_int16_t=" int" 9693 rxvt_cv_int16_t=" int"
14235 else 9694 else
14236 if test $ac_cv_sizeof_long -ge 2; then 9695 if test "$ac_cv_sizeof_long" -ge 2; then
14237 rxvt_cv_int16_t=" long" 9696 rxvt_cv_int16_t=" long"
14238 else 9697 else
14239 if test $ac_cv_sizeof_long_long -ge 2; then 9698 if test "$ac_cv_sizeof_long_long" -ge 2; then
14240 rxvt_cv_int16_t=" long long" 9699 rxvt_cv_int16_t=" long long"
14241 else 9700 else
14242 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default 9701 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
14243 fi 9702 fi
14244 fi 9703 fi
14304 rxvt_cv_uint16_t=yes 9763 rxvt_cv_uint16_t=yes
14305else 9764else
14306 echo "$as_me: failed program was:" >&5 9765 echo "$as_me: failed program was:" >&5
14307sed 's/^/| /' conftest.$ac_ext >&5 9766sed 's/^/| /' conftest.$ac_ext >&5
14308 9767
14309if test $ac_cv_sizeof_char -ge 2; then 9768if test "$ac_cv_sizeof_char" -ge 2; then
14310 rxvt_cv_uint16_t="unsigned char" 9769 rxvt_cv_uint16_t="unsigned char"
14311else 9770else
14312 if test $ac_cv_sizeof_short -ge 2; then 9771 if test "$ac_cv_sizeof_short" -ge 2; then
14313 rxvt_cv_uint16_t="unsigned short" 9772 rxvt_cv_uint16_t="unsigned short"
14314 else 9773 else
14315 if test $ac_cv_sizeof_int -ge 2; then 9774 if test "$ac_cv_sizeof_int" -ge 2; then
14316 rxvt_cv_uint16_t="unsigned int" 9775 rxvt_cv_uint16_t="unsigned int"
14317 else 9776 else
14318 if test $ac_cv_sizeof_long -ge 2; then 9777 if test "$ac_cv_sizeof_long" -ge 2; then
14319 rxvt_cv_uint16_t="unsigned long" 9778 rxvt_cv_uint16_t="unsigned long"
14320 else 9779 else
14321 if test $ac_cv_sizeof_long_long -ge 2; then 9780 if test "$ac_cv_sizeof_long_long" -ge 2; then
14322 rxvt_cv_uint16_t="unsigned long long" 9781 rxvt_cv_uint16_t="unsigned long long"
14323 else 9782 else
14324 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default 9783 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
14325 fi 9784 fi
14326 fi 9785 fi
14386 rxvt_cv_int32_t=yes 9845 rxvt_cv_int32_t=yes
14387else 9846else
14388 echo "$as_me: failed program was:" >&5 9847 echo "$as_me: failed program was:" >&5
14389sed 's/^/| /' conftest.$ac_ext >&5 9848sed 's/^/| /' conftest.$ac_ext >&5
14390 9849
14391if test $ac_cv_sizeof_char -ge 4; then 9850if test "$ac_cv_sizeof_char" -ge 4; then
14392 rxvt_cv_int32_t=" char" 9851 rxvt_cv_int32_t=" char"
14393else 9852else
14394 if test $ac_cv_sizeof_short -ge 4; then 9853 if test "$ac_cv_sizeof_short" -ge 4; then
14395 rxvt_cv_int32_t=" short" 9854 rxvt_cv_int32_t=" short"
14396 else 9855 else
14397 if test $ac_cv_sizeof_int -ge 4; then 9856 if test "$ac_cv_sizeof_int" -ge 4; then
14398 rxvt_cv_int32_t=" int" 9857 rxvt_cv_int32_t=" int"
14399 else 9858 else
14400 if test $ac_cv_sizeof_long -ge 4; then 9859 if test "$ac_cv_sizeof_long" -ge 4; then
14401 rxvt_cv_int32_t=" long" 9860 rxvt_cv_int32_t=" long"
14402 else 9861 else
14403 if test $ac_cv_sizeof_long_long -ge 4; then 9862 if test "$ac_cv_sizeof_long_long" -ge 4; then
14404 rxvt_cv_int32_t=" long long" 9863 rxvt_cv_int32_t=" long long"
14405 else 9864 else
14406 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default 9865 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
14407 fi 9866 fi
14408 fi 9867 fi
14468 rxvt_cv_uint32_t=yes 9927 rxvt_cv_uint32_t=yes
14469else 9928else
14470 echo "$as_me: failed program was:" >&5 9929 echo "$as_me: failed program was:" >&5
14471sed 's/^/| /' conftest.$ac_ext >&5 9930sed 's/^/| /' conftest.$ac_ext >&5
14472 9931
14473if test $ac_cv_sizeof_char -ge 4; then 9932if test "$ac_cv_sizeof_char" -ge 4; then
14474 rxvt_cv_uint32_t="unsigned char" 9933 rxvt_cv_uint32_t="unsigned char"
14475else 9934else
14476 if test $ac_cv_sizeof_short -ge 4; then 9935 if test "$ac_cv_sizeof_short" -ge 4; then
14477 rxvt_cv_uint32_t="unsigned short" 9936 rxvt_cv_uint32_t="unsigned short"
14478 else 9937 else
14479 if test $ac_cv_sizeof_int -ge 4; then 9938 if test "$ac_cv_sizeof_int" -ge 4; then
14480 rxvt_cv_uint32_t="unsigned int" 9939 rxvt_cv_uint32_t="unsigned int"
14481 else 9940 else
14482 if test $ac_cv_sizeof_long -ge 4; then 9941 if test "$ac_cv_sizeof_long" -ge 4; then
14483 rxvt_cv_uint32_t="unsigned long" 9942 rxvt_cv_uint32_t="unsigned long"
14484 else 9943 else
14485 if test $ac_cv_sizeof_long_long -ge 4; then 9944 if test "$ac_cv_sizeof_long_long" -ge 4; then
14486 rxvt_cv_uint32_t="unsigned long long" 9945 rxvt_cv_uint32_t="unsigned long long"
14487 else 9946 else
14488 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default 9947 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
14489 fi 9948 fi
14490 fi 9949 fi
14504 else 9963 else
14505 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" 9964 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
14506 fi 9965 fi
14507fi 9966fi
14508 9967
14509if test $ac_cv_sizeof_int_p -eq 8; then 9968if test "$ac_cv_sizeof_int_p" -eq 8; then
14510 rxvt_intp_define="#define intp_t int64_t" 9969 rxvt_intp_define="#define intp_t int64_t"
14511 rxvt_u_intp_define="#define u_intp_t u_int64_t" 9970 rxvt_u_intp_define="#define u_intp_t u_int64_t"
14512else 9971else
14513 if test $ac_cv_sizeof_int_p -eq 4; then 9972 if test "$ac_cv_sizeof_int_p" -eq 4; then
14514 rxvt_intp_define="#define intp_t int32_t" 9973 rxvt_intp_define="#define intp_t int32_t"
14515 rxvt_u_intp_define="#define u_intp_t u_int32_t" 9974 rxvt_u_intp_define="#define u_intp_t u_int32_t"
14516 else 9975 else
14517 if test $ac_cv_sizeof_int_p -eq 2; then 9976 if test "$ac_cv_sizeof_int_p" -eq 2; then
14518 rxvt_intp_define="#define intp_t int16_t" 9977 rxvt_intp_define="#define intp_t int16_t"
14519 rxvt_u_intp_define="#define u_intp_t u_int16_t" 9978 rxvt_u_intp_define="#define u_intp_t u_int16_t"
14520 else 9979 else
14521 rxvt_intp_define="#error set intp_t" 9980 rxvt_intp_define="#error set intp_t"
14522 rxvt_u_intp_define="#error set u_intp_t" 9981 rxvt_u_intp_define="#error set u_intp_t"
14593#define RETSIGTYPE $ac_cv_type_signal 10052#define RETSIGTYPE $ac_cv_type_signal
14594_ACEOF 10053_ACEOF
14595 10054
14596 10055
14597 10056
14598case "$host_alias" in
14599 *ultrix) ac_cv_func_setsid='no' ;;
14600 *) break;;
14601esac
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615 10057
14616 10058
14617 10059
14618 10060
14619 10061
14620 10062
14621for ac_func in \ 10063for ac_func in \
14622 atexit \
14623 revoke \
14624 unsetenv \ 10064 unsetenv \
14625 setutent \ 10065 setutent \
14626 seteuid \ 10066 seteuid \
10067 setresuid \
14627 setreuid \ 10068 setreuid \
14628 setsid \
14629 setpgrp \
14630 setpgid \
14631 openpty \
14632 _getpty \
14633 grantpt \
14634 unlockpt \
14635 isastream \
14636 on_exit \ 10069 on_exit \
14637 nanosleep \
14638 updwtmp \
14639 ttyslot \
14640 10070
14641do 10071do
14642as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10072as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14643echo "$as_me:$LINENO: checking for $ac_func" >&5 10073echo "$as_me:$LINENO: checking for $ac_func" >&5
14644echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 10074echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14733 cat >>confdefs.h <<_ACEOF 10163 cat >>confdefs.h <<_ACEOF
14734#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10164#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14735_ACEOF 10165_ACEOF
14736 10166
14737fi 10167fi
10168done
10169
10170
10171
10172
10173
10174
10175for ac_func in \
10176 ttyslot \
10177 updwtmp \
10178 updwtmpx \
10179
10180do
10181as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10182echo "$as_me:$LINENO: checking for $ac_func" >&5
10183echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10184if eval "test \"\${$as_ac_var+set}\" = set"; then
10185 echo $ECHO_N "(cached) $ECHO_C" >&6
10186else
10187 cat >conftest.$ac_ext <<_ACEOF
10188/* confdefs.h. */
10189_ACEOF
10190cat confdefs.h >>conftest.$ac_ext
10191cat >>conftest.$ac_ext <<_ACEOF
10192/* end confdefs.h. */
10193/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10195#define $ac_func innocuous_$ac_func
10196
10197/* System header to define __stub macros and hopefully few prototypes,
10198 which can conflict with char $ac_func (); below.
10199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10200 <limits.h> exists even on freestanding compilers. */
10201
10202#ifdef __STDC__
10203# include <limits.h>
10204#else
10205# include <assert.h>
10206#endif
10207
10208#undef $ac_func
10209
10210/* Override any gcc2 internal prototype to avoid an error. */
10211#ifdef __cplusplus
10212extern "C"
10213{
10214#endif
10215/* We use char because int might match the return type of a gcc2
10216 builtin and then its argument prototype would still apply. */
10217char $ac_func ();
10218/* The GNU C library defines this for functions which it implements
10219 to always fail with ENOSYS. Some functions are actually named
10220 something starting with __ and the normal name is an alias. */
10221#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10222choke me
10223#else
10224char (*f) () = $ac_func;
10225#endif
10226#ifdef __cplusplus
10227}
10228#endif
10229
10230int
10231main ()
10232{
10233return f != $ac_func;
10234 ;
10235 return 0;
10236}
10237_ACEOF
10238rm -f conftest.$ac_objext conftest$ac_exeext
10239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10240 (eval $ac_link) 2>conftest.er1
10241 ac_status=$?
10242 grep -v '^ *+' conftest.er1 >conftest.err
10243 rm -f conftest.er1
10244 cat conftest.err >&5
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); } &&
10247 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10249 (eval $ac_try) 2>&5
10250 ac_status=$?
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); }; } &&
10253 { ac_try='test -s conftest$ac_exeext'
10254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10255 (eval $ac_try) 2>&5
10256 ac_status=$?
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); }; }; then
10259 eval "$as_ac_var=yes"
10260else
10261 echo "$as_me: failed program was:" >&5
10262sed 's/^/| /' conftest.$ac_ext >&5
10263
10264eval "$as_ac_var=no"
10265fi
10266rm -f conftest.err conftest.$ac_objext \
10267 conftest$ac_exeext conftest.$ac_ext
10268fi
10269echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10270echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10271if test `eval echo '${'$as_ac_var'}'` = yes; then
10272 cat >>confdefs.h <<_ACEOF
10273#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10274_ACEOF
10275
10276fi
10277done
10278
10279
10280
10281
10282
10283for ac_header in \
10284 utmp.h \
10285 utmpx.h \
10286 lastlog.h \
10287
10288do
10289as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10290if eval "test \"\${$as_ac_Header+set}\" = set"; then
10291 echo "$as_me:$LINENO: checking for $ac_header" >&5
10292echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10293if eval "test \"\${$as_ac_Header+set}\" = set"; then
10294 echo $ECHO_N "(cached) $ECHO_C" >&6
10295fi
10296echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10297echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10298else
10299 # Is the header compilable?
10300echo "$as_me:$LINENO: checking $ac_header usability" >&5
10301echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10302cat >conftest.$ac_ext <<_ACEOF
10303/* confdefs.h. */
10304_ACEOF
10305cat confdefs.h >>conftest.$ac_ext
10306cat >>conftest.$ac_ext <<_ACEOF
10307/* end confdefs.h. */
10308$ac_includes_default
10309#include <$ac_header>
10310_ACEOF
10311rm -f conftest.$ac_objext
10312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10313 (eval $ac_compile) 2>conftest.er1
10314 ac_status=$?
10315 grep -v '^ *+' conftest.er1 >conftest.err
10316 rm -f conftest.er1
10317 cat conftest.err >&5
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); } &&
10320 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10322 (eval $ac_try) 2>&5
10323 ac_status=$?
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); }; } &&
10326 { ac_try='test -s conftest.$ac_objext'
10327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10328 (eval $ac_try) 2>&5
10329 ac_status=$?
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); }; }; then
10332 ac_header_compiler=yes
10333else
10334 echo "$as_me: failed program was:" >&5
10335sed 's/^/| /' conftest.$ac_ext >&5
10336
10337ac_header_compiler=no
10338fi
10339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10340echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10341echo "${ECHO_T}$ac_header_compiler" >&6
10342
10343# Is the header present?
10344echo "$as_me:$LINENO: checking $ac_header presence" >&5
10345echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10346cat >conftest.$ac_ext <<_ACEOF
10347/* confdefs.h. */
10348_ACEOF
10349cat confdefs.h >>conftest.$ac_ext
10350cat >>conftest.$ac_ext <<_ACEOF
10351/* end confdefs.h. */
10352#include <$ac_header>
10353_ACEOF
10354if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10356 ac_status=$?
10357 grep -v '^ *+' conftest.er1 >conftest.err
10358 rm -f conftest.er1
10359 cat conftest.err >&5
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); } >/dev/null; then
10362 if test -s conftest.err; then
10363 ac_cpp_err=$ac_cxx_preproc_warn_flag
10364 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10365 else
10366 ac_cpp_err=
10367 fi
10368else
10369 ac_cpp_err=yes
10370fi
10371if test -z "$ac_cpp_err"; then
10372 ac_header_preproc=yes
10373else
10374 echo "$as_me: failed program was:" >&5
10375sed 's/^/| /' conftest.$ac_ext >&5
10376
10377 ac_header_preproc=no
10378fi
10379rm -f conftest.err conftest.$ac_ext
10380echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10381echo "${ECHO_T}$ac_header_preproc" >&6
10382
10383# So? What about this header?
10384case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10385 yes:no: )
10386 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10387echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10389echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10390 ac_header_preproc=yes
10391 ;;
10392 no:yes:* )
10393 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10394echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10395 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10396echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10397 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10398echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10399 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10400echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10402echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10403 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10404echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10405 (
10406 cat <<\_ASBOX
10407## ------------------------------------------ ##
10408## Report this to the AC_PACKAGE_NAME lists. ##
10409## ------------------------------------------ ##
10410_ASBOX
10411 ) |
10412 sed "s/^/$as_me: WARNING: /" >&2
10413 ;;
10414esac
10415echo "$as_me:$LINENO: checking for $ac_header" >&5
10416echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10417if eval "test \"\${$as_ac_Header+set}\" = set"; then
10418 echo $ECHO_N "(cached) $ECHO_C" >&6
10419else
10420 eval "$as_ac_Header=\$ac_header_preproc"
10421fi
10422echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10423echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10424
10425fi
10426if test `eval echo '${'$as_ac_Header'}'` = yes; then
10427 cat >>confdefs.h <<_ACEOF
10428#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10429_ACEOF
10430
10431fi
10432
14738done 10433done
14739 10434
14740 10435
14741 10436
14742if test "${ac_cv_header_utmp_h+set}" = set; then 10437if test "${ac_cv_header_utmp_h+set}" = set; then
14876 10571
14877fi 10572fi
14878if test $ac_cv_header_utmp_h = yes; then 10573if test $ac_cv_header_utmp_h = yes; then
14879 echo "$as_me:$LINENO: checking for struct utmp" >&5 10574 echo "$as_me:$LINENO: checking for struct utmp" >&5
14880echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6 10575echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6
14881if test "${rxvt_cv_struct_utmp+set}" = set; then 10576if test "${struct_utmp+set}" = set; then
14882 echo $ECHO_N "(cached) $ECHO_C" >&6 10577 echo $ECHO_N "(cached) $ECHO_C" >&6
14883else 10578else
14884 cat >conftest.$ac_ext <<_ACEOF 10579 cat >conftest.$ac_ext <<_ACEOF
14885/* confdefs.h. */ 10580/* confdefs.h. */
14886_ACEOF 10581_ACEOF
14887cat confdefs.h >>conftest.$ac_ext 10582cat confdefs.h >>conftest.$ac_ext
14888cat >>conftest.$ac_ext <<_ACEOF 10583cat >>conftest.$ac_ext <<_ACEOF
14889/* end confdefs.h. */ 10584/* end confdefs.h. */
14890#include <sys/types.h> 10585#include <sys/types.h>
14891#include <stdint.h>
14892#include <utmp.h> 10586#include <utmp.h>
14893int 10587int
14894main () 10588main ()
14895{ 10589{
14896struct utmp ut; 10590struct utmp ut;
14917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14918 (eval $ac_try) 2>&5 10612 (eval $ac_try) 2>&5
14919 ac_status=$? 10613 ac_status=$?
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); }; }; then 10615 (exit $ac_status); }; }; then
14922 rxvt_cv_struct_utmp=yes 10616 struct_utmp=yes
14923else 10617else
14924 echo "$as_me: failed program was:" >&5 10618 echo "$as_me: failed program was:" >&5
14925sed 's/^/| /' conftest.$ac_ext >&5 10619sed 's/^/| /' conftest.$ac_ext >&5
14926 10620
14927rxvt_cv_struct_utmp=no 10621struct_utmp=no
14928fi 10622fi
14929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14930fi 10624fi
14931echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5 10625echo "$as_me:$LINENO: result: $struct_utmp" >&5
14932echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6 10626echo "${ECHO_T}$struct_utmp" >&6
14933if test x$rxvt_cv_struct_utmp = xyes; then 10627if test x$struct_utmp = xyes; then
14934 10628
14935cat >>confdefs.h <<\_ACEOF 10629cat >>confdefs.h <<\_ACEOF
14936#define HAVE_STRUCT_UTMP 1 10630#define HAVE_STRUCT_UTMP 1
14937_ACEOF 10631_ACEOF
14938 10632
14939fi 10633fi
14940 10634
14941 10635
14942echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5 10636echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
14943echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6 10637echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6
14944if test "${rxvt_cv_struct_utmp_host+set}" = set; then 10638if test "${struct_utmp_host+set}" = set; then
14945 echo $ECHO_N "(cached) $ECHO_C" >&6 10639 echo $ECHO_N "(cached) $ECHO_C" >&6
14946else 10640else
14947 cat >conftest.$ac_ext <<_ACEOF 10641 cat >conftest.$ac_ext <<_ACEOF
14948/* confdefs.h. */ 10642/* confdefs.h. */
14949_ACEOF 10643_ACEOF
14979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14980 (eval $ac_try) 2>&5 10674 (eval $ac_try) 2>&5
14981 ac_status=$? 10675 ac_status=$?
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); }; }; then 10677 (exit $ac_status); }; }; then
14984 rxvt_cv_struct_utmp_host=yes 10678 struct_utmp_host=yes
14985else 10679else
14986 echo "$as_me: failed program was:" >&5 10680 echo "$as_me: failed program was:" >&5
14987sed 's/^/| /' conftest.$ac_ext >&5 10681sed 's/^/| /' conftest.$ac_ext >&5
14988 10682
14989rxvt_cv_struct_utmp_host=no 10683struct_utmp_host=no
14990fi 10684fi
14991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14992fi 10686fi
14993echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5 10687echo "$as_me:$LINENO: result: $struct_utmp_host" >&5
14994echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6 10688echo "${ECHO_T}$struct_utmp_host" >&6
14995if test x$rxvt_cv_struct_utmp_host = xyes; then 10689if test x$struct_utmp_host = xyes; then
14996 10690
14997cat >>confdefs.h <<\_ACEOF 10691cat >>confdefs.h <<\_ACEOF
14998#define HAVE_UTMP_HOST 1 10692#define HAVE_UTMP_HOST 1
14999_ACEOF 10693_ACEOF
15000 10694
15001fi 10695fi
15002 10696
15003echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5 10697echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
15004echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6 10698echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6
15005if test "${rxvt_cv_struct_utmp_pid+set}" = set; then 10699if test "${struct_utmp_pid+set}" = set; then
15006 echo $ECHO_N "(cached) $ECHO_C" >&6 10700 echo $ECHO_N "(cached) $ECHO_C" >&6
15007else 10701else
15008 cat >conftest.$ac_ext <<_ACEOF 10702 cat >conftest.$ac_ext <<_ACEOF
15009/* confdefs.h. */ 10703/* confdefs.h. */
15010_ACEOF 10704_ACEOF
15040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15041 (eval $ac_try) 2>&5 10735 (eval $ac_try) 2>&5
15042 ac_status=$? 10736 ac_status=$?
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); }; }; then 10738 (exit $ac_status); }; }; then
15045 rxvt_cv_struct_utmp_pid=yes 10739 struct_utmp_pid=yes
15046else 10740else
15047 echo "$as_me: failed program was:" >&5 10741 echo "$as_me: failed program was:" >&5
15048sed 's/^/| /' conftest.$ac_ext >&5 10742sed 's/^/| /' conftest.$ac_ext >&5
15049 10743
15050rxvt_cv_struct_utmp_pid=no 10744struct_utmp_pid=no
15051fi 10745fi
15052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15053fi 10747fi
15054echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5 10748echo "$as_me:$LINENO: result: $struct_utmp_pid" >&5
15055echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6 10749echo "${ECHO_T}$struct_utmp_pid" >&6
15056if test x$rxvt_cv_struct_utmp_pid = xyes; then 10750if test x$struct_utmp_pid = xyes; then
15057 10751
15058cat >>confdefs.h <<\_ACEOF 10752cat >>confdefs.h <<\_ACEOF
15059#define HAVE_UTMP_PID 1 10753#define HAVE_UTMP_PID 1
15060_ACEOF 10754_ACEOF
15061 10755
15202 10896
15203fi 10897fi
15204if test $ac_cv_header_utmpx_h = yes; then 10898if test $ac_cv_header_utmpx_h = yes; then
15205 echo "$as_me:$LINENO: checking for struct utmpx" >&5 10899 echo "$as_me:$LINENO: checking for struct utmpx" >&5
15206echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6 10900echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6
15207if test "${rxvt_cv_struct_utmpx+set}" = set; then 10901if test "${struct_utmpx+set}" = set; then
15208 echo $ECHO_N "(cached) $ECHO_C" >&6 10902 echo $ECHO_N "(cached) $ECHO_C" >&6
15209else 10903else
15210 cat >conftest.$ac_ext <<_ACEOF 10904 cat >conftest.$ac_ext <<_ACEOF
15211/* confdefs.h. */ 10905/* confdefs.h. */
15212_ACEOF 10906_ACEOF
15242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15243 (eval $ac_try) 2>&5 10937 (eval $ac_try) 2>&5
15244 ac_status=$? 10938 ac_status=$?
15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); }; }; then 10940 (exit $ac_status); }; }; then
15247 rxvt_cv_struct_utmpx=yes 10941 struct_utmpx=yes
15248else 10942else
15249 echo "$as_me: failed program was:" >&5 10943 echo "$as_me: failed program was:" >&5
15250sed 's/^/| /' conftest.$ac_ext >&5 10944sed 's/^/| /' conftest.$ac_ext >&5
15251 10945
15252rxvt_cv_struct_utmpx=no 10946struct_utmpx=no
15253fi 10947fi
15254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15255fi 10949fi
15256echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5 10950echo "$as_me:$LINENO: result: $struct_utmpx" >&5
15257echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6 10951echo "${ECHO_T}$struct_utmpx" >&6
15258if test x$rxvt_cv_struct_utmpx = xyes; then 10952if test x$struct_utmpx = xyes; then
15259 10953
15260cat >>confdefs.h <<\_ACEOF 10954cat >>confdefs.h <<\_ACEOF
15261#define HAVE_STRUCT_UTMPX 1 10955#define HAVE_STRUCT_UTMPX 1
15262_ACEOF 10956_ACEOF
15263 10957
15264fi 10958fi
15265 10959
15266 10960
15267echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 10961echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
15268echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6 10962echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6
15269if test "${rxvt_cv_struct_utmpx_host+set}" = set; then 10963if test "${struct_utmpx_host+set}" = set; then
15270 echo $ECHO_N "(cached) $ECHO_C" >&6 10964 echo $ECHO_N "(cached) $ECHO_C" >&6
15271else 10965else
15272 cat >conftest.$ac_ext <<_ACEOF 10966 cat >conftest.$ac_ext <<_ACEOF
15273/* confdefs.h. */ 10967/* confdefs.h. */
15274_ACEOF 10968_ACEOF
15304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15305 (eval $ac_try) 2>&5 10999 (eval $ac_try) 2>&5
15306 ac_status=$? 11000 ac_status=$?
15307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308 (exit $ac_status); }; }; then 11002 (exit $ac_status); }; }; then
15309 rxvt_cv_struct_utmpx_host=yes 11003 struct_utmpx_host=yes
15310else 11004else
15311 echo "$as_me: failed program was:" >&5 11005 echo "$as_me: failed program was:" >&5
15312sed 's/^/| /' conftest.$ac_ext >&5 11006sed 's/^/| /' conftest.$ac_ext >&5
15313 11007
15314rxvt_cv_struct_utmpx_host=no 11008struct_utmpx_host=no
15315fi 11009fi
15316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15317fi 11011fi
15318echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5 11012echo "$as_me:$LINENO: result: $struct_utmpx_host" >&5
15319echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6 11013echo "${ECHO_T}$struct_utmpx_host" >&6
15320if test x$rxvt_cv_struct_utmpx_host = xyes; then 11014if test x$struct_utmpx_host = xyes; then
15321 11015
15322cat >>confdefs.h <<\_ACEOF 11016cat >>confdefs.h <<\_ACEOF
15323#define HAVE_UTMPX_HOST 1 11017#define HAVE_UTMPX_HOST 1
15324_ACEOF 11018_ACEOF
15325 11019
15326fi 11020fi
15327 11021
15328fi 11022echo "$as_me:$LINENO: checking for session in utmpx struct" >&5
11023echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6
11024if test "${struct_utmpx_session+set}" = set; then
11025 echo $ECHO_N "(cached) $ECHO_C" >&6
11026else
11027 cat >conftest.$ac_ext <<_ACEOF
11028/* confdefs.h. */
11029_ACEOF
11030cat confdefs.h >>conftest.$ac_ext
11031cat >>conftest.$ac_ext <<_ACEOF
11032/* end confdefs.h. */
11033#include <sys/types.h>
11034#include <utmpx.h>
11035int
11036main ()
11037{
11038struct utmpx utx; utx.ut_session;
11039 ;
11040 return 0;
11041}
11042_ACEOF
11043rm -f conftest.$ac_objext
11044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11045 (eval $ac_compile) 2>conftest.er1
11046 ac_status=$?
11047 grep -v '^ *+' conftest.er1 >conftest.err
11048 rm -f conftest.er1
11049 cat conftest.err >&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); } &&
11052 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11054 (eval $ac_try) 2>&5
11055 ac_status=$?
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); }; } &&
11058 { ac_try='test -s conftest.$ac_objext'
11059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11060 (eval $ac_try) 2>&5
11061 ac_status=$?
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); }; }; then
11064 struct_utmpx_session=yes
11065else
11066 echo "$as_me: failed program was:" >&5
11067sed 's/^/| /' conftest.$ac_ext >&5
15329 11068
11069struct_utmpx_session=no
11070fi
11071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11072fi
11073echo "$as_me:$LINENO: result: $struct_utmpx_session" >&5
11074echo "${ECHO_T}$struct_utmpx_session" >&6
11075if test x$struct_utmpx_session = xyes; then
11076
11077cat >>confdefs.h <<\_ACEOF
11078#define HAVE_UTMPX_SESSION 1
11079_ACEOF
11080
11081fi
11082
11083fi
15330 11084
15331 11085
15332echo "$as_me:$LINENO: checking for struct lastlog" >&5 11086echo "$as_me:$LINENO: checking for struct lastlog" >&5
15333echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 11087echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
15334if test "${rxvt_cv_struct_lastlog+set}" = set; then 11088if test "${struct_lastlog+set}" = set; then
15335 echo $ECHO_N "(cached) $ECHO_C" >&6 11089 echo $ECHO_N "(cached) $ECHO_C" >&6
15336else 11090else
15337 cat >conftest.$ac_ext <<_ACEOF 11091 cat >conftest.$ac_ext <<_ACEOF
15338/* confdefs.h. */ 11092/* confdefs.h. */
15339_ACEOF 11093_ACEOF
15373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15374 (eval $ac_try) 2>&5 11128 (eval $ac_try) 2>&5
15375 ac_status=$? 11129 ac_status=$?
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); }; }; then 11131 (exit $ac_status); }; }; then
15378 rxvt_cv_struct_lastlog=yes 11132 struct_lastlog=yes
15379else 11133else
15380 echo "$as_me: failed program was:" >&5 11134 echo "$as_me: failed program was:" >&5
15381sed 's/^/| /' conftest.$ac_ext >&5 11135sed 's/^/| /' conftest.$ac_ext >&5
15382 11136
15383rxvt_cv_struct_lastlog=no 11137struct_lastlog=no
15384fi 11138fi
15385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15386fi 11140fi
15387echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5 11141echo "$as_me:$LINENO: result: $struct_lastlog" >&5
15388echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6 11142echo "${ECHO_T}$struct_lastlog" >&6
15389if test x$rxvt_cv_struct_lastlog = xyes; then 11143if test x$struct_lastlog = xyes; then
15390 11144
15391cat >>confdefs.h <<\_ACEOF 11145cat >>confdefs.h <<\_ACEOF
15392#define HAVE_STRUCT_LASTLOG 1 11146#define HAVE_STRUCT_LASTLOG 1
15393_ACEOF 11147_ACEOF
15394 11148
15395fi 11149fi
15396 11150
15397echo "$as_me:$LINENO: checking for struct lastlogx" >&5 11151echo "$as_me:$LINENO: checking for struct lastlogx" >&5
15398echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6 11152echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6
15399if test "${rxvt_cv_struct_lastlogx+set}" = set; then 11153if test "${struct_lastlogx+set}" = set; then
15400 echo $ECHO_N "(cached) $ECHO_C" >&6 11154 echo $ECHO_N "(cached) $ECHO_C" >&6
15401else 11155else
15402 cat >conftest.$ac_ext <<_ACEOF 11156 cat >conftest.$ac_ext <<_ACEOF
15403/* confdefs.h. */ 11157/* confdefs.h. */
15404_ACEOF 11158_ACEOF
15438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15439 (eval $ac_try) 2>&5 11193 (eval $ac_try) 2>&5
15440 ac_status=$? 11194 ac_status=$?
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); }; }; then 11196 (exit $ac_status); }; }; then
15443 rxvt_cv_struct_lastlogx=yes 11197 struct_lastlogx=yes
15444else 11198else
15445 echo "$as_me: failed program was:" >&5 11199 echo "$as_me: failed program was:" >&5
15446sed 's/^/| /' conftest.$ac_ext >&5 11200sed 's/^/| /' conftest.$ac_ext >&5
15447 11201
15448rxvt_cv_struct_lastlogx=no 11202struct_lastlogx=no
15449fi 11203fi
15450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15451fi 11205fi
15452echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5 11206echo "$as_me:$LINENO: result: $struct_lastlogx" >&5
15453echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6 11207echo "${ECHO_T}$struct_lastlogx" >&6
15454if test x$rxvt_cv_struct_lastlogx = xyes; then 11208if test x$struct_lastlogx = xyes; then
15455 11209
15456cat >>confdefs.h <<\_ACEOF 11210cat >>confdefs.h <<\_ACEOF
15457#define HAVE_STRUCT_LASTLOGX 1 11211#define HAVE_STRUCT_LASTLOGX 1
15458_ACEOF 11212_ACEOF
15459 11213
15460fi 11214fi
15461 11215
15462 11216
15463echo "$as_me:$LINENO: checking where utmp is located" >&5 11217echo "$as_me:$LINENO: checking where utmp is located" >&5
15464echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6 11218echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6
15465if test "${rxvt_cv_path_utmp+set}" = set; then 11219if test "${path_utmp+set}" = set; then
15466 echo $ECHO_N "(cached) $ECHO_C" >&6 11220 echo $ECHO_N "(cached) $ECHO_C" >&6
15467else 11221else
15468 if test "$cross_compiling" = yes; then 11222 if test "$cross_compiling" = yes; then
15469 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5 11223 { echo "$as_me:$LINENO: WARNING: Define UTMP_FILE in config.h manually" >&5
15470echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;} 11224echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;}
15471else 11225else
15472 cat >conftest.$ac_ext <<_ACEOF 11226 cat >conftest.$ac_ext <<_ACEOF
15473/* confdefs.h. */ 11227/* confdefs.h. */
15474_ACEOF 11228_ACEOF
15475cat confdefs.h >>conftest.$ac_ext 11229cat confdefs.h >>conftest.$ac_ext
15511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15512 (eval $ac_try) 2>&5 11266 (eval $ac_try) 2>&5
15513 ac_status=$? 11267 ac_status=$?
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); }; }; then 11269 (exit $ac_status); }; }; then
15516 rxvt_cv_path_utmp=`cat conftestval` 11270 path_utmp=`cat conftestval`
15517else 11271else
15518 echo "$as_me: program exited with status $ac_status" >&5 11272 echo "$as_me: program exited with status $ac_status" >&5
15519echo "$as_me: failed program was:" >&5 11273echo "$as_me: failed program was:" >&5
15520sed 's/^/| /' conftest.$ac_ext >&5 11274sed 's/^/| /' conftest.$ac_ext >&5
15521 11275
15522( exit $ac_status ) 11276( exit $ac_status )
15523rxvt_cv_path_utmp= 11277path_utmp=
15524fi 11278fi
15525rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11279rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15526fi 11280fi
15527fi 11281fi
15528echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5 11282echo "$as_me:$LINENO: result: $path_utmp" >&5
15529echo "${ECHO_T}$rxvt_cv_path_utmp" >&6 11283echo "${ECHO_T}$path_utmp" >&6
15530if test x$rxvt_cv_path_utmp != x; then 11284if test x$path_utmp != x; then
15531 11285
15532cat >>confdefs.h <<_ACEOF 11286cat >>confdefs.h <<_ACEOF
15533#define RXVT_UTMP_FILE "$rxvt_cv_path_utmp" 11287#define UTMP_FILE "$path_utmp"
15534_ACEOF 11288_ACEOF
15535 11289
15536fi 11290fi
15537 11291
15538 11292
15539echo "$as_me:$LINENO: checking where utmpx is located" >&5 11293echo "$as_me:$LINENO: checking where utmpx is located" >&5
15540echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6 11294echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6
15541if test "${rxvt_cv_path_utmpx+set}" = set; then 11295if test "${path_utmpx+set}" = set; then
15542 echo $ECHO_N "(cached) $ECHO_C" >&6 11296 echo $ECHO_N "(cached) $ECHO_C" >&6
15543else 11297else
15544 if test "$cross_compiling" = yes; then 11298 if test "$cross_compiling" = yes; then
15545 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&5 11299 { echo "$as_me:$LINENO: WARNING: Define UTMPX_FILE in config.h manually" >&5
15546echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;} 11300echo "$as_me: WARNING: Define UTMPX_FILE in config.h manually" >&2;}
15547else 11301else
15548 cat >conftest.$ac_ext <<_ACEOF 11302 cat >conftest.$ac_ext <<_ACEOF
15549/* confdefs.h. */ 11303/* confdefs.h. */
15550_ACEOF 11304_ACEOF
15551cat confdefs.h >>conftest.$ac_ext 11305cat confdefs.h >>conftest.$ac_ext
15597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15598 (eval $ac_try) 2>&5 11352 (eval $ac_try) 2>&5
15599 ac_status=$? 11353 ac_status=$?
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); }; }; then 11355 (exit $ac_status); }; }; then
15602 rxvt_cv_path_utmpx=`cat conftestval` 11356 path_utmpx=`cat conftestval`
15603else 11357else
15604 echo "$as_me: program exited with status $ac_status" >&5 11358 echo "$as_me: program exited with status $ac_status" >&5
15605echo "$as_me: failed program was:" >&5 11359echo "$as_me: failed program was:" >&5
15606sed 's/^/| /' conftest.$ac_ext >&5 11360sed 's/^/| /' conftest.$ac_ext >&5
15607 11361
15608( exit $ac_status ) 11362( exit $ac_status )
15609rxvt_cv_path_utmpx= 11363path_utmpx=
15610fi 11364fi
15611rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11365rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15612fi 11366fi
15613fi 11367fi
15614echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5 11368echo "$as_me:$LINENO: result: $path_utmpx" >&5
15615echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6 11369echo "${ECHO_T}$path_utmpx" >&6
15616if test x$rxvt_cv_path_utmpx != x; then 11370if test x$path_utmpx != x; then
15617 11371
15618cat >>confdefs.h <<_ACEOF 11372cat >>confdefs.h <<_ACEOF
15619#define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx" 11373#define UTMPX_FILE "$path_utmpx"
15620_ACEOF 11374_ACEOF
15621 11375
15622fi 11376fi
15623 11377
15624 11378
15625echo "$as_me:$LINENO: checking where wtmp is located" >&5 11379echo "$as_me:$LINENO: checking where wtmp is located" >&5
15626echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6 11380echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6
15627if test "${rxvt_cv_path_wtmp+set}" = set; then 11381if test "${path_wtmp+set}" = set; then
15628 echo $ECHO_N "(cached) $ECHO_C" >&6 11382 echo $ECHO_N "(cached) $ECHO_C" >&6
15629else 11383else
15630 if test "$cross_compiling" = yes; then 11384 if test "$cross_compiling" = yes; then
15631 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&5 11385 { echo "$as_me:$LINENO: WARNING: Define WTMP_FILE in config.h manually" >&5
15632echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;} 11386echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;}
15633else 11387else
15634 cat >conftest.$ac_ext <<_ACEOF 11388 cat >conftest.$ac_ext <<_ACEOF
15635/* confdefs.h. */ 11389/* confdefs.h. */
15636_ACEOF 11390_ACEOF
15637cat confdefs.h >>conftest.$ac_ext 11391cat confdefs.h >>conftest.$ac_ext
15675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15676 (eval $ac_try) 2>&5 11430 (eval $ac_try) 2>&5
15677 ac_status=$? 11431 ac_status=$?
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); }; }; then 11433 (exit $ac_status); }; }; then
15680 rxvt_cv_path_wtmp=`cat conftestval` 11434 path_wtmp=`cat conftestval`
15681else 11435else
15682 echo "$as_me: program exited with status $ac_status" >&5 11436 echo "$as_me: program exited with status $ac_status" >&5
15683echo "$as_me: failed program was:" >&5 11437echo "$as_me: failed program was:" >&5
15684sed 's/^/| /' conftest.$ac_ext >&5 11438sed 's/^/| /' conftest.$ac_ext >&5
15685 11439
15686( exit $ac_status ) 11440( exit $ac_status )
15687rxvt_cv_path_wtmp= 11441path_wtmp=
15688fi 11442fi
15689rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11443rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15690fi 11444fi
15691fi 11445fi
15692echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5 11446echo "$as_me:$LINENO: result: $path_wtmp" >&5
15693echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6 11447echo "${ECHO_T}$path_wtmp" >&6
15694if test x$rxvt_cv_path_wtmp != x; then 11448if test x$path_wtmp != x; then
15695 11449
15696cat >>confdefs.h <<_ACEOF 11450cat >>confdefs.h <<_ACEOF
15697#define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp" 11451#define WTMP_FILE "$path_wtmp"
15698_ACEOF 11452_ACEOF
15699 11453
15700fi 11454fi
15701 11455
15702echo "$as_me:$LINENO: checking where wtmpx is located" >&5 11456echo "$as_me:$LINENO: checking where wtmpx is located" >&5
15703echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6 11457echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6
15704if test "${rxvt_cv_path_wtmpx+set}" = set; then 11458if test "${path_wtmpx+set}" = set; then
15705 echo $ECHO_N "(cached) $ECHO_C" >&6 11459 echo $ECHO_N "(cached) $ECHO_C" >&6
15706else 11460else
15707 if test "$cross_compiling" = yes; then 11461 if test "$cross_compiling" = yes; then
15708 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&5 11462 { echo "$as_me:$LINENO: WARNING: Define WTMPX_FILE in config.h manually" >&5
15709echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;} 11463echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;}
15710else 11464else
15711 cat >conftest.$ac_ext <<_ACEOF 11465 cat >conftest.$ac_ext <<_ACEOF
15712/* confdefs.h. */ 11466/* confdefs.h. */
15713_ACEOF 11467_ACEOF
15714cat confdefs.h >>conftest.$ac_ext 11468cat confdefs.h >>conftest.$ac_ext
15751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15752 (eval $ac_try) 2>&5 11506 (eval $ac_try) 2>&5
15753 ac_status=$? 11507 ac_status=$?
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); }; }; then 11509 (exit $ac_status); }; }; then
15756 rxvt_cv_path_wtmpx=`cat conftestval` 11510 path_wtmpx=`cat conftestval`
15757else 11511else
15758 echo "$as_me: program exited with status $ac_status" >&5 11512 echo "$as_me: program exited with status $ac_status" >&5
15759echo "$as_me: failed program was:" >&5 11513echo "$as_me: failed program was:" >&5
15760sed 's/^/| /' conftest.$ac_ext >&5 11514sed 's/^/| /' conftest.$ac_ext >&5
15761 11515
15762( exit $ac_status ) 11516( exit $ac_status )
15763rxvt_cv_path_wtmpx= 11517path_wtmpx=
15764fi 11518fi
15765rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11519rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15766fi 11520fi
15767fi 11521fi
15768echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5 11522echo "$as_me:$LINENO: result: $path_wtmpx" >&5
15769echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6 11523echo "${ECHO_T}$path_wtmpx" >&6
15770if test x$rxvt_cv_path_wtmpx != x; then 11524if test x$path_wtmpx != x; then
15771 11525
15772cat >>confdefs.h <<_ACEOF 11526cat >>confdefs.h <<_ACEOF
15773#define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx" 11527#define WTMPX_FILE "$path_wtmpx"
15774_ACEOF 11528_ACEOF
15775 11529
15776fi 11530fi
15777 11531
15778echo "$as_me:$LINENO: checking where lastlog is located" >&5 11532echo "$as_me:$LINENO: checking where lastlog is located" >&5
15779echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6 11533echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6
15780if test "${rxvt_cv_path_lastlog+set}" = set; then 11534if test "${path_lastlog+set}" = set; then
15781 echo $ECHO_N "(cached) $ECHO_C" >&6 11535 echo $ECHO_N "(cached) $ECHO_C" >&6
15782else 11536else
15783 if test "$cross_compiling" = yes; then 11537 if test "$cross_compiling" = yes; then
15784 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&5 11538 { echo "$as_me:$LINENO: WARNING: Define LASTLOG_FILE in config.h manually" >&5
15785echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;} 11539echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;}
15786else 11540else
15787 cat >conftest.$ac_ext <<_ACEOF 11541 cat >conftest.$ac_ext <<_ACEOF
15788/* confdefs.h. */ 11542/* confdefs.h. */
15789_ACEOF 11543_ACEOF
15790cat confdefs.h >>conftest.$ac_ext 11544cat confdefs.h >>conftest.$ac_ext
15832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15833 (eval $ac_try) 2>&5 11587 (eval $ac_try) 2>&5
15834 ac_status=$? 11588 ac_status=$?
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); }; }; then 11590 (exit $ac_status); }; }; then
15837 rxvt_cv_path_lastlog=`cat conftestval` 11591 path_lastlog=`cat conftestval`
15838else 11592else
15839 echo "$as_me: program exited with status $ac_status" >&5 11593 echo "$as_me: program exited with status $ac_status" >&5
15840echo "$as_me: failed program was:" >&5 11594echo "$as_me: failed program was:" >&5
15841sed 's/^/| /' conftest.$ac_ext >&5 11595sed 's/^/| /' conftest.$ac_ext >&5
15842 11596
15843( exit $ac_status ) 11597( exit $ac_status )
15844rxvt_cv_path_lastlog= 11598path_lastlog=
15845fi 11599fi
15846rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11600rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15847fi 11601fi
15848fi 11602fi
15849echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5 11603echo "$as_me:$LINENO: result: $path_lastlog" >&5
15850echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6 11604echo "${ECHO_T}$path_lastlog" >&6
15851if test x$rxvt_cv_path_lastlog != x; then 11605if test x$path_lastlog != x; then
15852 11606
15853cat >>confdefs.h <<_ACEOF 11607cat >>confdefs.h <<_ACEOF
15854#define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog" 11608#define LASTLOG_FILE "$path_lastlog"
15855_ACEOF 11609_ACEOF
15856 11610
15857 if test -d "$rxvt_cv_path_lastlog"; then 11611 if test -d "$path_lastlog"; then
15858 11612
15859cat >>confdefs.h <<\_ACEOF 11613cat >>confdefs.h <<\_ACEOF
15860#define LASTLOG_IS_DIR 1 11614#define LASTLOG_IS_DIR 1
15861_ACEOF 11615_ACEOF
15862 11616
15863 fi 11617 fi
15864fi 11618fi
15865 11619
15866echo "$as_me:$LINENO: checking where lastlogx is located" >&5 11620echo "$as_me:$LINENO: checking where lastlogx is located" >&5
15867echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6 11621echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6
15868if test "${rxvt_cv_path_lastlogx+set}" = set; then 11622if test "${path_lastlogx+set}" = set; then
15869 echo $ECHO_N "(cached) $ECHO_C" >&6 11623 echo $ECHO_N "(cached) $ECHO_C" >&6
15870else 11624else
15871 if test "$cross_compiling" = yes; then 11625 if test "$cross_compiling" = yes; then
15872 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&5 11626 { echo "$as_me:$LINENO: WARNING: Define LASTLOGX_FILE in config.h manually" >&5
15873echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;} 11627echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;}
15874else 11628else
15875 cat >conftest.$ac_ext <<_ACEOF 11629 cat >conftest.$ac_ext <<_ACEOF
15876/* confdefs.h. */ 11630/* confdefs.h. */
15877_ACEOF 11631_ACEOF
15878cat confdefs.h >>conftest.$ac_ext 11632cat confdefs.h >>conftest.$ac_ext
15914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15915 (eval $ac_try) 2>&5 11669 (eval $ac_try) 2>&5
15916 ac_status=$? 11670 ac_status=$?
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); }; }; then 11672 (exit $ac_status); }; }; then
15919 rxvt_cv_path_lastlogx=`cat conftestval` 11673 path_lastlogx=`cat conftestval`
15920else 11674else
15921 echo "$as_me: program exited with status $ac_status" >&5 11675 echo "$as_me: program exited with status $ac_status" >&5
15922echo "$as_me: failed program was:" >&5 11676echo "$as_me: failed program was:" >&5
15923sed 's/^/| /' conftest.$ac_ext >&5 11677sed 's/^/| /' conftest.$ac_ext >&5
15924 11678
15925( exit $ac_status ) 11679( exit $ac_status )
15926rxvt_cv_path_lastlogx= 11680path_lastlogx=
15927fi 11681fi
15928rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11682rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15929fi 11683fi
15930fi 11684fi
15931echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5 11685echo "$as_me:$LINENO: result: $path_lastlogx" >&5
15932echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6 11686echo "${ECHO_T}$path_lastlogx" >&6
15933if test x$rxvt_cv_path_lastlogx != x; then 11687if test x$path_lastlogx != x; then
15934 11688
15935cat >>confdefs.h <<_ACEOF 11689cat >>confdefs.h <<_ACEOF
15936#define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx" 11690#define LASTLOGX_FILE "$path_lastlogx"
15937_ACEOF 11691_ACEOF
15938 11692
15939fi 11693fi
11694
15940 11695
15941 11696
15942echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 11697echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
15943echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 11698echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6
15944if test "${rxvt_cv_path_ttytab+set}" = set; then 11699if test "${rxvt_cv_path_ttytab+set}" = set; then
16211#define HAVE_NL_LANGINFO 1 11966#define HAVE_NL_LANGINFO 1
16212_ACEOF 11967_ACEOF
16213 11968
16214fi 11969fi
16215 11970
11971
11972echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5
11973echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6
11974if test "${can_pass_fds+set}" = set; then
11975 echo $ECHO_N "(cached) $ECHO_C" >&6
11976else
11977 cat >conftest.$ac_ext <<_ACEOF
11978/* confdefs.h. */
11979_ACEOF
11980cat confdefs.h >>conftest.$ac_ext
11981cat >>conftest.$ac_ext <<_ACEOF
11982/* end confdefs.h. */
11983
11984#include <cstddef> // broken bsds (is that redundant) need this
11985#include <sys/types.h>
11986#include <sys/socket.h>
11987#include <sys/uio.h>
11988
11989int
11990main ()
11991{
11992
11993{
11994 msghdr msg;
11995 iovec iov;
11996 char buf [100];
11997 char data = 0;
11998
11999 iov.iov_base = &data;
12000 iov.iov_len = 1;
12001
12002 msg.msg_iov = &iov;
12003 msg.msg_iovlen = 1;
12004 msg.msg_control = buf;
12005 msg.msg_controllen = sizeof buf;
12006
12007 cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
12008 cmsg->cmsg_level = SOL_SOCKET;
12009 cmsg->cmsg_type = SCM_RIGHTS;
12010 cmsg->cmsg_len = 100;
12011
12012 *(int *)CMSG_DATA (cmsg) = 5;
12013
12014 return sendmsg (3, &msg, 0);
12015}
12016
12017 ;
12018 return 0;
12019}
12020_ACEOF
12021rm -f conftest.$ac_objext conftest$ac_exeext
12022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12023 (eval $ac_link) 2>conftest.er1
12024 ac_status=$?
12025 grep -v '^ *+' conftest.er1 >conftest.err
12026 rm -f conftest.er1
12027 cat conftest.err >&5
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); } &&
12030 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032 (eval $ac_try) 2>&5
12033 ac_status=$?
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); }; } &&
12036 { ac_try='test -s conftest$ac_exeext'
12037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038 (eval $ac_try) 2>&5
12039 ac_status=$?
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; }; then
12042 can_pass_fds=yes
12043else
12044 echo "$as_me: failed program was:" >&5
12045sed 's/^/| /' conftest.$ac_ext >&5
12046
12047can_pass_fds=no
12048fi
12049rm -f conftest.err conftest.$ac_objext \
12050 conftest$ac_exeext conftest.$ac_ext
12051fi
12052echo "$as_me:$LINENO: result: $can_pass_fds" >&5
12053echo "${ECHO_T}$can_pass_fds" >&6
12054if test x$can_pass_fds = xyes; then
12055
12056cat >>confdefs.h <<\_ACEOF
12057#define HAVE_UNIX_FDPASS 1
12058_ACEOF
12059
12060else
12061 { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5
12062echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;}
12063 { (exit 1); exit 1; }; }
12064fi
12065
12066
16216echo "$as_me:$LINENO: checking for broken XIM callback" >&5 12067echo "$as_me:$LINENO: checking for broken XIM callback" >&5
16217echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6 12068echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6
16218if test "${rxvt_broken_ximcb+set}" = set; then 12069if test "${rxvt_broken_ximcb+set}" = set; then
16219 echo $ECHO_N "(cached) $ECHO_C" >&6 12070 echo $ECHO_N "(cached) $ECHO_C" >&6
16220else 12071else
16269#define XIMCB_PROTO_BROKEN 1 12120#define XIMCB_PROTO_BROKEN 1
16270_ACEOF 12121_ACEOF
16271 12122
16272fi 12123fi
16273 12124
16274echo "$as_me:$LINENO: checking for getpt" >&5
16275echo $ECHO_N "checking for getpt... $ECHO_C" >&6
16276if test "${rxvt_cv_func_getpt+set}" = set; then
16277 echo $ECHO_N "(cached) $ECHO_C" >&6
16278else
16279 cat >conftest.$ac_ext <<_ACEOF
16280/* confdefs.h. */
16281_ACEOF
16282cat confdefs.h >>conftest.$ac_ext
16283cat >>conftest.$ac_ext <<_ACEOF
16284/* end confdefs.h. */
16285#define _GNU_SOURCE
16286#ifdef HAVE_STDLIB_H
16287# include <cstdlib>
16288#endif
16289int
16290main ()
16291{
16292(void)getpt();
16293 ;
16294 return 0;
16295}
16296_ACEOF
16297rm -f conftest.$ac_objext conftest$ac_exeext
16298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16299 (eval $ac_link) 2>conftest.er1
16300 ac_status=$?
16301 grep -v '^ *+' conftest.er1 >conftest.err
16302 rm -f conftest.er1
16303 cat conftest.err >&5
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); } &&
16306 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16308 (eval $ac_try) 2>&5
16309 ac_status=$?
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); }; } &&
16312 { ac_try='test -s conftest$ac_exeext'
16313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16314 (eval $ac_try) 2>&5
16315 ac_status=$?
16316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317 (exit $ac_status); }; }; then
16318 rxvt_cv_func_getpt=yes
16319else
16320 echo "$as_me: failed program was:" >&5
16321sed 's/^/| /' conftest.$ac_ext >&5
16322 12125
16323rxvt_cv_func_getpt=no
16324fi
16325rm -f conftest.err conftest.$ac_objext \
16326 conftest$ac_exeext conftest.$ac_ext
16327fi
16328echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5
16329echo "${ECHO_T}$rxvt_cv_func_getpt" >&6
16330if test x$rxvt_cv_func_getpt = xyes; then
16331 12126
16332cat >>confdefs.h <<\_ACEOF
16333#define HAVE_GETPT 1
16334_ACEOF
16335 12127
16336fi
16337 12128
16338echo "$as_me:$LINENO: checking for pty/tty type" >&5
16339echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6
16340if test "${rxvt_cv_ptys+set}" = set; then
16341 echo $ECHO_N "(cached) $ECHO_C" >&6
16342else
16343 if test x$ac_cv_func_openpty = xyes; then
16344 rxvt_cv_ptys=OPENPTY
16345 else if test x$ac_cv_func__getpty = xyes; then
16346 rxvt_cv_ptys=SGI4
16347 else if test -c /dev/ttyp20; then
16348 rxvt_cv_ptys=SCO
16349 else if test -c /dev/ptym/clone; then
16350 rxvt_cv_ptys=HPUX
16351 else if test x$rxvt_cv_func_getpt = xyes; then
16352 rxvt_cv_ptys=GLIBC
16353 else if test -c /dev/ptc -a -c /dev/pts; then
16354 rxvt_cv_ptys=PTC
16355 else if test -c /dev/ptc -a -d /dev/pts; then
16356 rxvt_cv_ptys=PTC
16357 else if test -c /dev/ptmx -a -c /dev/pts/0; then
16358 rxvt_cv_ptys=STREAMS
16359 else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then
16360 rxvt_cv_ptys=STREAMS
16361 else
16362 rxvt_cv_ptys=BSD
16363fi
16364fi
16365fi
16366fi
16367fi
16368fi
16369fi
16370fi
16371fi
16372 12129
16373fi
16374echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
16375echo "${ECHO_T}$rxvt_cv_ptys" >&6
16376 12130
16377if test x$rxvt_cv_ptys = xOPENPTY; then 12131for ac_header in \
12132 pty.h \
12133 util.h \
12134 libutil.h \
12135 sys/ioctl.h \
12136 sys/stropts.h \
16378 12137
16379cat >>confdefs.h <<\_ACEOF
16380#define PTYS_ARE_OPENPTY 1
16381_ACEOF
16382
16383fi
16384if test x$rxvt_cv_ptys = xSCO; then
16385
16386cat >>confdefs.h <<\_ACEOF
16387#define PTYS_ARE_NUMERIC 1
16388_ACEOF
16389
16390fi
16391if test x$rxvt_cv_ptys = xSTREAMS; then
16392
16393cat >>confdefs.h <<\_ACEOF
16394#define PTYS_ARE_PTMX 1
16395_ACEOF
16396
16397fi
16398if test x$rxvt_cv_ptys = xPTC; then
16399
16400cat >>confdefs.h <<\_ACEOF
16401#define PTYS_ARE_PTC 1
16402_ACEOF
16403
16404fi
16405if test x$rxvt_cv_ptys = xSGI4; then
16406
16407cat >>confdefs.h <<\_ACEOF
16408#define PTYS_ARE__GETPTY 1
16409_ACEOF
16410
16411fi
16412if test x$rxvt_cv_ptys = xCONVEX; then
16413
16414cat >>confdefs.h <<\_ACEOF
16415#define PTYS_ARE_GETPTY 1
16416_ACEOF
16417
16418fi
16419if test x$rxvt_cv_ptys = xGLIBC; then
16420
16421cat >>confdefs.h <<\_ACEOF
16422#define PTYS_ARE_GETPT 1
16423_ACEOF
16424
16425fi
16426if test x$rxvt_cv_ptys = xHPUX; then
16427
16428cat >>confdefs.h <<\_ACEOF
16429#define PTYS_ARE_CLONE 1
16430_ACEOF
16431
16432fi
16433if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then
16434
16435cat >>confdefs.h <<\_ACEOF
16436#define PTYS_ARE_SEARCHED 1
16437_ACEOF
16438
16439fi
16440
16441
16442{ echo "$as_me:$LINENO: checking for pty ranges..." >&5
16443echo "$as_me: checking for pty ranges..." >&6;}
16444ptys=`echo /dev/pty??`
16445pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
16446pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
16447if test x$pch1 != x; then
16448
16449cat >>confdefs.h <<_ACEOF
16450#define PTYCHAR1 "$pch1"
16451_ACEOF
16452
16453fi
16454if test x$pch2 != x; then
16455
16456cat >>confdefs.h <<_ACEOF
16457#define PTYCHAR2 "$pch2"
16458_ACEOF
16459
16460fi
16461
16462if test x$support_iso14755 = xyes; then
16463
16464cat >>confdefs.h <<\_ACEOF
16465#define ISO_14755 1
16466_ACEOF
16467
16468fi
16469if test x$support_8bitctrls = xyes; then
16470
16471cat >>confdefs.h <<\_ACEOF
16472#define EIGHT_BIT_CONTROLS 1
16473_ACEOF
16474
16475fi
16476if test x$support_fading = xyes; then
16477
16478cat >>confdefs.h <<\_ACEOF
16479#define OFF_FOCUS_FADING 1
16480_ACEOF
16481
16482fi
16483if test x$support_tinting = xyes; then
16484
16485cat >>confdefs.h <<\_ACEOF
16486#define TINTING 1
16487_ACEOF
16488
16489fi
16490if test x$support_inheritpixmap = xyes; then
16491
16492cat >>confdefs.h <<\_ACEOF
16493#define TRANSPARENT 1
16494_ACEOF
16495
16496fi
16497if test x$support_keepscrolling = xno; then
16498
16499cat >>confdefs.h <<\_ACEOF
16500#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
16501_ACEOF
16502
16503fi
16504if test x$support_selectionscrolling = xyes; then
16505
16506cat >>confdefs.h <<\_ACEOF
16507#define SELECTION_SCROLLING 1
16508_ACEOF
16509
16510fi
16511if test x$support_menubar = xyes; then
16512
16513cat >>confdefs.h <<\_ACEOF
16514#define MENUBAR 1
16515_ACEOF
16516
16517fi
16518if test x$support_frills = xyes; then
16519
16520cat >>confdefs.h <<\_ACEOF
16521#define ENABLE_FRILLS 1
16522_ACEOF
16523
16524fi
16525if test x$support_linespace = xno; then
16526
16527cat >>confdefs.h <<\_ACEOF
16528#define NO_LINESPACE 1
16529_ACEOF
16530
16531fi
16532if test x$support_24bit = xyes; then
16533
16534cat >>confdefs.h <<\_ACEOF
16535#define PREFER_24BIT 1
16536_ACEOF
16537
16538fi
16539if test x$support_mousewheel = xyes; then
16540
16541cat >>confdefs.h <<\_ACEOF
16542#define MOUSE_WHEEL 1
16543_ACEOF
16544
16545fi
16546if test x$support_mouseslipwheel = xyes; then
16547
16548cat >>confdefs.h <<\_ACEOF
16549#define MOUSE_SLIP_WHEELING 1
16550_ACEOF
16551
16552fi
16553if test x$support_utmp = xyes; then
16554
16555cat >>confdefs.h <<\_ACEOF
16556#define UTMP_SUPPORT 1
16557_ACEOF
16558
16559fi
16560if test x$support_wtmp = xyes; then
16561
16562cat >>confdefs.h <<\_ACEOF
16563#define WTMP_SUPPORT 1
16564_ACEOF
16565
16566fi
16567if test x$support_lastlog = xyes; then
16568
16569cat >>confdefs.h <<\_ACEOF
16570#define LASTLOG_SUPPORT 1
16571_ACEOF
16572
16573fi
16574if test x$support_xim = xyes -o x$multichar_set = xyes; then
16575 if test x$rxvt_cv_func_xlocale = xyes; then
16576
16577cat >>confdefs.h <<\_ACEOF
16578#define USE_XIM 1
16579_ACEOF
16580
16581 fi
16582fi
16583if test x$support_xpm = xyes; then
16584
16585cat >>confdefs.h <<\_ACEOF
16586#define XPM_BACKGROUND 1
16587_ACEOF
16588
16589fi
16590if test x$support_scroll_rxvt = xyes; then
16591
16592cat >>confdefs.h <<\_ACEOF
16593#define RXVT_SCROLLBAR 1
16594_ACEOF
16595
16596 scrolltypes="rxvt"
16597fi
16598if test x$support_scroll_next = xyes; then
16599
16600cat >>confdefs.h <<\_ACEOF
16601#define NEXT_SCROLLBAR 1
16602_ACEOF
16603
16604 scrolltypes="$scrolltypes next"
16605fi
16606if test x$support_scroll_xterm = xyes; then
16607
16608cat >>confdefs.h <<\_ACEOF
16609#define XTERM_SCROLLBAR 1
16610_ACEOF
16611
16612 scrolltypes="$scrolltypes xterm"
16613fi
16614if test x$support_scroll_plain = xyes; then
16615
16616cat >>confdefs.h <<\_ACEOF
16617#define PLAIN_SCROLLBAR 1
16618_ACEOF
16619
16620 scrolltypes="$scrolltypes plain"
16621fi
16622if test x$support_pointer_blank = xyes; then
16623
16624cat >>confdefs.h <<\_ACEOF
16625#define POINTER_BLANK 1
16626_ACEOF
16627
16628fi
16629if test x$support_cursor_blink = xyes; then
16630
16631cat >>confdefs.h <<\_ACEOF
16632#define CURSOR_BLINK 1
16633_ACEOF
16634
16635fi
16636if test x$support_text_blink = xyes; then
16637
16638cat >>confdefs.h <<\_ACEOF
16639#define TEXT_BLINK 1
16640_ACEOF
16641
16642fi
16643if test x$support_unicode3 = xyes; then
16644
16645cat >>confdefs.h <<\_ACEOF
16646#define UNICODE_3 1
16647_ACEOF
16648
16649fi
16650if test x$support_combining = xyes; then
16651
16652cat >>confdefs.h <<\_ACEOF
16653#define ENABLE_COMBINING 1
16654_ACEOF
16655
16656fi
16657if test x$codesets = xall; then
16658 codesets=jp,jp-ext,kr,cn,cn-ext
16659fi
16660
16661cat >>confdefs.h <<\_ACEOF
16662#define ENCODING_EU 1
16663_ACEOF
16664
16665
16666cat >>confdefs.h <<\_ACEOF
16667#define ENCODING_VN 1
16668_ACEOF
16669
16670for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
16671 case "$codeset" in
16672 JP )
16673cat >>confdefs.h <<\_ACEOF
16674#define ENCODING_JP 1
16675_ACEOF
16676 ;;
16677 JP_EXT )
16678cat >>confdefs.h <<\_ACEOF
16679#define ENCODING_JP_EXT 1
16680_ACEOF
16681 ;;
16682 KR )
16683cat >>confdefs.h <<\_ACEOF
16684#define ENCODING_KR 1
16685_ACEOF
16686 ;;
16687 CN )
16688cat >>confdefs.h <<\_ACEOF
16689#define ENCODING_CN 1
16690_ACEOF
16691 ;;
16692 CN_EXT )
16693cat >>confdefs.h <<\_ACEOF
16694#define ENCODING_CN_EXT 1
16695_ACEOF
16696 ;;
16697 esac
16698done
16699
16700
16701CFLAGS=${CFLAGS--O}
16702LDFLAGS=${LDFLAGS--O}
16703
16704CPPFLAGS="$CPPFLAGS"
16705
16706
16707
16708
16709
16710
16711
16712if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
16713 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
16714 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
16715 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
16716 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
16717 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
16718fi
16719
16720
16721
16722
16723
16724if test x$support_addstrings = xno; then
16725
16726cat >>confdefs.h <<\_ACEOF
16727#define NO_STRINGS 1
16728_ACEOF
16729
16730fi
16731
16732MCOMMON=./autoconf/Make.common
16733
16734
16735test "$program_prefix" != NONE &&
16736 program_transform_name="s,^,$program_prefix,;$program_transform_name"
16737# Use a double $ so make ignores it.
16738test "$program_suffix" != NONE &&
16739 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
16740# Double any \ or $. echo might interpret backslashes.
16741# By default was `s,x,x', remove it if useless.
16742cat <<\_ACEOF >conftest.sed
16743s/[\\$]/&&/g;s/;s,x,x,$//
16744_ACEOF
16745program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
16746rm conftest.sed
16747
16748
16749
16750
16751
16752if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
16753 include_stdint_h="#include <stdint.h>"
16754else
16755 include_stdint_h="/* #include <stdint.h> */"
16756fi
16757if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
16758 include_stdarg_h="#include <cstdarg>"
16759else
16760 include_stdarg_h="/* #include <cstdarg> */"
16761fi
16762if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
16763 include_stdlib_h="#include <cstdlib>"
16764else
16765 include_stdlib_h="/* #include <cstdlib> */"
16766fi
16767if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
16768 include_unistd_h="#include <unistd.h>"
16769else
16770 include_unistd_h="/* #include <unistd.h> */"
16771fi
16772if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
16773 include_string_h="#include <cstring>"
16774else
16775 include_string_h="/* #include <cstring> */"
16776fi
16777if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
16778 include_fcntl_h="#include <fcntl.h>"
16779else
16780 include_fcntl_h="/* #include <fcntl.h> */"
16781fi
16782if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
16783 include_util_h="#include <util.h>"
16784else
16785 include_util_h="/* #include <util.h> */"
16786fi
16787if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
16788 include_assert_h="#include <assert.h>"
16789else
16790 include_assert_h="/* #include <assert.h> */"
16791fi
16792if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
16793 include_sys_ioctl_h="#include <sys/ioctl.h>"
16794else
16795 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
16796fi
16797if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
16798 include_sys_select_h="#include <sys/select.h>"
16799else
16800 include_sys_select_h="/* #include <sys/select.h> */"
16801fi
16802if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
16803 include_sys_strredir_h="#include <sys/strredir.h>"
16804else
16805 include_sys_strredir_h="/* #include <sys/strredir.h> */"
16806fi
16807if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
16808 include_sys_time_h="#include <sys/time.h>"
16809else
16810 include_sys_time_h="/* #include <sys/time.h> */"
16811fi
16812if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
16813 include_time_h="#include <time.h>"
16814else
16815 include_time_h="/* #include <time.h> */"
16816fi
16817
16818if test x$support_xft = xyes; then
16819 LIBS="$LIBS `pkg-config xft --libs`"
16820 CFLAGS="$CFLAGS `pkg-config xft --cflags`"
16821 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
16822
16823
16824for ac_header in X11/Xft/Xft.h
16825do 12138do
16826as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12139as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16827if eval "test \"\${$as_ac_Header+set}\" = set"; then 12140if eval "test \"\${$as_ac_Header+set}\" = set"; then
16828 echo "$as_me:$LINENO: checking for $ac_header" >&5 12141 echo "$as_me:$LINENO: checking for $ac_header" >&5
16829echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 12142echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16963if test `eval echo '${'$as_ac_Header'}'` = yes; then 12276if test `eval echo '${'$as_ac_Header'}'` = yes; then
16964 cat >>confdefs.h <<_ACEOF 12277 cat >>confdefs.h <<_ACEOF
16965#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12278#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16966_ACEOF 12279_ACEOF
16967 12280
12281fi
12282
12283done
12284
12285
12286
12287
12288
12289
12290
12291for ac_func in \
12292 revoke \
12293 _getpty \
12294 getpt \
12295 posix_openpt \
12296 isastream \
12297
12298do
12299as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12300echo "$as_me:$LINENO: checking for $ac_func" >&5
12301echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12302if eval "test \"\${$as_ac_var+set}\" = set"; then
12303 echo $ECHO_N "(cached) $ECHO_C" >&6
12304else
12305 cat >conftest.$ac_ext <<_ACEOF
12306/* confdefs.h. */
12307_ACEOF
12308cat confdefs.h >>conftest.$ac_ext
12309cat >>conftest.$ac_ext <<_ACEOF
12310/* end confdefs.h. */
12311/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12313#define $ac_func innocuous_$ac_func
12314
12315/* System header to define __stub macros and hopefully few prototypes,
12316 which can conflict with char $ac_func (); below.
12317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12318 <limits.h> exists even on freestanding compilers. */
12319
12320#ifdef __STDC__
12321# include <limits.h>
12322#else
12323# include <assert.h>
12324#endif
12325
12326#undef $ac_func
12327
12328/* Override any gcc2 internal prototype to avoid an error. */
12329#ifdef __cplusplus
12330extern "C"
12331{
12332#endif
12333/* We use char because int might match the return type of a gcc2
12334 builtin and then its argument prototype would still apply. */
12335char $ac_func ();
12336/* The GNU C library defines this for functions which it implements
12337 to always fail with ENOSYS. Some functions are actually named
12338 something starting with __ and the normal name is an alias. */
12339#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12340choke me
12341#else
12342char (*f) () = $ac_func;
12343#endif
12344#ifdef __cplusplus
12345}
12346#endif
12347
12348int
12349main ()
12350{
12351return f != $ac_func;
12352 ;
12353 return 0;
12354}
12355_ACEOF
12356rm -f conftest.$ac_objext conftest$ac_exeext
12357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12358 (eval $ac_link) 2>conftest.er1
12359 ac_status=$?
12360 grep -v '^ *+' conftest.er1 >conftest.err
12361 rm -f conftest.er1
12362 cat conftest.err >&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); } &&
12365 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367 (eval $ac_try) 2>&5
12368 ac_status=$?
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); }; } &&
12371 { ac_try='test -s conftest$ac_exeext'
12372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12373 (eval $ac_try) 2>&5
12374 ac_status=$?
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); }; }; then
12377 eval "$as_ac_var=yes"
12378else
12379 echo "$as_me: failed program was:" >&5
12380sed 's/^/| /' conftest.$ac_ext >&5
12381
12382eval "$as_ac_var=no"
12383fi
12384rm -f conftest.err conftest.$ac_objext \
12385 conftest$ac_exeext conftest.$ac_ext
12386fi
12387echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12388echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12389if test `eval echo '${'$as_ac_var'}'` = yes; then
12390 cat >>confdefs.h <<_ACEOF
12391#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12392_ACEOF
12393
12394fi
12395done
12396
12397
12398have_clone=no
12399
12400echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5
12401echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6
12402if test -e /dev/ptym/clone; then
12403 echo "$as_me:$LINENO: result: yes" >&5
12404echo "${ECHO_T}yes" >&6
12405
12406cat >>confdefs.h <<\_ACEOF
12407#define HAVE_DEV_CLONE 1
12408_ACEOF
12409
12410
12411cat >>confdefs.h <<\_ACEOF
12412#define CLONE_DEVICE "/dev/ptym/clone"
12413_ACEOF
12414
12415 have_clone=yes
12416else
12417 echo "$as_me:$LINENO: result: no" >&5
12418echo "${ECHO_T}no" >&6
12419fi
12420
12421echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12422echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
12423if test -e /dev/ptc; then
12424 echo "$as_me:$LINENO: result: yes" >&5
12425echo "${ECHO_T}yes" >&6
12426
12427cat >>confdefs.h <<\_ACEOF
12428#define HAVE_DEV_PTC 1
12429_ACEOF
12430
12431
12432cat >>confdefs.h <<\_ACEOF
12433#define CLONE_DEVICE "/dev/ptc"
12434_ACEOF
12435
12436 have_clone=yes
12437else
12438 echo "$as_me:$LINENO: result: no" >&5
12439echo "${ECHO_T}no" >&6
12440fi
12441
12442case $host in
12443 *-*-cygwin*)
12444 have_clone=yes
12445
12446cat >>confdefs.h <<\_ACEOF
12447#define CLONE_DEVICE "/dev/ptmx"
12448_ACEOF
12449
12450 ;;
12451 *)
12452 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
12453echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
12454 if test -e /dev/ptmx; then
12455 echo "$as_me:$LINENO: result: yes" >&5
12456echo "${ECHO_T}yes" >&6
12457
12458cat >>confdefs.h <<\_ACEOF
12459#define HAVE_DEV_PTMX 1
12460_ACEOF
12461
12462
12463cat >>confdefs.h <<\_ACEOF
12464#define CLONE_DEVICE "/dev/ptmx"
12465_ACEOF
12466
12467 have_clone=yes
12468 else
12469 echo "$as_me:$LINENO: result: no" >&5
12470echo "${ECHO_T}no" >&6
12471 fi
12472 ;;
12473esac
12474
12475if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then
12476 echo "$as_me:$LINENO: checking for UNIX98 ptys" >&5
12477echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6
12478 cat >conftest.$ac_ext <<_ACEOF
12479/* confdefs.h. */
12480_ACEOF
12481cat confdefs.h >>conftest.$ac_ext
12482cat >>conftest.$ac_ext <<_ACEOF
12483/* end confdefs.h. */
12484#include <stdlib.h>
12485int
12486main ()
12487{
12488grantpt(0);unlockpt(0);ptsname(0);
12489 ;
12490 return 0;
12491}
12492_ACEOF
12493rm -f conftest.$ac_objext conftest$ac_exeext
12494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12495 (eval $ac_link) 2>conftest.er1
12496 ac_status=$?
12497 grep -v '^ *+' conftest.er1 >conftest.err
12498 rm -f conftest.er1
12499 cat conftest.err >&5
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); } &&
12502 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12504 (eval $ac_try) 2>&5
12505 ac_status=$?
12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); }; } &&
12508 { ac_try='test -s conftest$ac_exeext'
12509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510 (eval $ac_try) 2>&5
12511 ac_status=$?
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); }; }; then
12514 unix98_pty=yes
12515
12516cat >>confdefs.h <<\_ACEOF
12517#define UNIX98_PTY 1
12518_ACEOF
12519
12520 echo "$as_me:$LINENO: result: yes" >&5
12521echo "${ECHO_T}yes" >&6
12522else
12523 echo "$as_me: failed program was:" >&5
12524sed 's/^/| /' conftest.$ac_ext >&5
12525
12526echo "$as_me:$LINENO: result: no" >&5
12527echo "${ECHO_T}no" >&6
12528fi
12529rm -f conftest.err conftest.$ac_objext \
12530 conftest$ac_exeext conftest.$ac_ext
12531fi
12532
12533if test -z "$unix98_pty"; then
12534
12535for ac_func in openpty
12536do
12537as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12538echo "$as_me:$LINENO: checking for $ac_func" >&5
12539echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12540if eval "test \"\${$as_ac_var+set}\" = set"; then
12541 echo $ECHO_N "(cached) $ECHO_C" >&6
12542else
12543 cat >conftest.$ac_ext <<_ACEOF
12544/* confdefs.h. */
12545_ACEOF
12546cat confdefs.h >>conftest.$ac_ext
12547cat >>conftest.$ac_ext <<_ACEOF
12548/* end confdefs.h. */
12549/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12551#define $ac_func innocuous_$ac_func
12552
12553/* System header to define __stub macros and hopefully few prototypes,
12554 which can conflict with char $ac_func (); below.
12555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12556 <limits.h> exists even on freestanding compilers. */
12557
12558#ifdef __STDC__
12559# include <limits.h>
12560#else
12561# include <assert.h>
12562#endif
12563
12564#undef $ac_func
12565
12566/* Override any gcc2 internal prototype to avoid an error. */
12567#ifdef __cplusplus
12568extern "C"
12569{
12570#endif
12571/* We use char because int might match the return type of a gcc2
12572 builtin and then its argument prototype would still apply. */
12573char $ac_func ();
12574/* The GNU C library defines this for functions which it implements
12575 to always fail with ENOSYS. Some functions are actually named
12576 something starting with __ and the normal name is an alias. */
12577#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12578choke me
12579#else
12580char (*f) () = $ac_func;
12581#endif
12582#ifdef __cplusplus
12583}
12584#endif
12585
12586int
12587main ()
12588{
12589return f != $ac_func;
12590 ;
12591 return 0;
12592}
12593_ACEOF
12594rm -f conftest.$ac_objext conftest$ac_exeext
12595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12596 (eval $ac_link) 2>conftest.er1
12597 ac_status=$?
12598 grep -v '^ *+' conftest.er1 >conftest.err
12599 rm -f conftest.er1
12600 cat conftest.err >&5
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); } &&
12603 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12605 (eval $ac_try) 2>&5
12606 ac_status=$?
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); }; } &&
12609 { ac_try='test -s conftest$ac_exeext'
12610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12611 (eval $ac_try) 2>&5
12612 ac_status=$?
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); }; }; then
12615 eval "$as_ac_var=yes"
12616else
12617 echo "$as_me: failed program was:" >&5
12618sed 's/^/| /' conftest.$ac_ext >&5
12619
12620eval "$as_ac_var=no"
12621fi
12622rm -f conftest.err conftest.$ac_objext \
12623 conftest$ac_exeext conftest.$ac_ext
12624fi
12625echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12626echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12627if test `eval echo '${'$as_ac_var'}'` = yes; then
12628 cat >>confdefs.h <<_ACEOF
12629#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12630_ACEOF
12631
12632else
12633 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
12634echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
12635if test "${ac_cv_lib_util_openpty+set}" = set; then
12636 echo $ECHO_N "(cached) $ECHO_C" >&6
12637else
12638 ac_check_lib_save_LIBS=$LIBS
12639LIBS="-lutil $LIBS"
12640cat >conftest.$ac_ext <<_ACEOF
12641/* confdefs.h. */
12642_ACEOF
12643cat confdefs.h >>conftest.$ac_ext
12644cat >>conftest.$ac_ext <<_ACEOF
12645/* end confdefs.h. */
12646
12647/* Override any gcc2 internal prototype to avoid an error. */
12648#ifdef __cplusplus
12649extern "C"
12650#endif
12651/* We use char because int might match the return type of a gcc2
12652 builtin and then its argument prototype would still apply. */
12653char openpty ();
12654int
12655main ()
12656{
12657openpty ();
12658 ;
12659 return 0;
12660}
12661_ACEOF
12662rm -f conftest.$ac_objext conftest$ac_exeext
12663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12664 (eval $ac_link) 2>conftest.er1
12665 ac_status=$?
12666 grep -v '^ *+' conftest.er1 >conftest.err
12667 rm -f conftest.er1
12668 cat conftest.err >&5
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); } &&
12671 { ac_try='test -z "$ac_cxx_werror_flag" || 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_exeext'
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_cv_lib_util_openpty=yes
12684else
12685 echo "$as_me: failed program was:" >&5
12686sed 's/^/| /' conftest.$ac_ext >&5
12687
12688ac_cv_lib_util_openpty=no
12689fi
12690rm -f conftest.err conftest.$ac_objext \
12691 conftest$ac_exeext conftest.$ac_ext
12692LIBS=$ac_check_lib_save_LIBS
12693fi
12694echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
12695echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
12696if test $ac_cv_lib_util_openpty = yes; then
12697 cat >>confdefs.h <<\_ACEOF
12698#define HAVE_OPENPTY 1
12699_ACEOF
12700 LIBS="$LIBS -lutil"
12701fi
12702
12703fi
12704done
12705
12706fi
12707
12708
12709
12710echo "$as_me:$LINENO: checking for tty group" >&5
12711echo $ECHO_N "checking for tty group... $ECHO_C" >&6
12712if test "${tty_group+set}" = set; then
12713 echo $ECHO_N "(cached) $ECHO_C" >&6
12714else
12715 if test "$cross_compiling" = yes; then
12716 tty_group=no
12717else
12718 cat >conftest.$ac_ext <<_ACEOF
12719/* confdefs.h. */
12720_ACEOF
12721cat confdefs.h >>conftest.$ac_ext
12722cat >>conftest.$ac_ext <<_ACEOF
12723/* end confdefs.h. */
12724
12725#include <sys/types.h>
12726#include <sys/stat.h>
12727#include <unistd.h>
12728#include <grp.h>
12729
12730main()
12731{
12732 struct stat st;
12733 struct group *gr;
12734 char *tty;
12735 gr = getgrnam("tty");
12736 tty = ttyname(0);
12737 if (gr != 0
12738 && tty != 0
12739 && (stat(tty, &st)) == 0
12740 && st.st_gid == gr->gr_gid)
12741 return 0;
12742 else
12743 return 1;
12744}
12745_ACEOF
12746rm -f conftest$ac_exeext
12747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12748 (eval $ac_link) 2>&5
12749 ac_status=$?
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12753 (eval $ac_try) 2>&5
12754 ac_status=$?
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); }; }; then
12757 tty_group=yes
12758else
12759 echo "$as_me: program exited with status $ac_status" >&5
12760echo "$as_me: failed program was:" >&5
12761sed 's/^/| /' conftest.$ac_ext >&5
12762
12763( exit $ac_status )
12764tty_group=no
12765fi
12766rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12767fi
12768fi
12769echo "$as_me:$LINENO: result: $tty_group" >&5
12770echo "${ECHO_T}$tty_group" >&6
12771if test x$tty_group = xyes; then
12772
12773cat >>confdefs.h <<\_ACEOF
12774#define TTY_GID_SUPPORT 1
12775_ACEOF
12776
12777fi
12778
12779if test x$support_xft = xyes; then
12780 # Extract the first word of "pkg-config", so it can be a program name with args.
12781set dummy pkg-config; ac_word=$2
12782echo "$as_me:$LINENO: checking for $ac_word" >&5
12783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12784if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12785 echo $ECHO_N "(cached) $ECHO_C" >&6
12786else
12787 case $PKG_CONFIG in
12788 [\\/]* | ?:[\\/]*)
12789 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12790 ;;
12791 *)
12792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12793for as_dir in $PATH
12794do
12795 IFS=$as_save_IFS
12796 test -z "$as_dir" && as_dir=.
12797 for ac_exec_ext in '' $ac_executable_extensions; do
12798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12799 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12801 break 2
12802 fi
12803done
12804done
12805
12806 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12807 ;;
12808esac
12809fi
12810PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12811
12812if test -n "$PKG_CONFIG"; then
12813 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12814echo "${ECHO_T}$PKG_CONFIG" >&6
12815else
12816 echo "$as_me:$LINENO: result: no" >&5
12817echo "${ECHO_T}no" >&6
12818fi
12819
12820 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
12821 LIBS="$LIBS `$PKG_CONFIG xft --libs`"
12822 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
12823 else
12824 # Extract the first word of "xft-config", so it can be a program name with args.
12825set dummy xft-config; ac_word=$2
12826echo "$as_me:$LINENO: checking for $ac_word" >&5
12827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12828if test "${ac_cv_path_XFT_CONFIG+set}" = set; then
12829 echo $ECHO_N "(cached) $ECHO_C" >&6
12830else
12831 case $XFT_CONFIG in
12832 [\\/]* | ?:[\\/]*)
12833 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
12834 ;;
12835 *)
12836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12837for as_dir in $PATH
12838do
12839 IFS=$as_save_IFS
12840 test -z "$as_dir" && as_dir=.
12841 for ac_exec_ext in '' $ac_executable_extensions; do
12842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12843 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12845 break 2
12846 fi
12847done
12848done
12849
12850 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
12851 ;;
12852esac
12853fi
12854XFT_CONFIG=$ac_cv_path_XFT_CONFIG
12855
12856if test -n "$XFT_CONFIG"; then
12857 echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5
12858echo "${ECHO_T}$XFT_CONFIG" >&6
12859else
12860 echo "$as_me:$LINENO: result: no" >&5
12861echo "${ECHO_T}no" >&6
12862fi
12863
12864 if test $XFT_CONFIG != no; then
12865 LIBS="$LIBS `$XFT_CONFIG --libs`"
12866 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
12867 fi
12868 fi
12869
12870
12871for ac_header in X11/Xft/Xft.h
12872do
12873as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12874if eval "test \"\${$as_ac_Header+set}\" = set"; then
12875 echo "$as_me:$LINENO: checking for $ac_header" >&5
12876echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12877if eval "test \"\${$as_ac_Header+set}\" = set"; then
12878 echo $ECHO_N "(cached) $ECHO_C" >&6
12879fi
12880echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12881echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12882else
12883 # Is the header compilable?
12884echo "$as_me:$LINENO: checking $ac_header usability" >&5
12885echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12886cat >conftest.$ac_ext <<_ACEOF
12887/* confdefs.h. */
12888_ACEOF
12889cat confdefs.h >>conftest.$ac_ext
12890cat >>conftest.$ac_ext <<_ACEOF
12891/* end confdefs.h. */
12892$ac_includes_default
12893#include <$ac_header>
12894_ACEOF
12895rm -f conftest.$ac_objext
12896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12897 (eval $ac_compile) 2>conftest.er1
12898 ac_status=$?
12899 grep -v '^ *+' conftest.er1 >conftest.err
12900 rm -f conftest.er1
12901 cat conftest.err >&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); } &&
12904 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12906 (eval $ac_try) 2>&5
12907 ac_status=$?
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); }; } &&
12910 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
12916 ac_header_compiler=yes
12917else
12918 echo "$as_me: failed program was:" >&5
12919sed 's/^/| /' conftest.$ac_ext >&5
12920
12921ac_header_compiler=no
12922fi
12923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12924echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12925echo "${ECHO_T}$ac_header_compiler" >&6
12926
12927# Is the header present?
12928echo "$as_me:$LINENO: checking $ac_header presence" >&5
12929echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12930cat >conftest.$ac_ext <<_ACEOF
12931/* confdefs.h. */
12932_ACEOF
12933cat confdefs.h >>conftest.$ac_ext
12934cat >>conftest.$ac_ext <<_ACEOF
12935/* end confdefs.h. */
12936#include <$ac_header>
12937_ACEOF
12938if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12940 ac_status=$?
12941 grep -v '^ *+' conftest.er1 >conftest.err
12942 rm -f conftest.er1
12943 cat conftest.err >&5
12944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945 (exit $ac_status); } >/dev/null; then
12946 if test -s conftest.err; then
12947 ac_cpp_err=$ac_cxx_preproc_warn_flag
12948 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12949 else
12950 ac_cpp_err=
12951 fi
12952else
12953 ac_cpp_err=yes
12954fi
12955if test -z "$ac_cpp_err"; then
12956 ac_header_preproc=yes
12957else
12958 echo "$as_me: failed program was:" >&5
12959sed 's/^/| /' conftest.$ac_ext >&5
12960
12961 ac_header_preproc=no
12962fi
12963rm -f conftest.err conftest.$ac_ext
12964echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12965echo "${ECHO_T}$ac_header_preproc" >&6
12966
12967# So? What about this header?
12968case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12969 yes:no: )
12970 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12971echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12973echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12974 ac_header_preproc=yes
12975 ;;
12976 no:yes:* )
12977 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12978echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12979 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12980echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12981 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12982echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12983 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12984echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12986echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12987 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12988echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12989 (
12990 cat <<\_ASBOX
12991## ------------------------------------------ ##
12992## Report this to the AC_PACKAGE_NAME lists. ##
12993## ------------------------------------------ ##
12994_ASBOX
12995 ) |
12996 sed "s/^/$as_me: WARNING: /" >&2
12997 ;;
12998esac
12999echo "$as_me:$LINENO: checking for $ac_header" >&5
13000echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13001if eval "test \"\${$as_ac_Header+set}\" = set"; then
13002 echo $ECHO_N "(cached) $ECHO_C" >&6
13003else
13004 eval "$as_ac_Header=\$ac_header_preproc"
13005fi
13006echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13007echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13008
13009fi
13010if test `eval echo '${'$as_ac_Header'}'` = yes; then
13011 cat >>confdefs.h <<_ACEOF
13012#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13013_ACEOF
13014
16968else 13015else
16969 support_xft=no 13016 support_xft=no
16970fi 13017fi
16971 13018
16972done 13019done
17053#define XFT 1 13100#define XFT 1
17054_ACEOF 13101_ACEOF
17055 13102
17056 fi 13103 fi
17057fi 13104fi
13105if test x$support_styles = xyes; then
17058 13106
13107cat >>confdefs.h <<\_ACEOF
13108#define ENABLE_STYLES 1
13109_ACEOF
13110
13111fi
13112if test x$support_iso14755 = xyes; then
13113
13114cat >>confdefs.h <<\_ACEOF
13115#define ISO_14755 1
13116_ACEOF
13117
13118fi
13119if test x$support_8bitctrls = xyes; then
13120
13121cat >>confdefs.h <<\_ACEOF
13122#define EIGHT_BIT_CONTROLS 1
13123_ACEOF
13124
13125fi
13126if test x$support_fading = xyes; then
13127
13128cat >>confdefs.h <<\_ACEOF
13129#define OFF_FOCUS_FADING 1
13130_ACEOF
13131
13132fi
13133if test x$support_tinting = xyes; then
13134
13135cat >>confdefs.h <<\_ACEOF
13136#define TINTING 1
13137_ACEOF
13138
13139fi
13140if test x$support_inheritpixmap = xyes; then
13141
13142cat >>confdefs.h <<\_ACEOF
13143#define TRANSPARENT 1
13144_ACEOF
13145
13146fi
13147if test x$support_keepscrolling = xno; then
13148
13149cat >>confdefs.h <<\_ACEOF
13150#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
13151_ACEOF
13152
13153fi
13154if test x$support_selectionscrolling = xyes; then
13155
13156cat >>confdefs.h <<\_ACEOF
13157#define SELECTION_SCROLLING 1
13158_ACEOF
13159
13160fi
13161if test x$support_frills = xyes; then
13162
13163cat >>confdefs.h <<\_ACEOF
13164#define ENABLE_FRILLS 1
13165_ACEOF
13166
13167fi
13168if test x$support_24bit = xyes; then
13169
13170cat >>confdefs.h <<\_ACEOF
13171#define PREFER_24BIT 1
13172_ACEOF
13173
13174fi
13175if test x$support_mousewheel = xyes; then
13176
13177cat >>confdefs.h <<\_ACEOF
13178#define MOUSE_WHEEL 1
13179_ACEOF
13180
13181fi
13182if test x$support_mouseslipwheel = xyes; then
13183
13184cat >>confdefs.h <<\_ACEOF
13185#define MOUSE_SLIP_WHEELING 1
13186_ACEOF
13187
13188fi
13189if test x$support_utmp = xyes; then
13190
13191cat >>confdefs.h <<\_ACEOF
13192#define UTMP_SUPPORT 1
13193_ACEOF
13194
13195fi
13196if test x$support_wtmp = xyes; then
13197
13198cat >>confdefs.h <<\_ACEOF
13199#define WTMP_SUPPORT 1
13200_ACEOF
13201
13202fi
13203if test x$support_lastlog = xyes; then
13204
13205cat >>confdefs.h <<\_ACEOF
13206#define LASTLOG_SUPPORT 1
13207_ACEOF
13208
13209fi
13210if test x$support_xim = xyes -o x$multichar_set = xyes; then
13211 if test x$rxvt_cv_func_xlocale = xyes; then
13212
13213cat >>confdefs.h <<\_ACEOF
13214#define USE_XIM 1
13215_ACEOF
13216
13217 fi
13218fi
13219if test x$support_xpm = xyes; then
13220
13221cat >>confdefs.h <<\_ACEOF
13222#define XPM_BACKGROUND 1
13223_ACEOF
13224
13225fi
13226if test x$support_scroll_rxvt = xyes; then
13227
13228cat >>confdefs.h <<\_ACEOF
13229#define RXVT_SCROLLBAR 1
13230_ACEOF
13231
13232 scrolltypes="rxvt"
13233fi
13234if test x$support_scroll_next = xyes; then
13235
13236cat >>confdefs.h <<\_ACEOF
13237#define NEXT_SCROLLBAR 1
13238_ACEOF
13239
13240 scrolltypes="$scrolltypes next"
13241fi
13242if test x$support_scroll_xterm = xyes; then
13243
13244cat >>confdefs.h <<\_ACEOF
13245#define XTERM_SCROLLBAR 1
13246_ACEOF
13247
13248 scrolltypes="$scrolltypes xterm"
13249fi
13250if test x$support_scroll_plain = xyes; then
13251
13252cat >>confdefs.h <<\_ACEOF
13253#define PLAIN_SCROLLBAR 1
13254_ACEOF
13255
13256 scrolltypes="$scrolltypes plain"
13257fi
13258if test x$support_pointer_blank = xyes; then
13259
13260cat >>confdefs.h <<\_ACEOF
13261#define POINTER_BLANK 1
13262_ACEOF
13263
13264fi
13265if test x$support_text_blink = xyes; then
13266
13267cat >>confdefs.h <<\_ACEOF
13268#define TEXT_BLINK 1
13269_ACEOF
13270
13271fi
13272if test x$support_unicode3 = xyes; then
13273
13274cat >>confdefs.h <<\_ACEOF
13275#define UNICODE_3 1
13276_ACEOF
13277
13278fi
13279if test x$support_combining = xyes; then
13280
13281cat >>confdefs.h <<\_ACEOF
13282#define ENABLE_COMBINING 1
13283_ACEOF
13284
13285fi
13286if test x$codesets = xall; then
13287 codesets=jp,jp-ext,kr,zh,zh-ext
13288fi
13289
13290cat >>confdefs.h <<\_ACEOF
13291#define ENCODING_EU 1
13292_ACEOF
13293
13294
13295cat >>confdefs.h <<\_ACEOF
13296#define ENCODING_VN 1
13297_ACEOF
13298
13299for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
13300 case "$codeset" in
13301 JP )
13302cat >>confdefs.h <<\_ACEOF
13303#define ENCODING_JP 1
13304_ACEOF
13305 ;;
13306 JP_EXT )
13307cat >>confdefs.h <<\_ACEOF
13308#define ENCODING_JP_EXT 1
13309_ACEOF
13310 ;;
13311 KR )
13312cat >>confdefs.h <<\_ACEOF
13313#define ENCODING_KR 1
13314_ACEOF
13315 ;;
13316 ZH )
13317cat >>confdefs.h <<\_ACEOF
13318#define ENCODING_ZH 1
13319_ACEOF
13320 ;;
13321 ZH_EXT )
13322cat >>confdefs.h <<\_ACEOF
13323#define ENCODING_ZH_EXT 1
13324_ACEOF
13325 ;;
13326 esac
13327done
13328
13329IF_PERL=\#
13330if test x$support_perl = xyes; then
13331 # Extract the first word of "perl5", so it can be a program name with args.
13332set dummy perl5; ac_word=$2
13333echo "$as_me:$LINENO: checking for $ac_word" >&5
13334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13335if test "${ac_cv_path_PERL+set}" = set; then
13336 echo $ECHO_N "(cached) $ECHO_C" >&6
13337else
13338 case $PERL in
13339 [\\/]* | ?:[\\/]*)
13340 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13341 ;;
13342 *)
13343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13344for as_dir in $PATH
13345do
13346 IFS=$as_save_IFS
13347 test -z "$as_dir" && as_dir=.
13348 for ac_exec_ext in '' $ac_executable_extensions; do
13349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13350 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13352 break 2
13353 fi
13354done
13355done
13356
13357 ;;
13358esac
13359fi
13360PERL=$ac_cv_path_PERL
13361
13362if test -n "$PERL"; then
13363 echo "$as_me:$LINENO: result: $PERL" >&5
13364echo "${ECHO_T}$PERL" >&6
13365else
13366 echo "$as_me:$LINENO: result: no" >&5
13367echo "${ECHO_T}no" >&6
13368fi
13369
13370 # Extract the first word of "perl", so it can be a program name with args.
13371set dummy perl; ac_word=$2
13372echo "$as_me:$LINENO: checking for $ac_word" >&5
13373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13374if test "${ac_cv_path_PERL+set}" = set; then
13375 echo $ECHO_N "(cached) $ECHO_C" >&6
13376else
13377 case $PERL in
13378 [\\/]* | ?:[\\/]*)
13379 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13380 ;;
13381 *)
13382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13383for as_dir in $PATH
13384do
13385 IFS=$as_save_IFS
13386 test -z "$as_dir" && as_dir=.
13387 for ac_exec_ext in '' $ac_executable_extensions; do
13388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13389 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13391 break 2
13392 fi
13393done
13394done
13395
13396 ;;
13397esac
13398fi
13399PERL=$ac_cv_path_PERL
13400
13401if test -n "$PERL"; then
13402 echo "$as_me:$LINENO: result: $PERL" >&5
13403echo "${ECHO_T}$PERL" >&6
13404else
13405 echo "$as_me:$LINENO: result: no" >&5
13406echo "${ECHO_T}no" >&6
13407fi
13408
13409
13410 echo "$as_me:$LINENO: checking for $PERL suitability" >&5
13411echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6
13412 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
13413
13414 save_CXXFLAGS="$CXXFLAGS"
13415 save_LIBS="$LIBS"
13416 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
13417 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
13418 cat >conftest.$ac_ext <<_ACEOF
13419/* confdefs.h. */
13420_ACEOF
13421cat confdefs.h >>conftest.$ac_ext
13422cat >>conftest.$ac_ext <<_ACEOF
13423/* end confdefs.h. */
13424
13425#include <EXTERN.h>
13426#include <perl.h>
13427#include <XSUB.h>
13428
13429int
13430main ()
13431{
13432
13433 PerlInterpreter *perl = perl_alloc ();
13434
13435 ;
13436 return 0;
13437}
13438_ACEOF
13439rm -f conftest.$ac_objext conftest$ac_exeext
13440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13441 (eval $ac_link) 2>conftest.er1
13442 ac_status=$?
13443 grep -v '^ *+' conftest.er1 >conftest.err
13444 rm -f conftest.er1
13445 cat conftest.err >&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); } &&
13448 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450 (eval $ac_try) 2>&5
13451 ac_status=$?
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); }; } &&
13454 { ac_try='test -s conftest$ac_exeext'
13455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13456 (eval $ac_try) 2>&5
13457 ac_status=$?
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); }; }; then
13460 rxvt_perl_link=yes
13461else
13462 echo "$as_me: failed program was:" >&5
13463sed 's/^/| /' conftest.$ac_ext >&5
13464
13465rxvt_perl_link=no
13466fi
13467rm -f conftest.err conftest.$ac_objext \
13468 conftest$ac_exeext conftest.$ac_ext
13469 CXXFLAGS="$save_CXXFLAGS"
13470 LIBS="$save_LIBS"
13471
13472 if test x$rxvt_perl_link = xyes; then
13473 echo "$as_me:$LINENO: result: ok" >&5
13474echo "${ECHO_T}ok" >&6
13475
13476cat >>confdefs.h <<\_ACEOF
13477#define ENABLE_PERL 1
13478_ACEOF
13479
13480 IF_PERL=
13481 PERL_O=rxvtperl.o
13482 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
13483 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
13484 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
13485 else
13486 { { echo "$as_me:$LINENO: error: no, unable to link" >&5
13487echo "$as_me: error: no, unable to link" >&2;}
13488 { (exit 1); exit 1; }; }
13489 fi
13490 else
13491 { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5
13492echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;}
13493 { (exit 1); exit 1; }; }
13494 fi
13495fi
13496
13497
13498
13499
13500
13501
13502
13503if test x$support_perl = xyes; then
13504 support_frills=yes
13505fi
13506
13507
13508CFLAGS=${CFLAGS--O}
13509LDFLAGS=${LDFLAGS--O}
13510
13511CPPFLAGS="$CPPFLAGS"
13512
13513
13514
13515
13516
13517
13518
13519if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
13520 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
13521 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
13522 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
13523 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
13524 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
13525fi
13526
13527
13528
13529
13530
13531test "$program_prefix" != NONE &&
13532 program_transform_name="s,^,$program_prefix,;$program_transform_name"
13533# Use a double $ so make ignores it.
13534test "$program_suffix" != NONE &&
13535 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
13536# Double any \ or $. echo might interpret backslashes.
13537# By default was `s,x,x', remove it if useless.
13538cat <<\_ACEOF >conftest.sed
13539s/[\\$]/&&/g;s/;s,x,x,$//
13540_ACEOF
13541program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
13542rm conftest.sed
13543
13544
13545
13546
13547
13548if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
13549 include_stdint_h="#include <stdint.h>"
13550else
13551 include_stdint_h="/* #include <stdint.h> */"
13552fi
13553if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
13554 include_stdarg_h="#include <cstdarg>"
13555else
13556 include_stdarg_h="/* #include <cstdarg> */"
13557fi
13558if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
13559 include_stdlib_h="#include <cstdlib>"
13560else
13561 include_stdlib_h="/* #include <cstdlib> */"
13562fi
13563if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
13564 include_unistd_h="#include <unistd.h>"
13565else
13566 include_unistd_h="/* #include <unistd.h> */"
13567fi
13568if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
13569 include_string_h="#include <cstring>"
13570else
13571 include_string_h="/* #include <cstring> */"
13572fi
13573if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
13574 include_fcntl_h="#include <fcntl.h>"
13575else
13576 include_fcntl_h="/* #include <fcntl.h> */"
13577fi
13578if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
13579 include_util_h="#include <util.h>"
13580else
13581 include_util_h="/* #include <util.h> */"
13582fi
13583if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
13584 include_assert_h="#include <assert.h>"
13585else
13586 include_assert_h="/* #include <assert.h> */"
13587fi
13588if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
13589 include_sys_ioctl_h="#include <sys/ioctl.h>"
13590else
13591 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
13592fi
13593if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
13594 include_sys_select_h="#include <sys/select.h>"
13595else
13596 include_sys_select_h="/* #include <sys/select.h> */"
13597fi
13598if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
13599 include_sys_strredir_h="#include <sys/strredir.h>"
13600else
13601 include_sys_strredir_h="/* #include <sys/strredir.h> */"
13602fi
13603if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
13604 include_sys_time_h="#include <sys/time.h>"
13605else
13606 include_sys_time_h="/* #include <sys/time.h> */"
13607fi
13608if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
13609 include_time_h="#include <time.h>"
13610else
13611 include_time_h="/* #include <time.h> */"
13612fi
13613
17059 ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/test/Makefile src/rxvtlib.h W11/Makefile" 13614 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h"
17060 13615
17061cat >confcache <<\_ACEOF 13616cat >confcache <<\_ACEOF
17062# This file is a shell script that caches the results of configure 13617# This file is a shell script that caches the results of configure
17063# tests run on this system so they can be shared between configure 13618# tests run on this system so they can be shared between configure
17064# scripts and configure runs, see configure's option --config-cache. 13619# scripts and configure runs, see configure's option --config-cache.
17581cat >>$CONFIG_STATUS <<\_ACEOF 14136cat >>$CONFIG_STATUS <<\_ACEOF
17582for ac_config_target in $ac_config_targets 14137for ac_config_target in $ac_config_targets
17583do 14138do
17584 case "$ac_config_target" in 14139 case "$ac_config_target" in
17585 # Handling of arguments. 14140 # Handling of arguments.
17586 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
17587 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14141 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17588 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 14142 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17589 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 14143 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17590 "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
17591 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; 14144 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
17592 "W11/Makefile" ) CONFIG_FILES="$CONFIG_FILES W11/Makefile" ;;
17593 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;; 14145 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
17594 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 14146 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17595echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 14147echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17596 { (exit 1); exit 1; }; };; 14148 { (exit 1); exit 1; }; };;
17597 esac 14149 esac
17598done 14150done
17673s,@DEFS@,$DEFS,;t t 14225s,@DEFS@,$DEFS,;t t
17674s,@ECHO_C@,$ECHO_C,;t t 14226s,@ECHO_C@,$ECHO_C,;t t
17675s,@ECHO_N@,$ECHO_N,;t t 14227s,@ECHO_N@,$ECHO_N,;t t
17676s,@ECHO_T@,$ECHO_T,;t t 14228s,@ECHO_T@,$ECHO_T,;t t
17677s,@LIBS@,$LIBS,;t t 14229s,@LIBS@,$LIBS,;t t
14230s,@build@,$build,;t t
14231s,@build_cpu@,$build_cpu,;t t
14232s,@build_vendor@,$build_vendor,;t t
14233s,@build_os@,$build_os,;t t
14234s,@host@,$host,;t t
14235s,@host_cpu@,$host_cpu,;t t
14236s,@host_vendor@,$host_vendor,;t t
14237s,@host_os@,$host_os,;t t
17678s,@VERSION@,$VERSION,;t t 14238s,@VERSION@,$VERSION,;t t
17679s,@DATE@,$DATE,;t t 14239s,@DATE@,$DATE,;t t
17680s,@LSMDATE@,$LSMDATE,;t t 14240s,@LSMDATE@,$LSMDATE,;t t
17681s,@LIBVERSION@,$LIBVERSION,;t t 14241s,@LIBVERSION@,$LIBVERSION,;t t
17682s,@CC@,$CC,;t t 14242s,@CC@,$CC,;t t
17691s,@ac_ct_CXX@,$ac_ct_CXX,;t t 14251s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17692s,@CPP@,$CPP,;t t 14252s,@CPP@,$CPP,;t t
17693s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 14253s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17694s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 14254s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17695s,@INSTALL_DATA@,$INSTALL_DATA,;t t 14255s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17696s,@AWK@,$AWK,;t t 14256s,@EGREP@,$EGREP,;t t
17697s,@LINKER@,$LINKER,;t t 14257s,@LINKER@,$LINKER,;t t
17698s,@CXXCPP@,$CXXCPP,;t t
17699s,@EGREP@,$EGREP,;t t
17700s,@build@,$build,;t t
17701s,@build_cpu@,$build_cpu,;t t
17702s,@build_vendor@,$build_vendor,;t t
17703s,@build_os@,$build_os,;t t
17704s,@host@,$host,;t t
17705s,@host_cpu@,$host_cpu,;t t
17706s,@host_vendor@,$host_vendor,;t t
17707s,@host_os@,$host_os,;t t
17708s,@LN_S@,$LN_S,;t t
17709s,@ECHO@,$ECHO,;t t
17710s,@RANLIB@,$RANLIB,;t t
17711s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17712s,@STRIP@,$STRIP,;t t
17713s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17714s,@LIBTOOL@,$LIBTOOL,;t t
17715s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t 14258s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
17716s,@RXVTNAME@,$RXVTNAME,;t t 14259s,@RXVTNAME@,$RXVTNAME,;t t
17717s,@MV@,$MV,;t t 14260s,@MV@,$MV,;t t
17718s,@RM@,$RM,;t t 14261s,@RM@,$RM,;t t
17719s,@CP@,$CP,;t t 14262s,@CP@,$CP,;t t
17720s,@LN@,$LN,;t t 14263s,@LN@,$LN,;t t
17721s,@SED@,$SED,;t t 14264s,@SED@,$SED,;t t
14265s,@ECHO@,$ECHO,;t t
17722s,@CMP@,$CMP,;t t 14266s,@CMP@,$CMP,;t t
17723s,@TBL@,$TBL,;t t 14267s,@TIC@,$TIC,;t t
14268s,@CXXCPP@,$CXXCPP,;t t
17724s,@X_CFLAGS@,$X_CFLAGS,;t t 14269s,@X_CFLAGS@,$X_CFLAGS,;t t
17725s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 14270s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17726s,@X_LIBS@,$X_LIBS,;t t 14271s,@X_LIBS@,$X_LIBS,;t t
17727s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 14272s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17728s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t 14273s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
17732s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t 14277s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
17733s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t 14278s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
17734s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t 14279s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
17735s,@rxvt_intp_define@,$rxvt_intp_define,;t t 14280s,@rxvt_intp_define@,$rxvt_intp_define,;t t
17736s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t 14281s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
14282s,@PKG_CONFIG@,$PKG_CONFIG,;t t
14283s,@XFT_CONFIG@,$XFT_CONFIG,;t t
14284s,@PERL@,$PERL,;t t
14285s,@PERLLIB@,$PERLLIB,;t t
14286s,@PERLFLAGS@,$PERLFLAGS,;t t
14287s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t
14288s,@IF_PERL@,$IF_PERL,;t t
14289s,@PERL_O@,$PERL_O,;t t
17737s,@DEBUG@,$DEBUG,;t t 14290s,@DEBUG@,$DEBUG,;t t
17738s,@DINCLUDE@,$DINCLUDE,;t t 14291s,@DINCLUDE@,$DINCLUDE,;t t
17739s,@DLIB@,$DLIB,;t t 14292s,@DLIB@,$DLIB,;t t
17740s,@include_stdint_h@,$include_stdint_h,;t t 14293s,@include_stdint_h@,$include_stdint_h,;t t
17741s,@include_stdarg_h@,$include_stdarg_h,;t t 14294s,@include_stdarg_h@,$include_stdarg_h,;t t
17750s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t 14303s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t
17751s,@include_sys_time_h@,$include_sys_time_h,;t t 14304s,@include_sys_time_h@,$include_sys_time_h,;t t
17752s,@include_time_h@,$include_time_h,;t t 14305s,@include_time_h@,$include_time_h,;t t
17753s,@LIBOBJS@,$LIBOBJS,;t t 14306s,@LIBOBJS@,$LIBOBJS,;t t
17754s,@LTLIBOBJS@,$LTLIBOBJS,;t t 14307s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17755/@MCOMMON@/r $MCOMMON
17756s,@MCOMMON@,,;t t
17757CEOF 14308CEOF
17758 14309
17759_ACEOF 14310_ACEOF
17760 14311
17761 cat >>$CONFIG_STATUS <<\_ACEOF 14312 cat >>$CONFIG_STATUS <<\_ACEOF
18268 14819
18269if test x$support_xpm = xyes; then 14820if test x$support_xpm = xyes; then
18270 echo " Xpm library: $XPM_LIBS" 14821 echo " Xpm library: $XPM_LIBS"
18271fi 14822fi
18272 14823
18273echo "
18274The following are set in config.h
18275"
18276echo " pty/tty type: "$rxvt_cv_ptys
18277if test x$support_utmp != xyes; then 14824if test x$support_utmp != xyes; then
18278 echo " utmp support: disabled" 14825 echo " utmp support: disabled"
18279 echo 14826 echo
18280else 14827else
18281 echo " utmp support: enabled 14828 echo " utmp support: enabled
18282 utmp file: $rxvt_cv_path_utmp 14829 utmp file: $path_utmp
18283 utmpx file: $rxvt_cv_path_utmpx 14830 utmpx file: $path_utmpx
18284 wtmp file: $rxvt_cv_path_wtmp 14831 wtmp file: $path_wtmp
18285 wtmpx file: $rxvt_cv_path_wtmpx 14832 wtmpx file: $path_wtmpx
18286 lastlog file: $rxvt_cv_path_lastlog 14833 lastlog file: $path_lastlog
18287 ttys/ttytab file: $rxvt_cv_path_ttytab" 14834 lastlogx file: $path_lastlogx"
18288 echo
18289fi 14835fi
18290if test x$term != x; then 14836if test x$term != x; then
18291 echo " set TERM to: $term" 14837 echo " set TERM to: $term"
18292fi 14838fi
18293if test x$terminfo != x; then 14839if test x$terminfo != x; then
18297echo " resource class: $RESCLASS" 14843echo " resource class: $RESCLASS"
18298if test x$RESFALLBACK != x; then 14844if test x$RESFALLBACK != x; then
18299 echo " resource class fallback: $RESFALLBACK" 14845 echo " resource class fallback: $RESFALLBACK"
18300fi 14846fi
18301echo 14847echo
18302if test x$rxvt_cv_ptys = xUNKNOWN; then 14848echo " embedded perl: $support_perl"
18303 echo ".----------------------------------------------------------------." 14849echo
18304 echo ". WARNING: could not determine pty/tty type. Do not build until ."
18305 echo ". the appropriate PTYS_ARE_* is defined in config.h ."
18306 echo ".----------------------------------------------------------------."
18307fi
18308if test x$support_xpm = xneedsmanualspecification; then 14850if test x$support_xpm = xneedsmanualspecification; then
18309 echo ".----------------------------------------------------------------." 14851 echo ".----------------------------------------------------------------."
18310 echo ". WARNING: --enable-xpm-background was specified however the ." 14852 echo ". WARNING: --enable-xpm-background was specified however the ."
18311 echo ". XPM includes files and libraries could not be found. ." 14853 echo ". XPM includes files and libraries could not be found. ."
18312 echo ". XPM backgrounds are now being DISABLED! If you want ." 14854 echo ". XPM backgrounds are now being DISABLED! If you want ."
18321 echo ". functions could not be found. ." 14863 echo ". functions could not be found. ."
18322 echo ". XIM is now being DISABLED! ." 14864 echo ". XIM is now being DISABLED! ."
18323 echo ".----------------------------------------------------------------." 14865 echo ".----------------------------------------------------------------."
18324fi 14866fi
18325 14867
18326echo " *** Please check src/feature.h for further options ***" 14868echo " *** Optionally check src/feature.h for further options ***"
18327echo 14869echo
18328 14870
18329echo ".----------------------------------------------------------------." 14871echo ".----------------------------------------------------------------."
18330echo ". NOTE: most features are disabled by default, try ." 14872echo ". NOTE: some features are disabled by default, try ."
18331echo ". configure --help to get an idea of the optional features ." 14873echo ". configure --help to get an idea of the optional features, ."
14874echo ". or read ./README.configure ."
14875echo ". ."
14876echo ". The script ./reconf gives a reasonable baseline, try it if ."
14877echo ". you do not want to read documentation and still want some ."
14878echo ". useful features. ."
18332echo ".----------------------------------------------------------------." 14879echo ".----------------------------------------------------------------."
18333echo 14880echo
18334 14881

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines