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

Comparing rxvt-unicode/configure (file contents):
Revision 1.24 by pcg, Fri Apr 2 17:59:49 2004 UTC vs.
Revision 1.87 by root, Sat Jan 21 23:50:33 2006 UTC

237' 237'
238IFS=" $as_nl" 238IFS=" $as_nl"
239 239
240# CDPATH. 240# CDPATH.
241$as_unset CDPATH 241$as_unset CDPATH
242
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 242
401 243
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.
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-menubar enable menubar 881 --enable-fading enable colors fading when off focus
1043 --enable-rxvt-scroll enable rxvt style scrollbar 882 --enable-rxvt-scroll enable rxvt style scrollbar
1044 --enable-next-scroll enable NeXT style scrollbar 883 --enable-next-scroll enable NeXT style scrollbar
1045 --enable-xterm-scroll enable Xterm style scrollbar 884 --enable-xterm-scroll enable Xterm style scrollbar
885 --enable-perl enable embedded perl interpreter
1046 --enable-plain-scroll enable plain style scrollbar 886 --enable-plain-scroll enable plain style scrollbar
1047 --enable-half-shadow use half width/height shadow on rxvt scrollbar
1048 --enable-xim XIM (X Input Method) protocol support 887 --enable-xim XIM (X Input Method) protocol support
1049 --enable-ttygid enable tty setting to group named "tty" 888 --enable-ttygid enable tty setting to group named "tty"
1050 --disable-backspace-key disable handling of the backspace key 889 --disable-backspace-key disable handling of the backspace key
1051 --disable-delete-key disable handling of the delete key 890 --disable-delete-key disable handling of the delete key
1052 --disable-resources disable all resource checking 891 --disable-resources disable all resource checking
1053 --enable-xgetdefault enable resources via X instead of our small version 892 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1054 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) 893 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
1055 --enable-strings enable some replacement system functions
1056 --disable-swapscreen disable swap screen support 894 --disable-swapscreen disable swap screen support
895 --enable-iso14755 enable support for extended ISO 14755 modes
1057 --enable-frills enable support for rarely used features 896 --enable-frills enable support for rarely used features
1058 --enable-linespace enable support for linespace
1059 --enable-24bit enable support for using 24bit visuals if available 897 --enable-24bit enable support for using 24bit visuals if available
1060 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 898 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1061 --enable-selectionscrolling enable scrolling during selections 899 --enable-selectionscrolling enable scrolling during selections
1062 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 900 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1063 --enable-slipwheeling enable slip wheel scrolling (requires previous) 901 --enable-slipwheeling enable slip wheel scrolling (requires previous)
1064 --enable-dmalloc enable Gray Watson's malloc - for debugging use 902 --enable-dmalloc enable Gray Watson's malloc - for debugging use
1065 --enable-dlmalloc enable Doug Lea's malloc - for production use 903 --enable-dlmalloc enable Doug Lea's malloc - for production use
1066 NOTE: enable only one malloc package 904 NOTE: enable only one malloc package
1067 --enable-smart-resize enable smart growth/shrink behaviour 905 --enable-smart-resize enable smart growth/shrink behaviour
1068 --enable-256-color enable 256-color support
1069 --enable-cursor-blink enable blinking cursor
1070 --enable-text-blink enable blinking text 906 --enable-text-blink enable blinking text
1071 --enable-pointer-blank enable pointer blank when typing or inactive pointer 907 --enable-pointer-blank enable pointer blank when typing or inactive pointer
1072 908
1073Optional Packages: 909Optional Packages:
1074 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 910 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1075 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 911 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1076 --with-gnu-ld assume the C compiler uses GNU ld default=no
1077 --with-pic try to use only PIC/non-PIC objects default=use both
1078 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,all) 912 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
1079 --with-res-name=NAME use this as default resource name (default: urxvt) 913 --with-res-name=NAME use this as default resource name (default: urxvt)
1080 --with-res-class=CLASS use this as the resource class (default: URxvt) 914 --with-res-class=CLASS use this as the resource class (default: URxvt)
1081 --with-name=NAME set the basename for the installed binaries (default: urxvt) 915 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1082 --with-term=NAME set the terminal to NAME (default: rxvt) 916 --with-term=NAME set the terminal to NAME (default: rxvt)
1083 --with-terminfo=PATH set the path to the terminfo tree to PATH 917 --with-terminfo=PATH set the path to the terminfo tree to PATH
1534 1368
1535 1369
1536 1370
1537 1371
1538 1372
1373
1374
1375 ac_config_headers="$ac_config_headers config.h:config.h.in"
1376
1377
1539ac_aux_dir= 1378ac_aux_dir=
1540for ac_dir in autoconf $srcdir/autoconf; do 1379for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1541 if test -f $ac_dir/install-sh; then 1380 if test -f $ac_dir/install-sh; then
1542 ac_aux_dir=$ac_dir 1381 ac_aux_dir=$ac_dir
1543 ac_install_sh="$ac_aux_dir/install-sh -c" 1382 ac_install_sh="$ac_aux_dir/install-sh -c"
1544 break 1383 break
1545 elif test -f $ac_dir/install.sh; then 1384 elif test -f $ac_dir/install.sh; then
1551 ac_install_sh="$ac_aux_dir/shtool install -c" 1390 ac_install_sh="$ac_aux_dir/shtool install -c"
1552 break 1391 break
1553 fi 1392 fi
1554done 1393done
1555if test -z "$ac_aux_dir"; then 1394if test -z "$ac_aux_dir"; then
1556 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 1395 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1557echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} 1396echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1558 { (exit 1); exit 1; }; } 1397 { (exit 1); exit 1; }; }
1559fi 1398fi
1560ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1399ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1561ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1400ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1562ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1401ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1563 1402
1564 ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in" 1403# Make sure we can run config.sub.
1404$ac_config_sub sun4 >/dev/null 2>&1 ||
1405 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1406echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1407 { (exit 1); exit 1; }; }
1408
1409echo "$as_me:$LINENO: checking build system type" >&5
1410echo $ECHO_N "checking build system type... $ECHO_C" >&6
1411if test "${ac_cv_build+set}" = set; then
1412 echo $ECHO_N "(cached) $ECHO_C" >&6
1413else
1414 ac_cv_build_alias=$build_alias
1415test -z "$ac_cv_build_alias" &&
1416 ac_cv_build_alias=`$ac_config_guess`
1417test -z "$ac_cv_build_alias" &&
1418 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1419echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1420 { (exit 1); exit 1; }; }
1421ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1422 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1423echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1424 { (exit 1); exit 1; }; }
1425
1426fi
1427echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1428echo "${ECHO_T}$ac_cv_build" >&6
1429build=$ac_cv_build
1430build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1431build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1432build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1433
1434
1435echo "$as_me:$LINENO: checking host system type" >&5
1436echo $ECHO_N "checking host system type... $ECHO_C" >&6
1437if test "${ac_cv_host+set}" = set; then
1438 echo $ECHO_N "(cached) $ECHO_C" >&6
1439else
1440 ac_cv_host_alias=$host_alias
1441test -z "$ac_cv_host_alias" &&
1442 ac_cv_host_alias=$ac_cv_build_alias
1443ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1444 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1445echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1446 { (exit 1); exit 1; }; }
1447
1448fi
1449echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1450echo "${ECHO_T}$ac_cv_host" >&6
1451host=$ac_cv_host
1452host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1453host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1454host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1455
1565 1456
1566 1457
1567VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1458VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1568DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1459DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1569LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1570LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1571echo "" 1460echo ""
1572echo "configuring for rxvt $VERSION" 1461echo "configuring for rxvt $VERSION"
1573echo "" 1462echo ""
1463
1464orig_CXXFLAGS="$CXXFLAGS"
1574 1465
1575 1466
1576ac_ext=c 1467ac_ext=c
1577ac_cpp='$CPP $CPPFLAGS' 1468ac_cpp='$CPP $CPPFLAGS'
1578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3159 3050
3160test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3051test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3161 3052
3162test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3053test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3163 3054
3164for ac_prog in gawk mawk nawk awk
3165do
3166 # Extract the first word of "$ac_prog", so it can be a program name with args.
3167set dummy $ac_prog; ac_word=$2
3168echo "$as_me:$LINENO: checking for $ac_word" >&5
3169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3170if test "${ac_cv_prog_AWK+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3172else
3173 if test -n "$AWK"; then
3174 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3175else
3176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177for as_dir in $PATH
3178do
3179 IFS=$as_save_IFS
3180 test -z "$as_dir" && as_dir=.
3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3183 ac_cv_prog_AWK="$ac_prog"
3184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3185 break 2
3186 fi
3187done
3188done
3189 3055
3190fi
3191fi
3192AWK=$ac_cv_prog_AWK
3193if test -n "$AWK"; then
3194 echo "$as_me:$LINENO: result: $AWK" >&5
3195echo "${ECHO_T}$AWK" >&6
3196else
3197 echo "$as_me:$LINENO: result: no" >&5
3198echo "${ECHO_T}no" >&6
3199fi
3200
3201 test -n "$AWK" && break
3202done
3203
3204
3205ac_ext=c
3206ac_cpp='$CPP $CPPFLAGS'
3207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210
3211
3212LINKER="$CXX"
3213if test x$GCC = xyes && test x$GXX = xyes; then
3214
3215echo "$as_me:$LINENO: checking for main in -lsupc++" >&5
3216echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6
3217if test "${ac_cv_lib_supcpp_main+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3219else
3220 ac_check_lib_save_LIBS=$LIBS
3221LIBS="-lsupc++ $LIBS"
3222cat >conftest.$ac_ext <<_ACEOF
3223/* confdefs.h. */
3224_ACEOF
3225cat confdefs.h >>conftest.$ac_ext
3226cat >>conftest.$ac_ext <<_ACEOF
3227/* end confdefs.h. */
3228
3229
3230int
3231main ()
3232{
3233main ();
3234 ;
3235 return 0;
3236}
3237_ACEOF
3238rm -f conftest.$ac_objext conftest$ac_exeext
3239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3240 (eval $ac_link) 2>conftest.er1
3241 ac_status=$?
3242 grep -v '^ *+' conftest.er1 >conftest.err
3243 rm -f conftest.er1
3244 cat conftest.err >&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } &&
3247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3249 (eval $ac_try) 2>&5
3250 ac_status=$?
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; } &&
3253 { ac_try='test -s conftest$ac_exeext'
3254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3255 (eval $ac_try) 2>&5
3256 ac_status=$?
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }; }; then
3259 ac_cv_lib_supcpp_main=yes
3260else
3261 echo "$as_me: failed program was:" >&5
3262sed 's/^/| /' conftest.$ac_ext >&5
3263
3264ac_cv_lib_supcpp_main=no
3265fi
3266rm -f conftest.err conftest.$ac_objext \
3267 conftest$ac_exeext conftest.$ac_ext
3268LIBS=$ac_check_lib_save_LIBS
3269fi
3270echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5
3271echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6
3272if test $ac_cv_lib_supcpp_main = yes; then
3273
3274 LINKER="$CC"
3275 LIBS="$LIBS -lsupc++"
3276
3277fi
3278
3279fi
3280LINKER=$LINKER
3281
3282
3283CPPFLAGS="-D_GNU_SOURCE -D_XOPEN_SOURCE"
3284
3285
3286ac_ext=cc
3287ac_cpp='$CXXCPP $CPPFLAGS'
3288ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3289ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3290ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3291
3292
3293
3294ac_ext=cc
3295ac_cpp='$CXXCPP $CPPFLAGS'
3296ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3297ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3298ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3299echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3300echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3301if test -z "$CXXCPP"; then
3302 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3304else
3305 # Double quotes because CXXCPP needs to be expanded
3306 for CXXCPP in "$CXX -E" "/lib/cpp"
3307 do
3308 ac_preproc_ok=false
3309for ac_cxx_preproc_warn_flag in '' yes
3310do
3311 # Use a header file that comes with gcc, so configuring glibc
3312 # with a fresh cross-compiler works.
3313 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3314 # <limits.h> exists even on freestanding compilers.
3315 # On the NeXT, cc -E runs the code through the compiler's parser,
3316 # not just through cpp. "Syntax error" is here to catch this case.
3317 cat >conftest.$ac_ext <<_ACEOF
3318/* confdefs.h. */
3319_ACEOF
3320cat confdefs.h >>conftest.$ac_ext
3321cat >>conftest.$ac_ext <<_ACEOF
3322/* end confdefs.h. */
3323#ifdef __STDC__
3324# include <limits.h>
3325#else
3326# include <assert.h>
3327#endif
3328 Syntax error
3329_ACEOF
3330if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3331 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3332 ac_status=$?
3333 grep -v '^ *+' conftest.er1 >conftest.err
3334 rm -f conftest.er1
3335 cat conftest.err >&5
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); } >/dev/null; then
3338 if test -s conftest.err; then
3339 ac_cpp_err=$ac_cxx_preproc_warn_flag
3340 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3341 else
3342 ac_cpp_err=
3343 fi
3344else
3345 ac_cpp_err=yes
3346fi
3347if test -z "$ac_cpp_err"; then
3348 :
3349else
3350 echo "$as_me: failed program was:" >&5
3351sed 's/^/| /' conftest.$ac_ext >&5
3352
3353 # Broken: fails on valid input.
3354continue
3355fi
3356rm -f conftest.err conftest.$ac_ext
3357
3358 # OK, works on sane cases. Now check whether non-existent headers
3359 # can be detected and how.
3360 cat >conftest.$ac_ext <<_ACEOF
3361/* confdefs.h. */
3362_ACEOF
3363cat confdefs.h >>conftest.$ac_ext
3364cat >>conftest.$ac_ext <<_ACEOF
3365/* end confdefs.h. */
3366#include <ac_nonexistent.h>
3367_ACEOF
3368if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3370 ac_status=$?
3371 grep -v '^ *+' conftest.er1 >conftest.err
3372 rm -f conftest.er1
3373 cat conftest.err >&5
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); } >/dev/null; then
3376 if test -s conftest.err; then
3377 ac_cpp_err=$ac_cxx_preproc_warn_flag
3378 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3379 else
3380 ac_cpp_err=
3381 fi
3382else
3383 ac_cpp_err=yes
3384fi
3385if test -z "$ac_cpp_err"; then
3386 # Broken: success on invalid input.
3387continue
3388else
3389 echo "$as_me: failed program was:" >&5
3390sed 's/^/| /' conftest.$ac_ext >&5
3391
3392 # Passes both tests.
3393ac_preproc_ok=:
3394break
3395fi
3396rm -f conftest.err conftest.$ac_ext
3397
3398done
3399# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3400rm -f conftest.err conftest.$ac_ext
3401if $ac_preproc_ok; then
3402 break
3403fi
3404
3405 done
3406 ac_cv_prog_CXXCPP=$CXXCPP
3407
3408fi
3409 CXXCPP=$ac_cv_prog_CXXCPP
3410else
3411 ac_cv_prog_CXXCPP=$CXXCPP
3412fi
3413echo "$as_me:$LINENO: result: $CXXCPP" >&5
3414echo "${ECHO_T}$CXXCPP" >&6
3415ac_preproc_ok=false
3416for ac_cxx_preproc_warn_flag in '' yes
3417do
3418 # Use a header file that comes with gcc, so configuring glibc
3419 # with a fresh cross-compiler works.
3420 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3421 # <limits.h> exists even on freestanding compilers.
3422 # On the NeXT, cc -E runs the code through the compiler's parser,
3423 # not just through cpp. "Syntax error" is here to catch this case.
3424 cat >conftest.$ac_ext <<_ACEOF
3425/* confdefs.h. */
3426_ACEOF
3427cat confdefs.h >>conftest.$ac_ext
3428cat >>conftest.$ac_ext <<_ACEOF
3429/* end confdefs.h. */
3430#ifdef __STDC__
3431# include <limits.h>
3432#else
3433# include <assert.h>
3434#endif
3435 Syntax error
3436_ACEOF
3437if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3438 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3439 ac_status=$?
3440 grep -v '^ *+' conftest.er1 >conftest.err
3441 rm -f conftest.er1
3442 cat conftest.err >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } >/dev/null; then
3445 if test -s conftest.err; then
3446 ac_cpp_err=$ac_cxx_preproc_warn_flag
3447 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3448 else
3449 ac_cpp_err=
3450 fi
3451else
3452 ac_cpp_err=yes
3453fi
3454if test -z "$ac_cpp_err"; then
3455 :
3456else
3457 echo "$as_me: failed program was:" >&5
3458sed 's/^/| /' conftest.$ac_ext >&5
3459
3460 # Broken: fails on valid input.
3461continue
3462fi
3463rm -f conftest.err conftest.$ac_ext
3464
3465 # OK, works on sane cases. Now check whether non-existent headers
3466 # can be detected and how.
3467 cat >conftest.$ac_ext <<_ACEOF
3468/* confdefs.h. */
3469_ACEOF
3470cat confdefs.h >>conftest.$ac_ext
3471cat >>conftest.$ac_ext <<_ACEOF
3472/* end confdefs.h. */
3473#include <ac_nonexistent.h>
3474_ACEOF
3475if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3476 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3477 ac_status=$?
3478 grep -v '^ *+' conftest.er1 >conftest.err
3479 rm -f conftest.er1
3480 cat conftest.err >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } >/dev/null; then
3483 if test -s conftest.err; then
3484 ac_cpp_err=$ac_cxx_preproc_warn_flag
3485 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3486 else
3487 ac_cpp_err=
3488 fi
3489else
3490 ac_cpp_err=yes
3491fi
3492if test -z "$ac_cpp_err"; then
3493 # Broken: success on invalid input.
3494continue
3495else
3496 echo "$as_me: failed program was:" >&5
3497sed 's/^/| /' conftest.$ac_ext >&5
3498
3499 # Passes both tests.
3500ac_preproc_ok=:
3501break
3502fi
3503rm -f conftest.err conftest.$ac_ext
3504
3505done
3506# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3507rm -f conftest.err conftest.$ac_ext
3508if $ac_preproc_ok; then
3509 :
3510else
3511 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3512See \`config.log' for more details." >&5
3513echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3514See \`config.log' for more details." >&2;}
3515 { (exit 1); exit 1; }; }
3516fi
3517
3518ac_ext=cc
3519ac_cpp='$CXXCPP $CPPFLAGS'
3520ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3521ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3522ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3523 3056
3524 3057
3525echo "$as_me:$LINENO: checking for egrep" >&5 3058echo "$as_me:$LINENO: checking for egrep" >&5
3526echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3059echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3527if test "${ac_cv_prog_egrep+set}" = set; then 3060if test "${ac_cv_prog_egrep+set}" = set; then
3602 grep -v '^ *+' conftest.er1 >conftest.err 3135 grep -v '^ *+' conftest.er1 >conftest.err
3603 rm -f conftest.er1 3136 rm -f conftest.er1
3604 cat conftest.err >&5 3137 cat conftest.err >&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } && 3139 (exit $ac_status); } &&
3607 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609 (eval $ac_try) 2>&5 3142 (eval $ac_try) 2>&5
3610 ac_status=$? 3143 ac_status=$?
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }; } && 3145 (exit $ac_status); }; } &&
3656 grep -v '^ *+' conftest.er1 >conftest.err 3189 grep -v '^ *+' conftest.er1 >conftest.err
3657 rm -f conftest.er1 3190 rm -f conftest.er1
3658 cat conftest.err >&5 3191 cat conftest.err >&5
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); } && 3193 (exit $ac_status); } &&
3661 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3663 (eval $ac_try) 2>&5 3196 (eval $ac_try) 2>&5
3664 ac_status=$? 3197 ac_status=$?
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); }; } && 3199 (exit $ac_status); }; } &&
3688if test "$ac_cv_search_strerror" != no; then 3221if test "$ac_cv_search_strerror" != no; then
3689 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 3222 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3690 3223
3691fi 3224fi
3692 3225
3693
3694# Check whether --enable-shared or --disable-shared was given.
3695if test "${enable_shared+set}" = set; then
3696 enableval="$enable_shared"
3697 p=${PACKAGE-default}
3698case "$enableval" in
3699yes) enable_shared=yes ;;
3700no) enable_shared=no ;;
3701*)
3702 enable_shared=no
3703 # Look at the argument we got. We use all the common list separators.
3704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3705 for pkg in $enableval; do
3706 if test "X$pkg" = "X$p"; then
3707 enable_shared=yes
3708 fi
3709 done
3710 IFS="$ac_save_ifs"
3711 ;;
3712esac
3713else
3714 enable_shared=no
3715fi; # Check whether --enable-static or --disable-static was given.
3716if test "${enable_static+set}" = set; then
3717 enableval="$enable_static"
3718 p=${PACKAGE-default}
3719case "$enableval" in
3720yes) enable_static=yes ;;
3721no) enable_static=no ;;
3722*)
3723 enable_static=no
3724 # Look at the argument we got. We use all the common list separators.
3725 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3726 for pkg in $enableval; do
3727 if test "X$pkg" = "X$p"; then
3728 enable_static=yes
3729 fi
3730 done
3731 IFS="$ac_save_ifs"
3732 ;;
3733esac
3734else
3735 enable_static=yes
3736fi; # Check whether --enable-fast-install or --disable-fast-install was given.
3737if test "${enable_fast_install+set}" = set; then
3738 enableval="$enable_fast_install"
3739 p=${PACKAGE-default}
3740case "$enableval" in
3741yes) enable_fast_install=yes ;;
3742no) enable_fast_install=no ;;
3743*)
3744 enable_fast_install=no
3745 # Look at the argument we got. We use all the common list separators.
3746 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3747 for pkg in $enableval; do
3748 if test "X$pkg" = "X$p"; then
3749 enable_fast_install=yes
3750 fi
3751 done
3752 IFS="$ac_save_ifs"
3753 ;;
3754esac
3755else
3756 enable_fast_install=yes
3757fi;
3758# Make sure we can run config.sub.
3759$ac_config_sub sun4 >/dev/null 2>&1 ||
3760 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3761echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3762 { (exit 1); exit 1; }; }
3763
3764echo "$as_me:$LINENO: checking build system type" >&5
3765echo $ECHO_N "checking build system type... $ECHO_C" >&6
3766if test "${ac_cv_build+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3768else
3769 ac_cv_build_alias=$build_alias
3770test -z "$ac_cv_build_alias" &&
3771 ac_cv_build_alias=`$ac_config_guess`
3772test -z "$ac_cv_build_alias" &&
3773 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3774echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3775 { (exit 1); exit 1; }; }
3776ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3777 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3778echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3779 { (exit 1); exit 1; }; }
3780
3781fi
3782echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3783echo "${ECHO_T}$ac_cv_build" >&6
3784build=$ac_cv_build
3785build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3786build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3787build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3788
3789
3790echo "$as_me:$LINENO: checking host system type" >&5
3791echo $ECHO_N "checking host system type... $ECHO_C" >&6
3792if test "${ac_cv_host+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3794else
3795 ac_cv_host_alias=$host_alias
3796test -z "$ac_cv_host_alias" &&
3797 ac_cv_host_alias=$ac_cv_build_alias
3798ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3799 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3800echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3801 { (exit 1); exit 1; }; }
3802
3803fi
3804echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3805echo "${ECHO_T}$ac_cv_host" >&6
3806host=$ac_cv_host
3807host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3808host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3809host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3810
3811
3812
3813# Check whether --with-gnu-ld or --without-gnu-ld was given.
3814if test "${with_gnu_ld+set}" = set; then
3815 withval="$with_gnu_ld"
3816 test "$withval" = no || with_gnu_ld=yes
3817else
3818 with_gnu_ld=no
3819fi;
3820ac_prog=ld
3821if test "$GCC" = yes; then
3822 # Check if gcc -print-prog-name=ld gives a path.
3823 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3824echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3825 case $host in
3826 *-*-mingw*)
3827 # gcc leaves a trailing carriage return which upsets mingw
3828 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3829 *)
3830 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3831 esac
3832 case "$ac_prog" in
3833 # Accept absolute paths.
3834 [\\/]* | [A-Za-z]:[\\/]*)
3835 re_direlt='/[^/][^/]*/\.\./'
3836 # Canonicalize the path of ld
3837 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3838 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3839 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3840 done
3841 test -z "$LD" && LD="$ac_prog"
3842 ;;
3843 "")
3844 # If it fails, then pretend we aren't using GCC.
3845 ac_prog=ld
3846 ;;
3847 *)
3848 # If it is relative, then search for the first ld in PATH.
3849 with_gnu_ld=unknown
3850 ;;
3851 esac
3852elif test "$with_gnu_ld" = yes; then
3853 echo "$as_me:$LINENO: checking for GNU ld" >&5
3854echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3855else
3856 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3857echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3858fi
3859if test "${lt_cv_path_LD+set}" = set; then
3860 echo $ECHO_N "(cached) $ECHO_C" >&6
3861else
3862 if test -z "$LD"; then
3863 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3864 for ac_dir in $PATH; do
3865 test -z "$ac_dir" && ac_dir=.
3866 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3867 lt_cv_path_LD="$ac_dir/$ac_prog"
3868 # Check to see if the program is GNU ld. I'd rather use --version,
3869 # but apparently some GNU ld's only accept -v.
3870 # Break only if it was the GNU/non-GNU ld that we prefer.
3871 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3872 test "$with_gnu_ld" != no && break
3873 else
3874 test "$with_gnu_ld" != yes && break
3875 fi
3876 fi
3877 done
3878 IFS="$ac_save_ifs"
3879else
3880 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3881fi
3882fi
3883
3884LD="$lt_cv_path_LD"
3885if test -n "$LD"; then
3886 echo "$as_me:$LINENO: result: $LD" >&5
3887echo "${ECHO_T}$LD" >&6
3888else
3889 echo "$as_me:$LINENO: result: no" >&5
3890echo "${ECHO_T}no" >&6
3891fi
3892test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3893echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3894 { (exit 1); exit 1; }; }
3895echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3896echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3897if test "${lt_cv_prog_gnu_ld+set}" = set; then
3898 echo $ECHO_N "(cached) $ECHO_C" >&6
3899else
3900 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3901if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3902 lt_cv_prog_gnu_ld=yes
3903else
3904 lt_cv_prog_gnu_ld=no
3905fi
3906fi
3907echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3908echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3909with_gnu_ld=$lt_cv_prog_gnu_ld
3910
3911
3912echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3913echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3914if test "${lt_cv_ld_reload_flag+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3916else
3917 lt_cv_ld_reload_flag='-r'
3918fi
3919echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3920echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3921reload_flag=$lt_cv_ld_reload_flag
3922test -n "$reload_flag" && reload_flag=" $reload_flag"
3923
3924echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3925echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3926if test "${lt_cv_path_NM+set}" = set; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
3928else
3929 if test -n "$NM"; then
3930 # Let the user override the test.
3931 lt_cv_path_NM="$NM"
3932else
3933 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3934 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3935 test -z "$ac_dir" && ac_dir=.
3936 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3937 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3938 # Check to see if the nm accepts a BSD-compat flag.
3939 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3940 # nm: unknown option "B" ignored
3941 # Tru64's nm complains that /dev/null is an invalid object file
3942 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3943 lt_cv_path_NM="$tmp_nm -B"
3944 break
3945 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3946 lt_cv_path_NM="$tmp_nm -p"
3947 break
3948 else
3949 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3950 continue # so that we can try to find one that supports BSD flags
3951 fi
3952 fi
3953 done
3954 IFS="$ac_save_ifs"
3955 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3956fi
3957fi
3958
3959NM="$lt_cv_path_NM"
3960echo "$as_me:$LINENO: result: $NM" >&5
3961echo "${ECHO_T}$NM" >&6
3962
3963echo "$as_me:$LINENO: checking whether ln -s works" >&5
3964echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3965LN_S=$as_ln_s
3966if test "$LN_S" = "ln -s"; then
3967 echo "$as_me:$LINENO: result: yes" >&5
3968echo "${ECHO_T}yes" >&6
3969else
3970 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3971echo "${ECHO_T}no, using $LN_S" >&6
3972fi
3973
3974echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3975echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3976if test "${lt_cv_deplibs_check_method+set}" = set; then
3977 echo $ECHO_N "(cached) $ECHO_C" >&6
3978else
3979 lt_cv_file_magic_cmd='$MAGIC_CMD'
3980lt_cv_file_magic_test_file=
3981lt_cv_deplibs_check_method='unknown'
3982# Need to set the preceding variable on all platforms that support
3983# interlibrary dependencies.
3984# 'none' -- dependencies not supported.
3985# `unknown' -- same as none, but documents that we really don't know.
3986# 'pass_all' -- all dependencies passed with no checks.
3987# 'test_compile' -- check by making test program.
3988# ['file_magic [regex]'] -- check by looking for files in library path
3989# which responds to the $file_magic_cmd with a given egrep regex.
3990# If you have `file' or equivalent on your system and you're not sure
3991# whether `pass_all' will *always* work, you probably want this one.
3992
3993case "$host_os" in
3994aix4*)
3995 lt_cv_deplibs_check_method=pass_all
3996 ;;
3997
3998beos*)
3999 lt_cv_deplibs_check_method=pass_all
4000 ;;
4001
4002bsdi4*)
4003 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4004 lt_cv_file_magic_cmd='/usr/bin/file -L'
4005 lt_cv_file_magic_test_file=/shlib/libc.so
4006 ;;
4007
4008cygwin* | mingw* | pw32*)
4009 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4010 lt_cv_file_magic_cmd='$OBJDUMP -f'
4011 ;;
4012
4013darwin*|rhapsody*)
4014 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4015 lt_cv_file_magiic_cmd=/usr/bin/file
4016 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4017 ;;
4018
4019freebsd*)
4020 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4021 case "$host_cpu" in
4022 i*86 )
4023 # Not sure whether the presence of OpenBSD here was a mistake.
4024 # Let's accept both of them until this is cleared up.
4025 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4026 lt_cv_file_magic_cmd=/usr/bin/file
4027 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4028 ;;
4029 esac
4030 else
4031 lt_cv_deplibs_check_method=pass_all
4032 fi
4033 ;;
4034
4035gnu*)
4036 lt_cv_deplibs_check_method=pass_all
4037 ;;
4038
4039hpux10.20*|hpux11*)
4040 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4041 lt_cv_file_magic_cmd=/usr/bin/file
4042 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4043 ;;
4044
4045irix5* | irix6*)
4046 case "$host_os" in
4047 irix5*)
4048 # this will be overridden with pass_all, but let us keep it just in case
4049 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4050 ;;
4051 *)
4052 case "$LD" in
4053 *-32|*"-32 ") libmagic=32-bit;;
4054 *-n32|*"-n32 ") libmagic=N32;;
4055 *-64|*"-64 ") libmagic=64-bit;;
4056 *) libmagic=never-match;;
4057 esac
4058 # this will be overridden with pass_all, but let us keep it just in case
4059 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4060 ;;
4061 esac
4062 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4063 lt_cv_deplibs_check_method=pass_all
4064 ;;
4065
4066# This must be Linux ELF.
4067linux-gnu*)
4068 case "$host_cpu" in
4069 alpha* | i*86 | powerpc* | sparc* | ia64* )
4070 lt_cv_deplibs_check_method=pass_all ;;
4071 *)
4072 # glibc up to 2.1.1 does not perform some relocations on ARM
4073 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4074 esac
4075 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4076 ;;
4077
4078netbsd*)
4079 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4080 lt_cv_deplibs_check_method='file_magic NetBSD/[a-z0-9]* demand paged shared library'
4081 else
4082 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4083 fi
4084 lt_cv_file_magic_cmd='/usr/bin/file -L'
4085 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4086 ;;
4087
4088newos6*)
4089 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4090 lt_cv_file_magic_cmd=/usr/bin/file
4091 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4092 ;;
4093
4094osf3* | osf4* | osf5*)
4095 # this will be overridden with pass_all, but let us keep it just in case
4096 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4097 lt_cv_file_magic_test_file=/shlib/libc.so
4098 lt_cv_deplibs_check_method=pass_all
4099 ;;
4100
4101sco3.2v5*)
4102 lt_cv_deplibs_check_method=pass_all
4103 ;;
4104
4105solaris*)
4106 lt_cv_deplibs_check_method=pass_all
4107 lt_cv_file_magic_test_file=/lib/libc.so
4108 ;;
4109
4110sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4111 case "$host_vendor" in
4112 motorola)
4113 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]'
4114 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4115 ;;
4116 ncr)
4117 lt_cv_deplibs_check_method=pass_all
4118 ;;
4119 sequent)
4120 lt_cv_file_magic_cmd='/bin/file'
4121 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4122 ;;
4123 sni)
4124 lt_cv_file_magic_cmd='/bin/file'
4125 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4126 lt_cv_file_magic_test_file=/lib/libc.so
4127 ;;
4128 esac
4129 ;;
4130esac
4131
4132fi
4133echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4134echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4135file_magic_cmd=$lt_cv_file_magic_cmd
4136deplibs_check_method=$lt_cv_deplibs_check_method
4137
4138
4139
4140
4141
4142
4143
4144# Check for command to grab the raw symbol name followed by C symbol from nm.
4145echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4146echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4147if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4149else
4150
4151# These are sane defaults that work on at least a few old systems.
4152# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4153
4154# Character class describing NM global symbol codes.
4155symcode='[BCDEGRST]'
4156
4157# Regexp to match symbols that can be accessed directly from C.
4158sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4159
4160# Transform the above into a raw symbol and a C symbol.
4161symxfrm='\1 \2\3 \3'
4162
4163# Transform an extracted symbol line into a proper C declaration
4164lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4165
4166# Define system-specific variables.
4167case "$host_os" in
4168aix*)
4169 symcode='[BCDT]'
4170 ;;
4171cygwin* | mingw* | pw32*)
4172 symcode='[ABCDGISTW]'
4173 ;;
4174hpux*) # Its linker distinguishes data from code symbols
4175 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
4176 ;;
4177irix*)
4178 symcode='[BCDEGRST]'
4179 ;;
4180solaris* | sysv5*)
4181 symcode='[BDT]'
4182 ;;
4183sysv4)
4184 symcode='[DFNSTU]'
4185 ;;
4186esac
4187
4188# Handle CRLF in mingw tool chain
4189opt_cr=
4190case "$host_os" in
4191mingw*)
4192 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4193 ;;
4194esac
4195
4196# If we're using GNU nm, then use its standard symbol codes.
4197if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4198 symcode='[ABCDGISTW]'
4199fi
4200
4201# Try without a prefix undercore, then with it.
4202for ac_symprfx in "" "_"; do
4203
4204 # Write the raw and C identifiers.
4205lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4206
4207 # Check to see that the pipe works correctly.
4208 pipe_works=no
4209 rm -f conftest*
4210 cat > conftest.$ac_ext <<EOF
4211#ifdef __cplusplus
4212extern "C" {
4213#endif
4214char nm_test_var;
4215void nm_test_func(){}
4216#ifdef __cplusplus
4217}
4218#endif
4219main(){nm_test_var='a';nm_test_func();return(0);}
4220EOF
4221
4222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4223 (eval $ac_compile) 2>&5
4224 ac_status=$?
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); }; then
4227 # Now try to grab the symbols.
4228 nlist=conftest.nm
4229 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4230 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4231 ac_status=$?
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); } && test -s "$nlist"; then
4234 # Try sorting and uniquifying the output.
4235 if sort "$nlist" | uniq > "$nlist"T; then
4236 mv -f "$nlist"T "$nlist"
4237 else
4238 rm -f "$nlist"T
4239 fi
4240
4241 # Make sure that we snagged all the symbols we need.
4242 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4243 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4244 cat <<EOF > conftest.$ac_ext
4245#ifdef __cplusplus
4246extern "C" {
4247#endif
4248
4249EOF
4250 # Now generate the symbol file.
4251 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4252
4253 cat <<EOF >> conftest.$ac_ext
4254#if defined (__STDC__) && __STDC__
4255# define lt_ptr_t void *
4256#else
4257# define lt_ptr_t char *
4258# define const
4259#endif
4260
4261/* The mapping between symbol names and symbols. */
4262const struct {
4263 const char *name;
4264 lt_ptr_t address;
4265}
4266lt_preloaded_symbols[] =
4267{
4268EOF
4269 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$nlist" >> conftest.$ac_ext
4270 cat <<\EOF >> conftest.$ac_ext
4271 {0, (lt_ptr_t) 0}
4272};
4273
4274#ifdef __cplusplus
4275}
4276#endif
4277EOF
4278 # Now try linking the two files.
4279 mv conftest.$ac_objext conftstm.$ac_objext
4280 save_LIBS="$LIBS"
4281 save_CFLAGS="$CFLAGS"
4282 LIBS="conftstm.$ac_objext"
4283 CFLAGS="$CFLAGS$no_builtin_flag"
4284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4285 (eval $ac_link) 2>&5
4286 ac_status=$?
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); } && test -s conftest; then
4289 pipe_works=yes
4290 fi
4291 LIBS="$save_LIBS"
4292 CFLAGS="$save_CFLAGS"
4293 else
4294 echo "cannot find nm_test_func in $nlist" >&5
4295 fi
4296 else
4297 echo "cannot find nm_test_var in $nlist" >&5
4298 fi
4299 else
4300 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4301 fi
4302 else
4303 echo "$progname: failed program was:" >&5
4304 cat conftest.$ac_ext >&5
4305 fi
4306 rm -f conftest* conftst*
4307
4308 # Do not use the global_symbol_pipe unless it works.
4309 if test "$pipe_works" = yes; then
4310 break
4311 else
4312 lt_cv_sys_global_symbol_pipe=
4313 fi
4314done
4315
4316fi
4317
4318global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4319if test -z "$lt_cv_sys_global_symbol_pipe"; then
4320 global_symbol_to_cdecl=
4321else
4322 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4323fi
4324if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
4325 echo "$as_me:$LINENO: result: failed" >&5
4326echo "${ECHO_T}failed" >&6
4327else
4328 echo "$as_me:$LINENO: result: ok" >&5
4329echo "${ECHO_T}ok" >&6
4330fi
4331
4332echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4333echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4334if test "${ac_cv_header_stdc+set}" = set; then
4335 echo $ECHO_N "(cached) $ECHO_C" >&6
4336else
4337 cat >conftest.$ac_ext <<_ACEOF
4338/* confdefs.h. */
4339_ACEOF
4340cat confdefs.h >>conftest.$ac_ext
4341cat >>conftest.$ac_ext <<_ACEOF
4342/* end confdefs.h. */
4343#include <stdlib.h>
4344#include <stdarg.h>
4345#include <string.h>
4346#include <float.h>
4347
4348int
4349main ()
4350{
4351
4352 ;
4353 return 0;
4354}
4355_ACEOF
4356rm -f conftest.$ac_objext
4357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4358 (eval $ac_compile) 2>conftest.er1
4359 ac_status=$?
4360 grep -v '^ *+' conftest.er1 >conftest.err
4361 rm -f conftest.er1
4362 cat conftest.err >&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); } &&
4365 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367 (eval $ac_try) 2>&5
4368 ac_status=$?
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }; } &&
4371 { ac_try='test -s conftest.$ac_objext'
4372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4373 (eval $ac_try) 2>&5
4374 ac_status=$?
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); }; }; then
4377 ac_cv_header_stdc=yes
4378else
4379 echo "$as_me: failed program was:" >&5
4380sed 's/^/| /' conftest.$ac_ext >&5
4381
4382ac_cv_header_stdc=no
4383fi
4384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4385
4386if test $ac_cv_header_stdc = yes; then
4387 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4388 cat >conftest.$ac_ext <<_ACEOF
4389/* confdefs.h. */
4390_ACEOF
4391cat confdefs.h >>conftest.$ac_ext
4392cat >>conftest.$ac_ext <<_ACEOF
4393/* end confdefs.h. */
4394#include <string.h>
4395
4396_ACEOF
4397if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4398 $EGREP "memchr" >/dev/null 2>&1; then
4399 :
4400else
4401 ac_cv_header_stdc=no
4402fi
4403rm -f conftest*
4404
4405fi
4406
4407if test $ac_cv_header_stdc = yes; then
4408 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4409 cat >conftest.$ac_ext <<_ACEOF
4410/* confdefs.h. */
4411_ACEOF
4412cat confdefs.h >>conftest.$ac_ext
4413cat >>conftest.$ac_ext <<_ACEOF
4414/* end confdefs.h. */
4415#include <stdlib.h>
4416
4417_ACEOF
4418if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4419 $EGREP "free" >/dev/null 2>&1; then
4420 :
4421else
4422 ac_cv_header_stdc=no
4423fi
4424rm -f conftest*
4425
4426fi
4427
4428if test $ac_cv_header_stdc = yes; then
4429 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4430 if test "$cross_compiling" = yes; then
4431 :
4432else
4433 cat >conftest.$ac_ext <<_ACEOF
4434/* confdefs.h. */
4435_ACEOF
4436cat confdefs.h >>conftest.$ac_ext
4437cat >>conftest.$ac_ext <<_ACEOF
4438/* end confdefs.h. */
4439#include <ctype.h>
4440#if ((' ' & 0x0FF) == 0x020)
4441# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4442# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4443#else
4444# define ISLOWER(c) \
4445 (('a' <= (c) && (c) <= 'i') \
4446 || ('j' <= (c) && (c) <= 'r') \
4447 || ('s' <= (c) && (c) <= 'z'))
4448# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4449#endif
4450
4451#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4452int
4453main ()
4454{
4455 int i;
4456 for (i = 0; i < 256; i++)
4457 if (XOR (islower (i), ISLOWER (i))
4458 || toupper (i) != TOUPPER (i))
4459 exit(2);
4460 exit (0);
4461}
4462_ACEOF
4463rm -f conftest$ac_exeext
4464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4465 (eval $ac_link) 2>&5
4466 ac_status=$?
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470 (eval $ac_try) 2>&5
4471 ac_status=$?
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); }; }; then
4474 :
4475else
4476 echo "$as_me: program exited with status $ac_status" >&5
4477echo "$as_me: failed program was:" >&5
4478sed 's/^/| /' conftest.$ac_ext >&5
4479
4480( exit $ac_status )
4481ac_cv_header_stdc=no
4482fi
4483rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4484fi
4485fi
4486fi
4487echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4488echo "${ECHO_T}$ac_cv_header_stdc" >&6
4489if test $ac_cv_header_stdc = yes; then
4490
4491cat >>confdefs.h <<\_ACEOF
4492#define STDC_HEADERS 1
4493_ACEOF
4494
4495fi
4496
4497# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4508 inttypes.h stdint.h unistd.h
4509do
4510as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4511echo "$as_me:$LINENO: checking for $ac_header" >&5
4512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4513if eval "test \"\${$as_ac_Header+set}\" = set"; then
4514 echo $ECHO_N "(cached) $ECHO_C" >&6
4515else
4516 cat >conftest.$ac_ext <<_ACEOF
4517/* confdefs.h. */
4518_ACEOF
4519cat confdefs.h >>conftest.$ac_ext
4520cat >>conftest.$ac_ext <<_ACEOF
4521/* end confdefs.h. */
4522$ac_includes_default
4523
4524#include <$ac_header>
4525_ACEOF
4526rm -f conftest.$ac_objext
4527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4528 (eval $ac_compile) 2>conftest.er1
4529 ac_status=$?
4530 grep -v '^ *+' conftest.er1 >conftest.err
4531 rm -f conftest.er1
4532 cat conftest.err >&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); } &&
4535 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537 (eval $ac_try) 2>&5
4538 ac_status=$?
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; } &&
4541 { ac_try='test -s conftest.$ac_objext'
4542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4543 (eval $ac_try) 2>&5
4544 ac_status=$?
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }; }; then
4547 eval "$as_ac_Header=yes"
4548else
4549 echo "$as_me: failed program was:" >&5
4550sed 's/^/| /' conftest.$ac_ext >&5
4551
4552eval "$as_ac_Header=no"
4553fi
4554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4555fi
4556echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4557echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4558if test `eval echo '${'$as_ac_Header'}'` = yes; then
4559 cat >>confdefs.h <<_ACEOF
4560#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4561_ACEOF
4562
4563fi
4564
4565done
4566
4567
4568
4569for ac_header in dlfcn.h
4570do
4571as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4572if eval "test \"\${$as_ac_Header+set}\" = set"; then
4573 echo "$as_me:$LINENO: checking for $ac_header" >&5
4574echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4575if eval "test \"\${$as_ac_Header+set}\" = set"; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4577fi
4578echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4579echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4580else
4581 # Is the header compilable?
4582echo "$as_me:$LINENO: checking $ac_header usability" >&5
4583echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4584cat >conftest.$ac_ext <<_ACEOF
4585/* confdefs.h. */
4586_ACEOF
4587cat confdefs.h >>conftest.$ac_ext
4588cat >>conftest.$ac_ext <<_ACEOF
4589/* end confdefs.h. */
4590$ac_includes_default
4591#include <$ac_header>
4592_ACEOF
4593rm -f conftest.$ac_objext
4594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4595 (eval $ac_compile) 2>conftest.er1
4596 ac_status=$?
4597 grep -v '^ *+' conftest.er1 >conftest.err
4598 rm -f conftest.er1
4599 cat conftest.err >&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); } &&
4602 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4604 (eval $ac_try) 2>&5
4605 ac_status=$?
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); }; } &&
4608 { ac_try='test -s conftest.$ac_objext'
4609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4610 (eval $ac_try) 2>&5
4611 ac_status=$?
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); }; }; then
4614 ac_header_compiler=yes
4615else
4616 echo "$as_me: failed program was:" >&5
4617sed 's/^/| /' conftest.$ac_ext >&5
4618
4619ac_header_compiler=no
4620fi
4621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4622echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4623echo "${ECHO_T}$ac_header_compiler" >&6
4624
4625# Is the header present?
4626echo "$as_me:$LINENO: checking $ac_header presence" >&5
4627echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4628cat >conftest.$ac_ext <<_ACEOF
4629/* confdefs.h. */
4630_ACEOF
4631cat confdefs.h >>conftest.$ac_ext
4632cat >>conftest.$ac_ext <<_ACEOF
4633/* end confdefs.h. */
4634#include <$ac_header>
4635_ACEOF
4636if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4638 ac_status=$?
4639 grep -v '^ *+' conftest.er1 >conftest.err
4640 rm -f conftest.er1
4641 cat conftest.err >&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); } >/dev/null; then
4644 if test -s conftest.err; then
4645 ac_cpp_err=$ac_cxx_preproc_warn_flag
4646 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4647 else
4648 ac_cpp_err=
4649 fi
4650else
4651 ac_cpp_err=yes
4652fi
4653if test -z "$ac_cpp_err"; then
4654 ac_header_preproc=yes
4655else
4656 echo "$as_me: failed program was:" >&5
4657sed 's/^/| /' conftest.$ac_ext >&5
4658
4659 ac_header_preproc=no
4660fi
4661rm -f conftest.err conftest.$ac_ext
4662echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4663echo "${ECHO_T}$ac_header_preproc" >&6
4664
4665# So? What about this header?
4666case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4667 yes:no: )
4668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4669echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4671echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4672 ac_header_preproc=yes
4673 ;;
4674 no:yes:* )
4675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4676echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4678echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4680echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4682echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4684echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4686echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4687 (
4688 cat <<\_ASBOX
4689## ------------------------------------------ ##
4690## Report this to the AC_PACKAGE_NAME lists. ##
4691## ------------------------------------------ ##
4692_ASBOX
4693 ) |
4694 sed "s/^/$as_me: WARNING: /" >&2
4695 ;;
4696esac
4697echo "$as_me:$LINENO: checking for $ac_header" >&5
4698echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4699if eval "test \"\${$as_ac_Header+set}\" = set"; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4701else
4702 eval "$as_ac_Header=\$ac_header_preproc"
4703fi
4704echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4705echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4706
4707fi
4708if test `eval echo '${'$as_ac_Header'}'` = yes; then
4709 cat >>confdefs.h <<_ACEOF
4710#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4711_ACEOF
4712
4713fi
4714
4715done
4716
4717
4718
4719
4720
4721# Only perform the check for file, if the check method requires it
4722case "$deplibs_check_method" in
4723file_magic*)
4724 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4725 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4726echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4727if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4728 echo $ECHO_N "(cached) $ECHO_C" >&6
4729else
4730 case "$MAGIC_CMD" in
4731 /*)
4732 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4733 ;;
4734 ?:/*)
4735 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4736 ;;
4737 *)
4738 ac_save_MAGIC_CMD="$MAGIC_CMD"
4739 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4740 ac_dummy="/usr/bin:$PATH"
4741 for ac_dir in $ac_dummy; do
4742 test -z "$ac_dir" && ac_dir=.
4743 if test -f $ac_dir/${ac_tool_prefix}file; then
4744 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4745 if test -n "$file_magic_test_file"; then
4746 case "$deplibs_check_method" in
4747 "file_magic "*)
4748 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4749 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4750 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4751 egrep "$file_magic_regex" > /dev/null; then
4752 :
4753 else
4754 cat <<EOF 1>&2
4755
4756*** Warning: the command libtool uses to detect shared libraries,
4757*** $file_magic_cmd, produces output that libtool cannot recognize.
4758*** The result is that libtool may fail to recognize shared libraries
4759*** as such. This will affect the creation of libtool libraries that
4760*** depend on shared libraries, but programs linked with such libtool
4761*** libraries will work regardless of this problem. Nevertheless, you
4762*** may want to report the problem to your system manager and/or to
4763*** bug-libtool@gnu.org
4764
4765EOF
4766 fi ;;
4767 esac
4768 fi
4769 break
4770 fi
4771 done
4772 IFS="$ac_save_ifs"
4773 MAGIC_CMD="$ac_save_MAGIC_CMD"
4774 ;;
4775esac
4776fi
4777
4778MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4779if test -n "$MAGIC_CMD"; then
4780 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4781echo "${ECHO_T}$MAGIC_CMD" >&6
4782else
4783 echo "$as_me:$LINENO: result: no" >&5
4784echo "${ECHO_T}no" >&6
4785fi
4786
4787if test -z "$lt_cv_path_MAGIC_CMD"; then
4788 if test -n "$ac_tool_prefix"; then
4789 echo "$as_me:$LINENO: checking for file" >&5
4790echo $ECHO_N "checking for file... $ECHO_C" >&6
4791if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4792 echo $ECHO_N "(cached) $ECHO_C" >&6
4793else
4794 case "$MAGIC_CMD" in
4795 /*)
4796 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4797 ;;
4798 ?:/*)
4799 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4800 ;;
4801 *)
4802 ac_save_MAGIC_CMD="$MAGIC_CMD"
4803 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4804 ac_dummy="/usr/bin:$PATH"
4805 for ac_dir in $ac_dummy; do
4806 test -z "$ac_dir" && ac_dir=.
4807 if test -f $ac_dir/file; then
4808 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4809 if test -n "$file_magic_test_file"; then
4810 case "$deplibs_check_method" in
4811 "file_magic "*)
4812 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4813 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4814 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4815 egrep "$file_magic_regex" > /dev/null; then
4816 :
4817 else
4818 cat <<EOF 1>&2
4819
4820*** Warning: the command libtool uses to detect shared libraries,
4821*** $file_magic_cmd, produces output that libtool cannot recognize.
4822*** The result is that libtool may fail to recognize shared libraries
4823*** as such. This will affect the creation of libtool libraries that
4824*** depend on shared libraries, but programs linked with such libtool
4825*** libraries will work regardless of this problem. Nevertheless, you
4826*** may want to report the problem to your system manager and/or to
4827*** bug-libtool@gnu.org
4828
4829EOF
4830 fi ;;
4831 esac
4832 fi
4833 break
4834 fi
4835 done
4836 IFS="$ac_save_ifs"
4837 MAGIC_CMD="$ac_save_MAGIC_CMD"
4838 ;;
4839esac
4840fi
4841
4842MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4843if test -n "$MAGIC_CMD"; then
4844 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4845echo "${ECHO_T}$MAGIC_CMD" >&6
4846else
4847 echo "$as_me:$LINENO: result: no" >&5
4848echo "${ECHO_T}no" >&6
4849fi
4850
4851 else
4852 MAGIC_CMD=:
4853 fi
4854fi
4855
4856 fi
4857 ;;
4858esac
4859
4860if test -n "$ac_tool_prefix"; then
4861 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4862set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4863echo "$as_me:$LINENO: checking for $ac_word" >&5
4864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4865if test "${ac_cv_prog_RANLIB+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4867else
4868 if test -n "$RANLIB"; then
4869 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4870else
4871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872for as_dir in $PATH
4873do
4874 IFS=$as_save_IFS
4875 test -z "$as_dir" && as_dir=.
4876 for ac_exec_ext in '' $ac_executable_extensions; do
4877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4878 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4880 break 2
4881 fi
4882done
4883done
4884
4885fi
4886fi
4887RANLIB=$ac_cv_prog_RANLIB
4888if test -n "$RANLIB"; then
4889 echo "$as_me:$LINENO: result: $RANLIB" >&5
4890echo "${ECHO_T}$RANLIB" >&6
4891else
4892 echo "$as_me:$LINENO: result: no" >&5
4893echo "${ECHO_T}no" >&6
4894fi
4895
4896fi
4897if test -z "$ac_cv_prog_RANLIB"; then
4898 ac_ct_RANLIB=$RANLIB
4899 # Extract the first word of "ranlib", so it can be a program name with args.
4900set dummy ranlib; ac_word=$2
4901echo "$as_me:$LINENO: checking for $ac_word" >&5
4902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4903if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4905else
4906 if test -n "$ac_ct_RANLIB"; then
4907 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4908else
4909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910for as_dir in $PATH
4911do
4912 IFS=$as_save_IFS
4913 test -z "$as_dir" && as_dir=.
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4916 ac_cv_prog_ac_ct_RANLIB="ranlib"
4917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4918 break 2
4919 fi
4920done
4921done
4922
4923 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4924fi
4925fi
4926ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4927if test -n "$ac_ct_RANLIB"; then
4928 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4929echo "${ECHO_T}$ac_ct_RANLIB" >&6
4930else
4931 echo "$as_me:$LINENO: result: no" >&5
4932echo "${ECHO_T}no" >&6
4933fi
4934
4935 RANLIB=$ac_ct_RANLIB
4936else
4937 RANLIB="$ac_cv_prog_RANLIB"
4938fi
4939
4940if test -n "$ac_tool_prefix"; then
4941 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4942set dummy ${ac_tool_prefix}strip; ac_word=$2
4943echo "$as_me:$LINENO: checking for $ac_word" >&5
4944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4945if test "${ac_cv_prog_STRIP+set}" = set; then
4946 echo $ECHO_N "(cached) $ECHO_C" >&6
4947else
4948 if test -n "$STRIP"; then
4949 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4950else
4951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952for as_dir in $PATH
4953do
4954 IFS=$as_save_IFS
4955 test -z "$as_dir" && as_dir=.
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4958 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4960 break 2
4961 fi
4962done
4963done
4964
4965fi
4966fi
4967STRIP=$ac_cv_prog_STRIP
4968if test -n "$STRIP"; then
4969 echo "$as_me:$LINENO: result: $STRIP" >&5
4970echo "${ECHO_T}$STRIP" >&6
4971else
4972 echo "$as_me:$LINENO: result: no" >&5
4973echo "${ECHO_T}no" >&6
4974fi
4975
4976fi
4977if test -z "$ac_cv_prog_STRIP"; then
4978 ac_ct_STRIP=$STRIP
4979 # Extract the first word of "strip", so it can be a program name with args.
4980set dummy strip; ac_word=$2
4981echo "$as_me:$LINENO: checking for $ac_word" >&5
4982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4983if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4984 echo $ECHO_N "(cached) $ECHO_C" >&6
4985else
4986 if test -n "$ac_ct_STRIP"; then
4987 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4988else
4989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990for as_dir in $PATH
4991do
4992 IFS=$as_save_IFS
4993 test -z "$as_dir" && as_dir=.
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4996 ac_cv_prog_ac_ct_STRIP="strip"
4997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4998 break 2
4999 fi
5000done
5001done
5002
5003 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5004fi
5005fi
5006ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5007if test -n "$ac_ct_STRIP"; then
5008 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5009echo "${ECHO_T}$ac_ct_STRIP" >&6
5010else
5011 echo "$as_me:$LINENO: result: no" >&5
5012echo "${ECHO_T}no" >&6
5013fi
5014
5015 STRIP=$ac_ct_STRIP
5016else
5017 STRIP="$ac_cv_prog_STRIP"
5018fi
5019
5020
5021enable_dlopen=no
5022enable_win32_dll=no
5023
5024# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5025if test "${enable_libtool_lock+set}" = set; then
5026 enableval="$enable_libtool_lock"
5027
5028fi;
5029test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5030
5031# Some flags need to be propagated to the compiler or linker for good
5032# libtool support.
5033case "$host" in
5034*-*-irix6*)
5035 # Find out which ABI we are using.
5036 echo '#line 5036 "configure"' > conftest.$ac_ext
5037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5038 (eval $ac_compile) 2>&5
5039 ac_status=$?
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); }; then
5042 case "`/usr/bin/file conftest.$ac_objext`" in
5043 *32-bit*)
5044 LD="${LD-ld} -32"
5045 ;;
5046 *N32*)
5047 LD="${LD-ld} -n32"
5048 ;;
5049 *64-bit*)
5050 LD="${LD-ld} -64"
5051 ;;
5052 esac
5053 fi
5054 rm -rf conftest*
5055 ;;
5056
5057*-*-sco3.2v5*)
5058 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5059 SAVE_CFLAGS="$CFLAGS"
5060 CFLAGS="$CFLAGS -belf"
5061 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5062echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5063if test "${lt_cv_cc_needs_belf+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5065else
5066
5067
5068 ac_ext=c
5069ac_cpp='$CPP $CPPFLAGS'
5070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5072ac_compiler_gnu=$ac_cv_c_compiler_gnu
5073
5074 cat >conftest.$ac_ext <<_ACEOF
5075/* confdefs.h. */
5076_ACEOF
5077cat confdefs.h >>conftest.$ac_ext
5078cat >>conftest.$ac_ext <<_ACEOF
5079/* end confdefs.h. */
5080
5081int
5082main ()
5083{
5084
5085 ;
5086 return 0;
5087}
5088_ACEOF
5089rm -f conftest.$ac_objext conftest$ac_exeext
5090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5091 (eval $ac_link) 2>conftest.er1
5092 ac_status=$?
5093 grep -v '^ *+' conftest.er1 >conftest.err
5094 rm -f conftest.er1
5095 cat conftest.err >&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } &&
5098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100 (eval $ac_try) 2>&5
5101 ac_status=$?
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); }; } &&
5104 { ac_try='test -s conftest$ac_exeext'
5105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106 (eval $ac_try) 2>&5
5107 ac_status=$?
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); }; }; then
5110 lt_cv_cc_needs_belf=yes
5111else
5112 echo "$as_me: failed program was:" >&5
5113sed 's/^/| /' conftest.$ac_ext >&5
5114
5115lt_cv_cc_needs_belf=no
5116fi
5117rm -f conftest.err conftest.$ac_objext \
5118 conftest$ac_exeext conftest.$ac_ext
5119 ac_ext=cc 3226ac_ext=cc
5120ac_cpp='$CXXCPP $CPPFLAGS' 3227ac_cpp='$CXXCPP $CPPFLAGS'
5121ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3228ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5122ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3229ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5123ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3230ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5124 3231
5125fi
5126echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5127echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5128 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5129 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5130 CFLAGS="$SAVE_CFLAGS"
5131 fi
5132 ;;
5133 3232
5134 3233if test x$GCC = xyes && test x$GXX = xyes; then
5135esac
5136
5137# Sed substitution that helps us do robust quoting. It backslashifies
5138# metacharacters that are still active within double-quoted strings.
5139Xsed='sed -e s/^X//'
5140sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5141
5142# Same as above, but do not quote variable references.
5143double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5144
5145# Sed substitution to delay expansion of an escaped shell variable in a
5146# double_quote_subst'ed string.
5147delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5148
5149# Constants:
5150rm="rm -f"
5151
5152# Global variables:
5153default_ofile=libtool
5154can_build_shared=yes
5155
5156# All known linkers require a `.a' archive for static linking (except M$VC,
5157# which needs '.lib').
5158libext=a
5159ltmain="$ac_aux_dir/ltmain.sh"
5160ofile="$default_ofile"
5161with_gnu_ld="$lt_cv_prog_gnu_ld"
5162need_locks="$enable_libtool_lock"
5163
5164old_CC="$CC"
5165old_CFLAGS="$CFLAGS"
5166
5167# Set sane defaults for various variables
5168test -z "$AR" && AR=ar
5169test -z "$AR_FLAGS" && AR_FLAGS=cru
5170test -z "$AS" && AS=as
5171test -z "$CC" && CC=cc
5172test -z "$DLLTOOL" && DLLTOOL=dlltool
5173test -z "$LD" && LD=ld
5174test -z "$LN_S" && LN_S="ln -s"
5175test -z "$MAGIC_CMD" && MAGIC_CMD=file
5176test -z "$NM" && NM=nm
5177test -z "$OBJDUMP" && OBJDUMP=objdump
5178test -z "$RANLIB" && RANLIB=:
5179test -z "$STRIP" && STRIP=:
5180test -z "$ac_objext" && ac_objext=o
5181
5182if test x"$host" != x"$build"; then
5183 ac_tool_prefix=${host_alias}-
5184else
5185 ac_tool_prefix=
5186fi
5187
5188# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5189case "$host_os" in
5190linux-gnu*) ;;
5191linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5192esac
5193
5194case "$host_os" in
5195aix3*)
5196 # AIX sometimes has problems with the GCC collect2 program. For some
5197 # reason, if we set the COLLECT_NAMES environment variable, the problems
5198 # vanish in a puff of smoke.
5199 if test "X${COLLECT_NAMES+set}" != Xset; then
5200 COLLECT_NAMES=
5201 export COLLECT_NAMES
5202 fi
5203 ;;
5204esac
5205
5206# Determine commands to create old-style static archives.
5207old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5208old_postinstall_cmds='chmod 644 $oldlib'
5209old_postuninstall_cmds=
5210
5211if test -n "$RANLIB"; then
5212 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5213 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5214fi
5215
5216# Allow CC to be a program name with arguments.
5217set dummy $CC
5218compiler="$2"
5219
5220## FIXME: this should be a separate macro
5221##
5222echo "$as_me:$LINENO: checking for objdir" >&5 3234 echo "$as_me:$LINENO: checking for working libsupc++" >&5
5223echo $ECHO_N "checking for objdir... $ECHO_C" >&6 3235echo $ECHO_N "checking for working libsupc++... $ECHO_C" >&6
5224rm -f .libs 2>/dev/null 3236 save_CXX="$CXX"
5225mkdir .libs 2>/dev/null 3237 save_LIBS="$LIBS"
5226if test -d .libs; then 3238 CXX="$CC"
5227 objdir=.libs 3239 LIBS="$LIBS -lsupc++"
5228else 3240 LINKER="$CC"
5229 # MS-DOS does not allow filenames that begin with a dot.
5230 objdir=_libs
5231fi
5232rmdir .libs 2>/dev/null
5233echo "$as_me:$LINENO: result: $objdir" >&5
5234echo "${ECHO_T}$objdir" >&6
5235##
5236## END FIXME
5237 3241
5238
5239## FIXME: this should be a separate macro
5240##
5241
5242# Check whether --with-pic or --without-pic was given.
5243if test "${with_pic+set}" = set; then
5244 withval="$with_pic"
5245 pic_mode="$withval"
5246else
5247 pic_mode=default
5248fi;
5249test -z "$pic_mode" && pic_mode=default
5250
5251# We assume here that the value for lt_cv_prog_cc_pic will not be cached
5252# in isolation, and that seeing it set (from the cache) indicates that
5253# the associated values are set (in the cache) correctly too.
5254echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5255echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5256if test "${lt_cv_prog_cc_pic+set}" = set; then
5257 echo $ECHO_N "(cached) $ECHO_C" >&6
5258else
5259 lt_cv_prog_cc_pic=
5260 lt_cv_prog_cc_shlib=
5261 lt_cv_prog_cc_wl=
5262 lt_cv_prog_cc_static=
5263 lt_cv_prog_cc_no_builtin=
5264 lt_cv_prog_cc_can_build_shared=$can_build_shared
5265
5266 if test "$GCC" = yes; then
5267 lt_cv_prog_cc_wl='-Wl,'
5268 lt_cv_prog_cc_static='-static'
5269
5270 case "$host_os" in
5271 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
5272 # PIC is the default for these OSes.
5273 ;;
5274 aix*)
5275 # Below there is a dirty hack to force normal static linking with -ldl
5276 # The problem is because libdl dynamically linked with both libc and
5277 # libC (AIX C++ library), which obviously doesn't included in libraries
5278 # list by gcc. This cause undefined symbols with -static flags.
5279 # This hack allows C programs to be linked with "-static -ldl", but
5280 # we not sure about C++ programs.
5281 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5282 ;;
5283 cygwin* | mingw* | pw32* | os2*)
5284 # This hack is so that the source file can tell whether it is being
5285 # built for inclusion in a dll (and should export symbols for example).
5286 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5287 ;;
5288 amigaos*)
5289 # FIXME: we need at least 68020 code to build shared libraries, but
5290 # adding the `-m68020' flag to GCC prevents building anything better,
5291 # like `-m68040'.
5292 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5293 ;;
5294 sysv4*MP*)
5295 if test -d /usr/nec; then
5296 lt_cv_prog_cc_pic=-Kconform_pic
5297 fi
5298 ;;
5299 *)
5300 lt_cv_prog_cc_pic='-fPIC'
5301 ;;
5302 esac
5303 else
5304 # PORTME Check for PIC flags for the system compiler.
5305 case "$host_os" in
5306 aix3* | aix4*)
5307 # All AIX code is PIC.
5308 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5309 ;;
5310
5311 hpux9* | hpux10* | hpux11*)
5312 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5313 lt_cv_prog_cc_wl='-Wl,'
5314 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5315 lt_cv_prog_cc_pic='+Z'
5316 ;;
5317
5318 irix5* | irix6*)
5319 lt_cv_prog_cc_wl='-Wl,'
5320 lt_cv_prog_cc_static='-non_shared'
5321 # PIC (with -KPIC) is the default.
5322 ;;
5323
5324 cygwin* | mingw* | pw32* | os2*)
5325 # This hack is so that the source file can tell whether it is being
5326 # built for inclusion in a dll (and should export symbols for example).
5327 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5328 ;;
5329
5330 newsos6)
5331 lt_cv_prog_cc_pic='-KPIC'
5332 lt_cv_prog_cc_static='-Bstatic'
5333 ;;
5334
5335 osf3* | osf4* | osf5*)
5336 # All OSF/1 code is PIC.
5337 lt_cv_prog_cc_wl='-Wl,'
5338 lt_cv_prog_cc_static='-non_shared'
5339 ;;
5340
5341 sco3.2v5*)
5342 lt_cv_prog_cc_pic='-Kpic'
5343 lt_cv_prog_cc_static='-dn'
5344 lt_cv_prog_cc_shlib='-belf'
5345 ;;
5346
5347 solaris*)
5348 lt_cv_prog_cc_pic='-KPIC'
5349 lt_cv_prog_cc_static='-Bstatic'
5350 lt_cv_prog_cc_wl='-Wl,'
5351 ;;
5352
5353 sunos4*)
5354 lt_cv_prog_cc_pic='-PIC'
5355 lt_cv_prog_cc_static='-Bstatic'
5356 lt_cv_prog_cc_wl='-Qoption ld '
5357 ;;
5358
5359 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5360 lt_cv_prog_cc_pic='-KPIC'
5361 lt_cv_prog_cc_static='-Bstatic'
5362 if test "x$host_vendor" = xsni; then
5363 lt_cv_prog_cc_wl='-LD'
5364 else
5365 lt_cv_prog_cc_wl='-Wl,'
5366 fi
5367 ;;
5368
5369 uts4*)
5370 lt_cv_prog_cc_pic='-pic'
5371 lt_cv_prog_cc_static='-Bstatic'
5372 ;;
5373
5374 sysv4*MP*)
5375 if test -d /usr/nec ;then
5376 lt_cv_prog_cc_pic='-Kconform_pic'
5377 lt_cv_prog_cc_static='-Bstatic'
5378 fi
5379 ;;
5380
5381 *)
5382 lt_cv_prog_cc_can_build_shared=no
5383 ;;
5384 esac
5385 fi
5386
5387fi
5388
5389if test -z "$lt_cv_prog_cc_pic"; then
5390 echo "$as_me:$LINENO: result: none" >&5
5391echo "${ECHO_T}none" >&6
5392else
5393 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5394echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5395
5396 # Check to make sure the pic_flag actually works.
5397 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5398echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5399 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5400 echo $ECHO_N "(cached) $ECHO_C" >&6
5401else
5402 save_CFLAGS="$CFLAGS"
5403 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5404 cat >conftest.$ac_ext <<_ACEOF 3242cat >conftest.$ac_ext <<_ACEOF
5405/* confdefs.h. */ 3243/* confdefs.h. */
5406_ACEOF 3244_ACEOF
5407cat confdefs.h >>conftest.$ac_ext 3245cat confdefs.h >>conftest.$ac_ext
5408cat >>conftest.$ac_ext <<_ACEOF 3246cat >>conftest.$ac_ext <<_ACEOF
5409/* end confdefs.h. */ 3247/* end confdefs.h. */
5410 3248struct test { }; void f() try { throw new test; } catch (...) { throw; }
5411int 3249int
5412main () 3250main ()
5413{ 3251{
5414 3252
5415 ; 3253 ;
5416 return 0; 3254 return 0;
5417} 3255}
5418_ACEOF 3256_ACEOF
3257rm -f conftest.$ac_objext conftest$ac_exeext
3258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3259 (eval $ac_link) 2>conftest.er1
3260 ac_status=$?
3261 grep -v '^ *+' conftest.er1 >conftest.err
3262 rm -f conftest.er1
3263 cat conftest.err >&5
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); } &&
3266 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3268 (eval $ac_try) 2>&5
3269 ac_status=$?
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); }; } &&
3272 { ac_try='test -s conftest$ac_exeext'
3273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3274 (eval $ac_try) 2>&5
3275 ac_status=$?
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }; }; then
3278 echo "$as_me:$LINENO: result: ok" >&5
3279echo "${ECHO_T}ok" >&6
3280else
3281 echo "$as_me: failed program was:" >&5
3282sed 's/^/| /' conftest.$ac_ext >&5
3283
3284
3285 echo "$as_me:$LINENO: result: no, making everything bigger and slower" >&5
3286echo "${ECHO_T}no, making everything bigger and slower" >&6
3287 LIBS="$save_LIBS"
3288 LINKER="$save_CXX"
3289
3290
3291fi
3292rm -f conftest.err conftest.$ac_objext \
3293 conftest$ac_exeext conftest.$ac_ext
3294 CXX="$save_CXX"
3295fi
3296LINKER=$LINKER
3297
3298
3299ac_ext=cc
3300ac_cpp='$CXXCPP $CPPFLAGS'
3301ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3302ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3303ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3304
3305if test -z "$orig_CXXFLAGS"; then
3306 if test x$GCC = xyes && test "x$GXX" = xyes; then
3307 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs"
3308 cat >conftest.$ac_ext <<_ACEOF
3309/* confdefs.h. */
3310_ACEOF
3311cat confdefs.h >>conftest.$ac_ext
3312cat >>conftest.$ac_ext <<_ACEOF
3313/* end confdefs.h. */
3314
3315int
3316main ()
3317{
3318
3319 ;
3320 return 0;
3321}
3322_ACEOF
5419rm -f conftest.$ac_objext 3323rm -f conftest.$ac_objext
5420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5421 (eval $ac_compile) 2>conftest.er1 3325 (eval $ac_compile) 2>conftest.er1
5422 ac_status=$? 3326 ac_status=$?
5423 grep -v '^ *+' conftest.er1 >conftest.err 3327 grep -v '^ *+' conftest.er1 >conftest.err
5435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436 (eval $ac_try) 2>&5 3340 (eval $ac_try) 2>&5
5437 ac_status=$? 3341 ac_status=$?
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); }; }; then 3343 (exit $ac_status); }; }; then
5440 case "$host_os" in 3344 :
5441 hpux9* | hpux10* | hpux11*)
5442 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5443 # they create non-PIC objects. So, if there were any warnings, we
5444 # assume that PIC is not supported.
5445 if test -s conftest.err; then
5446 lt_cv_prog_cc_pic_works=no
5447 else
5448 lt_cv_prog_cc_pic_works=yes
5449 fi
5450 ;;
5451 *)
5452 lt_cv_prog_cc_pic_works=yes
5453 ;;
5454 esac
5455
5456else 3345else
5457 echo "$as_me: failed program was:" >&5 3346 echo "$as_me: failed program was:" >&5
5458sed 's/^/| /' conftest.$ac_ext >&5 3347sed 's/^/| /' conftest.$ac_ext >&5
5459 3348
5460 lt_cv_prog_cc_pic_works=no 3349CXXFLAGS="-g -O3"
5461
5462fi 3350fi
5463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5464 CFLAGS="$save_CFLAGS"
5465
5466fi
5467
5468
5469 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5470 lt_cv_prog_cc_pic=
5471 lt_cv_prog_cc_can_build_shared=no
5472 else 3352 else
5473 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" 3353 CXXFLAGS="-O"
5474 fi 3354 fi
5475 3355 CFLAGS="$CXXFLAGS"
5476 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5477echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5478fi 3356fi
5479##
5480## END FIXME
5481 3357
5482# Check for any special shared library compilation flags.
5483if test -n "$lt_cv_prog_cc_shlib"; then
5484 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5485echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5486 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5487 else
5488 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5489echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5490 lt_cv_prog_cc_can_build_shared=no
5491 fi
5492fi
5493 3358
5494## FIXME: this should be a separate macro 3359cat >>confdefs.h <<\_ACEOF
5495## 3360#define _GNU_SOURCE 1
5496echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 3361_ACEOF
5497echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6 3362
5498if test "${lt_cv_prog_cc_static_works+set}" = set; then 3363
3364case $host in
3365 *-*-solaris* )
3366
3367cat >>confdefs.h <<\_ACEOF
3368#define _XOPEN_SOURCE_EXTENDED 1
3369_ACEOF
3370
3371
3372cat >>confdefs.h <<\_ACEOF
3373#define _XOPEN_SOURCE 2
3374_ACEOF
3375
3376
3377cat >>confdefs.h <<\_ACEOF
3378#define __EXTENSIONS__ 1
3379_ACEOF
3380
3381 ;;
3382esac
3383
3384
3385echo "$as_me:$LINENO: checking for setlocale" >&5
3386echo $ECHO_N "checking for setlocale... $ECHO_C" >&6
3387if test "${ac_cv_func_setlocale+set}" = set; then
5499 echo $ECHO_N "(cached) $ECHO_C" >&6 3388 echo $ECHO_N "(cached) $ECHO_C" >&6
5500else 3389else
5501 lt_cv_prog_cc_static_works=no
5502 save_LDFLAGS="$LDFLAGS"
5503 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5504 cat >conftest.$ac_ext <<_ACEOF 3390 cat >conftest.$ac_ext <<_ACEOF
5505/* confdefs.h. */ 3391/* confdefs.h. */
5506_ACEOF 3392_ACEOF
5507cat confdefs.h >>conftest.$ac_ext 3393cat confdefs.h >>conftest.$ac_ext
5508cat >>conftest.$ac_ext <<_ACEOF 3394cat >>conftest.$ac_ext <<_ACEOF
5509/* end confdefs.h. */ 3395/* end confdefs.h. */
5510
5511int
5512main ()
5513{
5514
5515 ;
5516 return 0;
5517}
5518_ACEOF
5519rm -f conftest.$ac_objext conftest$ac_exeext
5520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5521 (eval $ac_link) 2>conftest.er1
5522 ac_status=$?
5523 grep -v '^ *+' conftest.er1 >conftest.err
5524 rm -f conftest.er1
5525 cat conftest.err >&5
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); } &&
5528 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5530 (eval $ac_try) 2>&5
5531 ac_status=$?
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); }; } &&
5534 { ac_try='test -s conftest$ac_exeext'
5535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5536 (eval $ac_try) 2>&5
5537 ac_status=$?
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); }; }; then
5540 lt_cv_prog_cc_static_works=yes
5541else
5542 echo "$as_me: failed program was:" >&5
5543sed 's/^/| /' conftest.$ac_ext >&5
5544
5545fi
5546rm -f conftest.err conftest.$ac_objext \
5547 conftest$ac_exeext conftest.$ac_ext
5548 LDFLAGS="$save_LDFLAGS"
5549
5550fi
5551
5552
5553# Belt *and* braces to stop my trousers falling down:
5554test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5555echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5556echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5557
5558pic_flag="$lt_cv_prog_cc_pic"
5559special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5560wl="$lt_cv_prog_cc_wl"
5561link_static_flag="$lt_cv_prog_cc_static"
5562no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5563can_build_shared="$lt_cv_prog_cc_can_build_shared"
5564##
5565## END FIXME
5566
5567
5568## FIXME: this should be a separate macro
5569##
5570# Check to see if options -o and -c are simultaneously supported by compiler
5571echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5572echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5573$rm -r conftest 2>/dev/null
5574mkdir conftest
5575cd conftest
5576echo "int some_variable = 0;" > conftest.$ac_ext
5577mkdir out
5578# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5579# that will create temporary files in the current directory regardless of
5580# the output directory. Thus, making CWD read-only will cause this test
5581# to fail, enabling locking or at least warning the user not to do parallel
5582# builds.
5583chmod -w .
5584save_CFLAGS="$CFLAGS"
5585CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5586compiler_c_o=no
5587if { (eval echo configure:5587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5588 # The compiler can only warn and ignore the option if not recognized
5589 # So say no if there are warnings
5590 if test -s out/conftest.err; then
5591 compiler_c_o=no
5592 else
5593 compiler_c_o=yes
5594 fi
5595else
5596 # Append any errors to the config.log.
5597 cat out/conftest.err 1>&5
5598 compiler_c_o=no
5599fi
5600echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5601echo "${ECHO_T}$compiler_c_o" >&6
5602CFLAGS="$save_CFLAGS"
5603chmod u+w .
5604$rm conftest* out/*
5605rmdir out
5606cd ..
5607rmdir conftest
5608$rm -r conftest 2>/dev/null
5609
5610if test x"$compiler_c_o" = x"yes"; then
5611 # Check to see if we can write to a .lo
5612 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5613echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5614 compiler_o_lo=no
5615 save_CFLAGS="$CFLAGS"
5616 CFLAGS="$CFLAGS -c -o conftest.lo"
5617 cat >conftest.$ac_ext <<_ACEOF
5618/* confdefs.h. */
5619_ACEOF
5620cat confdefs.h >>conftest.$ac_ext
5621cat >>conftest.$ac_ext <<_ACEOF
5622/* end confdefs.h. */
5623
5624int
5625main ()
5626{
5627int some_variable = 0;
5628 ;
5629 return 0;
5630}
5631_ACEOF
5632rm -f conftest.$ac_objext
5633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5634 (eval $ac_compile) 2>conftest.er1
5635 ac_status=$?
5636 grep -v '^ *+' conftest.er1 >conftest.err
5637 rm -f conftest.er1
5638 cat conftest.err >&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); } &&
5641 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
5647 { ac_try='test -s conftest.$ac_objext'
5648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5649 (eval $ac_try) 2>&5
5650 ac_status=$?
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); }; }; then
5653 # The compiler can only warn and ignore the option if not recognized
5654 # So say no if there are warnings
5655 if test -s conftest.err; then
5656 compiler_o_lo=no
5657 else
5658 compiler_o_lo=yes
5659 fi
5660
5661else
5662 echo "$as_me: failed program was:" >&5
5663sed 's/^/| /' conftest.$ac_ext >&5
5664
5665fi
5666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5667 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5668echo "${ECHO_T}$compiler_c_o" >&6
5669 CFLAGS="$save_CFLAGS"
5670else
5671 compiler_o_lo=no
5672fi
5673##
5674## END FIXME
5675
5676## FIXME: this should be a separate macro
5677##
5678# Check to see if we can do hard links to lock some files if needed
5679hard_links="nottested"
5680if test "$compiler_c_o" = no && test "$need_locks" != no; then
5681 # do not overwrite the value of need_locks provided by the user
5682 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5683echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5684 hard_links=yes
5685 $rm conftest*
5686 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5687 touch conftest.a
5688 ln conftest.a conftest.b 2>&5 || hard_links=no
5689 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5690 echo "$as_me:$LINENO: result: $hard_links" >&5
5691echo "${ECHO_T}$hard_links" >&6
5692 if test "$hard_links" = no; then
5693 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5694echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5695 need_locks=warn
5696 fi
5697else
5698 need_locks=no
5699fi
5700##
5701## END FIXME
5702
5703## FIXME: this should be a separate macro
5704##
5705if test "$GCC" = yes; then
5706 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5707 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5708echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5709 echo "int some_variable = 0;" > conftest.$ac_ext
5710 save_CFLAGS="$CFLAGS"
5711 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5712 compiler_rtti_exceptions=no
5713 cat >conftest.$ac_ext <<_ACEOF
5714/* confdefs.h. */
5715_ACEOF
5716cat confdefs.h >>conftest.$ac_ext
5717cat >>conftest.$ac_ext <<_ACEOF
5718/* end confdefs.h. */
5719
5720int
5721main ()
5722{
5723int some_variable = 0;
5724 ;
5725 return 0;
5726}
5727_ACEOF
5728rm -f conftest.$ac_objext
5729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5730 (eval $ac_compile) 2>conftest.er1
5731 ac_status=$?
5732 grep -v '^ *+' conftest.er1 >conftest.err
5733 rm -f conftest.er1
5734 cat conftest.err >&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } &&
5737 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739 (eval $ac_try) 2>&5
5740 ac_status=$?
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; } &&
5743 { ac_try='test -s conftest.$ac_objext'
5744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745 (eval $ac_try) 2>&5
5746 ac_status=$?
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }; }; then
5749 # The compiler can only warn and ignore the option if not recognized
5750 # So say no if there are warnings
5751 if test -s conftest.err; then
5752 compiler_rtti_exceptions=no
5753 else
5754 compiler_rtti_exceptions=yes
5755 fi
5756
5757else
5758 echo "$as_me: failed program was:" >&5
5759sed 's/^/| /' conftest.$ac_ext >&5
5760
5761fi
5762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5763 CFLAGS="$save_CFLAGS"
5764 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5765echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5766
5767 if test "$compiler_rtti_exceptions" = "yes"; then
5768 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5769 else
5770 no_builtin_flag=' -fno-builtin'
5771 fi
5772fi
5773##
5774## END FIXME
5775
5776## FIXME: this should be a separate macro
5777##
5778# See if the linker supports building shared libraries.
5779echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5780echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5781
5782allow_undefined_flag=
5783no_undefined_flag=
5784need_lib_prefix=unknown
5785need_version=unknown
5786# when you set need_version to no, make sure it does not cause -set_version
5787# flags to be left without arguments
5788archive_cmds=
5789archive_expsym_cmds=
5790old_archive_from_new_cmds=
5791old_archive_from_expsyms_cmds=
5792export_dynamic_flag_spec=
5793whole_archive_flag_spec=
5794thread_safe_flag_spec=
5795hardcode_into_libs=no
5796hardcode_libdir_flag_spec=
5797hardcode_libdir_separator=
5798hardcode_direct=no
5799hardcode_minus_L=no
5800hardcode_shlibpath_var=unsupported
5801runpath_var=
5802link_all_deplibs=unknown
5803always_export_symbols=no
5804export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5805# include_expsyms should be a list of space-separated symbols to be *always*
5806# included in the symbol list
5807include_expsyms=
5808# exclude_expsyms can be an egrep regular expression of symbols to exclude
5809# it will be wrapped by ` (' and `)$', so one must not match beginning or
5810# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5811# as well as any symbol that contains `d'.
5812exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5813# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5814# platforms (ab)use it in PIC code, but their linkers get confused if
5815# the symbol is explicitly referenced. Since portable code cannot
5816# rely on this symbol name, it's probably fine to never include it in
5817# preloaded symbol tables.
5818extract_expsyms_cmds=
5819
5820case "$host_os" in
5821cygwin* | mingw* | pw32* )
5822 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5823 # When not using gcc, we currently assume that we are using
5824 # Microsoft Visual C++.
5825 if test "$GCC" != yes; then
5826 with_gnu_ld=no
5827 fi
5828 ;;
5829
5830esac
5831
5832ld_shlibs=yes
5833if test "$with_gnu_ld" = yes; then
5834 # If archive_cmds runs LD, not CC, wlarc should be empty
5835 wlarc='${wl}'
5836
5837 # See if GNU ld supports shared libraries.
5838 case "$host_os" in
5839 aix3* | aix4*)
5840 # On AIX, the GNU linker is very broken
5841 ld_shlibs=no
5842 cat <<EOF 1>&2
5843
5844*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5845*** to be unable to reliably create shared libraries on AIX.
5846*** Therefore, libtool is disabling shared libraries support. If you
5847*** really care for shared libraries, you may want to modify your PATH
5848*** so that a non-GNU linker is found, and then restart.
5849
5850EOF
5851 ;;
5852
5853 amigaos*)
5854 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)'
5855 hardcode_libdir_flag_spec='-L$libdir'
5856 hardcode_minus_L=yes
5857
5858 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5859 # that the semantics of dynamic libraries on AmigaOS, at least up
5860 # to version 4, is to share data among multiple programs linked
5861 # with the same dynamic library. Since this doesn't match the
5862 # behavior of shared libraries on other platforms, we can use
5863 # them.
5864 ld_shlibs=no
5865 ;;
5866
5867 beos*)
5868 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5869 allow_undefined_flag=unsupported
5870 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5871 # support --undefined. This deserves some investigation. FIXME
5872 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5873 else
5874 ld_shlibs=no
5875 fi
5876 ;;
5877
5878 cygwin* | mingw* | pw32*)
5879 # hardcode_libdir_flag_spec is actually meaningless, as there is
5880 # no search path for DLLs.
5881 hardcode_libdir_flag_spec='-L$libdir'
5882 allow_undefined_flag=unsupported
5883 always_export_symbols=yes
5884
5885 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5886 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5887 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5888 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5889 else $CC -o impgen impgen.c ; fi)~
5890 $output_objdir/impgen $dir/$soname > $output_objdir/$soname-def'
5891
5892 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5893
5894 # cygwin and mingw dlls have different entry points and sets of symbols
5895 # to exclude.
5896 # FIXME: what about values for MSVC?
5897 dll_entry=__cygwin_dll_entry@12
5898 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5899 case "$host_os" in
5900 mingw*)
5901 # mingw values
5902 dll_entry=_DllMainCRTStartup@12
5903 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5904 ;;
5905 esac
5906
5907 # mingw and cygwin differ, and it's simplest to just exclude the union
5908 # of the two symbol sets.
5909 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5910
5911 # recent cygwin and mingw systems supply a stub DllMain which the user
5912 # can override, but on older systems we have to supply one (in ltdll.c)
5913 if test "x$lt_cv_need_dllmain" = "xyes"; then
5914 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5915 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~
5916 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5917 else
5918 ltdll_obj=
5919 ltdll_cmds=
5920 fi
5921
5922 # Extract the symbol export list from an `--export-all' def file,
5923 # then regenerate the def file from the symbol export list, so that
5924 # the compiled dll only exports the symbol export list.
5925 # Be careful not to strip the DATA tag left be newer dlltools.
5926 export_symbols_cmds="$ltdll_cmds"'
5927 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5928 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5929
5930 # If DATA tags from a recent dlltool are present, honour them!
5931 archive_expsym_cmds='echo EXPORTS > $output_objdir/$soname-def~
5932 _lt_hint=1;
5933 cat $export_symbols | while read symbol; do
5934 set dummy \$symbol;
5935 case \$# in
5936 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5937 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5938 esac;
5939 _lt_hint=`expr 1 + \$_lt_hint`;
5940 done~
5941 '"$ltdll_cmds"'
5942 $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~
5943 $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~
5944 $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~
5945 $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~
5946 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5947 ;;
5948
5949 netbsd*)
5950 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5951 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5952 wlarc=
5953 else
5954 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5955 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5956 fi
5957 ;;
5958
5959 solaris* | sysv5*)
5960 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5961 ld_shlibs=no
5962 cat <<EOF 1>&2
5963
5964*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5965*** create shared libraries on Solaris systems. Therefore, libtool
5966*** is disabling shared libraries support. We urge you to upgrade GNU
5967*** binutils to release 2.9.1 or newer. Another option is to modify
5968*** your PATH or compiler configuration so that the native linker is
5969*** used, and then restart.
5970
5971EOF
5972 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5973 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5974 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5975 else
5976 ld_shlibs=no
5977 fi
5978 ;;
5979
5980 sunos4*)
5981 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5982 wlarc=
5983 hardcode_direct=yes
5984 hardcode_shlibpath_var=no
5985 ;;
5986
5987 *)
5988 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5989 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5990 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5991 else
5992 ld_shlibs=no
5993 fi
5994 ;;
5995 esac
5996
5997 if test "$ld_shlibs" = yes; then
5998 runpath_var=LD_RUN_PATH
5999 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6000 export_dynamic_flag_spec='${wl}--export-dynamic'
6001 case $host_os in
6002 cygwin* | mingw* | pw32*)
6003 # dlltool doesn't understand --whole-archive et. al.
6004 whole_archive_flag_spec=
6005 ;;
6006 *)
6007 # ancient GNU ld didn't support --whole-archive et. al.
6008 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6009 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6010 else
6011 whole_archive_flag_spec=
6012 fi
6013 ;;
6014 esac
6015 fi
6016else
6017 # PORTME fill in a description of your system's linker (not GNU ld)
6018 case "$host_os" in
6019 aix3*)
6020 allow_undefined_flag=unsupported
6021 always_export_symbols=yes
6022 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'
6023 # Note: this linker hardcodes the directories in LIBPATH if there
6024 # are no directories specified by -L.
6025 hardcode_minus_L=yes
6026 if test "$GCC" = yes && test -z "$link_static_flag"; then
6027 # Neither direct hardcoding nor static linking is supported with a
6028 # broken collect2.
6029 hardcode_direct=unsupported
6030 fi
6031 ;;
6032
6033 aix4*)
6034 hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib'
6035 hardcode_libdir_separator=':'
6036 if test "$GCC" = yes; then
6037 collect2name=`${CC} -print-prog-name=collect2`
6038 if test -f "$collect2name" && \
6039 strings "$collect2name" | grep resolve_lib_name >/dev/null
6040 then
6041 # We have reworked collect2
6042 hardcode_direct=yes
6043 else
6044 # We have old collect2
6045 hardcode_direct=unsupported
6046 # It fails to find uninstalled libraries when the uninstalled
6047 # path is not listed in the libpath. Setting hardcode_minus_L
6048 # to unsupported forces relinking
6049 hardcode_minus_L=yes
6050 hardcode_libdir_flag_spec='-L$libdir'
6051 hardcode_libdir_separator=
6052 fi
6053 shared_flag='-shared'
6054 else
6055 shared_flag='${wl}-bM:SRE'
6056 hardcode_direct=yes
6057 fi
6058 allow_undefined_flag=' ${wl}-berok'
6059 archive_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}'
6060 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}'
6061 case "$host_os" in aix4.[01]|aix4.[01].*)
6062 # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on
6063 always_export_symbols=yes ;;
6064 esac
6065
6066 # We don't want to build shared libraries on unknown CPU types.
6067 case $host_cpu in
6068 powerpc | rs6000) ;;
6069 *) ld_shlibs=no ;;
6070 esac
6071 ;;
6072
6073 amigaos*)
6074 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)'
6075 hardcode_libdir_flag_spec='-L$libdir'
6076 hardcode_minus_L=yes
6077 # see comment about different semantics on the GNU ld section
6078 ld_shlibs=no
6079 ;;
6080
6081 cygwin* | mingw* | pw32*)
6082 # When not using gcc, we currently assume that we are using
6083 # Microsoft Visual C++.
6084 # hardcode_libdir_flag_spec is actually meaningless, as there is
6085 # no search path for DLLs.
6086 hardcode_libdir_flag_spec=' '
6087 allow_undefined_flag=unsupported
6088 # Tell ltmain to make .lib files, not .a files.
6089 libext=lib
6090 # FIXME: Setting linknames here is a bad hack.
6091 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6092 # The linker will automatically build a .lib file if we build a DLL.
6093 old_archive_from_new_cmds='true'
6094 # FIXME: Should let the user specify the lib program.
6095 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6096 fix_srcfile_path='`cygpath -w "$srcfile"`'
6097 ;;
6098
6099 darwin* | rhapsody*)
6100 allow_undefined_flag='-undefined warning'
6101 archive_cmds='$CC `if test "$module" = "yes"; then echo -bundle; else
6102 echo -dynamiclib; fi` -o $lib $libobjs $deplibs $linkopts'
6103 archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6104 ## What we need is to hardcode the path to the library, not the search path
6105 #hardcode_direct=yes
6106 #hardcode_libdir_flag_spec='-install_name $libdir/$lib'
6107 hardcode_shlibpath_var=no
6108 whole_archive_flag_spec='-all_load'
6109 ;;
6110
6111 freebsd1*)
6112 ld_shlibs=no
6113 ;;
6114
6115 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6116 # support. Future versions do this automatically, but an explicit c++rt0.o
6117 # does not break anything, and helps significantly (at the cost of a little
6118 # extra space).
6119 freebsd2.2*)
6120 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6121 hardcode_libdir_flag_spec='-R$libdir'
6122 hardcode_direct=yes
6123 hardcode_shlibpath_var=no
6124 ;;
6125
6126 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6127 freebsd2*)
6128 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6129 hardcode_direct=yes
6130 hardcode_minus_L=yes
6131 hardcode_shlibpath_var=no
6132 ;;
6133
6134 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6135 freebsd*)
6136 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6137 hardcode_libdir_flag_spec='-R$libdir'
6138 hardcode_direct=yes
6139 hardcode_shlibpath_var=no
6140 ;;
6141
6142 hpux9* | hpux10* | hpux11*)
6143 case "$host_os" in
6144 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' ;;
6145 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6146 esac
6147 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6148 hardcode_libdir_separator=:
6149 hardcode_direct=yes
6150 hardcode_minus_L=yes # Not in the search PATH, but as the default
6151 # location of the library.
6152 export_dynamic_flag_spec='${wl}-E'
6153 ;;
6154
6155 irix5* | irix6*)
6156 if test "$GCC" = yes; then
6157 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'
6158 else
6159 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'
6160 fi
6161 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6162 hardcode_libdir_separator=:
6163 link_all_deplibs=yes
6164 ;;
6165
6166 netbsd*)
6167 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6168 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6169 else
6170 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6171 fi
6172 hardcode_libdir_flag_spec='-R$libdir'
6173 hardcode_direct=yes
6174 hardcode_shlibpath_var=no
6175 ;;
6176
6177 newsos6)
6178 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
6179 hardcode_direct=yes
6180 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6181 hardcode_libdir_separator=:
6182 hardcode_shlibpath_var=no
6183 ;;
6184
6185 openbsd*)
6186 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6187 hardcode_libdir_flag_spec='-R$libdir'
6188 hardcode_direct=yes
6189 hardcode_shlibpath_var=no
6190 ;;
6191
6192 os2*)
6193 hardcode_libdir_flag_spec='-L$libdir'
6194 hardcode_minus_L=yes
6195 allow_undefined_flag=unsupported
6196 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'
6197 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6198 ;;
6199
6200 osf3*)
6201 if test "$GCC" = yes; then
6202 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6203 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'
6204 else
6205 allow_undefined_flag=' -expect_unresolved \*'
6206 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'
6207 fi
6208 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6209 hardcode_libdir_separator=:
6210 ;;
6211
6212 osf4* | osf5*) # as osf3* with the addition of -msym flag
6213 if test "$GCC" = yes; then
6214 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6215 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'
6216 else
6217 allow_undefined_flag=' -expect_unresolved \*'
6218 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'
6219 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6220 $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'
6221 fi
6222#Both c and cxx compiler support -rpath directly
6223 hardcode_libdir_flag_spec='-rpath $libdir'
6224 hardcode_libdir_separator=:
6225 ;;
6226
6227 sco3.2v5*)
6228 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6229 hardcode_shlibpath_var=no
6230 runpath_var=LD_RUN_PATH
6231 hardcode_runpath_var=yes
6232 ;;
6233
6234 solaris*)
6235 no_undefined_flag=' -z text'
6236 # $CC -shared without GNU ld will not create a library from C++
6237 # object files and a static libstdc++, better avoid it by now
6238 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6239 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6240 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6241 hardcode_libdir_flag_spec='-R$libdir'
6242 hardcode_shlibpath_var=no
6243 case "$host_os" in
6244 solaris2.[0-5] | solaris2.[0-5].*) ;;
6245 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6246 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6247 esac
6248 link_all_deplibs=yes
6249 ;;
6250
6251 sunos4*)
6252 if test "x$host_vendor" = xsequent; then
6253 # Use $CC to link under sequent, because it throws in some extra .o
6254 # files that make .init and .fini sections work.
6255 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6256 else
6257 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6258 fi
6259 hardcode_libdir_flag_spec='-L$libdir'
6260 hardcode_direct=yes
6261 hardcode_minus_L=yes
6262 hardcode_shlibpath_var=no
6263 ;;
6264
6265 sysv4)
6266 if test "x$host_vendor" = xsno; then
6267 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
6268 hardcode_direct=yes # is this really true???
6269 else
6270 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6271 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6272 fi
6273 runpath_var='LD_RUN_PATH'
6274 hardcode_shlibpath_var=no
6275 ;;
6276
6277 sysv4.3*)
6278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6279 hardcode_shlibpath_var=no
6280 export_dynamic_flag_spec='-Bexport'
6281 ;;
6282
6283 sysv5*)
6284 no_undefined_flag=' -z text'
6285 # $CC -shared without GNU ld will not create a library from C++
6286 # object files and a static libstdc++, better avoid it by now
6287 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6288 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6289 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6290 hardcode_libdir_flag_spec=
6291 hardcode_shlibpath_var=no
6292 runpath_var='LD_RUN_PATH'
6293 ;;
6294
6295 uts4*)
6296 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6297 hardcode_libdir_flag_spec='-L$libdir'
6298 hardcode_shlibpath_var=no
6299 ;;
6300
6301 dgux*)
6302 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6303 hardcode_libdir_flag_spec='-L$libdir'
6304 hardcode_shlibpath_var=no
6305 ;;
6306
6307 sysv4*MP*)
6308 if test -d /usr/nec; then
6309 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6310 hardcode_shlibpath_var=no
6311 runpath_var=LD_RUN_PATH
6312 hardcode_runpath_var=yes
6313 ld_shlibs=yes
6314 fi
6315 ;;
6316
6317 sysv4.2uw2*)
6318 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6319 hardcode_direct=yes
6320 hardcode_minus_L=no
6321 hardcode_shlibpath_var=no
6322 hardcode_runpath_var=yes
6323 runpath_var=LD_RUN_PATH
6324 ;;
6325
6326 unixware7*)
6327 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6328 runpath_var='LD_RUN_PATH'
6329 hardcode_shlibpath_var=no
6330 ;;
6331
6332 *)
6333 ld_shlibs=no
6334 ;;
6335 esac
6336fi
6337echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6338echo "${ECHO_T}$ld_shlibs" >&6
6339test "$ld_shlibs" = no && can_build_shared=no
6340##
6341## END FIXME
6342
6343## FIXME: this should be a separate macro
6344##
6345# Check hardcoding attributes.
6346echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6347echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6348hardcode_action=
6349if test -n "$hardcode_libdir_flag_spec" || \
6350 test -n "$runpath_var"; then
6351
6352 # We can hardcode non-existant directories.
6353 if test "$hardcode_direct" != no &&
6354 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6355 # have to relink, otherwise we might link with an installed library
6356 # when we should be linking with a yet-to-be-installed one
6357 ## test "$hardcode_shlibpath_var" != no &&
6358 test "$hardcode_minus_L" != no; then
6359 # Linking always hardcodes the temporary library directory.
6360 hardcode_action=relink
6361 else
6362 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6363 hardcode_action=immediate
6364 fi
6365else
6366 # We cannot hardcode anything, or else we can only hardcode existing
6367 # directories.
6368 hardcode_action=unsupported
6369fi
6370echo "$as_me:$LINENO: result: $hardcode_action" >&5
6371echo "${ECHO_T}$hardcode_action" >&6
6372##
6373## END FIXME
6374
6375## FIXME: this should be a separate macro
6376##
6377striplib=
6378old_striplib=
6379echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6380echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6381if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6382 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6383 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6384 echo "$as_me:$LINENO: result: yes" >&5
6385echo "${ECHO_T}yes" >&6
6386else
6387 echo "$as_me:$LINENO: result: no" >&5
6388echo "${ECHO_T}no" >&6
6389fi
6390##
6391## END FIXME
6392
6393reload_cmds='$LD$reload_flag -o $output$reload_objs'
6394test -z "$deplibs_check_method" && deplibs_check_method=unknown
6395
6396## FIXME: this should be a separate macro
6397##
6398# PORTME Fill in your ld.so characteristics
6399echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6400echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6401library_names_spec=
6402libname_spec='lib$name'
6403soname_spec=
6404postinstall_cmds=
6405postuninstall_cmds=
6406finish_cmds=
6407finish_eval=
6408shlibpath_var=
6409shlibpath_overrides_runpath=unknown
6410version_type=none
6411dynamic_linker="$host_os ld.so"
6412sys_lib_dlsearch_path_spec="/lib /usr/lib"
6413sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6414
6415case "$host_os" in
6416aix3*)
6417 version_type=linux
6418 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6419 shlibpath_var=LIBPATH
6420
6421 # AIX has no versioning support, so we append a major version to the name.
6422 soname_spec='${libname}${release}.so$major'
6423 ;;
6424
6425aix4*)
6426 version_type=linux
6427 # AIX has no versioning support, so currently we can not hardcode correct
6428 # soname into executable. Probably we can add versioning support to
6429 # collect2, so additional links can be useful in future.
6430 # We preserve .a as extension for shared libraries though AIX4.2
6431 # and later linker supports .so
6432 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.a'
6433 shlibpath_var=LIBPATH
6434 ;;
6435
6436amigaos*)
6437 library_names_spec='$libname.ixlibrary $libname.a'
6438 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6439 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'
6440 ;;
6441
6442beos*)
6443 library_names_spec='${libname}.so'
6444 dynamic_linker="$host_os ld.so"
6445 shlibpath_var=LIBRARY_PATH
6446 ;;
6447
6448bsdi4*)
6449 version_type=linux
6450 need_version=no
6451 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6452 soname_spec='${libname}${release}.so$major'
6453 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6454 shlibpath_var=LD_LIBRARY_PATH
6455 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6456 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6457 export_dynamic_flag_spec=-rdynamic
6458 # the default ld.so.conf also contains /usr/contrib/lib and
6459 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6460 # libtool to hard-code these into programs
6461 ;;
6462
6463cygwin* | mingw* | pw32*)
6464 version_type=windows
6465 need_version=no
6466 need_lib_prefix=no
6467 if test "$GCC" = yes; then
6468 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6469 else
6470 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6471 fi
6472 dynamic_linker='Win32 ld.exe'
6473 # FIXME: first we should search . and the directory the executable is in
6474 shlibpath_var=PATH
6475 ;;
6476
6477darwin* | rhapsody*)
6478 need_lib_prefix=no
6479 need_version=no
6480 library_names_spec='${libname}.`if test "$module" = "yes"; then echo so; else echo dylib; fi`'
6481 shlibpath_overrides_runpath=yes
6482 shlibpath_var=DYLD_LIBRARY_PATH
6483 postinstall_cmds='chmod +x $lib'
6484 ;;
6485
6486freebsd1*)
6487 dynamic_linker=no
6488 ;;
6489
6490freebsd*)
6491 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6492 version_type=freebsd-$objformat
6493 case "$version_type" in
6494 freebsd-elf*)
6495 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6496 need_version=no
6497 need_lib_prefix=no
6498 ;;
6499 freebsd-*)
6500 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6501 need_version=yes
6502 ;;
6503 esac
6504 shlibpath_var=LD_LIBRARY_PATH
6505 case "$host_os" in
6506 freebsd2*)
6507 shlibpath_overrides_runpath=yes
6508 ;;
6509 *)
6510 shlibpath_overrides_runpath=no
6511 hardcode_into_libs=yes
6512 ;;
6513 esac
6514 ;;
6515
6516gnu*)
6517 version_type=linux
6518 need_lib_prefix=no
6519 need_version=no
6520 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6521 soname_spec='${libname}${release}.so$major'
6522 shlibpath_var=LD_LIBRARY_PATH
6523 hardcode_into_libs=yes
6524 ;;
6525
6526hpux9* | hpux10* | hpux11*)
6527 # Give a soname corresponding to the major version so that dld.sl refuses to
6528 # link against other versions.
6529 dynamic_linker="$host_os dld.sl"
6530 version_type=sunos
6531 need_lib_prefix=no
6532 need_version=no
6533 shlibpath_var=SHLIB_PATH
6534 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6535 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6536 soname_spec='${libname}${release}.sl$major'
6537 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6538 postinstall_cmds='chmod 555 $lib'
6539 ;;
6540
6541irix5* | irix6*)
6542 version_type=irix
6543 need_lib_prefix=no
6544 need_version=no
6545 soname_spec='${libname}${release}.so$major'
6546 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6547 case "$host_os" in
6548 irix5*)
6549 libsuff= shlibsuff=
6550 ;;
6551 *)
6552 case "$LD" in # libtool.m4 will add one of these switches to LD
6553 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6554 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6555 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6556 *) libsuff= shlibsuff= libmagic=never-match;;
6557 esac
6558 ;;
6559 esac
6560 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6561 shlibpath_overrides_runpath=no
6562 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6563 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6564 ;;
6565
6566# No shared lib support for Linux oldld, aout, or coff.
6567linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6568 dynamic_linker=no
6569 ;;
6570
6571# This must be Linux ELF.
6572linux-gnu*)
6573 version_type=linux
6574 need_lib_prefix=no
6575 need_version=no
6576 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6577 soname_spec='${libname}${release}.so$major'
6578 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6579 shlibpath_var=LD_LIBRARY_PATH
6580 shlibpath_overrides_runpath=no
6581 # This implies no fast_install, which is unacceptable.
6582 # Some rework will be needed to allow for fast_install
6583 # before this can be enabled.
6584 hardcode_into_libs=yes
6585
6586 # We used to test for /lib/ld.so.1 and disable shared libraries on
6587 # powerpc, because MkLinux only supported shared libraries with the
6588 # GNU dynamic linker. Since this was broken with cross compilers,
6589 # most powerpc-linux boxes support dynamic linking these days and
6590 # people can always --disable-shared, the test was removed, and we
6591 # assume the GNU/Linux dynamic linker is in use.
6592 dynamic_linker='GNU/Linux ld.so'
6593 ;;
6594
6595netbsd*)
6596 version_type=sunos
6597 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6598 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6599 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6600 dynamic_linker='NetBSD (a.out) ld.so'
6601 else
6602 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6603 soname_spec='${libname}${release}.so$major'
6604 dynamic_linker='NetBSD ld.elf_so'
6605 fi
6606 shlibpath_var=LD_LIBRARY_PATH
6607 shlibpath_overrides_runpath=yes
6608 hardcode_into_libs=yes
6609 ;;
6610
6611newsos6)
6612 version_type=linux
6613 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6614 shlibpath_var=LD_LIBRARY_PATH
6615 shlibpath_overrides_runpath=yes
6616 ;;
6617
6618openbsd*)
6619 version_type=sunos
6620 if test "$with_gnu_ld" = yes; then
6621 need_lib_prefix=no
6622 need_version=no
6623 fi
6624 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6625 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6626 shlibpath_var=LD_LIBRARY_PATH
6627 ;;
6628
6629os2*)
6630 libname_spec='$name'
6631 need_lib_prefix=no
6632 library_names_spec='$libname.dll $libname.a'
6633 dynamic_linker='OS/2 ld.exe'
6634 shlibpath_var=LIBPATH
6635 ;;
6636
6637osf3* | osf4* | osf5*)
6638 version_type=osf
6639 need_version=no
6640 soname_spec='${libname}${release}.so'
6641 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6642 shlibpath_var=LD_LIBRARY_PATH
6643 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6644 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6645 ;;
6646
6647sco3.2v5*)
6648 version_type=osf
6649 soname_spec='${libname}${release}.so$major'
6650 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6651 shlibpath_var=LD_LIBRARY_PATH
6652 ;;
6653
6654solaris*)
6655 version_type=linux
6656 need_lib_prefix=no
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 shlibpath_var=LD_LIBRARY_PATH
6661 shlibpath_overrides_runpath=yes
6662 hardcode_into_libs=yes
6663 # ldd complains unless libraries are executable
6664 postinstall_cmds='chmod +x $lib'
6665 ;;
6666
6667sunos4*)
6668 version_type=sunos
6669 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6670 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6671 shlibpath_var=LD_LIBRARY_PATH
6672 shlibpath_overrides_runpath=yes
6673 if test "$with_gnu_ld" = yes; then
6674 need_lib_prefix=no
6675 fi
6676 need_version=yes
6677 ;;
6678
6679sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6680 version_type=linux
6681 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6682 soname_spec='${libname}${release}.so$major'
6683 shlibpath_var=LD_LIBRARY_PATH
6684 case "$host_vendor" in
6685 sni)
6686 shlibpath_overrides_runpath=no
6687 ;;
6688 motorola)
6689 need_lib_prefix=no
6690 need_version=no
6691 shlibpath_overrides_runpath=no
6692 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6693 ;;
6694 esac
6695 ;;
6696
6697uts4*)
6698 version_type=linux
6699 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6700 soname_spec='${libname}${release}.so$major'
6701 shlibpath_var=LD_LIBRARY_PATH
6702 ;;
6703
6704dgux*)
6705 version_type=linux
6706 need_lib_prefix=no
6707 need_version=no
6708 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6709 soname_spec='${libname}${release}.so$major'
6710 shlibpath_var=LD_LIBRARY_PATH
6711 ;;
6712
6713sysv4*MP*)
6714 if test -d /usr/nec ;then
6715 version_type=linux
6716 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6717 soname_spec='$libname.so.$major'
6718 shlibpath_var=LD_LIBRARY_PATH
6719 fi
6720 ;;
6721
6722*)
6723 dynamic_linker=no
6724 ;;
6725esac
6726echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6727echo "${ECHO_T}$dynamic_linker" >&6
6728test "$dynamic_linker" = no && can_build_shared=no
6729##
6730## END FIXME
6731
6732## FIXME: this should be a separate macro
6733##
6734# Report the final consequences.
6735echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6736echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6737echo "$as_me:$LINENO: result: $can_build_shared" >&5
6738echo "${ECHO_T}$can_build_shared" >&6
6739##
6740## END FIXME
6741
6742if test "$hardcode_action" = relink; then
6743 # Fast installation is not supported
6744 enable_fast_install=no
6745elif test "$shlibpath_overrides_runpath" = yes ||
6746 test "$enable_shared" = no; then
6747 # Fast installation is not necessary
6748 enable_fast_install=needless
6749fi
6750
6751variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6752if test "$GCC" = yes; then
6753 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6754fi
6755
6756if test "x$enable_dlopen" != xyes; then
6757 enable_dlopen=unknown
6758 enable_dlopen_self=unknown
6759 enable_dlopen_self_static=unknown
6760else
6761 lt_cv_dlopen=no
6762 lt_cv_dlopen_libs=
6763
6764 case "$host_os" in
6765 beos*)
6766 lt_cv_dlopen="load_add_on"
6767 lt_cv_dlopen_libs=
6768 lt_cv_dlopen_self=yes
6769 ;;
6770
6771 cygwin* | mingw* | pw32*)
6772 lt_cv_dlopen="LoadLibrary"
6773 lt_cv_dlopen_libs=
6774 ;;
6775
6776 *)
6777 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6778echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6779if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6781else
6782 ac_check_lib_save_LIBS=$LIBS
6783LIBS="-ldl $LIBS"
6784cat >conftest.$ac_ext <<_ACEOF
6785/* confdefs.h. */
6786_ACEOF
6787cat confdefs.h >>conftest.$ac_ext
6788cat >>conftest.$ac_ext <<_ACEOF
6789/* end confdefs.h. */
6790
6791/* Override any gcc2 internal prototype to avoid an error. */
6792#ifdef __cplusplus
6793extern "C"
6794#endif
6795/* We use char because int might match the return type of a gcc2
6796 builtin and then its argument prototype would still apply. */
6797char dlopen ();
6798int
6799main ()
6800{
6801dlopen ();
6802 ;
6803 return 0;
6804}
6805_ACEOF
6806rm -f conftest.$ac_objext conftest$ac_exeext
6807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6808 (eval $ac_link) 2>conftest.er1
6809 ac_status=$?
6810 grep -v '^ *+' conftest.er1 >conftest.err
6811 rm -f conftest.er1
6812 cat conftest.err >&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); } &&
6815 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6817 (eval $ac_try) 2>&5
6818 ac_status=$?
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); }; } &&
6821 { ac_try='test -s conftest$ac_exeext'
6822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6823 (eval $ac_try) 2>&5
6824 ac_status=$?
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); }; }; then
6827 ac_cv_lib_dl_dlopen=yes
6828else
6829 echo "$as_me: failed program was:" >&5
6830sed 's/^/| /' conftest.$ac_ext >&5
6831
6832ac_cv_lib_dl_dlopen=no
6833fi
6834rm -f conftest.err conftest.$ac_objext \
6835 conftest$ac_exeext conftest.$ac_ext
6836LIBS=$ac_check_lib_save_LIBS
6837fi
6838echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6839echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6840if test $ac_cv_lib_dl_dlopen = yes; then
6841 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6842else
6843 echo "$as_me:$LINENO: checking for dlopen" >&5
6844echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6845if test "${ac_cv_func_dlopen+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6847else
6848 cat >conftest.$ac_ext <<_ACEOF
6849/* confdefs.h. */
6850_ACEOF
6851cat confdefs.h >>conftest.$ac_ext
6852cat >>conftest.$ac_ext <<_ACEOF
6853/* end confdefs.h. */
6854/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 3396/* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale.
6855 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6856#define dlopen innocuous_dlopen 3398#define setlocale innocuous_setlocale
6857 3399
6858/* System header to define __stub macros and hopefully few prototypes, 3400/* System header to define __stub macros and hopefully few prototypes,
6859 which can conflict with char dlopen (); below. 3401 which can conflict with char setlocale (); below.
6860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6861 <limits.h> exists even on freestanding compilers. */ 3403 <limits.h> exists even on freestanding compilers. */
6862 3404
6863#ifdef __STDC__ 3405#ifdef __STDC__
6864# include <limits.h> 3406# include <limits.h>
6865#else 3407#else
6866# include <assert.h> 3408# include <assert.h>
6867#endif 3409#endif
6868 3410
6869#undef dlopen 3411#undef setlocale
6870 3412
6871/* Override any gcc2 internal prototype to avoid an error. */ 3413/* Override any gcc2 internal prototype to avoid an error. */
6872#ifdef __cplusplus 3414#ifdef __cplusplus
6873extern "C" 3415extern "C"
6874{ 3416{
6875#endif 3417#endif
6876/* We use char because int might match the return type of a gcc2 3418/* We use char because int might match the return type of a gcc2
6877 builtin and then its argument prototype would still apply. */ 3419 builtin and then its argument prototype would still apply. */
6878char dlopen (); 3420char setlocale ();
6879/* The GNU C library defines this for functions which it implements 3421/* The GNU C library defines this for functions which it implements
6880 to always fail with ENOSYS. Some functions are actually named 3422 to always fail with ENOSYS. Some functions are actually named
6881 something starting with __ and the normal name is an alias. */ 3423 something starting with __ and the normal name is an alias. */
6882#if defined (__stub_dlopen) || defined (__stub___dlopen) 3424#if defined (__stub_setlocale) || defined (__stub___setlocale)
6883choke me 3425choke me
6884#else 3426#else
6885char (*f) () = dlopen; 3427char (*f) () = setlocale;
6886#endif 3428#endif
6887#ifdef __cplusplus 3429#ifdef __cplusplus
6888} 3430}
6889#endif 3431#endif
6890 3432
6891int 3433int
6892main () 3434main ()
6893{ 3435{
6894return f != dlopen; 3436return f != setlocale;
6895 ; 3437 ;
6896 return 0; 3438 return 0;
6897} 3439}
6898_ACEOF 3440_ACEOF
6899rm -f conftest.$ac_objext conftest$ac_exeext 3441rm -f conftest.$ac_objext conftest$ac_exeext
6915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6916 (eval $ac_try) 2>&5 3458 (eval $ac_try) 2>&5
6917 ac_status=$? 3459 ac_status=$?
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); }; }; then 3461 (exit $ac_status); }; }; then
6920 ac_cv_func_dlopen=yes 3462 ac_cv_func_setlocale=yes
6921else 3463else
6922 echo "$as_me: failed program was:" >&5 3464 echo "$as_me: failed program was:" >&5
6923sed 's/^/| /' conftest.$ac_ext >&5 3465sed 's/^/| /' conftest.$ac_ext >&5
6924 3466
6925ac_cv_func_dlopen=no 3467ac_cv_func_setlocale=no
6926fi 3468fi
6927rm -f conftest.err conftest.$ac_objext \ 3469rm -f conftest.err conftest.$ac_objext \
6928 conftest$ac_exeext conftest.$ac_ext 3470 conftest$ac_exeext conftest.$ac_ext
6929fi 3471fi
6930echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 3472echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5
6931echo "${ECHO_T}$ac_cv_func_dlopen" >&6 3473echo "${ECHO_T}$ac_cv_func_setlocale" >&6
6932if test $ac_cv_func_dlopen = yes; then 3474if test $ac_cv_func_setlocale = yes; then
6933 lt_cv_dlopen="dlopen" 3475 :
6934else 3476else
6935 echo "$as_me:$LINENO: checking for shl_load" >&5 3477 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
6936echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 3478echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
6937if test "${ac_cv_func_shl_load+set}" = set; then 3479if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6 3480 echo $ECHO_N "(cached) $ECHO_C" >&6
6939else 3481else
3482 ac_check_lib_save_LIBS=$LIBS
3483LIBS="-lxpg4 $LIBS"
6940 cat >conftest.$ac_ext <<_ACEOF 3484cat >conftest.$ac_ext <<_ACEOF
6941/* confdefs.h. */ 3485/* confdefs.h. */
6942_ACEOF 3486_ACEOF
6943cat confdefs.h >>conftest.$ac_ext 3487cat confdefs.h >>conftest.$ac_ext
6944cat >>conftest.$ac_ext <<_ACEOF 3488cat >>conftest.$ac_ext <<_ACEOF
6945/* end confdefs.h. */ 3489/* end confdefs.h. */
3490
3491/* Override any gcc2 internal prototype to avoid an error. */
3492#ifdef __cplusplus
3493extern "C"
3494#endif
3495/* We use char because int might match the return type of a gcc2
3496 builtin and then its argument prototype would still apply. */
3497char setlocale ();
3498int
3499main ()
3500{
3501setlocale ();
3502 ;
3503 return 0;
3504}
3505_ACEOF
3506rm -f conftest.$ac_objext conftest$ac_exeext
3507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3508 (eval $ac_link) 2>conftest.er1
3509 ac_status=$?
3510 grep -v '^ *+' conftest.er1 >conftest.err
3511 rm -f conftest.er1
3512 cat conftest.err >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } &&
3515 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517 (eval $ac_try) 2>&5
3518 ac_status=$?
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }; } &&
3521 { ac_try='test -s conftest$ac_exeext'
3522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3523 (eval $ac_try) 2>&5
3524 ac_status=$?
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; }; then
3527 ac_cv_lib_xpg4_setlocale=yes
3528else
3529 echo "$as_me: failed program was:" >&5
3530sed 's/^/| /' conftest.$ac_ext >&5
3531
3532ac_cv_lib_xpg4_setlocale=no
3533fi
3534rm -f conftest.err conftest.$ac_objext \
3535 conftest$ac_exeext conftest.$ac_ext
3536LIBS=$ac_check_lib_save_LIBS
3537fi
3538echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
3539echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
3540if test $ac_cv_lib_xpg4_setlocale = yes; then
3541 LIBS="$LIBS -lxpg4"
3542fi
3543
3544fi
3545
3546
3547echo "$as_me:$LINENO: checking for gethostbyname" >&5
3548echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3549if test "${ac_cv_func_gethostbyname+set}" = set; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
3551else
3552 cat >conftest.$ac_ext <<_ACEOF
3553/* confdefs.h. */
3554_ACEOF
3555cat confdefs.h >>conftest.$ac_ext
3556cat >>conftest.$ac_ext <<_ACEOF
3557/* end confdefs.h. */
6946/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 3558/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6947 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6948#define shl_load innocuous_shl_load 3560#define gethostbyname innocuous_gethostbyname
6949 3561
6950/* System header to define __stub macros and hopefully few prototypes, 3562/* System header to define __stub macros and hopefully few prototypes,
6951 which can conflict with char shl_load (); below. 3563 which can conflict with char gethostbyname (); below.
6952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6953 <limits.h> exists even on freestanding compilers. */ 3565 <limits.h> exists even on freestanding compilers. */
6954 3566
6955#ifdef __STDC__ 3567#ifdef __STDC__
6956# include <limits.h> 3568# include <limits.h>
6957#else 3569#else
6958# include <assert.h> 3570# include <assert.h>
6959#endif 3571#endif
6960 3572
6961#undef shl_load 3573#undef gethostbyname
6962 3574
6963/* Override any gcc2 internal prototype to avoid an error. */ 3575/* Override any gcc2 internal prototype to avoid an error. */
6964#ifdef __cplusplus 3576#ifdef __cplusplus
6965extern "C" 3577extern "C"
6966{ 3578{
6967#endif 3579#endif
6968/* We use char because int might match the return type of a gcc2 3580/* We use char because int might match the return type of a gcc2
6969 builtin and then its argument prototype would still apply. */ 3581 builtin and then its argument prototype would still apply. */
6970char shl_load (); 3582char gethostbyname ();
6971/* The GNU C library defines this for functions which it implements 3583/* The GNU C library defines this for functions which it implements
6972 to always fail with ENOSYS. Some functions are actually named 3584 to always fail with ENOSYS. Some functions are actually named
6973 something starting with __ and the normal name is an alias. */ 3585 something starting with __ and the normal name is an alias. */
6974#if defined (__stub_shl_load) || defined (__stub___shl_load) 3586#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6975choke me 3587choke me
6976#else 3588#else
6977char (*f) () = shl_load; 3589char (*f) () = gethostbyname;
6978#endif 3590#endif
6979#ifdef __cplusplus 3591#ifdef __cplusplus
6980} 3592}
6981#endif 3593#endif
6982 3594
6983int 3595int
6984main () 3596main ()
6985{ 3597{
6986return f != shl_load; 3598return f != gethostbyname;
6987 ; 3599 ;
6988 return 0; 3600 return 0;
6989} 3601}
6990_ACEOF 3602_ACEOF
6991rm -f conftest.$ac_objext conftest$ac_exeext 3603rm -f conftest.$ac_objext conftest$ac_exeext
7007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7008 (eval $ac_try) 2>&5 3620 (eval $ac_try) 2>&5
7009 ac_status=$? 3621 ac_status=$?
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); }; }; then 3623 (exit $ac_status); }; }; then
7012 ac_cv_func_shl_load=yes 3624 ac_cv_func_gethostbyname=yes
7013else 3625else
7014 echo "$as_me: failed program was:" >&5 3626 echo "$as_me: failed program was:" >&5
7015sed 's/^/| /' conftest.$ac_ext >&5 3627sed 's/^/| /' conftest.$ac_ext >&5
7016 3628
7017ac_cv_func_shl_load=no 3629ac_cv_func_gethostbyname=no
7018fi 3630fi
7019rm -f conftest.err conftest.$ac_objext \ 3631rm -f conftest.err conftest.$ac_objext \
7020 conftest$ac_exeext conftest.$ac_ext 3632 conftest$ac_exeext conftest.$ac_ext
7021fi 3633fi
7022echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 3634echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7023echo "${ECHO_T}$ac_cv_func_shl_load" >&6 3635echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7024if test $ac_cv_func_shl_load = yes; then 3636if test $ac_cv_func_gethostbyname = yes; then
7025 lt_cv_dlopen="shl_load" 3637 :
7026else 3638else
7027 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 3639 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7028echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 3640echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7029if test "${ac_cv_lib_svld_dlopen+set}" = set; then 3641if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6 3642 echo $ECHO_N "(cached) $ECHO_C" >&6
7031else 3643else
7032 ac_check_lib_save_LIBS=$LIBS 3644 ac_check_lib_save_LIBS=$LIBS
7033LIBS="-lsvld $LIBS" 3645LIBS="-lnsl $LIBS"
7034cat >conftest.$ac_ext <<_ACEOF 3646cat >conftest.$ac_ext <<_ACEOF
7035/* confdefs.h. */ 3647/* confdefs.h. */
7036_ACEOF 3648_ACEOF
7037cat confdefs.h >>conftest.$ac_ext 3649cat confdefs.h >>conftest.$ac_ext
7038cat >>conftest.$ac_ext <<_ACEOF 3650cat >>conftest.$ac_ext <<_ACEOF
7042#ifdef __cplusplus 3654#ifdef __cplusplus
7043extern "C" 3655extern "C"
7044#endif 3656#endif
7045/* We use char because int might match the return type of a gcc2 3657/* We use char because int might match the return type of a gcc2
7046 builtin and then its argument prototype would still apply. */ 3658 builtin and then its argument prototype would still apply. */
7047char dlopen (); 3659char gethostbyname ();
7048int 3660int
7049main () 3661main ()
7050{ 3662{
7051dlopen (); 3663gethostbyname ();
7052 ; 3664 ;
7053 return 0; 3665 return 0;
7054} 3666}
7055_ACEOF 3667_ACEOF
7056rm -f conftest.$ac_objext conftest$ac_exeext 3668rm -f conftest.$ac_objext conftest$ac_exeext
7072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7073 (eval $ac_try) 2>&5 3685 (eval $ac_try) 2>&5
7074 ac_status=$? 3686 ac_status=$?
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); }; }; then 3688 (exit $ac_status); }; }; then
7077 ac_cv_lib_svld_dlopen=yes 3689 ac_cv_lib_nsl_gethostbyname=yes
7078else 3690else
7079 echo "$as_me: failed program was:" >&5 3691 echo "$as_me: failed program was:" >&5
7080sed 's/^/| /' conftest.$ac_ext >&5 3692sed 's/^/| /' conftest.$ac_ext >&5
7081 3693
7082ac_cv_lib_svld_dlopen=no 3694ac_cv_lib_nsl_gethostbyname=no
7083fi 3695fi
7084rm -f conftest.err conftest.$ac_objext \ 3696rm -f conftest.err conftest.$ac_objext \
7085 conftest$ac_exeext conftest.$ac_ext 3697 conftest$ac_exeext conftest.$ac_ext
7086LIBS=$ac_check_lib_save_LIBS 3698LIBS=$ac_check_lib_save_LIBS
7087fi 3699fi
7088echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 3700echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7089echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 3701echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7090if test $ac_cv_lib_svld_dlopen = yes; then 3702if test $ac_cv_lib_nsl_gethostbyname = yes; then
7091 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 3703 LIBS="$LIBS -lnsl"
7092else 3704fi
3705
3706fi
3707
7093 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 3708echo "$as_me:$LINENO: checking for socket" >&5
7094echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 3709echo $ECHO_N "checking for socket... $ECHO_C" >&6
7095if test "${ac_cv_lib_dld_shl_load+set}" = set; then 3710if test "${ac_cv_func_socket+set}" = set; then
7096 echo $ECHO_N "(cached) $ECHO_C" >&6 3711 echo $ECHO_N "(cached) $ECHO_C" >&6
7097else 3712else
3713 cat >conftest.$ac_ext <<_ACEOF
3714/* confdefs.h. */
3715_ACEOF
3716cat confdefs.h >>conftest.$ac_ext
3717cat >>conftest.$ac_ext <<_ACEOF
3718/* end confdefs.h. */
3719/* Define socket to an innocuous variant, in case <limits.h> declares socket.
3720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3721#define socket innocuous_socket
3722
3723/* System header to define __stub macros and hopefully few prototypes,
3724 which can conflict with char socket (); below.
3725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3726 <limits.h> exists even on freestanding compilers. */
3727
3728#ifdef __STDC__
3729# include <limits.h>
3730#else
3731# include <assert.h>
3732#endif
3733
3734#undef socket
3735
3736/* Override any gcc2 internal prototype to avoid an error. */
3737#ifdef __cplusplus
3738extern "C"
3739{
3740#endif
3741/* We use char because int might match the return type of a gcc2
3742 builtin and then its argument prototype would still apply. */
3743char socket ();
3744/* The GNU C library defines this for functions which it implements
3745 to always fail with ENOSYS. Some functions are actually named
3746 something starting with __ and the normal name is an alias. */
3747#if defined (__stub_socket) || defined (__stub___socket)
3748choke me
3749#else
3750char (*f) () = socket;
3751#endif
3752#ifdef __cplusplus
3753}
3754#endif
3755
3756int
3757main ()
3758{
3759return f != socket;
3760 ;
3761 return 0;
3762}
3763_ACEOF
3764rm -f conftest.$ac_objext conftest$ac_exeext
3765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3766 (eval $ac_link) 2>conftest.er1
3767 ac_status=$?
3768 grep -v '^ *+' conftest.er1 >conftest.err
3769 rm -f conftest.er1
3770 cat conftest.err >&5
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); } &&
3773 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3775 (eval $ac_try) 2>&5
3776 ac_status=$?
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); }; } &&
3779 { ac_try='test -s conftest$ac_exeext'
3780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3781 (eval $ac_try) 2>&5
3782 ac_status=$?
3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); }; }; then
3785 ac_cv_func_socket=yes
3786else
3787 echo "$as_me: failed program was:" >&5
3788sed 's/^/| /' conftest.$ac_ext >&5
3789
3790ac_cv_func_socket=no
3791fi
3792rm -f conftest.err conftest.$ac_objext \
3793 conftest$ac_exeext conftest.$ac_ext
3794fi
3795echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3796echo "${ECHO_T}$ac_cv_func_socket" >&6
3797if test $ac_cv_func_socket = yes; then
3798 :
3799else
3800 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3801echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3802if test "${ac_cv_lib_socket_socket+set}" = set; then
3803 echo $ECHO_N "(cached) $ECHO_C" >&6
3804else
7098 ac_check_lib_save_LIBS=$LIBS 3805 ac_check_lib_save_LIBS=$LIBS
7099LIBS="-ldld $LIBS" 3806LIBS="-lsocket $LIBS"
7100cat >conftest.$ac_ext <<_ACEOF 3807cat >conftest.$ac_ext <<_ACEOF
7101/* confdefs.h. */ 3808/* confdefs.h. */
7102_ACEOF 3809_ACEOF
7103cat confdefs.h >>conftest.$ac_ext 3810cat confdefs.h >>conftest.$ac_ext
7104cat >>conftest.$ac_ext <<_ACEOF 3811cat >>conftest.$ac_ext <<_ACEOF
7108#ifdef __cplusplus 3815#ifdef __cplusplus
7109extern "C" 3816extern "C"
7110#endif 3817#endif
7111/* We use char because int might match the return type of a gcc2 3818/* We use char because int might match the return type of a gcc2
7112 builtin and then its argument prototype would still apply. */ 3819 builtin and then its argument prototype would still apply. */
7113char shl_load (); 3820char socket ();
7114int 3821int
7115main () 3822main ()
7116{ 3823{
7117shl_load (); 3824socket ();
7118 ; 3825 ;
7119 return 0; 3826 return 0;
7120} 3827}
7121_ACEOF 3828_ACEOF
7122rm -f conftest.$ac_objext conftest$ac_exeext 3829rm -f conftest.$ac_objext conftest$ac_exeext
7138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7139 (eval $ac_try) 2>&5 3846 (eval $ac_try) 2>&5
7140 ac_status=$? 3847 ac_status=$?
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); }; }; then 3849 (exit $ac_status); }; }; then
7143 ac_cv_lib_dld_shl_load=yes 3850 ac_cv_lib_socket_socket=yes
7144else 3851else
7145 echo "$as_me: failed program was:" >&5 3852 echo "$as_me: failed program was:" >&5
7146sed 's/^/| /' conftest.$ac_ext >&5 3853sed 's/^/| /' conftest.$ac_ext >&5
7147 3854
7148ac_cv_lib_dld_shl_load=no 3855ac_cv_lib_socket_socket=no
7149fi 3856fi
7150rm -f conftest.err conftest.$ac_objext \ 3857rm -f conftest.err conftest.$ac_objext \
7151 conftest$ac_exeext conftest.$ac_ext 3858 conftest$ac_exeext conftest.$ac_ext
7152LIBS=$ac_check_lib_save_LIBS 3859LIBS=$ac_check_lib_save_LIBS
7153fi 3860fi
7154echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 3861echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7155echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 3862echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7156if test $ac_cv_lib_dld_shl_load = yes; then 3863if test $ac_cv_lib_socket_socket = yes; then
7157 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 3864 LIBS="$LIBS -lsocket"
7158fi 3865fi
7159 3866
7160
7161fi 3867fi
7162 3868
7163 3869
7164fi 3870echo "$as_me:$LINENO: checking for sched_yield" >&5
7165 3871echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
7166
7167fi
7168
7169
7170fi
7171
7172 ;;
7173 esac
7174
7175 if test "x$lt_cv_dlopen" != xno; then
7176 enable_dlopen=yes
7177 else
7178 enable_dlopen=no
7179 fi
7180
7181 case "$lt_cv_dlopen" in
7182 dlopen)
7183 save_CPPFLAGS="$CPP_FLAGS"
7184 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7185
7186 save_LDFLAGS="$LDFLAGS"
7187 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7188
7189 save_LIBS="$LIBS"
7190 LIBS="$lt_cv_dlopen_libs $LIBS"
7191
7192 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7193echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7194if test "${lt_cv_dlopen_self+set}" = set; then 3872if test "${ac_cv_func_sched_yield+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6 3873 echo $ECHO_N "(cached) $ECHO_C" >&6
7196else 3874else
7197 if test "$cross_compiling" = yes; then :
7198 lt_cv_dlopen_self=cross
7199else
7200 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7201 lt_status=$lt_dlunknown
7202 cat > conftest.$ac_ext <<EOF 3875 cat >conftest.$ac_ext <<_ACEOF
7203#line 7203 "configure" 3876/* confdefs.h. */
7204#include "confdefs.h" 3877_ACEOF
3878cat confdefs.h >>conftest.$ac_ext
3879cat >>conftest.$ac_ext <<_ACEOF
3880/* end confdefs.h. */
3881/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
3882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3883#define sched_yield innocuous_sched_yield
7205 3884
7206#if HAVE_DLFCN_H 3885/* System header to define __stub macros and hopefully few prototypes,
7207#include <dlfcn.h> 3886 which can conflict with char sched_yield (); below.
3887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3888 <limits.h> exists even on freestanding compilers. */
3889
3890#ifdef __STDC__
3891# include <limits.h>
3892#else
3893# include <assert.h>
7208#endif 3894#endif
7209 3895
7210#include <stdio.h> 3896#undef sched_yield
7211 3897
7212#ifdef RTLD_GLOBAL 3898/* Override any gcc2 internal prototype to avoid an error. */
7213# define LT_DLGLOBAL RTLD_GLOBAL 3899#ifdef __cplusplus
3900extern "C"
3901{
3902#endif
3903/* We use char because int might match the return type of a gcc2
3904 builtin and then its argument prototype would still apply. */
3905char sched_yield ();
3906/* The GNU C library defines this for functions which it implements
3907 to always fail with ENOSYS. Some functions are actually named
3908 something starting with __ and the normal name is an alias. */
3909#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
3910choke me
7214#else 3911#else
7215# ifdef DL_GLOBAL 3912char (*f) () = sched_yield;
7216# define LT_DLGLOBAL DL_GLOBAL
7217# else
7218# define LT_DLGLOBAL 0
7219# endif
7220#endif 3913#endif
7221 3914#ifdef __cplusplus
7222/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 3915}
7223 find out it does not work in some platform. */
7224#ifndef LT_DLLAZY_OR_NOW
7225# ifdef RTLD_LAZY
7226# define LT_DLLAZY_OR_NOW RTLD_LAZY
7227# else
7228# ifdef DL_LAZY
7229# define LT_DLLAZY_OR_NOW DL_LAZY
7230# else
7231# ifdef RTLD_NOW
7232# define LT_DLLAZY_OR_NOW RTLD_NOW
7233# else
7234# ifdef DL_NOW
7235# define LT_DLLAZY_OR_NOW DL_NOW
7236# else
7237# define LT_DLLAZY_OR_NOW 0
7238# endif
7239# endif
7240# endif
7241# endif
7242#endif 3916#endif
7243 3917
7244#ifdef __cplusplus 3918int
7245extern "C" void exit (int);
7246#endif
7247
7248fnord() { int i=42;}
7249main () 3919main ()
7250{ 3920{
7251 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 3921return f != sched_yield;
7252 int status = $lt_dlunknown; 3922 ;
7253 3923 return 0;
7254 if (self)
7255 {
7256 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7257 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7258 /* dlclose (self); */
7259 }
7260
7261 exit (status);
7262} 3924}
7263EOF 3925_ACEOF
3926rm -f conftest.$ac_objext conftest$ac_exeext
7264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3928 (eval $ac_link) 2>conftest.er1
3929 ac_status=$?
3930 grep -v '^ *+' conftest.er1 >conftest.err
3931 rm -f conftest.er1
3932 cat conftest.err >&5
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); } &&
3935 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7265 (eval $ac_link) 2>&5 3937 (eval $ac_try) 2>&5
7266 ac_status=$?
7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7269 (./conftest; exit; ) 2>/dev/null
7270 lt_status=$? 3938 ac_status=$?
7271 case x$lt_status in 3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 3940 (exit $ac_status); }; } &&
7273 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 3941 { ac_try='test -s conftest$ac_exeext'
7274 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 3942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7275 esac 3943 (eval $ac_try) 2>&5
7276 else : 3944 ac_status=$?
7277 # compilation failed 3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 lt_cv_dlopen_self=no 3946 (exit $ac_status); }; }; then
7279 fi 3947 ac_cv_func_sched_yield=yes
7280fi 3948else
7281rm -fr conftest* 3949 echo "$as_me: failed program was:" >&5
3950sed 's/^/| /' conftest.$ac_ext >&5
7282 3951
7283 3952ac_cv_func_sched_yield=no
7284fi 3953fi
3954rm -f conftest.err conftest.$ac_objext \
3955 conftest$ac_exeext conftest.$ac_ext
3956fi
7285echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 3957echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
7286echo "${ECHO_T}$lt_cv_dlopen_self" >&6 3958echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
7287 3959if test $ac_cv_func_sched_yield = yes; then
7288 if test "x$lt_cv_dlopen_self" = xyes; then 3960 :
7289 LDFLAGS="$LDFLAGS $link_static_flag" 3961else
7290 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 3962 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
7291echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 3963echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
7292if test "${lt_cv_dlopen_self_static+set}" = set; then 3964if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6 3965 echo $ECHO_N "(cached) $ECHO_C" >&6
7294else 3966else
7295 if test "$cross_compiling" = yes; then : 3967 ac_check_lib_save_LIBS=$LIBS
7296 lt_cv_dlopen_self_static=cross 3968LIBS="-lrt $LIBS"
7297else
7298 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7299 lt_status=$lt_dlunknown
7300 cat > conftest.$ac_ext <<EOF 3969cat >conftest.$ac_ext <<_ACEOF
7301#line 7301 "configure" 3970/* confdefs.h. */
7302#include "confdefs.h" 3971_ACEOF
3972cat confdefs.h >>conftest.$ac_ext
3973cat >>conftest.$ac_ext <<_ACEOF
3974/* end confdefs.h. */
7303 3975
7304#if HAVE_DLFCN_H 3976/* Override any gcc2 internal prototype to avoid an error. */
7305#include <dlfcn.h> 3977#ifdef __cplusplus
3978extern "C"
7306#endif 3979#endif
7307 3980/* We use char because int might match the return type of a gcc2
7308#include <stdio.h> 3981 builtin and then its argument prototype would still apply. */
7309 3982char sched_yield ();
7310#ifdef RTLD_GLOBAL 3983int
7311# define LT_DLGLOBAL RTLD_GLOBAL
7312#else
7313# ifdef DL_GLOBAL
7314# define LT_DLGLOBAL DL_GLOBAL
7315# else
7316# define LT_DLGLOBAL 0
7317# endif
7318#endif
7319
7320/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7321 find out it does not work in some platform. */
7322#ifndef LT_DLLAZY_OR_NOW
7323# ifdef RTLD_LAZY
7324# define LT_DLLAZY_OR_NOW RTLD_LAZY
7325# else
7326# ifdef DL_LAZY
7327# define LT_DLLAZY_OR_NOW DL_LAZY
7328# else
7329# ifdef RTLD_NOW
7330# define LT_DLLAZY_OR_NOW RTLD_NOW
7331# else
7332# ifdef DL_NOW
7333# define LT_DLLAZY_OR_NOW DL_NOW
7334# else
7335# define LT_DLLAZY_OR_NOW 0
7336# endif
7337# endif
7338# endif
7339# endif
7340#endif
7341
7342#ifdef __cplusplus
7343extern "C" void exit (int);
7344#endif
7345
7346fnord() { int i=42;}
7347main () 3984main ()
7348{ 3985{
7349 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 3986sched_yield ();
7350 int status = $lt_dlunknown; 3987 ;
7351 3988 return 0;
7352 if (self)
7353 {
7354 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7355 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7356 /* dlclose (self); */
7357 }
7358
7359 exit (status);
7360} 3989}
7361EOF 3990_ACEOF
3991rm -f conftest.$ac_objext conftest$ac_exeext
7362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7363 (eval $ac_link) 2>&5 3993 (eval $ac_link) 2>conftest.er1
7364 ac_status=$?
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7367 (./conftest; exit; ) 2>/dev/null
7368 lt_status=$? 3994 ac_status=$?
7369 case x$lt_status in 3995 grep -v '^ *+' conftest.er1 >conftest.err
7370 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7371 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7372 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7373 esac
7374 else :
7375 # compilation failed
7376 lt_cv_dlopen_self_static=no
7377 fi
7378fi
7379rm -fr conftest* 3996 rm -f conftest.er1
7380 3997 cat conftest.err >&5
7381 3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382fi 3999 (exit $ac_status); } &&
7383echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 4000 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7384echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7385 fi
7386
7387 CPPFLAGS="$save_CPPFLAGS"
7388 LDFLAGS="$save_LDFLAGS"
7389 LIBS="$save_LIBS"
7390 ;;
7391 esac
7392
7393 case "$lt_cv_dlopen_self" in
7394 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7395 *) enable_dlopen_self=unknown ;;
7396 esac
7397
7398 case "$lt_cv_dlopen_self_static" in
7399 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7400 *) enable_dlopen_self_static=unknown ;;
7401 esac
7402fi
7403
7404
7405## FIXME: this should be a separate macro
7406##
7407if test "$enable_shared" = yes && test "$GCC" = yes; then
7408 case "$archive_cmds" in
7409 *'~'*)
7410 # FIXME: we may have to deal with multi-command sequences.
7411 ;;
7412 '$CC '*)
7413 # Test whether the compiler implicitly links with -lc since on some
7414 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7415 # to ld, don't add -lc before -lgcc.
7416 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7417echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7418 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7419 echo $ECHO_N "(cached) $ECHO_C" >&6
7420else
7421 $rm conftest*
7422 echo 'static int dummy;' > conftest.$ac_ext
7423
7424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7425 (eval $ac_compile) 2>&5 4002 (eval $ac_try) 2>&5
7426 ac_status=$? 4003 ac_status=$?
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); }; } &&
4006 { ac_try='test -s conftest$ac_exeext'
4007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4008 (eval $ac_try) 2>&5
4009 ac_status=$?
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); }; then 4011 (exit $ac_status); }; }; then
7429 soname=conftest 4012 ac_cv_lib_rt_sched_yield=yes
7430 lib=conftest 4013else
7431 libobjs=conftest.$ac_objext 4014 echo "$as_me: failed program was:" >&5
7432 deplibs= 4015sed 's/^/| /' conftest.$ac_ext >&5
7433 wl=$lt_cv_prog_cc_wl 4016
7434 compiler_flags=-v 4017ac_cv_lib_rt_sched_yield=no
7435 linker_flags=-v 4018fi
7436 verstring= 4019rm -f conftest.err conftest.$ac_objext \
7437 output_objdir=. 4020 conftest$ac_exeext conftest.$ac_ext
7438 libname=conftest 4021LIBS=$ac_check_lib_save_LIBS
7439 save_allow_undefined_flag=$allow_undefined_flag 4022fi
7440 allow_undefined_flag= 4023echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
7441 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 4024echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
7442 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 4025if test $ac_cv_lib_rt_sched_yield = yes; then
4026 LIBS="$LIBS -lrt"
4027fi
4028
4029fi
4030
4031
4032echo "$as_me:$LINENO: checking for sched_yield support" >&5
4033echo $ECHO_N "checking for sched_yield support... $ECHO_C" >&6
4034cat >conftest.$ac_ext <<_ACEOF
4035/* confdefs.h. */
4036_ACEOF
4037cat confdefs.h >>conftest.$ac_ext
4038cat >>conftest.$ac_ext <<_ACEOF
4039/* end confdefs.h. */
4040#include <sched.h>
4041int
4042main ()
4043{
4044sched_yield ()
4045 ;
4046 return 0;
4047}
4048_ACEOF
4049rm -f conftest.$ac_objext conftest$ac_exeext
4050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4051 (eval $ac_link) 2>conftest.er1
7443 ac_status=$? 4052 ac_status=$?
4053 grep -v '^ *+' conftest.er1 >conftest.err
4054 rm -f conftest.er1
4055 cat conftest.err >&5
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); } 4057 (exit $ac_status); } &&
7446 then 4058 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7447 lt_cv_archive_cmds_need_lc=no 4059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7448 else 4060 (eval $ac_try) 2>&5
7449 lt_cv_archive_cmds_need_lc=yes 4061 ac_status=$?
7450 fi 4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 allow_undefined_flag=$save_allow_undefined_flag 4063 (exit $ac_status); }; } &&
7452 else 4064 { ac_try='test -s conftest$ac_exeext'
7453 cat conftest.err 1>&5 4065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454 fi 4066 (eval $ac_try) 2>&5
7455fi 4067 ac_status=$?
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); }; }; then
4070 echo "$as_me:$LINENO: result: yes" >&5
4071echo "${ECHO_T}yes" >&6
7456 4072
7457 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5 4073cat >>confdefs.h <<\_ACEOF
7458echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6 4074#define HAVE_SCHED_YIELD 1
7459 ;; 4075_ACEOF
7460 esac
7461fi
7462need_lc=${lt_cv_archive_cmds_need_lc-yes}
7463##
7464## END FIXME
7465 4076
7466## FIXME: this should be a separate macro
7467##
7468# The second clause should only fire when bootstrapping the
7469# libtool distribution, otherwise you forgot to ship ltmain.sh
7470# with your package, and you will get complaints that there are
7471# no rules to generate ltmain.sh.
7472if test -f "$ltmain"; then
7473 :
7474else 4077else
7475 # If there is no Makefile yet, we rely on a make rule to execute 4078 echo "$as_me: failed program was:" >&5
7476 # `config.status --recheck' to rerun these tests and create the 4079sed 's/^/| /' conftest.$ac_ext >&5
7477 # libtool script then.
7478 test -f Makefile && make "$ltmain"
7479fi
7480 4080
7481if test -f "$ltmain"; then 4081echo "$as_me:$LINENO: result: no" >&5
7482 trap "$rm \"${ofile}T\"; exit 1" 1 2 15 4082echo "${ECHO_T}no" >&6
7483 $rm -f "${ofile}T"
7484
7485 echo creating $ofile
7486
7487 # Now quote all the things that may contain metacharacters while being
7488 # careful not to overquote the AC_SUBSTed values. We take copies of the
7489 # variables and quote the copies for generation of the libtool script.
7490 for var in echo old_CC old_CFLAGS \
7491 AR AR_FLAGS CC LD LN_S NM SHELL \
7492 reload_flag reload_cmds wl \
7493 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7494 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7495 library_names_spec soname_spec \
7496 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7497 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7498 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7499 old_striplib striplib file_magic_cmd export_symbols_cmds \
7500 deplibs_check_method allow_undefined_flag no_undefined_flag \
7501 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7502 hardcode_libdir_flag_spec hardcode_libdir_separator \
7503 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7504 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7505
7506 case "$var" in
7507 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7508 old_postinstall_cmds | old_postuninstall_cmds | \
7509 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7510 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7511 postinstall_cmds | postuninstall_cmds | \
7512 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7513 # Double-quote double-evaled strings.
7514 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7515 ;;
7516 *)
7517 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7518 ;;
7519 esac
7520 done
7521
7522 cat <<__EOF__ > "${ofile}T"
7523#! $SHELL
7524
7525# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7526# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7527# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7528#
7529# Copyright (C) 1996-2000 Free Software Foundation, Inc.
7530# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7531#
7532# This program is free software; you can redistribute it and/or modify
7533# it under the terms of the GNU General Public License as published by
7534# the Free Software Foundation; either version 2 of the License, or
7535# (at your option) any later version.
7536#
7537# This program is distributed in the hope that it will be useful, but
7538# WITHOUT ANY WARRANTY; without even the implied warranty of
7539# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7540# General Public License for more details.
7541#
7542# You should have received a copy of the GNU General Public License
7543# along with this program; if not, write to the Free Software
7544# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7545#
7546# As a special exception to the GNU General Public License, if you
7547# distribute this file as part of a program that contains a
7548# configuration script generated by Autoconf, you may include it under
7549# the same distribution terms that you use for the rest of that program.
7550
7551# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7552Xsed="sed -e s/^X//"
7553
7554# The HP-UX ksh and POSIX shell print the target directory to stdout
7555# if CDPATH is set.
7556if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7557
7558# ### BEGIN LIBTOOL CONFIG
7559
7560# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7561
7562# Shell to use when invoking shell scripts.
7563SHELL=$lt_SHELL
7564
7565# Whether or not to build shared libraries.
7566build_libtool_libs=$enable_shared
7567
7568# Whether or not to add -lc for building shared libraries.
7569build_libtool_need_lc=$need_lc
7570
7571# Whether or not to build static libraries.
7572build_old_libs=$enable_static
7573
7574# Whether or not to optimize for fast installation.
7575fast_install=$enable_fast_install
7576
7577# The host system.
7578host_alias=$host_alias
7579host=$host
7580
7581# An echo program that does not interpret backslashes.
7582echo=$lt_echo
7583
7584# The archiver.
7585AR=$lt_AR
7586AR_FLAGS=$lt_AR_FLAGS
7587
7588# The default C compiler.
7589CC=$lt_CC
7590
7591# Is the compiler the GNU C compiler?
7592with_gcc=$GCC
7593
7594# The linker used to build libraries.
7595LD=$lt_LD
7596
7597# Whether we need hard or soft links.
7598LN_S=$lt_LN_S
7599
7600# A BSD-compatible nm program.
7601NM=$lt_NM
7602
7603# A symbol stripping program
7604STRIP=$STRIP
7605
7606# Used to examine libraries when file_magic_cmd begins "file"
7607MAGIC_CMD=$MAGIC_CMD
7608
7609# Used on cygwin: DLL creation program.
7610DLLTOOL="$DLLTOOL"
7611
7612# Used on cygwin: object dumper.
7613OBJDUMP="$OBJDUMP"
7614
7615# Used on cygwin: assembler.
7616AS="$AS"
7617
7618# The name of the directory that contains temporary libtool files.
7619objdir=$objdir
7620
7621# How to create reloadable object files.
7622reload_flag=$lt_reload_flag
7623reload_cmds=$lt_reload_cmds
7624
7625# How to pass a linker flag through the compiler.
7626wl=$lt_wl
7627
7628# Object file suffix (normally "o").
7629objext="$ac_objext"
7630
7631# Old archive suffix (normally "a").
7632libext="$libext"
7633
7634# Executable file suffix (normally "").
7635exeext="$exeext"
7636
7637# Additional compiler flags for building library objects.
7638pic_flag=$lt_pic_flag
7639pic_mode=$pic_mode
7640
7641# Does compiler simultaneously support -c and -o options?
7642compiler_c_o=$lt_compiler_c_o
7643
7644# Can we write directly to a .lo ?
7645compiler_o_lo=$lt_compiler_o_lo
7646
7647# Must we lock files when doing compilation ?
7648need_locks=$lt_need_locks
7649
7650# Do we need the lib prefix for modules?
7651need_lib_prefix=$need_lib_prefix
7652
7653# Do we need a version for libraries?
7654need_version=$need_version
7655
7656# Whether dlopen is supported.
7657dlopen_support=$enable_dlopen
7658
7659# Whether dlopen of programs is supported.
7660dlopen_self=$enable_dlopen_self
7661
7662# Whether dlopen of statically linked programs is supported.
7663dlopen_self_static=$enable_dlopen_self_static
7664
7665# Compiler flag to prevent dynamic linking.
7666link_static_flag=$lt_link_static_flag
7667
7668# Compiler flag to turn off builtin functions.
7669no_builtin_flag=$lt_no_builtin_flag
7670
7671# Compiler flag to allow reflexive dlopens.
7672export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7673
7674# Compiler flag to generate shared objects directly from archives.
7675whole_archive_flag_spec=$lt_whole_archive_flag_spec
7676
7677# Compiler flag to generate thread-safe objects.
7678thread_safe_flag_spec=$lt_thread_safe_flag_spec
7679
7680# Library versioning type.
7681version_type=$version_type
7682
7683# Format of library name prefix.
7684libname_spec=$lt_libname_spec
7685
7686# List of archive names. First name is the real one, the rest are links.
7687# The last name is the one that the linker finds with -lNAME.
7688library_names_spec=$lt_library_names_spec
7689
7690# The coded name of the library, if different from the real name.
7691soname_spec=$lt_soname_spec
7692
7693# Commands used to build and install an old-style archive.
7694RANLIB=$lt_RANLIB
7695old_archive_cmds=$lt_old_archive_cmds
7696old_postinstall_cmds=$lt_old_postinstall_cmds
7697old_postuninstall_cmds=$lt_old_postuninstall_cmds
7698
7699# Create an old-style archive from a shared archive.
7700old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7701
7702# Create a temporary old-style archive to link instead of a shared archive.
7703old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7704
7705# Commands used to build and install a shared archive.
7706archive_cmds=$lt_archive_cmds
7707archive_expsym_cmds=$lt_archive_expsym_cmds
7708postinstall_cmds=$lt_postinstall_cmds
7709postuninstall_cmds=$lt_postuninstall_cmds
7710
7711# Commands to strip libraries.
7712old_striplib=$lt_old_striplib
7713striplib=$lt_striplib
7714
7715# Method to check whether dependent libraries are shared objects.
7716deplibs_check_method=$lt_deplibs_check_method
7717
7718# Command to use when deplibs_check_method == file_magic.
7719file_magic_cmd=$lt_file_magic_cmd
7720
7721# Flag that allows shared libraries with undefined symbols to be built.
7722allow_undefined_flag=$lt_allow_undefined_flag
7723
7724# Flag that forces no undefined symbols.
7725no_undefined_flag=$lt_no_undefined_flag
7726
7727# Commands used to finish a libtool library installation in a directory.
7728finish_cmds=$lt_finish_cmds
7729
7730# Same as above, but a single script fragment to be evaled but not shown.
7731finish_eval=$lt_finish_eval
7732
7733# Take the output of nm and produce a listing of raw symbols and C names.
7734global_symbol_pipe=$lt_global_symbol_pipe
7735
7736# Transform the output of nm in a proper C declaration
7737global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7738
7739# This is the shared library runtime path variable.
7740runpath_var=$runpath_var
7741
7742# This is the shared library path variable.
7743shlibpath_var=$shlibpath_var
7744
7745# Is shlibpath searched before the hard-coded library search path?
7746shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7747
7748# How to hardcode a shared library path into an executable.
7749hardcode_action=$hardcode_action
7750
7751# Whether we should hardcode library paths into libraries.
7752hardcode_into_libs=$hardcode_into_libs
7753
7754# Flag to hardcode \$libdir into a binary during linking.
7755# This must work even if \$libdir does not exist.
7756hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7757
7758# Whether we need a single -rpath flag with a separated argument.
7759hardcode_libdir_separator=$lt_hardcode_libdir_separator
7760
7761# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7762# resulting binary.
7763hardcode_direct=$hardcode_direct
7764
7765# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7766# resulting binary.
7767hardcode_minus_L=$hardcode_minus_L
7768
7769# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7770# the resulting binary.
7771hardcode_shlibpath_var=$hardcode_shlibpath_var
7772
7773# Variables whose values should be saved in libtool wrapper scripts and
7774# restored at relink time.
7775variables_saved_for_relink="$variables_saved_for_relink"
7776
7777# Whether libtool must link a program against all its dependency libraries.
7778link_all_deplibs=$link_all_deplibs
7779
7780# Compile-time system search path for libraries
7781sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7782
7783# Run-time system search path for libraries
7784sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7785
7786# Fix the shell variable \$srcfile for the compiler.
7787fix_srcfile_path="$fix_srcfile_path"
7788
7789# Set to yes if exported symbols are required.
7790always_export_symbols=$always_export_symbols
7791
7792# The commands to list exported symbols.
7793export_symbols_cmds=$lt_export_symbols_cmds
7794
7795# The commands to extract the exported symbol list from a shared archive.
7796extract_expsyms_cmds=$lt_extract_expsyms_cmds
7797
7798# Symbols that should not be listed in the preloaded symbols.
7799exclude_expsyms=$lt_exclude_expsyms
7800
7801# Symbols that must always be exported.
7802include_expsyms=$lt_include_expsyms
7803
7804# ### END LIBTOOL CONFIG
7805
7806__EOF__
7807
7808 case "$host_os" in
7809 aix3*)
7810 cat <<\EOF >> "${ofile}T"
7811
7812# AIX sometimes has problems with the GCC collect2 program. For some
7813# reason, if we set the COLLECT_NAMES environment variable, the problems
7814# vanish in a puff of smoke.
7815if test "X${COLLECT_NAMES+set}" != Xset; then
7816 COLLECT_NAMES=
7817 export COLLECT_NAMES
7818fi 4083fi
7819EOF 4084rm -f conftest.err conftest.$ac_objext \
7820 ;; 4085 conftest$ac_exeext conftest.$ac_ext
7821 esac
7822
7823 case "$host_os" in
7824 cygwin* | mingw* | pw32* | os2*)
7825 cat <<'EOF' >> "${ofile}T"
7826 # This is a source program that is used to create dlls on Windows
7827 # Don't remove nor modify the starting and closing comments
7828# /* ltdll.c starts here */
7829# #define WIN32_LEAN_AND_MEAN
7830# #include <windows.h>
7831# #undef WIN32_LEAN_AND_MEAN
7832# #include <stdio.h>
7833#
7834# #ifndef __CYGWIN__
7835# # ifdef __CYGWIN32__
7836# # define __CYGWIN__ __CYGWIN32__
7837# # endif
7838# #endif
7839#
7840# #ifdef __cplusplus
7841# extern "C" {
7842# #endif
7843# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7844# #ifdef __cplusplus
7845# }
7846# #endif
7847#
7848# #ifdef __CYGWIN__
7849# #include <cygwin/cygwin_dll.h>
7850# DECLARE_CYGWIN_DLL( DllMain );
7851# #endif
7852# HINSTANCE __hDllInstance_base;
7853#
7854# BOOL APIENTRY
7855# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7856# {
7857# __hDllInstance_base = hInst;
7858# return TRUE;
7859# }
7860# /* ltdll.c ends here */
7861 # This is a source program that is used to create import libraries
7862 # on Windows for dlls which lack them. Don't remove nor modify the
7863 # starting and closing comments
7864# /* impgen.c starts here */
7865# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7866#
7867# This file is part of GNU libtool.
7868#
7869# This program is free software; you can redistribute it and/or modify
7870# it under the terms of the GNU General Public License as published by
7871# the Free Software Foundation; either version 2 of the License, or
7872# (at your option) any later version.
7873#
7874# This program is distributed in the hope that it will be useful,
7875# but WITHOUT ANY WARRANTY; without even the implied warranty of
7876# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7877# GNU General Public License for more details.
7878#
7879# You should have received a copy of the GNU General Public License
7880# along with this program; if not, write to the Free Software
7881# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7882# */
7883#
7884# #include <stdio.h> /* for printf() */
7885# #include <unistd.h> /* for open(), lseek(), read() */
7886# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7887# #include <string.h> /* for strdup() */
7888#
7889# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7890# #ifndef O_BINARY
7891# #define O_BINARY 0
7892# #endif
7893#
7894# static unsigned int
7895# pe_get16 (fd, offset)
7896# int fd;
7897# int offset;
7898# {
7899# unsigned char b[2];
7900# lseek (fd, offset, SEEK_SET);
7901# read (fd, b, 2);
7902# return b[0] + (b[1]<<8);
7903# }
7904#
7905# static unsigned int
7906# pe_get32 (fd, offset)
7907# int fd;
7908# int offset;
7909# {
7910# unsigned char b[4];
7911# lseek (fd, offset, SEEK_SET);
7912# read (fd, b, 4);
7913# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7914# }
7915#
7916# static unsigned int
7917# pe_as32 (ptr)
7918# void *ptr;
7919# {
7920# unsigned char *b = ptr;
7921# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7922# }
7923#
7924# int
7925# main (argc, argv)
7926# int argc;
7927# char *argv[];
7928# {
7929# int dll;
7930# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7931# unsigned long export_rva, export_size, nsections, secptr, expptr;
7932# unsigned long name_rvas, nexp;
7933# unsigned char *expdata, *erva;
7934# char *filename, *dll_name;
7935#
7936# filename = argv[1];
7937#
7938# dll = open(filename, O_RDONLY|O_BINARY);
7939# if (!dll)
7940# return 1;
7941#
7942# dll_name = filename;
7943#
7944# for (i=0; filename[i]; i++)
7945# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7946# dll_name = filename + i +1;
7947#
7948# pe_header_offset = pe_get32 (dll, 0x3c);
7949# opthdr_ofs = pe_header_offset + 4 + 20;
7950# num_entries = pe_get32 (dll, opthdr_ofs + 92);
7951#
7952# if (num_entries < 1) /* no exports */
7953# return 1;
7954#
7955# export_rva = pe_get32 (dll, opthdr_ofs + 96);
7956# export_size = pe_get32 (dll, opthdr_ofs + 100);
7957# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7958# secptr = (pe_header_offset + 4 + 20 +
7959# pe_get16 (dll, pe_header_offset + 4 + 16));
7960#
7961# expptr = 0;
7962# for (i = 0; i < nsections; i++)
7963# {
7964# char sname[8];
7965# unsigned long secptr1 = secptr + 40 * i;
7966# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7967# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7968# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7969# lseek(dll, secptr1, SEEK_SET);
7970# read(dll, sname, 8);
7971# if (vaddr <= export_rva && vaddr+vsize > export_rva)
7972# {
7973# expptr = fptr + (export_rva - vaddr);
7974# if (export_rva + export_size > vaddr + vsize)
7975# export_size = vsize - (export_rva - vaddr);
7976# break;
7977# }
7978# }
7979#
7980# expdata = (unsigned char*)malloc(export_size);
7981# lseek (dll, expptr, SEEK_SET);
7982# read (dll, expdata, export_size);
7983# erva = expdata - export_rva;
7984#
7985# nexp = pe_as32 (expdata+24);
7986# name_rvas = pe_as32 (expdata+32);
7987#
7988# printf ("EXPORTS\n");
7989# for (i = 0; i<nexp; i++)
7990# {
7991# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7992# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7993# }
7994#
7995# return 0;
7996# }
7997# /* impgen.c ends here */
7998
7999EOF
8000 ;;
8001 esac
8002
8003 # We use sed instead of cat because bash on DJGPP gets confused if
8004 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8005 # text mode, it properly converts lines to CR/LF. This bash problem
8006 # is reportedly fixed, but why not run on old versions too?
8007 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8008
8009 mv -f "${ofile}T" "$ofile" || \
8010 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8011 chmod +x "$ofile"
8012fi
8013##
8014## END FIXME
8015
8016
8017
8018
8019
8020# This can be used to rebuild libtool when needed
8021LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8022
8023# Always use our own libtool.
8024LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8025
8026# Prevent multiple expansion
8027 4086
8028 4087
8029MALLOC_TYPE=S 4088MALLOC_TYPE=S
8030support_addstrings=no 4089
8031support_frills=no 4090support_frills=yes
8032support_linespace=no
8033support_inheritpixmap=no 4091support_inheritpixmap=yes
8034support_tinting=no 4092support_tinting=yes
4093support_fading=yes
8035support_keepscrolling=no 4094support_keepscrolling=yes
8036support_selectionscrolling=no 4095support_selectionscrolling=yes
8037support_menubar=no
8038support_mousewheel=no 4096support_mousewheel=yes
8039support_mouseslipwheel=no 4097support_mouseslipwheel=yes
8040support_utmp=no 4098support_utmp=yes
8041support_wtmp=no 4099support_wtmp=yes
8042support_lastlog=no 4100support_lastlog=yes
8043support_cursor_blink=no
8044support_text_blink=no 4101support_text_blink=yes
8045support_pointer_blank=no 4102support_pointer_blank=yes
8046support_scroll_rxvt=no 4103support_scroll_rxvt=yes
8047support_scroll_next=no 4104support_scroll_next=yes
8048support_scroll_xterm=no 4105support_scroll_xterm=yes
8049support_scroll_plain=no 4106support_scroll_plain=yes
8050support_xim=no 4107support_xim=yes
8051support_xpm=no 4108support_xpm=yes
8052support_xft=no 4109support_xft=yes
8053support_unicode3=no 4110support_unicode3=no
8054support_combining=no 4111support_combining=yes
4112support_8bitctrls=no
4113support_iso14755=yes
4114support_styles=yes
4115support_perl=yes
8055codesets= 4116codesets=all
8056 4117
8057 4118
8058if test "x$enable_shared" = xyes; then 4119if test "x$enable_shared" = xyes; then
8059 4120
8060cat >>confdefs.h <<\_ACEOF 4121cat >>confdefs.h <<\_ACEOF
8066 4127
8067 4128
8068# Check whether --enable-everything or --disable-everything was given. 4129# Check whether --enable-everything or --disable-everything was given.
8069if test "${enable_everything+set}" = set; then 4130if test "${enable_everything+set}" = set; then
8070 enableval="$enable_everything" 4131 enableval="$enable_everything"
4132
4133 if test x$enableval = xno; then
4134 support_24bit=no
4135 support_frills=no
4136 support_inheritpixmap=no
4137 support_tinting=no
4138 support_fading=no
4139 support_keepscrolling=no
4140 support_selectionscrolling=no
4141 support_lastlog=no
4142 support_mousewheel=no
4143 support_mouseslipwheel=no
4144 support_text_blink=no
4145 support_pointer_blank=no
4146 support_scroll_rxvt=no
4147 support_scroll_next=no
4148 support_scroll_xterm=no
4149 support_scroll_plain=no
4150 support_utmp=no
4151 support_wtmp=no
4152 support_xim=no
4153 support_xpm=no
4154 support_xft=no
4155 support_unicode3=no
4156 support_combining=no
4157 support_8bitctrls=no
4158 support_iso14755=no
4159 support_styles=no
4160 support_perl=no
4161 codesets=
4162 fi
8071 if test x$enableval = xyes; then 4163 if test x$enableval = xyes; then
8072 support_24bit=yes 4164 support_24bit=yes
8073 support_frills=yes 4165 support_frills=yes
8074 support_linespace=yes
8075 support_inheritpixmap=yes 4166 support_inheritpixmap=yes
8076 support_tinting=yes 4167 support_tinting=yes
4168 support_fading=yes
8077 support_keepscrolling=yes 4169 support_keepscrolling=yes
8078 support_selectionscrolling=yes 4170 support_selectionscrolling=yes
8079 support_lastlog=yes 4171 support_lastlog=yes
8080 support_menubar=yes
8081 support_mousewheel=yes 4172 support_mousewheel=yes
8082 support_mouseslipwheel=yes 4173 support_mouseslipwheel=yes
8083 support_cursor_blink=yes
8084 support_text_blink=yes 4174 support_text_blink=yes
8085 support_pointer_blank=yes 4175 support_pointer_blank=yes
8086 support_scroll_rxvt=yes 4176 support_scroll_rxvt=yes
8087 support_scroll_next=yes 4177 support_scroll_next=yes
8088 support_scroll_xterm=yes 4178 support_scroll_xterm=yes
8089 support_scroll_plain=yes 4179 support_scroll_plain=yes
8090 support_utmp=yes 4180 support_utmp=yes
8091 support_wtmp=yes 4181 support_wtmp=yes
8092 support_xim=yes 4182 support_xim=yes
8093 support_xpm=yes 4183 support_xpm=yes
8094 support_xft=yes 4184 support_xft=yes
8095 support_unicode3=yes 4185 support_unicode3=yes
8096 support_combining=yes 4186 support_combining=yes
4187 #support_8bitctrls=yes
4188 support_iso14755=yes
4189 support_styles=yes
4190 support_perl=yes
8097 codesets=all 4191 codesets=all
8098 fi 4192 fi
4193
8099fi; 4194fi;
8100 4195
8101# Check whether --enable-unicode3 or --disable-unicode3 was given. 4196# Check whether --enable-unicode3 or --disable-unicode3 was given.
8102if test "${enable_unicode3+set}" = set; then 4197if test "${enable_unicode3+set}" = set; then
8103 enableval="$enable_unicode3" 4198 enableval="$enable_unicode3"
8104 if test x$enableval = xyes -o x$enableval = xno; then 4199 if test x$enableval = xyes -o x$enableval = xno; then
8105 support_unicode3=yes 4200 support_unicode3=$enableval
8106 fi 4201 fi
8107fi; 4202fi;
8108 4203
8109# Check whether --enable-combining or --disable-combining was given. 4204# Check whether --enable-combining or --disable-combining was given.
8110if test "${enable_combining+set}" = set; then 4205if test "${enable_combining+set}" = set; then
8111 enableval="$enable_combining" 4206 enableval="$enable_combining"
8112 if test x$enableval = xyes -o x$enableval = xno; then 4207 if test x$enableval = xyes -o x$enableval = xno; then
8113 support_combining=yes 4208 support_combining=$enableval
8114 fi 4209 fi
8115fi; 4210fi;
8116 4211
8117# Check whether --enable-xft or --disable-xft was given. 4212# Check whether --enable-xft or --disable-xft was given.
8118if test "${enable_xft+set}" = set; then 4213if test "${enable_xft+set}" = set; then
8119 enableval="$enable_xft" 4214 enableval="$enable_xft"
8120 if test x$enableval = xyes -o x$enableval = xno; then 4215 if test x$enableval = xyes -o x$enableval = xno; then
8121 support_xft=yes 4216 support_xft=$enableval
4217 fi
4218fi;
4219
4220# Check whether --enable-font-styles or --disable-font-styles was given.
4221if test "${enable_font_styles+set}" = set; then
4222 enableval="$enable_font_styles"
4223 if test x$enableval = xyes -o x$enableval = xno; then
4224 support_styles=$enableval
8122 fi 4225 fi
8123fi; 4226fi;
8124 4227
8125# Check whether --enable-utmp or --disable-utmp was given. 4228# Check whether --enable-utmp or --disable-utmp was given.
8126if test "${enable_utmp+set}" = set; then 4229if test "${enable_utmp+set}" = set; then
8168 if test x$enableval = xyes -o x$enableval = xno; then 4271 if test x$enableval = xyes -o x$enableval = xno; then
8169 support_tinting=$enableval 4272 support_tinting=$enableval
8170 fi 4273 fi
8171fi; 4274fi;
8172 4275
8173# Check whether --enable-menubar or --disable-menubar was given. 4276# Check whether --enable-fading or --disable-fading was given.
8174if test "${enable_menubar+set}" = set; then 4277if test "${enable_fading+set}" = set; then
8175 enableval="$enable_menubar" 4278 enableval="$enable_fading"
8176 if test x$enableval = xyes -o x$enableval = xno; then 4279 if test x$enableval = xyes -o x$enableval = xno; then
8177 support_menubar=$enableval 4280 support_fading=$enableval
8178 fi 4281 fi
8179fi; 4282fi;
8180 4283
8181# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given. 4284# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
8182if test "${enable_rxvt_scroll+set}" = set; then 4285if test "${enable_rxvt_scroll+set}" = set; then
8200 if test x$enableval = xyes -o x$enableval = xno; then 4303 if test x$enableval = xyes -o x$enableval = xno; then
8201 support_scroll_xterm=$enableval 4304 support_scroll_xterm=$enableval
8202 fi 4305 fi
8203fi; 4306fi;
8204 4307
4308# Check whether --enable-perl or --disable-perl was given.
4309if test "${enable_perl+set}" = set; then
4310 enableval="$enable_perl"
4311 if test x$enableval = xyes -o x$enableval = xno; then
4312 support_perl=$enableval
4313 fi
4314fi;
4315
8205# Check whether --enable-plain-scroll or --disable-plain-scroll was given. 4316# Check whether --enable-plain-scroll or --disable-plain-scroll was given.
8206if test "${enable_plain_scroll+set}" = set; then 4317if test "${enable_plain_scroll+set}" = set; then
8207 enableval="$enable_plain_scroll" 4318 enableval="$enable_plain_scroll"
8208 if test x$enableval = xyes -o x$enableval = xno; then 4319 if test x$enableval = xyes -o x$enableval = xno; then
8209 support_scroll_plain=$enableval 4320 support_scroll_plain=$enableval
8210 fi 4321 fi
8211fi; 4322fi;
8212 4323
8213# Check whether --enable-half-shadow or --disable-half-shadow was given.
8214if test "${enable_half_shadow+set}" = set; then
8215 enableval="$enable_half_shadow"
8216 if test x$enableval = xyes; then
8217
8218cat >>confdefs.h <<\_ACEOF
8219#define HALFSHADOW 1
8220_ACEOF
8221
8222 fi
8223fi;
8224 4324
8225 4325
8226# Check whether --with-codesets or --without-codesets was given. 4326# Check whether --with-codesets or --without-codesets was given.
8227if test "${with_codesets+set}" = set; then 4327if test "${with_codesets+set}" = set; then
8228 withval="$with_codesets" 4328 withval="$with_codesets"
8283_ACEOF 4383_ACEOF
8284 4384
8285 fi 4385 fi
8286fi; 4386fi;
8287 4387
8288# Check whether --enable-xgetdefault or --disable-xgetdefault was given. 4388# Check whether --enable-8bitctrls or --disable-8bitctrls was given.
8289if test "${enable_xgetdefault+set}" = set; then 4389if test "${enable_8bitctrls+set}" = set; then
8290 enableval="$enable_xgetdefault" 4390 enableval="$enable_8bitctrls"
8291 if test x$enableval = xyes; then 4391 if test x$enableval = xyes -o x$enableval = xno; then
8292 4392 support_8bitctrls=$enableval
8293cat >>confdefs.h <<\_ACEOF
8294#define USE_XGETDEFAULT 1
8295_ACEOF
8296
8297 fi 4393 fi
8298fi; 4394fi;
8299 4395
8300RESFALLBACK=Rxvt 4396RESFALLBACK=Rxvt
8301# Check whether --enable-fallback or --disable-fallback was given. 4397# Check whether --enable-fallback or --disable-fallback was given.
8348if test "${with_name+set}" = set; then 4444if test "${with_name+set}" = set; then
8349 withval="$with_name" 4445 withval="$with_name"
8350 RXVTNAME="$withval" 4446 RXVTNAME="$withval"
8351fi; 4447fi;
8352 4448
4449cat >>confdefs.h <<_ACEOF
4450#define RXVTNAME "$RXVTNAME"
4451_ACEOF
4452
4453
8353RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` 4454RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
8354 4455
8355
8356# Check whether --enable-strings or --disable-strings was given.
8357if test "${enable_strings+set}" = set; then
8358 enableval="$enable_strings"
8359 if test x$enableval = xyes -o x$enableval = xno; then
8360 support_addstrings=$enableval
8361 fi
8362fi;
8363 4456
8364# Check whether --enable-swapscreen or --disable-swapscreen was given. 4457# Check whether --enable-swapscreen or --disable-swapscreen was given.
8365if test "${enable_swapscreen+set}" = set; then 4458if test "${enable_swapscreen+set}" = set; then
8366 enableval="$enable_swapscreen" 4459 enableval="$enable_swapscreen"
8367 if test x$enableval = xno; then 4460 if test x$enableval = xno; then
8368 4461
8369cat >>confdefs.h <<\_ACEOF 4462cat >>confdefs.h <<\_ACEOF
8370#define NO_SECONDARY_SCREEN 1 4463#define NO_SECONDARY_SCREEN 1
8371_ACEOF 4464_ACEOF
8372 4465
4466 fi
4467fi;
4468
4469# Check whether --enable-iso14755 or --disable-iso14755 was given.
4470if test "${enable_iso14755+set}" = set; then
4471 enableval="$enable_iso14755"
4472 if test x$enableval = xyes -o x$enableval = xno; then
4473 support_iso14755=$enableval
8373 fi 4474 fi
8374fi; 4475fi;
8375 4476
8376# Check whether --enable-frills or --disable-frills was given. 4477# Check whether --enable-frills or --disable-frills was given.
8377if test "${enable_frills+set}" = set; then 4478if test "${enable_frills+set}" = set; then
8378 enableval="$enable_frills" 4479 enableval="$enable_frills"
8379 if test x$enableval = xyes -o x$enableval = xno; then 4480 if test x$enableval = xyes -o x$enableval = xno; then
8380 support_frills=$enableval 4481 support_frills=$enableval
8381 fi
8382fi;
8383
8384# Check whether --enable-linespace or --disable-linespace was given.
8385if test "${enable_linespace+set}" = set; then
8386 enableval="$enable_linespace"
8387 if test x$enableval = xyes -o x$enableval = xno; then
8388 support_linespace=$enableval
8389 fi 4482 fi
8390fi; 4483fi;
8391 4484
8392# Check whether --enable-24bit or --disable-24bit was given. 4485# Check whether --enable-24bit or --disable-24bit was given.
8393if test "${enable_24bit+set}" = set; then 4486if test "${enable_24bit+set}" = set; then
8461_ACEOF 4554_ACEOF
8462 4555
8463 fi 4556 fi
8464fi; 4557fi;
8465 4558
8466# Check whether --enable-256-color or --disable-256-color was given.
8467if test "${enable_256_color+set}" = set; then
8468 enableval="$enable_256_color"
8469 if test x$enableval = xyes; then
8470
8471cat >>confdefs.h <<\_ACEOF
8472#define TTY_256COLOR 1
8473_ACEOF
8474
8475 fi
8476fi;
8477
8478# Check whether --enable-cursor-blink or --disable-cursor-blink was given.
8479if test "${enable_cursor_blink+set}" = set; then
8480 enableval="$enable_cursor_blink"
8481 if test x$enableval = xyes -o x$enableval = xno; then
8482 support_cursor_blink=$enableval
8483 fi
8484fi;
8485
8486# Check whether --enable-text-blink or --disable-text-blink was given. 4559# Check whether --enable-text-blink or --disable-text-blink was given.
8487if test "${enable_text_blink+set}" = set; then 4560if test "${enable_text_blink+set}" = set; then
8488 enableval="$enable_text_blink" 4561 enableval="$enable_text_blink"
8489 if test x$enableval = xyes -o x$enableval = xno; then 4562 if test x$enableval = xyes -o x$enableval = xno; then
8490 support_text_blink=$enableval 4563 support_text_blink=$enableval
8523_ACEOF 4596_ACEOF
8524 terminfo="$withval" 4597 terminfo="$withval"
8525 fi 4598 fi
8526fi; 4599fi;
8527 4600
8528
8529
8530cat >>confdefs.h <<\_ACEOF
8531#define PROTOTYPES 1
8532_ACEOF
8533
8534
8535if test -z "$CFLAGS"; then
8536 if test -z "$CCOPTS"; then
8537 CCOPTS='-O'
8538 fi
8539 CFLAGS="$CCOPTS"
8540fi
8541 4601
8542# Extract the first word of "mv", so it can be a program name with args. 4602# Extract the first word of "mv", so it can be a program name with args.
8543set dummy mv; ac_word=$2 4603set dummy mv; ac_word=$2
8544echo "$as_me:$LINENO: checking for $ac_word" >&5 4604echo "$as_me:$LINENO: checking for $ac_word" >&5
8545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8817else 4877else
8818 echo "$as_me:$LINENO: result: no" >&5 4878 echo "$as_me:$LINENO: result: no" >&5
8819echo "${ECHO_T}no" >&6 4879echo "${ECHO_T}no" >&6
8820fi 4880fi
8821 4881
8822# Extract the first word of "tbl", so it can be a program name with args. 4882# Extract the first word of "tic", so it can be a program name with args.
8823set dummy tbl; ac_word=$2 4883set dummy tic; ac_word=$2
8824echo "$as_me:$LINENO: checking for $ac_word" >&5 4884echo "$as_me:$LINENO: checking for $ac_word" >&5
8825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8826if test "${ac_cv_path_TBL+set}" = set; then 4886if test "${ac_cv_path_TIC+set}" = set; then
8827 echo $ECHO_N "(cached) $ECHO_C" >&6 4887 echo $ECHO_N "(cached) $ECHO_C" >&6
8828else 4888else
8829 case $TBL in 4889 case $TIC in
8830 [\\/]* | ?:[\\/]*) 4890 [\\/]* | ?:[\\/]*)
8831 ac_cv_path_TBL="$TBL" # Let the user override the test with a path. 4891 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
8832 ;; 4892 ;;
8833 *) 4893 *)
8834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8835for as_dir in $PATH 4895for as_dir in $PATH
8836do 4896do
8837 IFS=$as_save_IFS 4897 IFS=$as_save_IFS
8838 test -z "$as_dir" && as_dir=. 4898 test -z "$as_dir" && as_dir=.
8839 for ac_exec_ext in '' $ac_executable_extensions; do 4899 for ac_exec_ext in '' $ac_executable_extensions; do
8840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8841 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext" 4901 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
8842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8843 break 2 4903 break 2
8844 fi 4904 fi
8845done 4905done
8846done 4906done
8847 4907
8848 ;; 4908 ;;
8849esac 4909esac
8850fi 4910fi
8851TBL=$ac_cv_path_TBL 4911TIC=$ac_cv_path_TIC
8852 4912
8853if test -n "$TBL"; then 4913if test -n "$TIC"; then
8854 echo "$as_me:$LINENO: result: $TBL" >&5 4914 echo "$as_me:$LINENO: result: $TIC" >&5
8855echo "${ECHO_T}$TBL" >&6 4915echo "${ECHO_T}$TIC" >&6
8856else 4916else
8857 echo "$as_me:$LINENO: result: no" >&5 4917 echo "$as_me:$LINENO: result: no" >&5
8858echo "${ECHO_T}no" >&6 4918echo "${ECHO_T}no" >&6
8859fi 4919fi
8860 4920
8861 4921
4922
4923
4924ac_ext=cc
4925ac_cpp='$CXXCPP $CPPFLAGS'
4926ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4927ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4928ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4929echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4930echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4931if test -z "$CXXCPP"; then
4932 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4934else
4935 # Double quotes because CXXCPP needs to be expanded
4936 for CXXCPP in "$CXX -E" "/lib/cpp"
4937 do
4938 ac_preproc_ok=false
4939for ac_cxx_preproc_warn_flag in '' yes
4940do
4941 # Use a header file that comes with gcc, so configuring glibc
4942 # with a fresh cross-compiler works.
4943 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4944 # <limits.h> exists even on freestanding compilers.
4945 # On the NeXT, cc -E runs the code through the compiler's parser,
4946 # not just through cpp. "Syntax error" is here to catch this case.
4947 cat >conftest.$ac_ext <<_ACEOF
4948/* confdefs.h. */
4949_ACEOF
4950cat confdefs.h >>conftest.$ac_ext
4951cat >>conftest.$ac_ext <<_ACEOF
4952/* end confdefs.h. */
4953#ifdef __STDC__
4954# include <limits.h>
4955#else
4956# include <assert.h>
4957#endif
4958 Syntax error
4959_ACEOF
4960if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4962 ac_status=$?
4963 grep -v '^ *+' conftest.er1 >conftest.err
4964 rm -f conftest.er1
4965 cat conftest.err >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } >/dev/null; then
4968 if test -s conftest.err; then
4969 ac_cpp_err=$ac_cxx_preproc_warn_flag
4970 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4971 else
4972 ac_cpp_err=
4973 fi
4974else
4975 ac_cpp_err=yes
4976fi
4977if test -z "$ac_cpp_err"; then
4978 :
4979else
4980 echo "$as_me: failed program was:" >&5
4981sed 's/^/| /' conftest.$ac_ext >&5
4982
4983 # Broken: fails on valid input.
4984continue
4985fi
4986rm -f conftest.err conftest.$ac_ext
4987
4988 # OK, works on sane cases. Now check whether non-existent headers
4989 # can be detected and how.
4990 cat >conftest.$ac_ext <<_ACEOF
4991/* confdefs.h. */
4992_ACEOF
4993cat confdefs.h >>conftest.$ac_ext
4994cat >>conftest.$ac_ext <<_ACEOF
4995/* end confdefs.h. */
4996#include <ac_nonexistent.h>
4997_ACEOF
4998if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5000 ac_status=$?
5001 grep -v '^ *+' conftest.er1 >conftest.err
5002 rm -f conftest.er1
5003 cat conftest.err >&5
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); } >/dev/null; then
5006 if test -s conftest.err; then
5007 ac_cpp_err=$ac_cxx_preproc_warn_flag
5008 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5009 else
5010 ac_cpp_err=
5011 fi
5012else
5013 ac_cpp_err=yes
5014fi
5015if test -z "$ac_cpp_err"; then
5016 # Broken: success on invalid input.
5017continue
5018else
5019 echo "$as_me: failed program was:" >&5
5020sed 's/^/| /' conftest.$ac_ext >&5
5021
5022 # Passes both tests.
5023ac_preproc_ok=:
5024break
5025fi
5026rm -f conftest.err conftest.$ac_ext
5027
5028done
5029# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5030rm -f conftest.err conftest.$ac_ext
5031if $ac_preproc_ok; then
5032 break
5033fi
5034
5035 done
5036 ac_cv_prog_CXXCPP=$CXXCPP
5037
5038fi
5039 CXXCPP=$ac_cv_prog_CXXCPP
5040else
5041 ac_cv_prog_CXXCPP=$CXXCPP
5042fi
5043echo "$as_me:$LINENO: result: $CXXCPP" >&5
5044echo "${ECHO_T}$CXXCPP" >&6
5045ac_preproc_ok=false
5046for ac_cxx_preproc_warn_flag in '' yes
5047do
5048 # Use a header file that comes with gcc, so configuring glibc
5049 # with a fresh cross-compiler works.
5050 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5051 # <limits.h> exists even on freestanding compilers.
5052 # On the NeXT, cc -E runs the code through the compiler's parser,
5053 # not just through cpp. "Syntax error" is here to catch this case.
5054 cat >conftest.$ac_ext <<_ACEOF
5055/* confdefs.h. */
5056_ACEOF
5057cat confdefs.h >>conftest.$ac_ext
5058cat >>conftest.$ac_ext <<_ACEOF
5059/* end confdefs.h. */
5060#ifdef __STDC__
5061# include <limits.h>
5062#else
5063# include <assert.h>
5064#endif
5065 Syntax error
5066_ACEOF
5067if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5069 ac_status=$?
5070 grep -v '^ *+' conftest.er1 >conftest.err
5071 rm -f conftest.er1
5072 cat conftest.err >&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); } >/dev/null; then
5075 if test -s conftest.err; then
5076 ac_cpp_err=$ac_cxx_preproc_warn_flag
5077 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5078 else
5079 ac_cpp_err=
5080 fi
5081else
5082 ac_cpp_err=yes
5083fi
5084if test -z "$ac_cpp_err"; then
5085 :
5086else
5087 echo "$as_me: failed program was:" >&5
5088sed 's/^/| /' conftest.$ac_ext >&5
5089
5090 # Broken: fails on valid input.
5091continue
5092fi
5093rm -f conftest.err conftest.$ac_ext
5094
5095 # OK, works on sane cases. Now check whether non-existent headers
5096 # can be detected and how.
5097 cat >conftest.$ac_ext <<_ACEOF
5098/* confdefs.h. */
5099_ACEOF
5100cat confdefs.h >>conftest.$ac_ext
5101cat >>conftest.$ac_ext <<_ACEOF
5102/* end confdefs.h. */
5103#include <ac_nonexistent.h>
5104_ACEOF
5105if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5106 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5107 ac_status=$?
5108 grep -v '^ *+' conftest.er1 >conftest.err
5109 rm -f conftest.er1
5110 cat conftest.err >&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); } >/dev/null; then
5113 if test -s conftest.err; then
5114 ac_cpp_err=$ac_cxx_preproc_warn_flag
5115 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5116 else
5117 ac_cpp_err=
5118 fi
5119else
5120 ac_cpp_err=yes
5121fi
5122if test -z "$ac_cpp_err"; then
5123 # Broken: success on invalid input.
5124continue
5125else
5126 echo "$as_me: failed program was:" >&5
5127sed 's/^/| /' conftest.$ac_ext >&5
5128
5129 # Passes both tests.
5130ac_preproc_ok=:
5131break
5132fi
5133rm -f conftest.err conftest.$ac_ext
5134
5135done
5136# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5137rm -f conftest.err conftest.$ac_ext
5138if $ac_preproc_ok; then
5139 :
5140else
5141 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5142See \`config.log' for more details." >&5
5143echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5144See \`config.log' for more details." >&2;}
5145 { (exit 1); exit 1; }; }
5146fi
5147
5148ac_ext=cc
5149ac_cpp='$CXXCPP $CPPFLAGS'
5150ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5151ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5152ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8862 5153
8863 5154
8864 5155
8865if test "x$ac_path_x_has_been_run" != xyes; then 5156if test "x$ac_path_x_has_been_run" != xyes; then
8866 echo "$as_me:$LINENO: checking for X" >&5 5157 echo "$as_me:$LINENO: checking for X" >&5
8965/* confdefs.h. */ 5256/* confdefs.h. */
8966_ACEOF 5257_ACEOF
8967cat confdefs.h >>conftest.$ac_ext 5258cat confdefs.h >>conftest.$ac_ext
8968cat >>conftest.$ac_ext <<_ACEOF 5259cat >>conftest.$ac_ext <<_ACEOF
8969/* end confdefs.h. */ 5260/* end confdefs.h. */
8970#include <X11/Intrinsic.h> 5261#include <X11/Xlib.h>
8971_ACEOF 5262_ACEOF
8972if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5263if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8973 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5264 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8974 ac_status=$? 5265 ac_status=$?
8975 grep -v '^ *+' conftest.er1 >conftest.err 5266 grep -v '^ *+' conftest.er1 >conftest.err
8992else 5283else
8993 echo "$as_me: failed program was:" >&5 5284 echo "$as_me: failed program was:" >&5
8994sed 's/^/| /' conftest.$ac_ext >&5 5285sed 's/^/| /' conftest.$ac_ext >&5
8995 5286
8996 for ac_dir in $ac_x_header_dirs; do 5287 for ac_dir in $ac_x_header_dirs; do
8997 if test -r "$ac_dir/X11/Intrinsic.h"; then 5288 if test -r "$ac_dir/X11/Xlib.h"; then
8998 ac_x_includes=$ac_dir 5289 ac_x_includes=$ac_dir
8999 break 5290 break
9000 fi 5291 fi
9001done 5292done
9002fi 5293fi
9006if test "$ac_x_libraries" = no; then 5297if test "$ac_x_libraries" = no; then
9007 # Check for the libraries. 5298 # Check for the libraries.
9008 # See if we find them without any special options. 5299 # See if we find them without any special options.
9009 # Don't add to $LIBS permanently. 5300 # Don't add to $LIBS permanently.
9010 ac_save_LIBS=$LIBS 5301 ac_save_LIBS=$LIBS
9011 LIBS="-lXt $LIBS" 5302 LIBS="-lX11 $LIBS"
9012 cat >conftest.$ac_ext <<_ACEOF 5303 cat >conftest.$ac_ext <<_ACEOF
9013/* confdefs.h. */ 5304/* confdefs.h. */
9014_ACEOF 5305_ACEOF
9015cat confdefs.h >>conftest.$ac_ext 5306cat confdefs.h >>conftest.$ac_ext
9016cat >>conftest.$ac_ext <<_ACEOF 5307cat >>conftest.$ac_ext <<_ACEOF
9017/* end confdefs.h. */ 5308/* end confdefs.h. */
9018#include <X11/Intrinsic.h> 5309#include <X11/Xlib.h>
9019int 5310int
9020main () 5311main ()
9021{ 5312{
9022XtMalloc (0) 5313XrmInitialize ()
9023 ; 5314 ;
9024 return 0; 5315 return 0;
9025} 5316}
9026_ACEOF 5317_ACEOF
9027rm -f conftest.$ac_objext conftest$ac_exeext 5318rm -f conftest.$ac_objext conftest$ac_exeext
9055LIBS=$ac_save_LIBS 5346LIBS=$ac_save_LIBS
9056for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 5347for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9057do 5348do
9058 # Don't even attempt the hair of trying to link an X program! 5349 # Don't even attempt the hair of trying to link an X program!
9059 for ac_extension in a so sl; do 5350 for ac_extension in a so sl; do
9060 if test -r $ac_dir/libXt.$ac_extension; then 5351 if test -r $ac_dir/libX11.$ac_extension; then
9061 ac_x_libraries=$ac_dir 5352 ac_x_libraries=$ac_dir
9062 break 2 5353 break 2
9063 fi 5354 fi
9064 done 5355 done
9065done 5356done
10667#define HAVE_SYS_WAIT_H 1 6958#define HAVE_SYS_WAIT_H 1
10668_ACEOF 6959_ACEOF
10669 6960
10670fi 6961fi
10671 6962
6963echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6964echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6965if test "${ac_cv_header_stdc+set}" = set; then
6966 echo $ECHO_N "(cached) $ECHO_C" >&6
6967else
6968 cat >conftest.$ac_ext <<_ACEOF
6969/* confdefs.h. */
6970_ACEOF
6971cat confdefs.h >>conftest.$ac_ext
6972cat >>conftest.$ac_ext <<_ACEOF
6973/* end confdefs.h. */
6974#include <stdlib.h>
6975#include <stdarg.h>
6976#include <string.h>
6977#include <float.h>
6978
6979int
6980main ()
6981{
6982
6983 ;
6984 return 0;
6985}
6986_ACEOF
6987rm -f conftest.$ac_objext
6988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6989 (eval $ac_compile) 2>conftest.er1
6990 ac_status=$?
6991 grep -v '^ *+' conftest.er1 >conftest.err
6992 rm -f conftest.er1
6993 cat conftest.err >&5
6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); } &&
6996 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6998 (eval $ac_try) 2>&5
6999 ac_status=$?
7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); }; } &&
7002 { ac_try='test -s conftest.$ac_objext'
7003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7004 (eval $ac_try) 2>&5
7005 ac_status=$?
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); }; }; then
7008 ac_cv_header_stdc=yes
7009else
7010 echo "$as_me: failed program was:" >&5
7011sed 's/^/| /' conftest.$ac_ext >&5
7012
7013ac_cv_header_stdc=no
7014fi
7015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7016
7017if test $ac_cv_header_stdc = yes; then
7018 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7019 cat >conftest.$ac_ext <<_ACEOF
7020/* confdefs.h. */
7021_ACEOF
7022cat confdefs.h >>conftest.$ac_ext
7023cat >>conftest.$ac_ext <<_ACEOF
7024/* end confdefs.h. */
7025#include <string.h>
7026
7027_ACEOF
7028if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7029 $EGREP "memchr" >/dev/null 2>&1; then
7030 :
7031else
7032 ac_cv_header_stdc=no
7033fi
7034rm -f conftest*
7035
7036fi
7037
7038if test $ac_cv_header_stdc = yes; then
7039 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7040 cat >conftest.$ac_ext <<_ACEOF
7041/* confdefs.h. */
7042_ACEOF
7043cat confdefs.h >>conftest.$ac_ext
7044cat >>conftest.$ac_ext <<_ACEOF
7045/* end confdefs.h. */
7046#include <stdlib.h>
7047
7048_ACEOF
7049if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7050 $EGREP "free" >/dev/null 2>&1; then
7051 :
7052else
7053 ac_cv_header_stdc=no
7054fi
7055rm -f conftest*
7056
7057fi
7058
7059if test $ac_cv_header_stdc = yes; then
7060 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7061 if test "$cross_compiling" = yes; then
7062 :
7063else
7064 cat >conftest.$ac_ext <<_ACEOF
7065/* confdefs.h. */
7066_ACEOF
7067cat confdefs.h >>conftest.$ac_ext
7068cat >>conftest.$ac_ext <<_ACEOF
7069/* end confdefs.h. */
7070#include <ctype.h>
7071#if ((' ' & 0x0FF) == 0x020)
7072# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7073# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7074#else
7075# define ISLOWER(c) \
7076 (('a' <= (c) && (c) <= 'i') \
7077 || ('j' <= (c) && (c) <= 'r') \
7078 || ('s' <= (c) && (c) <= 'z'))
7079# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7080#endif
7081
7082#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7083int
7084main ()
7085{
7086 int i;
7087 for (i = 0; i < 256; i++)
7088 if (XOR (islower (i), ISLOWER (i))
7089 || toupper (i) != TOUPPER (i))
7090 exit(2);
7091 exit (0);
7092}
7093_ACEOF
7094rm -f conftest$ac_exeext
7095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7096 (eval $ac_link) 2>&5
7097 ac_status=$?
7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7101 (eval $ac_try) 2>&5
7102 ac_status=$?
7103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104 (exit $ac_status); }; }; then
7105 :
7106else
7107 echo "$as_me: program exited with status $ac_status" >&5
7108echo "$as_me: failed program was:" >&5
7109sed 's/^/| /' conftest.$ac_ext >&5
7110
7111( exit $ac_status )
7112ac_cv_header_stdc=no
7113fi
7114rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7115fi
7116fi
7117fi
7118echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7119echo "${ECHO_T}$ac_cv_header_stdc" >&6
7120if test $ac_cv_header_stdc = yes; then
7121
7122cat >>confdefs.h <<\_ACEOF
7123#define STDC_HEADERS 1
7124_ACEOF
7125
7126fi
7127
7128# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7139 inttypes.h stdint.h unistd.h
7140do
7141as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7142echo "$as_me:$LINENO: checking for $ac_header" >&5
7143echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7144if eval "test \"\${$as_ac_Header+set}\" = set"; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
7146else
7147 cat >conftest.$ac_ext <<_ACEOF
7148/* confdefs.h. */
7149_ACEOF
7150cat confdefs.h >>conftest.$ac_ext
7151cat >>conftest.$ac_ext <<_ACEOF
7152/* end confdefs.h. */
7153$ac_includes_default
7154
7155#include <$ac_header>
7156_ACEOF
7157rm -f conftest.$ac_objext
7158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7159 (eval $ac_compile) 2>conftest.er1
7160 ac_status=$?
7161 grep -v '^ *+' conftest.er1 >conftest.err
7162 rm -f conftest.er1
7163 cat conftest.err >&5
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); } &&
7166 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7168 (eval $ac_try) 2>&5
7169 ac_status=$?
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); }; } &&
7172 { ac_try='test -s conftest.$ac_objext'
7173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7174 (eval $ac_try) 2>&5
7175 ac_status=$?
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); }; }; then
7178 eval "$as_ac_Header=yes"
7179else
7180 echo "$as_me: failed program was:" >&5
7181sed 's/^/| /' conftest.$ac_ext >&5
7182
7183eval "$as_ac_Header=no"
7184fi
7185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7186fi
7187echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7188echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7189if test `eval echo '${'$as_ac_Header'}'` = yes; then
7190 cat >>confdefs.h <<_ACEOF
7191#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7192_ACEOF
7193
7194fi
7195
7196done
10672 7197
10673 7198
10674 7199
10675 7200
10676 7201
10689 7214
10690 7215
10691for ac_header in \ 7216for ac_header in \
10692 assert.h \ 7217 assert.h \
10693 fcntl.h \ 7218 fcntl.h \
10694 grp.h \
10695 libc.h \
10696 lastlog.h \
10697 stdarg.h \ 7219 stdarg.h \
10698 stdlib.h \ 7220 stdlib.h \
10699 string.h \ 7221 string.h \
10700 termios.h \ 7222 termios.h \
10701 unistd.h \ 7223 unistd.h \
10703 sys/ioctl.h \ 7225 sys/ioctl.h \
10704 sys/select.h \ 7226 sys/select.h \
10705 sys/sockio.h \ 7227 sys/sockio.h \
10706 sys/strredir.h \ 7228 sys/strredir.h \
10707 sys/time.h \ 7229 sys/time.h \
10708 utmp.h \ 7230 stdint.h \
10709 utmpx.h \ 7231 wchar.h \
10710 stdint.h \ 7232 cwchar \
7233 clocale \
10711 7234
10712do 7235do
10713as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7236as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10714if eval "test \"\${$as_ac_Header+set}\" = set"; then 7237if eval "test \"\${$as_ac_Header+set}\" = set"; then
10715 echo "$as_me:$LINENO: checking for $ac_header" >&5 7238 echo "$as_me:$LINENO: checking for $ac_header" >&5
11499_ACEOF 8022_ACEOF
11500 8023
11501fi 8024fi
11502 8025
11503 8026
11504
11505echo "$as_me:$LINENO: checking for char" >&5
11506echo $ECHO_N "checking for char... $ECHO_C" >&6
11507if test "${ac_cv_type_char+set}" = set; then
11508 echo $ECHO_N "(cached) $ECHO_C" >&6
11509else
11510 cat >conftest.$ac_ext <<_ACEOF
11511/* confdefs.h. */
11512_ACEOF
11513cat confdefs.h >>conftest.$ac_ext
11514cat >>conftest.$ac_ext <<_ACEOF
11515/* end confdefs.h. */
11516$ac_includes_default
11517int
11518main ()
11519{
11520if ((char *) 0)
11521 return 0;
11522if (sizeof (char))
11523 return 0;
11524 ;
11525 return 0;
11526}
11527_ACEOF
11528rm -f conftest.$ac_objext
11529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11530 (eval $ac_compile) 2>conftest.er1
11531 ac_status=$?
11532 grep -v '^ *+' conftest.er1 >conftest.err
11533 rm -f conftest.er1
11534 cat conftest.err >&5
11535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 (exit $ac_status); } &&
11537 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11539 (eval $ac_try) 2>&5
11540 ac_status=$?
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); }; } &&
11543 { ac_try='test -s conftest.$ac_objext'
11544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11545 (eval $ac_try) 2>&5
11546 ac_status=$?
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); }; }; then
11549 ac_cv_type_char=yes
11550else
11551 echo "$as_me: failed program was:" >&5
11552sed 's/^/| /' conftest.$ac_ext >&5
11553
11554ac_cv_type_char=no
11555fi
11556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11557fi
11558echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11559echo "${ECHO_T}$ac_cv_type_char" >&6
11560
11561echo "$as_me:$LINENO: checking size of char" >&5
11562echo $ECHO_N "checking size of char... $ECHO_C" >&6
11563if test "${ac_cv_sizeof_char+set}" = set; then
11564 echo $ECHO_N "(cached) $ECHO_C" >&6
11565else
11566 if test "$ac_cv_type_char" = yes; then
11567 # The cast to unsigned long works around a bug in the HP C Compiler
11568 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11569 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11570 # This bug is HP SR number 8606223364.
11571 if test "$cross_compiling" = yes; then
11572 # Depending upon the size, compute the lo and hi bounds.
11573cat >conftest.$ac_ext <<_ACEOF
11574/* confdefs.h. */
11575_ACEOF
11576cat confdefs.h >>conftest.$ac_ext
11577cat >>conftest.$ac_ext <<_ACEOF
11578/* end confdefs.h. */
11579$ac_includes_default
11580int
11581main ()
11582{
11583static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11584test_array [0] = 0
11585
11586 ;
11587 return 0;
11588}
11589_ACEOF
11590rm -f conftest.$ac_objext
11591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11592 (eval $ac_compile) 2>conftest.er1
11593 ac_status=$?
11594 grep -v '^ *+' conftest.er1 >conftest.err
11595 rm -f conftest.er1
11596 cat conftest.err >&5
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); } &&
11599 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11601 (eval $ac_try) 2>&5
11602 ac_status=$?
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); }; } &&
11605 { ac_try='test -s conftest.$ac_objext'
11606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11607 (eval $ac_try) 2>&5
11608 ac_status=$?
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); }; }; then
11611 ac_lo=0 ac_mid=0
11612 while :; do
11613 cat >conftest.$ac_ext <<_ACEOF
11614/* confdefs.h. */
11615_ACEOF
11616cat confdefs.h >>conftest.$ac_ext
11617cat >>conftest.$ac_ext <<_ACEOF
11618/* end confdefs.h. */
11619$ac_includes_default
11620int
11621main ()
11622{
11623static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11624test_array [0] = 0
11625
11626 ;
11627 return 0;
11628}
11629_ACEOF
11630rm -f conftest.$ac_objext
11631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11632 (eval $ac_compile) 2>conftest.er1
11633 ac_status=$?
11634 grep -v '^ *+' conftest.er1 >conftest.err
11635 rm -f conftest.er1
11636 cat conftest.err >&5
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); } &&
11639 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11641 (eval $ac_try) 2>&5
11642 ac_status=$?
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); }; } &&
11645 { ac_try='test -s conftest.$ac_objext'
11646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11647 (eval $ac_try) 2>&5
11648 ac_status=$?
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); }; }; then
11651 ac_hi=$ac_mid; break
11652else
11653 echo "$as_me: failed program was:" >&5
11654sed 's/^/| /' conftest.$ac_ext >&5
11655
11656ac_lo=`expr $ac_mid + 1`
11657 if test $ac_lo -le $ac_mid; then
11658 ac_lo= ac_hi=
11659 break
11660 fi
11661 ac_mid=`expr 2 '*' $ac_mid + 1`
11662fi
11663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11664 done
11665else
11666 echo "$as_me: failed program was:" >&5
11667sed 's/^/| /' conftest.$ac_ext >&5
11668
11669cat >conftest.$ac_ext <<_ACEOF
11670/* confdefs.h. */
11671_ACEOF
11672cat confdefs.h >>conftest.$ac_ext
11673cat >>conftest.$ac_ext <<_ACEOF
11674/* end confdefs.h. */
11675$ac_includes_default
11676int
11677main ()
11678{
11679static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
11680test_array [0] = 0
11681
11682 ;
11683 return 0;
11684}
11685_ACEOF
11686rm -f conftest.$ac_objext
11687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11688 (eval $ac_compile) 2>conftest.er1
11689 ac_status=$?
11690 grep -v '^ *+' conftest.er1 >conftest.err
11691 rm -f conftest.er1
11692 cat conftest.err >&5
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); } &&
11695 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11697 (eval $ac_try) 2>&5
11698 ac_status=$?
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); }; } &&
11701 { ac_try='test -s conftest.$ac_objext'
11702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11703 (eval $ac_try) 2>&5
11704 ac_status=$?
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); }; }; then
11707 ac_hi=-1 ac_mid=-1
11708 while :; do
11709 cat >conftest.$ac_ext <<_ACEOF
11710/* confdefs.h. */
11711_ACEOF
11712cat confdefs.h >>conftest.$ac_ext
11713cat >>conftest.$ac_ext <<_ACEOF
11714/* end confdefs.h. */
11715$ac_includes_default
11716int
11717main ()
11718{
11719static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11720test_array [0] = 0
11721
11722 ;
11723 return 0;
11724}
11725_ACEOF
11726rm -f conftest.$ac_objext
11727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11728 (eval $ac_compile) 2>conftest.er1
11729 ac_status=$?
11730 grep -v '^ *+' conftest.er1 >conftest.err
11731 rm -f conftest.er1
11732 cat conftest.err >&5
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); } &&
11735 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11737 (eval $ac_try) 2>&5
11738 ac_status=$?
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; } &&
11741 { ac_try='test -s conftest.$ac_objext'
11742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11743 (eval $ac_try) 2>&5
11744 ac_status=$?
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); }; }; then
11747 ac_lo=$ac_mid; break
11748else
11749 echo "$as_me: failed program was:" >&5
11750sed 's/^/| /' conftest.$ac_ext >&5
11751
11752ac_hi=`expr '(' $ac_mid ')' - 1`
11753 if test $ac_mid -le $ac_hi; then
11754 ac_lo= ac_hi=
11755 break
11756 fi
11757 ac_mid=`expr 2 '*' $ac_mid`
11758fi
11759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11760 done
11761else
11762 echo "$as_me: failed program was:" >&5
11763sed 's/^/| /' conftest.$ac_ext >&5
11764
11765ac_lo= ac_hi=
11766fi
11767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11768fi
11769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11770# Binary search between lo and hi bounds.
11771while test "x$ac_lo" != "x$ac_hi"; do
11772 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11773 cat >conftest.$ac_ext <<_ACEOF
11774/* confdefs.h. */
11775_ACEOF
11776cat confdefs.h >>conftest.$ac_ext
11777cat >>conftest.$ac_ext <<_ACEOF
11778/* end confdefs.h. */
11779$ac_includes_default
11780int
11781main ()
11782{
11783static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11784test_array [0] = 0
11785
11786 ;
11787 return 0;
11788}
11789_ACEOF
11790rm -f conftest.$ac_objext
11791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11792 (eval $ac_compile) 2>conftest.er1
11793 ac_status=$?
11794 grep -v '^ *+' conftest.er1 >conftest.err
11795 rm -f conftest.er1
11796 cat conftest.err >&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); } &&
11799 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801 (eval $ac_try) 2>&5
11802 ac_status=$?
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); }; } &&
11805 { ac_try='test -s conftest.$ac_objext'
11806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11807 (eval $ac_try) 2>&5
11808 ac_status=$?
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); }; }; then
11811 ac_hi=$ac_mid
11812else
11813 echo "$as_me: failed program was:" >&5
11814sed 's/^/| /' conftest.$ac_ext >&5
11815
11816ac_lo=`expr '(' $ac_mid ')' + 1`
11817fi
11818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11819done
11820case $ac_lo in
11821?*) ac_cv_sizeof_char=$ac_lo;;
11822'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11823See \`config.log' for more details." >&5
11824echo "$as_me: error: cannot compute sizeof (char), 77
11825See \`config.log' for more details." >&2;}
11826 { (exit 1); exit 1; }; } ;;
11827esac
11828else
11829 if test "$cross_compiling" = yes; then
11830 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
11831echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
11832 { (exit 1); exit 1; }; }
11833else
11834 cat >conftest.$ac_ext <<_ACEOF
11835/* confdefs.h. */
11836_ACEOF
11837cat confdefs.h >>conftest.$ac_ext
11838cat >>conftest.$ac_ext <<_ACEOF
11839/* end confdefs.h. */
11840$ac_includes_default
11841long longval () { return (long) (sizeof (char)); }
11842unsigned long ulongval () { return (long) (sizeof (char)); }
11843#include <stdio.h>
11844#include <stdlib.h>
11845int
11846main ()
11847{
11848
11849 FILE *f = fopen ("conftest.val", "w");
11850 if (! f)
11851 exit (1);
11852 if (((long) (sizeof (char))) < 0)
11853 {
11854 long i = longval ();
11855 if (i != ((long) (sizeof (char))))
11856 exit (1);
11857 fprintf (f, "%ld\n", i);
11858 }
11859 else
11860 {
11861 unsigned long i = ulongval ();
11862 if (i != ((long) (sizeof (char))))
11863 exit (1);
11864 fprintf (f, "%lu\n", i);
11865 }
11866 exit (ferror (f) || fclose (f) != 0);
11867
11868 ;
11869 return 0;
11870}
11871_ACEOF
11872rm -f conftest$ac_exeext
11873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11874 (eval $ac_link) 2>&5
11875 ac_status=$?
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
11883 ac_cv_sizeof_char=`cat conftest.val`
11884else
11885 echo "$as_me: program exited with status $ac_status" >&5
11886echo "$as_me: failed program was:" >&5
11887sed 's/^/| /' conftest.$ac_ext >&5
11888
11889( exit $ac_status )
11890{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11891See \`config.log' for more details." >&5
11892echo "$as_me: error: cannot compute sizeof (char), 77
11893See \`config.log' for more details." >&2;}
11894 { (exit 1); exit 1; }; }
11895fi
11896rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11897fi
11898fi
11899rm -f conftest.val
11900else
11901 ac_cv_sizeof_char=0
11902fi
11903fi
11904echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
11905echo "${ECHO_T}$ac_cv_sizeof_char" >&6
11906cat >>confdefs.h <<_ACEOF
11907#define SIZEOF_CHAR $ac_cv_sizeof_char
11908_ACEOF
11909
11910
11911echo "$as_me:$LINENO: checking for short" >&5 8027echo "$as_me:$LINENO: checking for short" >&5
11912echo $ECHO_N "checking for short... $ECHO_C" >&6 8028echo $ECHO_N "checking for short... $ECHO_C" >&6
11913if test "${ac_cv_type_short+set}" = set; then 8029if test "${ac_cv_type_short+set}" = set; then
11914 echo $ECHO_N "(cached) $ECHO_C" >&6 8030 echo $ECHO_N "(cached) $ECHO_C" >&6
11915else 8031else
12718cat >>confdefs.h <<_ACEOF 8834cat >>confdefs.h <<_ACEOF
12719#define SIZEOF_INT $ac_cv_sizeof_int 8835#define SIZEOF_INT $ac_cv_sizeof_int
12720_ACEOF 8836_ACEOF
12721 8837
12722 8838
12723echo "$as_me:$LINENO: checking for long" >&5
12724echo $ECHO_N "checking for long... $ECHO_C" >&6
12725if test "${ac_cv_type_long+set}" = set; then
12726 echo $ECHO_N "(cached) $ECHO_C" >&6
12727else
12728 cat >conftest.$ac_ext <<_ACEOF
12729/* confdefs.h. */
12730_ACEOF
12731cat confdefs.h >>conftest.$ac_ext
12732cat >>conftest.$ac_ext <<_ACEOF
12733/* end confdefs.h. */
12734$ac_includes_default
12735int
12736main ()
12737{
12738if ((long *) 0)
12739 return 0;
12740if (sizeof (long))
12741 return 0;
12742 ;
12743 return 0;
12744}
12745_ACEOF
12746rm -f conftest.$ac_objext
12747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12748 (eval $ac_compile) 2>conftest.er1
12749 ac_status=$?
12750 grep -v '^ *+' conftest.er1 >conftest.err
12751 rm -f conftest.er1
12752 cat conftest.err >&5
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); } &&
12755 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12757 (eval $ac_try) 2>&5
12758 ac_status=$?
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); }; } &&
12761 { ac_try='test -s conftest.$ac_objext'
12762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12763 (eval $ac_try) 2>&5
12764 ac_status=$?
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); }; }; then
12767 ac_cv_type_long=yes
12768else
12769 echo "$as_me: failed program was:" >&5
12770sed 's/^/| /' conftest.$ac_ext >&5
12771
12772ac_cv_type_long=no
12773fi
12774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12775fi
12776echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12777echo "${ECHO_T}$ac_cv_type_long" >&6
12778
12779echo "$as_me:$LINENO: checking size of long" >&5
12780echo $ECHO_N "checking size of long... $ECHO_C" >&6
12781if test "${ac_cv_sizeof_long+set}" = set; then
12782 echo $ECHO_N "(cached) $ECHO_C" >&6
12783else
12784 if test "$ac_cv_type_long" = yes; then
12785 # The cast to unsigned long works around a bug in the HP C Compiler
12786 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12787 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12788 # This bug is HP SR number 8606223364.
12789 if test "$cross_compiling" = yes; then
12790 # Depending upon the size, compute the lo and hi bounds.
12791cat >conftest.$ac_ext <<_ACEOF
12792/* confdefs.h. */
12793_ACEOF
12794cat confdefs.h >>conftest.$ac_ext
12795cat >>conftest.$ac_ext <<_ACEOF
12796/* end confdefs.h. */
12797$ac_includes_default
12798int
12799main ()
12800{
12801static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12802test_array [0] = 0
12803
12804 ;
12805 return 0;
12806}
12807_ACEOF
12808rm -f conftest.$ac_objext
12809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12810 (eval $ac_compile) 2>conftest.er1
12811 ac_status=$?
12812 grep -v '^ *+' conftest.er1 >conftest.err
12813 rm -f conftest.er1
12814 cat conftest.err >&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); } &&
12817 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12819 (eval $ac_try) 2>&5
12820 ac_status=$?
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); }; } &&
12823 { ac_try='test -s conftest.$ac_objext'
12824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12825 (eval $ac_try) 2>&5
12826 ac_status=$?
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); }; }; then
12829 ac_lo=0 ac_mid=0
12830 while :; do
12831 cat >conftest.$ac_ext <<_ACEOF
12832/* confdefs.h. */
12833_ACEOF
12834cat confdefs.h >>conftest.$ac_ext
12835cat >>conftest.$ac_ext <<_ACEOF
12836/* end confdefs.h. */
12837$ac_includes_default
12838int
12839main ()
12840{
12841static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12842test_array [0] = 0
12843
12844 ;
12845 return 0;
12846}
12847_ACEOF
12848rm -f conftest.$ac_objext
12849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12850 (eval $ac_compile) 2>conftest.er1
12851 ac_status=$?
12852 grep -v '^ *+' conftest.er1 >conftest.err
12853 rm -f conftest.er1
12854 cat conftest.err >&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); } &&
12857 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12859 (eval $ac_try) 2>&5
12860 ac_status=$?
12861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862 (exit $ac_status); }; } &&
12863 { ac_try='test -s conftest.$ac_objext'
12864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12865 (eval $ac_try) 2>&5
12866 ac_status=$?
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); }; }; then
12869 ac_hi=$ac_mid; break
12870else
12871 echo "$as_me: failed program was:" >&5
12872sed 's/^/| /' conftest.$ac_ext >&5
12873
12874ac_lo=`expr $ac_mid + 1`
12875 if test $ac_lo -le $ac_mid; then
12876 ac_lo= ac_hi=
12877 break
12878 fi
12879 ac_mid=`expr 2 '*' $ac_mid + 1`
12880fi
12881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12882 done
12883else
12884 echo "$as_me: failed program was:" >&5
12885sed 's/^/| /' conftest.$ac_ext >&5
12886
12887cat >conftest.$ac_ext <<_ACEOF
12888/* confdefs.h. */
12889_ACEOF
12890cat confdefs.h >>conftest.$ac_ext
12891cat >>conftest.$ac_ext <<_ACEOF
12892/* end confdefs.h. */
12893$ac_includes_default
12894int
12895main ()
12896{
12897static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12898test_array [0] = 0
12899
12900 ;
12901 return 0;
12902}
12903_ACEOF
12904rm -f conftest.$ac_objext
12905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12906 (eval $ac_compile) 2>conftest.er1
12907 ac_status=$?
12908 grep -v '^ *+' conftest.er1 >conftest.err
12909 rm -f conftest.er1
12910 cat conftest.err >&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); } &&
12913 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12915 (eval $ac_try) 2>&5
12916 ac_status=$?
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); }; } &&
12919 { ac_try='test -s conftest.$ac_objext'
12920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12921 (eval $ac_try) 2>&5
12922 ac_status=$?
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); }; }; then
12925 ac_hi=-1 ac_mid=-1
12926 while :; do
12927 cat >conftest.$ac_ext <<_ACEOF
12928/* confdefs.h. */
12929_ACEOF
12930cat confdefs.h >>conftest.$ac_ext
12931cat >>conftest.$ac_ext <<_ACEOF
12932/* end confdefs.h. */
12933$ac_includes_default
12934int
12935main ()
12936{
12937static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12938test_array [0] = 0
12939
12940 ;
12941 return 0;
12942}
12943_ACEOF
12944rm -f conftest.$ac_objext
12945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12946 (eval $ac_compile) 2>conftest.er1
12947 ac_status=$?
12948 grep -v '^ *+' conftest.er1 >conftest.err
12949 rm -f conftest.er1
12950 cat conftest.err >&5
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); } &&
12953 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12955 (eval $ac_try) 2>&5
12956 ac_status=$?
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); }; } &&
12959 { ac_try='test -s conftest.$ac_objext'
12960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12961 (eval $ac_try) 2>&5
12962 ac_status=$?
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); }; }; then
12965 ac_lo=$ac_mid; break
12966else
12967 echo "$as_me: failed program was:" >&5
12968sed 's/^/| /' conftest.$ac_ext >&5
12969
12970ac_hi=`expr '(' $ac_mid ')' - 1`
12971 if test $ac_mid -le $ac_hi; then
12972 ac_lo= ac_hi=
12973 break
12974 fi
12975 ac_mid=`expr 2 '*' $ac_mid`
12976fi
12977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12978 done
12979else
12980 echo "$as_me: failed program was:" >&5
12981sed 's/^/| /' conftest.$ac_ext >&5
12982
12983ac_lo= ac_hi=
12984fi
12985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12986fi
12987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12988# Binary search between lo and hi bounds.
12989while test "x$ac_lo" != "x$ac_hi"; do
12990 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12991 cat >conftest.$ac_ext <<_ACEOF
12992/* confdefs.h. */
12993_ACEOF
12994cat confdefs.h >>conftest.$ac_ext
12995cat >>conftest.$ac_ext <<_ACEOF
12996/* end confdefs.h. */
12997$ac_includes_default
12998int
12999main ()
13000{
13001static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13002test_array [0] = 0
13003
13004 ;
13005 return 0;
13006}
13007_ACEOF
13008rm -f conftest.$ac_objext
13009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13010 (eval $ac_compile) 2>conftest.er1
13011 ac_status=$?
13012 grep -v '^ *+' conftest.er1 >conftest.err
13013 rm -f conftest.er1
13014 cat conftest.err >&5
13015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); } &&
13017 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13019 (eval $ac_try) 2>&5
13020 ac_status=$?
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); }; } &&
13023 { ac_try='test -s conftest.$ac_objext'
13024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13025 (eval $ac_try) 2>&5
13026 ac_status=$?
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); }; }; then
13029 ac_hi=$ac_mid
13030else
13031 echo "$as_me: failed program was:" >&5
13032sed 's/^/| /' conftest.$ac_ext >&5
13033
13034ac_lo=`expr '(' $ac_mid ')' + 1`
13035fi
13036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13037done
13038case $ac_lo in
13039?*) ac_cv_sizeof_long=$ac_lo;;
13040'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13041See \`config.log' for more details." >&5
13042echo "$as_me: error: cannot compute sizeof (long), 77
13043See \`config.log' for more details." >&2;}
13044 { (exit 1); exit 1; }; } ;;
13045esac
13046else
13047 if test "$cross_compiling" = yes; then
13048 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13049echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13050 { (exit 1); exit 1; }; }
13051else
13052 cat >conftest.$ac_ext <<_ACEOF
13053/* confdefs.h. */
13054_ACEOF
13055cat confdefs.h >>conftest.$ac_ext
13056cat >>conftest.$ac_ext <<_ACEOF
13057/* end confdefs.h. */
13058$ac_includes_default
13059long longval () { return (long) (sizeof (long)); }
13060unsigned long ulongval () { return (long) (sizeof (long)); }
13061#include <stdio.h>
13062#include <stdlib.h>
13063int
13064main ()
13065{
13066
13067 FILE *f = fopen ("conftest.val", "w");
13068 if (! f)
13069 exit (1);
13070 if (((long) (sizeof (long))) < 0)
13071 {
13072 long i = longval ();
13073 if (i != ((long) (sizeof (long))))
13074 exit (1);
13075 fprintf (f, "%ld\n", i);
13076 }
13077 else
13078 {
13079 unsigned long i = ulongval ();
13080 if (i != ((long) (sizeof (long))))
13081 exit (1);
13082 fprintf (f, "%lu\n", i);
13083 }
13084 exit (ferror (f) || fclose (f) != 0);
13085
13086 ;
13087 return 0;
13088}
13089_ACEOF
13090rm -f conftest$ac_exeext
13091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13092 (eval $ac_link) 2>&5
13093 ac_status=$?
13094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
13101 ac_cv_sizeof_long=`cat conftest.val`
13102else
13103 echo "$as_me: program exited with status $ac_status" >&5
13104echo "$as_me: failed program was:" >&5
13105sed 's/^/| /' conftest.$ac_ext >&5
13106
13107( exit $ac_status )
13108{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13109See \`config.log' for more details." >&5
13110echo "$as_me: error: cannot compute sizeof (long), 77
13111See \`config.log' for more details." >&2;}
13112 { (exit 1); exit 1; }; }
13113fi
13114rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13115fi
13116fi
13117rm -f conftest.val
13118else
13119 ac_cv_sizeof_long=0
13120fi
13121fi
13122echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13123echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13124cat >>confdefs.h <<_ACEOF
13125#define SIZEOF_LONG $ac_cv_sizeof_long
13126_ACEOF
13127
13128
13129echo "$as_me:$LINENO: checking for long long" >&5 8839echo "$as_me:$LINENO: checking for long long" >&5
13130echo $ECHO_N "checking for long long... $ECHO_C" >&6 8840echo $ECHO_N "checking for long long... $ECHO_C" >&6
13131if test "${ac_cv_type_long_long+set}" = set; then 8841if test "${ac_cv_type_long_long+set}" = set; then
13132 echo $ECHO_N "(cached) $ECHO_C" >&6 8842 echo $ECHO_N "(cached) $ECHO_C" >&6
13133else 8843else
13984 rxvt_cv_int16_t=yes 9694 rxvt_cv_int16_t=yes
13985else 9695else
13986 echo "$as_me: failed program was:" >&5 9696 echo "$as_me: failed program was:" >&5
13987sed 's/^/| /' conftest.$ac_ext >&5 9697sed 's/^/| /' conftest.$ac_ext >&5
13988 9698
13989if test $ac_cv_sizeof_char -ge 2; then 9699if test "$ac_cv_sizeof_char" -ge 2; then
13990 rxvt_cv_int16_t=" char" 9700 rxvt_cv_int16_t=" char"
13991else 9701else
13992 if test $ac_cv_sizeof_short -ge 2; then 9702 if test "$ac_cv_sizeof_short" -ge 2; then
13993 rxvt_cv_int16_t=" short" 9703 rxvt_cv_int16_t=" short"
13994 else 9704 else
13995 if test $ac_cv_sizeof_int -ge 2; then 9705 if test "$ac_cv_sizeof_int" -ge 2; then
13996 rxvt_cv_int16_t=" int" 9706 rxvt_cv_int16_t=" int"
13997 else 9707 else
13998 if test $ac_cv_sizeof_long -ge 2; then 9708 if test "$ac_cv_sizeof_long" -ge 2; then
13999 rxvt_cv_int16_t=" long" 9709 rxvt_cv_int16_t=" long"
14000 else 9710 else
14001 if test $ac_cv_sizeof_long_long -ge 2; then 9711 if test "$ac_cv_sizeof_long_long" -ge 2; then
14002 rxvt_cv_int16_t=" long long" 9712 rxvt_cv_int16_t=" long long"
14003 else 9713 else
14004 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default 9714 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
14005 fi 9715 fi
14006 fi 9716 fi
14066 rxvt_cv_uint16_t=yes 9776 rxvt_cv_uint16_t=yes
14067else 9777else
14068 echo "$as_me: failed program was:" >&5 9778 echo "$as_me: failed program was:" >&5
14069sed 's/^/| /' conftest.$ac_ext >&5 9779sed 's/^/| /' conftest.$ac_ext >&5
14070 9780
14071if test $ac_cv_sizeof_char -ge 2; then 9781if test "$ac_cv_sizeof_char" -ge 2; then
14072 rxvt_cv_uint16_t="unsigned char" 9782 rxvt_cv_uint16_t="unsigned char"
14073else 9783else
14074 if test $ac_cv_sizeof_short -ge 2; then 9784 if test "$ac_cv_sizeof_short" -ge 2; then
14075 rxvt_cv_uint16_t="unsigned short" 9785 rxvt_cv_uint16_t="unsigned short"
14076 else 9786 else
14077 if test $ac_cv_sizeof_int -ge 2; then 9787 if test "$ac_cv_sizeof_int" -ge 2; then
14078 rxvt_cv_uint16_t="unsigned int" 9788 rxvt_cv_uint16_t="unsigned int"
14079 else 9789 else
14080 if test $ac_cv_sizeof_long -ge 2; then 9790 if test "$ac_cv_sizeof_long" -ge 2; then
14081 rxvt_cv_uint16_t="unsigned long" 9791 rxvt_cv_uint16_t="unsigned long"
14082 else 9792 else
14083 if test $ac_cv_sizeof_long_long -ge 2; then 9793 if test "$ac_cv_sizeof_long_long" -ge 2; then
14084 rxvt_cv_uint16_t="unsigned long long" 9794 rxvt_cv_uint16_t="unsigned long long"
14085 else 9795 else
14086 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default 9796 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
14087 fi 9797 fi
14088 fi 9798 fi
14148 rxvt_cv_int32_t=yes 9858 rxvt_cv_int32_t=yes
14149else 9859else
14150 echo "$as_me: failed program was:" >&5 9860 echo "$as_me: failed program was:" >&5
14151sed 's/^/| /' conftest.$ac_ext >&5 9861sed 's/^/| /' conftest.$ac_ext >&5
14152 9862
14153if test $ac_cv_sizeof_char -ge 4; then 9863if test "$ac_cv_sizeof_char" -ge 4; then
14154 rxvt_cv_int32_t=" char" 9864 rxvt_cv_int32_t=" char"
14155else 9865else
14156 if test $ac_cv_sizeof_short -ge 4; then 9866 if test "$ac_cv_sizeof_short" -ge 4; then
14157 rxvt_cv_int32_t=" short" 9867 rxvt_cv_int32_t=" short"
14158 else 9868 else
14159 if test $ac_cv_sizeof_int -ge 4; then 9869 if test "$ac_cv_sizeof_int" -ge 4; then
14160 rxvt_cv_int32_t=" int" 9870 rxvt_cv_int32_t=" int"
14161 else 9871 else
14162 if test $ac_cv_sizeof_long -ge 4; then 9872 if test "$ac_cv_sizeof_long" -ge 4; then
14163 rxvt_cv_int32_t=" long" 9873 rxvt_cv_int32_t=" long"
14164 else 9874 else
14165 if test $ac_cv_sizeof_long_long -ge 4; then 9875 if test "$ac_cv_sizeof_long_long" -ge 4; then
14166 rxvt_cv_int32_t=" long long" 9876 rxvt_cv_int32_t=" long long"
14167 else 9877 else
14168 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default 9878 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
14169 fi 9879 fi
14170 fi 9880 fi
14230 rxvt_cv_uint32_t=yes 9940 rxvt_cv_uint32_t=yes
14231else 9941else
14232 echo "$as_me: failed program was:" >&5 9942 echo "$as_me: failed program was:" >&5
14233sed 's/^/| /' conftest.$ac_ext >&5 9943sed 's/^/| /' conftest.$ac_ext >&5
14234 9944
14235if test $ac_cv_sizeof_char -ge 4; then 9945if test "$ac_cv_sizeof_char" -ge 4; then
14236 rxvt_cv_uint32_t="unsigned char" 9946 rxvt_cv_uint32_t="unsigned char"
14237else 9947else
14238 if test $ac_cv_sizeof_short -ge 4; then 9948 if test "$ac_cv_sizeof_short" -ge 4; then
14239 rxvt_cv_uint32_t="unsigned short" 9949 rxvt_cv_uint32_t="unsigned short"
14240 else 9950 else
14241 if test $ac_cv_sizeof_int -ge 4; then 9951 if test "$ac_cv_sizeof_int" -ge 4; then
14242 rxvt_cv_uint32_t="unsigned int" 9952 rxvt_cv_uint32_t="unsigned int"
14243 else 9953 else
14244 if test $ac_cv_sizeof_long -ge 4; then 9954 if test "$ac_cv_sizeof_long" -ge 4; then
14245 rxvt_cv_uint32_t="unsigned long" 9955 rxvt_cv_uint32_t="unsigned long"
14246 else 9956 else
14247 if test $ac_cv_sizeof_long_long -ge 4; then 9957 if test "$ac_cv_sizeof_long_long" -ge 4; then
14248 rxvt_cv_uint32_t="unsigned long long" 9958 rxvt_cv_uint32_t="unsigned long long"
14249 else 9959 else
14250 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default 9960 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
14251 fi 9961 fi
14252 fi 9962 fi
14266 else 9976 else
14267 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" 9977 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
14268 fi 9978 fi
14269fi 9979fi
14270 9980
14271if test $ac_cv_sizeof_int_p -eq 8; then 9981if test "$ac_cv_sizeof_int_p" -eq 8; then
14272 rxvt_intp_define="#define intp_t int64_t" 9982 rxvt_intp_define="#define intp_t int64_t"
14273 rxvt_u_intp_define="#define u_intp_t u_int64_t" 9983 rxvt_u_intp_define="#define u_intp_t u_int64_t"
14274else 9984else
14275 if test $ac_cv_sizeof_int_p -eq 4; then 9985 if test "$ac_cv_sizeof_int_p" -eq 4; then
14276 rxvt_intp_define="#define intp_t int32_t" 9986 rxvt_intp_define="#define intp_t int32_t"
14277 rxvt_u_intp_define="#define u_intp_t u_int32_t" 9987 rxvt_u_intp_define="#define u_intp_t u_int32_t"
14278 else 9988 else
14279 if test $ac_cv_sizeof_int_p -eq 2; then 9989 if test "$ac_cv_sizeof_int_p" -eq 2; then
14280 rxvt_intp_define="#define intp_t int16_t" 9990 rxvt_intp_define="#define intp_t int16_t"
14281 rxvt_u_intp_define="#define u_intp_t u_int16_t" 9991 rxvt_u_intp_define="#define u_intp_t u_int16_t"
14282 else 9992 else
14283 rxvt_intp_define="#error set intp_t" 9993 rxvt_intp_define="#error set intp_t"
14284 rxvt_u_intp_define="#error set u_intp_t" 9994 rxvt_u_intp_define="#error set u_intp_t"
14355#define RETSIGTYPE $ac_cv_type_signal 10065#define RETSIGTYPE $ac_cv_type_signal
14356_ACEOF 10066_ACEOF
14357 10067
14358 10068
14359 10069
14360case "$host_alias" in
14361 *ultrix) ac_cv_func_setsid='no' ;;
14362 *) break;;
14363esac
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376 10070
14377 10071
14378 10072
14379 10073
14380 10074
14381 10075
14382 10076
14383for ac_func in \ 10077for ac_func in \
14384 atexit \
14385 revoke \
14386 unsetenv \ 10078 unsetenv \
14387 setutent \ 10079 setutent \
14388 seteuid \ 10080 seteuid \
10081 setresuid \
14389 setreuid \ 10082 setreuid \
14390 setsid \
14391 setpgrp \
14392 setpgid \
14393 openpty \
14394 _getpty \
14395 grantpt \
14396 unlockpt \
14397 isastream \
14398 on_exit \ 10083 on_exit \
14399 nanosleep \ 10084 nanosleep \
14400 updwtmp \
14401 ttyslot \
14402 10085
14403do 10086do
14404as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10087as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14405echo "$as_me:$LINENO: checking for $ac_func" >&5 10088echo "$as_me:$LINENO: checking for $ac_func" >&5
14406echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 10089echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14498 10181
14499fi 10182fi
14500done 10183done
14501 10184
14502 10185
14503 10186UTMP_CHECK
14504if test "${ac_cv_header_utmp_h+set}" = set; then
14505 echo "$as_me:$LINENO: checking for utmp.h" >&5
14506echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
14507if test "${ac_cv_header_utmp_h+set}" = set; then
14508 echo $ECHO_N "(cached) $ECHO_C" >&6
14509fi
14510echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
14511echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
14512else
14513 # Is the header compilable?
14514echo "$as_me:$LINENO: checking utmp.h usability" >&5
14515echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6
14516cat >conftest.$ac_ext <<_ACEOF
14517/* confdefs.h. */
14518_ACEOF
14519cat confdefs.h >>conftest.$ac_ext
14520cat >>conftest.$ac_ext <<_ACEOF
14521/* end confdefs.h. */
14522$ac_includes_default
14523#include <utmp.h>
14524_ACEOF
14525rm -f conftest.$ac_objext
14526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14527 (eval $ac_compile) 2>conftest.er1
14528 ac_status=$?
14529 grep -v '^ *+' conftest.er1 >conftest.err
14530 rm -f conftest.er1
14531 cat conftest.err >&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); } &&
14534 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14536 (eval $ac_try) 2>&5
14537 ac_status=$?
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); }; } &&
14540 { ac_try='test -s conftest.$ac_objext'
14541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14542 (eval $ac_try) 2>&5
14543 ac_status=$?
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); }; }; then
14546 ac_header_compiler=yes
14547else
14548 echo "$as_me: failed program was:" >&5
14549sed 's/^/| /' conftest.$ac_ext >&5
14550
14551ac_header_compiler=no
14552fi
14553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14554echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14555echo "${ECHO_T}$ac_header_compiler" >&6
14556
14557# Is the header present?
14558echo "$as_me:$LINENO: checking utmp.h presence" >&5
14559echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6
14560cat >conftest.$ac_ext <<_ACEOF
14561/* confdefs.h. */
14562_ACEOF
14563cat confdefs.h >>conftest.$ac_ext
14564cat >>conftest.$ac_ext <<_ACEOF
14565/* end confdefs.h. */
14566#include <utmp.h>
14567_ACEOF
14568if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14569 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14570 ac_status=$?
14571 grep -v '^ *+' conftest.er1 >conftest.err
14572 rm -f conftest.er1
14573 cat conftest.err >&5
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 (exit $ac_status); } >/dev/null; then
14576 if test -s conftest.err; then
14577 ac_cpp_err=$ac_cxx_preproc_warn_flag
14578 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14579 else
14580 ac_cpp_err=
14581 fi
14582else
14583 ac_cpp_err=yes
14584fi
14585if test -z "$ac_cpp_err"; then
14586 ac_header_preproc=yes
14587else
14588 echo "$as_me: failed program was:" >&5
14589sed 's/^/| /' conftest.$ac_ext >&5
14590
14591 ac_header_preproc=no
14592fi
14593rm -f conftest.err conftest.$ac_ext
14594echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14595echo "${ECHO_T}$ac_header_preproc" >&6
14596
14597# So? What about this header?
14598case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14599 yes:no: )
14600 { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
14601echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14602 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5
14603echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;}
14604 ac_header_preproc=yes
14605 ;;
14606 no:yes:* )
14607 { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5
14608echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;}
14609 { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5
14610echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;}
14611 { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5
14612echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;}
14613 { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5
14614echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
14615 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5
14616echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;}
14617 { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5
14618echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;}
14619 (
14620 cat <<\_ASBOX
14621## ------------------------------------------ ##
14622## Report this to the AC_PACKAGE_NAME lists. ##
14623## ------------------------------------------ ##
14624_ASBOX
14625 ) |
14626 sed "s/^/$as_me: WARNING: /" >&2
14627 ;;
14628esac
14629echo "$as_me:$LINENO: checking for utmp.h" >&5
14630echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
14631if test "${ac_cv_header_utmp_h+set}" = set; then
14632 echo $ECHO_N "(cached) $ECHO_C" >&6
14633else
14634 ac_cv_header_utmp_h=$ac_header_preproc
14635fi
14636echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
14637echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
14638
14639fi
14640if test $ac_cv_header_utmp_h = yes; then
14641 echo "$as_me:$LINENO: checking for struct utmp" >&5
14642echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6
14643if test "${rxvt_cv_struct_utmp+set}" = set; then
14644 echo $ECHO_N "(cached) $ECHO_C" >&6
14645else
14646 cat >conftest.$ac_ext <<_ACEOF
14647/* confdefs.h. */
14648_ACEOF
14649cat confdefs.h >>conftest.$ac_ext
14650cat >>conftest.$ac_ext <<_ACEOF
14651/* end confdefs.h. */
14652#include <sys/types.h>
14653#include <stdint.h>
14654#include <utmp.h>
14655int
14656main ()
14657{
14658struct utmp ut;
14659 ;
14660 return 0;
14661}
14662_ACEOF
14663rm -f conftest.$ac_objext
14664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14665 (eval $ac_compile) 2>conftest.er1
14666 ac_status=$?
14667 grep -v '^ *+' conftest.er1 >conftest.err
14668 rm -f conftest.er1
14669 cat conftest.err >&5
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); } &&
14672 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14674 (eval $ac_try) 2>&5
14675 ac_status=$?
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); }; } &&
14678 { ac_try='test -s conftest.$ac_objext'
14679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14680 (eval $ac_try) 2>&5
14681 ac_status=$?
14682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 (exit $ac_status); }; }; then
14684 rxvt_cv_struct_utmp=yes
14685else
14686 echo "$as_me: failed program was:" >&5
14687sed 's/^/| /' conftest.$ac_ext >&5
14688
14689rxvt_cv_struct_utmp=no
14690fi
14691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14692fi
14693echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5
14694echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6
14695if test x$rxvt_cv_struct_utmp = xyes; then
14696
14697cat >>confdefs.h <<\_ACEOF
14698#define HAVE_STRUCT_UTMP 1
14699_ACEOF
14700
14701fi
14702
14703
14704echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
14705echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6
14706if test "${rxvt_cv_struct_utmp_host+set}" = set; then
14707 echo $ECHO_N "(cached) $ECHO_C" >&6
14708else
14709 cat >conftest.$ac_ext <<_ACEOF
14710/* confdefs.h. */
14711_ACEOF
14712cat confdefs.h >>conftest.$ac_ext
14713cat >>conftest.$ac_ext <<_ACEOF
14714/* end confdefs.h. */
14715#include <sys/types.h>
14716#include <utmp.h>
14717int
14718main ()
14719{
14720struct utmp ut; ut.ut_host;
14721 ;
14722 return 0;
14723}
14724_ACEOF
14725rm -f conftest.$ac_objext
14726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14727 (eval $ac_compile) 2>conftest.er1
14728 ac_status=$?
14729 grep -v '^ *+' conftest.er1 >conftest.err
14730 rm -f conftest.er1
14731 cat conftest.err >&5
14732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733 (exit $ac_status); } &&
14734 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14736 (eval $ac_try) 2>&5
14737 ac_status=$?
14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739 (exit $ac_status); }; } &&
14740 { ac_try='test -s conftest.$ac_objext'
14741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14742 (eval $ac_try) 2>&5
14743 ac_status=$?
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); }; }; then
14746 rxvt_cv_struct_utmp_host=yes
14747else
14748 echo "$as_me: failed program was:" >&5
14749sed 's/^/| /' conftest.$ac_ext >&5
14750
14751rxvt_cv_struct_utmp_host=no
14752fi
14753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14754fi
14755echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5
14756echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6
14757if test x$rxvt_cv_struct_utmp_host = xyes; then
14758
14759cat >>confdefs.h <<\_ACEOF
14760#define HAVE_UTMP_HOST 1
14761_ACEOF
14762
14763fi
14764
14765echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
14766echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6
14767if test "${rxvt_cv_struct_utmp_pid+set}" = set; then
14768 echo $ECHO_N "(cached) $ECHO_C" >&6
14769else
14770 cat >conftest.$ac_ext <<_ACEOF
14771/* confdefs.h. */
14772_ACEOF
14773cat confdefs.h >>conftest.$ac_ext
14774cat >>conftest.$ac_ext <<_ACEOF
14775/* end confdefs.h. */
14776#include <sys/types.h>
14777#include <utmp.h>
14778int
14779main ()
14780{
14781struct utmp ut; ut.ut_pid;
14782 ;
14783 return 0;
14784}
14785_ACEOF
14786rm -f conftest.$ac_objext
14787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14788 (eval $ac_compile) 2>conftest.er1
14789 ac_status=$?
14790 grep -v '^ *+' conftest.er1 >conftest.err
14791 rm -f conftest.er1
14792 cat conftest.err >&5
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); } &&
14795 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14797 (eval $ac_try) 2>&5
14798 ac_status=$?
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); }; } &&
14801 { ac_try='test -s conftest.$ac_objext'
14802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14803 (eval $ac_try) 2>&5
14804 ac_status=$?
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); }; }; then
14807 rxvt_cv_struct_utmp_pid=yes
14808else
14809 echo "$as_me: failed program was:" >&5
14810sed 's/^/| /' conftest.$ac_ext >&5
14811
14812rxvt_cv_struct_utmp_pid=no
14813fi
14814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14815fi
14816echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5
14817echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6
14818if test x$rxvt_cv_struct_utmp_pid = xyes; then
14819
14820cat >>confdefs.h <<\_ACEOF
14821#define HAVE_UTMP_PID 1
14822_ACEOF
14823
14824fi
14825
14826fi
14827
14828
14829
14830if test "${ac_cv_header_utmpx_h+set}" = set; then
14831 echo "$as_me:$LINENO: checking for utmpx.h" >&5
14832echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
14833if test "${ac_cv_header_utmpx_h+set}" = set; then
14834 echo $ECHO_N "(cached) $ECHO_C" >&6
14835fi
14836echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
14837echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
14838else
14839 # Is the header compilable?
14840echo "$as_me:$LINENO: checking utmpx.h usability" >&5
14841echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6
14842cat >conftest.$ac_ext <<_ACEOF
14843/* confdefs.h. */
14844_ACEOF
14845cat confdefs.h >>conftest.$ac_ext
14846cat >>conftest.$ac_ext <<_ACEOF
14847/* end confdefs.h. */
14848$ac_includes_default
14849#include <utmpx.h>
14850_ACEOF
14851rm -f conftest.$ac_objext
14852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14853 (eval $ac_compile) 2>conftest.er1
14854 ac_status=$?
14855 grep -v '^ *+' conftest.er1 >conftest.err
14856 rm -f conftest.er1
14857 cat conftest.err >&5
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); } &&
14860 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14862 (eval $ac_try) 2>&5
14863 ac_status=$?
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); }; } &&
14866 { ac_try='test -s conftest.$ac_objext'
14867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14868 (eval $ac_try) 2>&5
14869 ac_status=$?
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); }; }; then
14872 ac_header_compiler=yes
14873else
14874 echo "$as_me: failed program was:" >&5
14875sed 's/^/| /' conftest.$ac_ext >&5
14876
14877ac_header_compiler=no
14878fi
14879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14880echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14881echo "${ECHO_T}$ac_header_compiler" >&6
14882
14883# Is the header present?
14884echo "$as_me:$LINENO: checking utmpx.h presence" >&5
14885echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6
14886cat >conftest.$ac_ext <<_ACEOF
14887/* confdefs.h. */
14888_ACEOF
14889cat confdefs.h >>conftest.$ac_ext
14890cat >>conftest.$ac_ext <<_ACEOF
14891/* end confdefs.h. */
14892#include <utmpx.h>
14893_ACEOF
14894if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14896 ac_status=$?
14897 grep -v '^ *+' conftest.er1 >conftest.err
14898 rm -f conftest.er1
14899 cat conftest.err >&5
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); } >/dev/null; then
14902 if test -s conftest.err; then
14903 ac_cpp_err=$ac_cxx_preproc_warn_flag
14904 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14905 else
14906 ac_cpp_err=
14907 fi
14908else
14909 ac_cpp_err=yes
14910fi
14911if test -z "$ac_cpp_err"; then
14912 ac_header_preproc=yes
14913else
14914 echo "$as_me: failed program was:" >&5
14915sed 's/^/| /' conftest.$ac_ext >&5
14916
14917 ac_header_preproc=no
14918fi
14919rm -f conftest.err conftest.$ac_ext
14920echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14921echo "${ECHO_T}$ac_header_preproc" >&6
14922
14923# So? What about this header?
14924case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14925 yes:no: )
14926 { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5
14927echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14928 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5
14929echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;}
14930 ac_header_preproc=yes
14931 ;;
14932 no:yes:* )
14933 { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5
14934echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;}
14935 { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5
14936echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;}
14937 { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5
14938echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;}
14939 { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5
14940echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;}
14941 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5
14942echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;}
14943 { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5
14944echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;}
14945 (
14946 cat <<\_ASBOX
14947## ------------------------------------------ ##
14948## Report this to the AC_PACKAGE_NAME lists. ##
14949## ------------------------------------------ ##
14950_ASBOX
14951 ) |
14952 sed "s/^/$as_me: WARNING: /" >&2
14953 ;;
14954esac
14955echo "$as_me:$LINENO: checking for utmpx.h" >&5
14956echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
14957if test "${ac_cv_header_utmpx_h+set}" = set; then
14958 echo $ECHO_N "(cached) $ECHO_C" >&6
14959else
14960 ac_cv_header_utmpx_h=$ac_header_preproc
14961fi
14962echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
14963echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
14964
14965fi
14966if test $ac_cv_header_utmpx_h = yes; then
14967 echo "$as_me:$LINENO: checking for struct utmpx" >&5
14968echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6
14969if test "${rxvt_cv_struct_utmpx+set}" = set; then
14970 echo $ECHO_N "(cached) $ECHO_C" >&6
14971else
14972 cat >conftest.$ac_ext <<_ACEOF
14973/* confdefs.h. */
14974_ACEOF
14975cat confdefs.h >>conftest.$ac_ext
14976cat >>conftest.$ac_ext <<_ACEOF
14977/* end confdefs.h. */
14978#include <sys/types.h>
14979#include <utmpx.h>
14980int
14981main ()
14982{
14983struct utmpx ut;
14984 ;
14985 return 0;
14986}
14987_ACEOF
14988rm -f conftest.$ac_objext
14989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14990 (eval $ac_compile) 2>conftest.er1
14991 ac_status=$?
14992 grep -v '^ *+' conftest.er1 >conftest.err
14993 rm -f conftest.er1
14994 cat conftest.err >&5
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); } &&
14997 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14999 (eval $ac_try) 2>&5
15000 ac_status=$?
15001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002 (exit $ac_status); }; } &&
15003 { ac_try='test -s conftest.$ac_objext'
15004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15005 (eval $ac_try) 2>&5
15006 ac_status=$?
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); }; }; then
15009 rxvt_cv_struct_utmpx=yes
15010else
15011 echo "$as_me: failed program was:" >&5
15012sed 's/^/| /' conftest.$ac_ext >&5
15013
15014rxvt_cv_struct_utmpx=no
15015fi
15016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15017fi
15018echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5
15019echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6
15020if test x$rxvt_cv_struct_utmpx = xyes; then
15021
15022cat >>confdefs.h <<\_ACEOF
15023#define HAVE_STRUCT_UTMPX 1
15024_ACEOF
15025
15026fi
15027
15028
15029echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
15030echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6
15031if test "${rxvt_cv_struct_utmpx_host+set}" = set; then
15032 echo $ECHO_N "(cached) $ECHO_C" >&6
15033else
15034 cat >conftest.$ac_ext <<_ACEOF
15035/* confdefs.h. */
15036_ACEOF
15037cat confdefs.h >>conftest.$ac_ext
15038cat >>conftest.$ac_ext <<_ACEOF
15039/* end confdefs.h. */
15040#include <sys/types.h>
15041#include <utmpx.h>
15042int
15043main ()
15044{
15045struct utmpx utx; utx.ut_host;
15046 ;
15047 return 0;
15048}
15049_ACEOF
15050rm -f conftest.$ac_objext
15051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15052 (eval $ac_compile) 2>conftest.er1
15053 ac_status=$?
15054 grep -v '^ *+' conftest.er1 >conftest.err
15055 rm -f conftest.er1
15056 cat conftest.err >&5
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); } &&
15059 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15061 (eval $ac_try) 2>&5
15062 ac_status=$?
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); }; } &&
15065 { ac_try='test -s conftest.$ac_objext'
15066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15067 (eval $ac_try) 2>&5
15068 ac_status=$?
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); }; }; then
15071 rxvt_cv_struct_utmpx_host=yes
15072else
15073 echo "$as_me: failed program was:" >&5
15074sed 's/^/| /' conftest.$ac_ext >&5
15075
15076rxvt_cv_struct_utmpx_host=no
15077fi
15078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15079fi
15080echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5
15081echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6
15082if test x$rxvt_cv_struct_utmpx_host = xyes; then
15083
15084cat >>confdefs.h <<\_ACEOF
15085#define HAVE_UTMPX_HOST 1
15086_ACEOF
15087
15088fi
15089
15090fi
15091
15092
15093
15094echo "$as_me:$LINENO: checking for struct lastlog" >&5
15095echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
15096if test "${rxvt_cv_struct_lastlog+set}" = set; then
15097 echo $ECHO_N "(cached) $ECHO_C" >&6
15098else
15099 cat >conftest.$ac_ext <<_ACEOF
15100/* confdefs.h. */
15101_ACEOF
15102cat confdefs.h >>conftest.$ac_ext
15103cat >>conftest.$ac_ext <<_ACEOF
15104/* end confdefs.h. */
15105#include <sys/types.h>
15106#include <utmp.h>
15107#ifdef HAVE_LASTLOG_H
15108#include <lastlog.h>
15109#endif
15110
15111int
15112main ()
15113{
15114struct lastlog ll;
15115 ;
15116 return 0;
15117}
15118_ACEOF
15119rm -f conftest.$ac_objext
15120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15121 (eval $ac_compile) 2>conftest.er1
15122 ac_status=$?
15123 grep -v '^ *+' conftest.er1 >conftest.err
15124 rm -f conftest.er1
15125 cat conftest.err >&5
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 (exit $ac_status); } &&
15128 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15130 (eval $ac_try) 2>&5
15131 ac_status=$?
15132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133 (exit $ac_status); }; } &&
15134 { ac_try='test -s conftest.$ac_objext'
15135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15136 (eval $ac_try) 2>&5
15137 ac_status=$?
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); }; }; then
15140 rxvt_cv_struct_lastlog=yes
15141else
15142 echo "$as_me: failed program was:" >&5
15143sed 's/^/| /' conftest.$ac_ext >&5
15144
15145rxvt_cv_struct_lastlog=no
15146fi
15147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15148fi
15149echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5
15150echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6
15151if test x$rxvt_cv_struct_lastlog = xyes; then
15152
15153cat >>confdefs.h <<\_ACEOF
15154#define HAVE_STRUCT_LASTLOG 1
15155_ACEOF
15156
15157fi
15158
15159echo "$as_me:$LINENO: checking for struct lastlogx" >&5
15160echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6
15161if test "${rxvt_cv_struct_lastlogx+set}" = set; then
15162 echo $ECHO_N "(cached) $ECHO_C" >&6
15163else
15164 cat >conftest.$ac_ext <<_ACEOF
15165/* confdefs.h. */
15166_ACEOF
15167cat confdefs.h >>conftest.$ac_ext
15168cat >>conftest.$ac_ext <<_ACEOF
15169/* end confdefs.h. */
15170#include <sys/types.h>
15171#include <utmpx.h>
15172#ifdef HAVE_LASTLOG_H
15173#include <lastlog.h>
15174#endif
15175
15176int
15177main ()
15178{
15179struct lastlogx ll;
15180 ;
15181 return 0;
15182}
15183_ACEOF
15184rm -f conftest.$ac_objext
15185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15186 (eval $ac_compile) 2>conftest.er1
15187 ac_status=$?
15188 grep -v '^ *+' conftest.er1 >conftest.err
15189 rm -f conftest.er1
15190 cat conftest.err >&5
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); } &&
15193 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15195 (eval $ac_try) 2>&5
15196 ac_status=$?
15197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198 (exit $ac_status); }; } &&
15199 { ac_try='test -s conftest.$ac_objext'
15200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15201 (eval $ac_try) 2>&5
15202 ac_status=$?
15203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204 (exit $ac_status); }; }; then
15205 rxvt_cv_struct_lastlogx=yes
15206else
15207 echo "$as_me: failed program was:" >&5
15208sed 's/^/| /' conftest.$ac_ext >&5
15209
15210rxvt_cv_struct_lastlogx=no
15211fi
15212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15213fi
15214echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5
15215echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6
15216if test x$rxvt_cv_struct_lastlogx = xyes; then
15217
15218cat >>confdefs.h <<\_ACEOF
15219#define HAVE_STRUCT_LASTLOGX 1
15220_ACEOF
15221
15222fi
15223
15224
15225echo "$as_me:$LINENO: checking where utmp is located" >&5
15226echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6
15227if test "${rxvt_cv_path_utmp+set}" = set; then
15228 echo $ECHO_N "(cached) $ECHO_C" >&6
15229else
15230 if test "$cross_compiling" = yes; then
15231 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5
15232echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;}
15233else
15234 cat >conftest.$ac_ext <<_ACEOF
15235/* confdefs.h. */
15236_ACEOF
15237cat confdefs.h >>conftest.$ac_ext
15238cat >>conftest.$ac_ext <<_ACEOF
15239/* end confdefs.h. */
15240#include <stdio.h>
15241#include <sys/types.h>
15242#include <utmp.h>
15243#include <errno.h>
15244main()
15245{
15246 char **u, *utmplist[] = {
15247 "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL };
15248 FILE *a, *f=fopen("conftestval", "w");
15249 if (!f) exit(1);
15250#ifdef UTMP_FILE
15251 fprintf(f, "%s\n", UTMP_FILE);
15252 exit(0);
15253#endif
15254#ifdef _PATH_UTMP
15255 fprintf(f, "%s\n", _PATH_UTMP);
15256 exit(0);
15257#endif
15258 for (u = utmplist; *u; u++) {
15259 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
15260 fprintf(f, "%s\n", *u);
15261 exit(0);
15262 }
15263 }
15264 exit(0);
15265}
15266_ACEOF
15267rm -f conftest$ac_exeext
15268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15269 (eval $ac_link) 2>&5
15270 ac_status=$?
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15274 (eval $ac_try) 2>&5
15275 ac_status=$?
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); }; }; then
15278 rxvt_cv_path_utmp=`cat conftestval`
15279else
15280 echo "$as_me: program exited with status $ac_status" >&5
15281echo "$as_me: failed program was:" >&5
15282sed 's/^/| /' conftest.$ac_ext >&5
15283
15284( exit $ac_status )
15285rxvt_cv_path_utmp=
15286fi
15287rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15288fi
15289fi
15290echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5
15291echo "${ECHO_T}$rxvt_cv_path_utmp" >&6
15292if test x$rxvt_cv_path_utmp != x; then
15293
15294cat >>confdefs.h <<_ACEOF
15295#define RXVT_UTMP_FILE "$rxvt_cv_path_utmp"
15296_ACEOF
15297
15298fi
15299
15300
15301echo "$as_me:$LINENO: checking where utmpx is located" >&5
15302echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6
15303if test "${rxvt_cv_path_utmpx+set}" = set; then
15304 echo $ECHO_N "(cached) $ECHO_C" >&6
15305else
15306 if test "$cross_compiling" = yes; then
15307 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&5
15308echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;}
15309else
15310 cat >conftest.$ac_ext <<_ACEOF
15311/* confdefs.h. */
15312_ACEOF
15313cat confdefs.h >>conftest.$ac_ext
15314cat >>conftest.$ac_ext <<_ACEOF
15315/* end confdefs.h. */
15316#include <stdio.h>
15317#include <sys/types.h>
15318#include <utmpx.h>
15319#include <errno.h>
15320#include <sys/stat.h>
15321#ifdef HAVE_STRING_H
15322#include <string.h>
15323#endif
15324main()
15325{
15326 char **u, *p, *utmplist[] = {
15327#ifdef UTMPX_FILE
15328 UTMPX_FILE,
15329#endif
15330#ifdef _PATH_UTMPX
15331 _PATH_UTMPX,
15332#endif
15333 "/var/adm/utmpx", "/etc/utmpx", NULL };
15334 FILE *a, *f=fopen("conftestval", "w");
15335 struct stat statu, statux;
15336 if (!f) exit(1);
15337 for (u = utmplist; *u; u++) {
15338 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
15339 if (stat(*u, &statux) < 0)
15340 continue;
15341 p = strdup(*u);
15342 p[strlen(p) - 1] = '\0';
15343 if (stat(p, &statu) >= 0
15344 && (statu.st_mtime - statux.st_mtime > 86400))
15345 continue;
15346 fprintf(f, "%s\n", *u);
15347 exit(0);
15348 }
15349 }
15350 exit(0);
15351}
15352_ACEOF
15353rm -f conftest$ac_exeext
15354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15355 (eval $ac_link) 2>&5
15356 ac_status=$?
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15360 (eval $ac_try) 2>&5
15361 ac_status=$?
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); }; }; then
15364 rxvt_cv_path_utmpx=`cat conftestval`
15365else
15366 echo "$as_me: program exited with status $ac_status" >&5
15367echo "$as_me: failed program was:" >&5
15368sed 's/^/| /' conftest.$ac_ext >&5
15369
15370( exit $ac_status )
15371rxvt_cv_path_utmpx=
15372fi
15373rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15374fi
15375fi
15376echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5
15377echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6
15378if test x$rxvt_cv_path_utmpx != x; then
15379
15380cat >>confdefs.h <<_ACEOF
15381#define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx"
15382_ACEOF
15383
15384fi
15385
15386
15387echo "$as_me:$LINENO: checking where wtmp is located" >&5
15388echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6
15389if test "${rxvt_cv_path_wtmp+set}" = set; then
15390 echo $ECHO_N "(cached) $ECHO_C" >&6
15391else
15392 if test "$cross_compiling" = yes; then
15393 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&5
15394echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;}
15395else
15396 cat >conftest.$ac_ext <<_ACEOF
15397/* confdefs.h. */
15398_ACEOF
15399cat confdefs.h >>conftest.$ac_ext
15400cat >>conftest.$ac_ext <<_ACEOF
15401/* end confdefs.h. */
15402#include <stdio.h>
15403#include <sys/types.h>
15404#ifdef HAVE_UTMP_H
15405#include <utmp.h>
15406#endif
15407#include <errno.h>
15408main()
15409{
15410 char **w, *wtmplist[] = {
15411 "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL };
15412 FILE *a, *f=fopen("conftestval", "w");
15413 if (!f) exit(1);
15414#ifdef WTMP_FILE
15415 fprintf(f, "%s\n", WTMP_FILE);
15416 exit(0);
15417#endif
15418#ifdef _PATH_WTMP
15419 fprintf(f, "%s\n", _PATH_WTMP);
15420 exit(0);
15421#endif
15422 for (w = wtmplist; *w; w++) {
15423 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
15424 fprintf(f, "%s\n", *w);
15425 exit(0);
15426 }
15427 }
15428 exit(0);
15429}
15430_ACEOF
15431rm -f conftest$ac_exeext
15432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15433 (eval $ac_link) 2>&5
15434 ac_status=$?
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15438 (eval $ac_try) 2>&5
15439 ac_status=$?
15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); }; }; then
15442 rxvt_cv_path_wtmp=`cat conftestval`
15443else
15444 echo "$as_me: program exited with status $ac_status" >&5
15445echo "$as_me: failed program was:" >&5
15446sed 's/^/| /' conftest.$ac_ext >&5
15447
15448( exit $ac_status )
15449rxvt_cv_path_wtmp=
15450fi
15451rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15452fi
15453fi
15454echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5
15455echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6
15456if test x$rxvt_cv_path_wtmp != x; then
15457
15458cat >>confdefs.h <<_ACEOF
15459#define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp"
15460_ACEOF
15461
15462fi
15463
15464echo "$as_me:$LINENO: checking where wtmpx is located" >&5
15465echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6
15466if test "${rxvt_cv_path_wtmpx+set}" = set; then
15467 echo $ECHO_N "(cached) $ECHO_C" >&6
15468else
15469 if test "$cross_compiling" = yes; then
15470 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&5
15471echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;}
15472else
15473 cat >conftest.$ac_ext <<_ACEOF
15474/* confdefs.h. */
15475_ACEOF
15476cat confdefs.h >>conftest.$ac_ext
15477cat >>conftest.$ac_ext <<_ACEOF
15478/* end confdefs.h. */
15479#include <stdio.h>
15480#ifdef HAVE_UTMPX_H
15481#include <utmpx.h>
15482#endif
15483#include <errno.h>
15484main()
15485{
15486 char **w, *wtmplist[] = {
15487 "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
15488 FILE *a, *f=fopen("conftestval", "w");
15489 if (!f) exit(1);
15490#ifdef WTMPX_FILE
15491 fprintf(f, "%s\n", WTMPX_FILE);
15492 exit(0);
15493#endif
15494#ifdef _PATH_WTMPX
15495 fprintf(f, "%s\n", _PATH_WTMPX);
15496 exit(0);
15497#endif
15498 for (w = wtmplist; *w; w++) {
15499 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
15500 fprintf(f, "%s\n", *w);
15501 exit(0);
15502 }
15503 }
15504 exit(0);
15505}
15506_ACEOF
15507rm -f conftest$ac_exeext
15508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15509 (eval $ac_link) 2>&5
15510 ac_status=$?
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15514 (eval $ac_try) 2>&5
15515 ac_status=$?
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); }; }; then
15518 rxvt_cv_path_wtmpx=`cat conftestval`
15519else
15520 echo "$as_me: program exited with status $ac_status" >&5
15521echo "$as_me: failed program was:" >&5
15522sed 's/^/| /' conftest.$ac_ext >&5
15523
15524( exit $ac_status )
15525rxvt_cv_path_wtmpx=
15526fi
15527rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15528fi
15529fi
15530echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5
15531echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6
15532if test x$rxvt_cv_path_wtmpx != x; then
15533
15534cat >>confdefs.h <<_ACEOF
15535#define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx"
15536_ACEOF
15537
15538fi
15539
15540echo "$as_me:$LINENO: checking where lastlog is located" >&5
15541echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6
15542if test "${rxvt_cv_path_lastlog+set}" = set; then
15543 echo $ECHO_N "(cached) $ECHO_C" >&6
15544else
15545 if test "$cross_compiling" = yes; then
15546 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&5
15547echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;}
15548else
15549 cat >conftest.$ac_ext <<_ACEOF
15550/* confdefs.h. */
15551_ACEOF
15552cat confdefs.h >>conftest.$ac_ext
15553cat >>conftest.$ac_ext <<_ACEOF
15554/* end confdefs.h. */
15555#include <stdio.h>
15556#include <sys/types.h>
15557#ifdef HAVE_UTMPX_H
15558#include <utmpx.h>
15559#elif defined(HAVE_UTMP_H)
15560#include <utmp.h>
15561#endif
15562#ifdef HAVE_LASTLOG_H
15563#include <lastlog.h>
15564#endif
15565#include <errno.h>
15566main()
15567{
15568 char **w, *lastloglist[] = { "/var/log/lastlog", NULL };
15569 FILE *a, *f=fopen("conftestval", "w");
15570 if (!f) exit(1);
15571#ifdef LASTLOG_FILE
15572 fprintf(f, "%s\n", LASTLOG_FILE);
15573 exit(0);
15574#endif
15575#ifdef _PATH_LASTLOG
15576 fprintf(f, "%s\n", _PATH_LASTLOG);
15577 exit(0);
15578#endif
15579 for (w = lastloglist; *w; w++) {
15580 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
15581 fprintf(f, "%s\n", *w);
15582 exit(0);
15583 }
15584 }
15585 exit(0);
15586}
15587_ACEOF
15588rm -f conftest$ac_exeext
15589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15590 (eval $ac_link) 2>&5
15591 ac_status=$?
15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15595 (eval $ac_try) 2>&5
15596 ac_status=$?
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); }; }; then
15599 rxvt_cv_path_lastlog=`cat conftestval`
15600else
15601 echo "$as_me: program exited with status $ac_status" >&5
15602echo "$as_me: failed program was:" >&5
15603sed 's/^/| /' conftest.$ac_ext >&5
15604
15605( exit $ac_status )
15606rxvt_cv_path_lastlog=
15607fi
15608rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15609fi
15610fi
15611echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5
15612echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6
15613if test x$rxvt_cv_path_lastlog != x; then
15614
15615cat >>confdefs.h <<_ACEOF
15616#define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog"
15617_ACEOF
15618
15619 if test -d "$rxvt_cv_path_lastlog"; then
15620
15621cat >>confdefs.h <<\_ACEOF
15622#define LASTLOG_IS_DIR 1
15623_ACEOF
15624
15625 fi
15626fi
15627
15628echo "$as_me:$LINENO: checking where lastlogx is located" >&5
15629echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6
15630if test "${rxvt_cv_path_lastlogx+set}" = set; then
15631 echo $ECHO_N "(cached) $ECHO_C" >&6
15632else
15633 if test "$cross_compiling" = yes; then
15634 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&5
15635echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;}
15636else
15637 cat >conftest.$ac_ext <<_ACEOF
15638/* confdefs.h. */
15639_ACEOF
15640cat confdefs.h >>conftest.$ac_ext
15641cat >>conftest.$ac_ext <<_ACEOF
15642/* end confdefs.h. */
15643#include <stdio.h>
15644#ifdef HAVE_UTMPX_H
15645#include <utmpx.h>
15646#endif
15647#include <errno.h>
15648main()
15649{
15650 char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL };
15651 FILE *a, *f=fopen("conftestval", "w");
15652 if (!f) exit(1);
15653#ifdef LASTLOGX_FILE
15654 fprintf(f, "%s\n", LASTLOGX_FILE);
15655 exit(0);
15656#endif
15657#ifdef _PATH_LASTLOGX
15658 fprintf(f, "%s\n", _PATH_LASTLOGX);
15659 exit(0);
15660#endif
15661 for (w = wtmplist; *w; w++) {
15662 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
15663 fprintf(f, "%s\n", *w);
15664 exit(0);
15665 }
15666 }
15667 exit(0);
15668}
15669_ACEOF
15670rm -f conftest$ac_exeext
15671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15672 (eval $ac_link) 2>&5
15673 ac_status=$?
15674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15677 (eval $ac_try) 2>&5
15678 ac_status=$?
15679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680 (exit $ac_status); }; }; then
15681 rxvt_cv_path_lastlogx=`cat conftestval`
15682else
15683 echo "$as_me: program exited with status $ac_status" >&5
15684echo "$as_me: failed program was:" >&5
15685sed 's/^/| /' conftest.$ac_ext >&5
15686
15687( exit $ac_status )
15688rxvt_cv_path_lastlogx=
15689fi
15690rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15691fi
15692fi
15693echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5
15694echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6
15695if test x$rxvt_cv_path_lastlogx != x; then
15696
15697cat >>confdefs.h <<_ACEOF
15698#define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx"
15699_ACEOF
15700
15701fi
15702 10187
15703 10188
15704echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 10189echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
15705echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 10190echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6
15706if test "${rxvt_cv_path_ttytab+set}" = set; then 10191if test "${rxvt_cv_path_ttytab+set}" = set; then
15973#define HAVE_NL_LANGINFO 1 10458#define HAVE_NL_LANGINFO 1
15974_ACEOF 10459_ACEOF
15975 10460
15976fi 10461fi
15977 10462
10463SCM_RIGHTS_CHECK
10464
15978echo "$as_me:$LINENO: checking for getpt" >&5 10465echo "$as_me:$LINENO: checking for broken XIM callback" >&5
15979echo $ECHO_N "checking for getpt... $ECHO_C" >&6 10466echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6
15980if test "${rxvt_cv_func_getpt+set}" = set; then 10467if test "${rxvt_broken_ximcb+set}" = set; then
15981 echo $ECHO_N "(cached) $ECHO_C" >&6 10468 echo $ECHO_N "(cached) $ECHO_C" >&6
15982else 10469else
15983 cat >conftest.$ac_ext <<_ACEOF 10470 cat >conftest.$ac_ext <<_ACEOF
15984/* confdefs.h. */ 10471
15985_ACEOF 10472#include <X11/Xlib.h>
15986cat confdefs.h >>conftest.$ac_ext 10473
15987cat >>conftest.$ac_ext <<_ACEOF 10474void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
15988/* end confdefs.h. */ 10475
15989#define _GNU_SOURCE 10476void f() {
15990#ifdef HAVE_STDLIB_H 10477 XIMCallback cb;
15991# include <cstdlib> 10478 cb.callback = im_destroy_cb;
15992#endif
15993int
15994main ()
15995{
15996(void)getpt();
15997 ;
15998 return 0;
15999} 10479}
10480
16000_ACEOF 10481_ACEOF
16001rm -f conftest.$ac_objext conftest$ac_exeext 10482rm -f conftest.$ac_objext
16002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16003 (eval $ac_link) 2>conftest.er1 10484 (eval $ac_compile) 2>conftest.er1
16004 ac_status=$? 10485 ac_status=$?
16005 grep -v '^ *+' conftest.er1 >conftest.err 10486 grep -v '^ *+' conftest.er1 >conftest.err
16006 rm -f conftest.er1 10487 rm -f conftest.er1
16007 cat conftest.err >&5 10488 cat conftest.err >&5
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16012 (eval $ac_try) 2>&5 10493 (eval $ac_try) 2>&5
16013 ac_status=$? 10494 ac_status=$?
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); }; } && 10496 (exit $ac_status); }; } &&
16016 { ac_try='test -s conftest$ac_exeext' 10497 { ac_try='test -s conftest.$ac_objext'
16017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16018 (eval $ac_try) 2>&5 10499 (eval $ac_try) 2>&5
16019 ac_status=$? 10500 ac_status=$?
16020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021 (exit $ac_status); }; }; then 10502 (exit $ac_status); }; }; then
16022 rxvt_cv_func_getpt=yes 10503 rxvt_broken_ximcb=yes
16023else 10504else
16024 echo "$as_me: failed program was:" >&5 10505 echo "$as_me: failed program was:" >&5
16025sed 's/^/| /' conftest.$ac_ext >&5 10506sed 's/^/| /' conftest.$ac_ext >&5
16026 10507
16027rxvt_cv_func_getpt=no 10508rxvt_broken_ximcb=no
16028fi 10509fi
16029rm -f conftest.err conftest.$ac_objext \ 10510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16030 conftest$ac_exeext conftest.$ac_ext
16031fi 10511fi
16032echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5 10512echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
16033echo "${ECHO_T}$rxvt_cv_func_getpt" >&6 10513echo "${ECHO_T}$rxvt_broken_ximcb" >&6
16034if test x$rxvt_cv_func_getpt = xyes; then 10514
10515if test x$rxvt_broken_ximcb = xyes; then
16035 10516
16036cat >>confdefs.h <<\_ACEOF 10517cat >>confdefs.h <<\_ACEOF
16037#define HAVE_GETPT 1 10518#define XIMCB_PROTO_BROKEN 1
16038_ACEOF 10519_ACEOF
16039 10520
16040fi 10521fi
16041 10522
10523PTY_CHECK
10524
10525if test x$support_xft = xyes; then
10526 # Extract the first word of "pkg-config", so it can be a program name with args.
10527set dummy pkg-config; ac_word=$2
16042echo "$as_me:$LINENO: checking for pty/tty type" >&5 10528echo "$as_me:$LINENO: checking for $ac_word" >&5
16043echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6 10529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16044if test "${rxvt_cv_ptys+set}" = set; then 10530if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
16045 echo $ECHO_N "(cached) $ECHO_C" >&6 10531 echo $ECHO_N "(cached) $ECHO_C" >&6
16046else 10532else
16047 if test x$ac_cv_func_openpty = xyes; then 10533 case $PKG_CONFIG in
16048 rxvt_cv_ptys=OPENPTY 10534 [\\/]* | ?:[\\/]*)
16049 else if test x$ac_cv_func__getpty = xyes; then 10535 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16050 rxvt_cv_ptys=SGI4 10536 ;;
16051 else if test -c /dev/ttyp20; then 10537 *)
16052 rxvt_cv_ptys=SCO 10538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16053 else if test -c /dev/ptym/clone; then 10539for as_dir in $PATH
16054 rxvt_cv_ptys=HPUX 10540do
16055 else if test x$rxvt_cv_func_getpt = xyes; then 10541 IFS=$as_save_IFS
16056 rxvt_cv_ptys=GLIBC 10542 test -z "$as_dir" && as_dir=.
16057 else if test -c /dev/ptc -a -c /dev/pts; then 10543 for ac_exec_ext in '' $ac_executable_extensions; do
16058 rxvt_cv_ptys=PTC 10544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16059 else if test -c /dev/ptc -a -d /dev/pts; then 10545 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16060 rxvt_cv_ptys=PTC 10546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16061 else if test -c /dev/ptmx -a -c /dev/pts/0; then 10547 break 2
16062 rxvt_cv_ptys=STREAMS 10548 fi
16063 else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then 10549done
16064 rxvt_cv_ptys=STREAMS 10550done
10551
10552 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10553 ;;
10554esac
10555fi
10556PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10557
10558if test -n "$PKG_CONFIG"; then
10559 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10560echo "${ECHO_T}$PKG_CONFIG" >&6
16065 else 10561else
16066 rxvt_cv_ptys=BSD
16067fi
16068fi
16069fi
16070fi
16071fi
16072fi
16073fi
16074fi
16075fi
16076
16077fi
16078echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5 10562 echo "$as_me:$LINENO: result: no" >&5
16079echo "${ECHO_T}$rxvt_cv_ptys" >&6 10563echo "${ECHO_T}no" >&6
16080
16081if test x$rxvt_cv_ptys = xOPENPTY; then
16082
16083cat >>confdefs.h <<\_ACEOF
16084#define PTYS_ARE_OPENPTY 1
16085_ACEOF
16086
16087fi 10564fi
16088if test x$rxvt_cv_ptys = xSCO; then
16089 10565
16090cat >>confdefs.h <<\_ACEOF 10566 # Extract the first word of "xft-config", so it can be a program name with args.
16091#define PTYS_ARE_NUMERIC 1 10567set dummy xft-config; ac_word=$2
16092_ACEOF
16093
16094fi
16095if test x$rxvt_cv_ptys = xSTREAMS; then
16096
16097cat >>confdefs.h <<\_ACEOF
16098#define PTYS_ARE_PTMX 1
16099_ACEOF
16100
16101fi
16102if test x$rxvt_cv_ptys = xPTC; then
16103
16104cat >>confdefs.h <<\_ACEOF
16105#define PTYS_ARE_PTC 1
16106_ACEOF
16107
16108fi
16109if test x$rxvt_cv_ptys = xSGI4; then
16110
16111cat >>confdefs.h <<\_ACEOF
16112#define PTYS_ARE__GETPTY 1
16113_ACEOF
16114
16115fi
16116if test x$rxvt_cv_ptys = xCONVEX; then
16117
16118cat >>confdefs.h <<\_ACEOF
16119#define PTYS_ARE_GETPTY 1
16120_ACEOF
16121
16122fi
16123if test x$rxvt_cv_ptys = xGLIBC; then
16124
16125cat >>confdefs.h <<\_ACEOF
16126#define PTYS_ARE_GETPT 1
16127_ACEOF
16128
16129fi
16130if test x$rxvt_cv_ptys = xHPUX; then
16131
16132cat >>confdefs.h <<\_ACEOF
16133#define PTYS_ARE_CLONE 1
16134_ACEOF
16135
16136fi
16137if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then
16138
16139cat >>confdefs.h <<\_ACEOF
16140#define PTYS_ARE_SEARCHED 1
16141_ACEOF
16142
16143fi
16144
16145
16146{ echo "$as_me:$LINENO: checking for pty ranges..." >&5 10568echo "$as_me:$LINENO: checking for $ac_word" >&5
16147echo "$as_me: checking for pty ranges..." >&6;}
16148ptys=`echo /dev/pty??`
16149pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
16150pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
16151if test x$pch1 != x; then
16152
16153cat >>confdefs.h <<_ACEOF
16154#define PTYCHAR1 "$pch1"
16155_ACEOF
16156
16157fi
16158if test x$pch2 != x; then
16159
16160cat >>confdefs.h <<_ACEOF
16161#define PTYCHAR2 "$pch2"
16162_ACEOF
16163
16164fi
16165
16166echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
16167echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6 10569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16168if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then 10570if test "${ac_cv_path_XFT_CONFIG+set}" = set; then
16169 echo $ECHO_N "(cached) $ECHO_C" >&6 10571 echo $ECHO_N "(cached) $ECHO_C" >&6
16170else 10572else
16171 ac_check_lib_save_LIBS=$LIBS 10573 case $XFT_CONFIG in
16172LIBS="-lxpg4 $LIBS" 10574 [\\/]* | ?:[\\/]*)
16173cat >conftest.$ac_ext <<_ACEOF 10575 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
16174/* confdefs.h. */
16175_ACEOF
16176cat confdefs.h >>conftest.$ac_ext
16177cat >>conftest.$ac_ext <<_ACEOF
16178/* end confdefs.h. */
16179
16180/* Override any gcc2 internal prototype to avoid an error. */
16181#ifdef __cplusplus
16182extern "C"
16183#endif
16184/* We use char because int might match the return type of a gcc2
16185 builtin and then its argument prototype would still apply. */
16186char setlocale ();
16187int
16188main ()
16189{
16190setlocale ();
16191 ; 10576 ;;
16192 return 0; 10577 *)
16193} 10578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16194_ACEOF 10579for as_dir in $PATH
16195rm -f conftest.$ac_objext conftest$ac_exeext 10580do
16196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10581 IFS=$as_save_IFS
16197 (eval $ac_link) 2>conftest.er1 10582 test -z "$as_dir" && as_dir=.
16198 ac_status=$? 10583 for ac_exec_ext in '' $ac_executable_extensions; do
16199 grep -v '^ *+' conftest.er1 >conftest.err 10584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16200 rm -f conftest.er1 10585 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16201 cat conftest.err >&5 10586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10587 break 2
16203 (exit $ac_status); } &&
16204 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16206 (eval $ac_try) 2>&5
16207 ac_status=$?
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); }; } &&
16210 { ac_try='test -s conftest$ac_exeext'
16211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16212 (eval $ac_try) 2>&5
16213 ac_status=$?
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); }; }; then
16216 ac_cv_lib_xpg4_setlocale=yes
16217else
16218 echo "$as_me: failed program was:" >&5
16219sed 's/^/| /' conftest.$ac_ext >&5
16220
16221ac_cv_lib_xpg4_setlocale=no
16222fi
16223rm -f conftest.err conftest.$ac_objext \
16224 conftest$ac_exeext conftest.$ac_ext
16225LIBS=$ac_check_lib_save_LIBS
16226fi
16227echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
16228echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
16229if test $ac_cv_lib_xpg4_setlocale = yes; then
16230 LIBS="$LIBS -lxpg4"
16231fi
16232
16233
16234if test x$support_tinting = xyes; then
16235
16236cat >>confdefs.h <<\_ACEOF
16237#define TINTING 1
16238_ACEOF
16239
16240fi
16241if test x$support_inheritpixmap = xyes; then
16242
16243cat >>confdefs.h <<\_ACEOF
16244#define TRANSPARENT 1
16245_ACEOF
16246
16247fi
16248if test x$support_keepscrolling = xno; then
16249
16250cat >>confdefs.h <<\_ACEOF
16251#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
16252_ACEOF
16253
16254fi
16255if test x$support_selectionscrolling = xyes; then
16256
16257cat >>confdefs.h <<\_ACEOF
16258#define SELECTION_SCROLLING 1
16259_ACEOF
16260
16261fi
16262if test x$support_menubar = xyes; then
16263
16264cat >>confdefs.h <<\_ACEOF
16265#define MENUBAR 1
16266_ACEOF
16267
16268fi
16269if test x$support_frills = xno; then
16270
16271cat >>confdefs.h <<\_ACEOF
16272#define NO_FRILLS 1
16273_ACEOF
16274
16275fi
16276if test x$support_linespace = xno; then
16277
16278cat >>confdefs.h <<\_ACEOF
16279#define NO_LINESPACE 1
16280_ACEOF
16281
16282fi
16283if test x$support_24bit = xyes; then
16284
16285cat >>confdefs.h <<\_ACEOF
16286#define PREFER_24BIT 1
16287_ACEOF
16288
16289fi
16290if test x$support_mousewheel = xyes; then
16291
16292cat >>confdefs.h <<\_ACEOF
16293#define MOUSE_WHEEL 1
16294_ACEOF
16295
16296fi
16297if test x$support_mouseslipwheel = xyes; then
16298
16299cat >>confdefs.h <<\_ACEOF
16300#define MOUSE_SLIP_WHEELING 1
16301_ACEOF
16302
16303fi
16304if test x$support_utmp = xyes; then
16305
16306cat >>confdefs.h <<\_ACEOF
16307#define UTMP_SUPPORT 1
16308_ACEOF
16309
16310fi
16311if test x$support_wtmp = xyes; then
16312
16313cat >>confdefs.h <<\_ACEOF
16314#define WTMP_SUPPORT 1
16315_ACEOF
16316
16317fi
16318if test x$support_lastlog = xyes; then
16319
16320cat >>confdefs.h <<\_ACEOF
16321#define LASTLOG_SUPPORT 1
16322_ACEOF
16323
16324fi
16325if test x$support_xim = xyes -o x$multichar_set = xyes; then
16326 if test x$rxvt_cv_func_xlocale = xyes; then
16327
16328cat >>confdefs.h <<\_ACEOF
16329#define USE_XIM 1
16330_ACEOF
16331
16332 fi 10588 fi
16333fi
16334if test x$support_xpm = xyes; then
16335
16336cat >>confdefs.h <<\_ACEOF
16337#define XPM_BACKGROUND 1
16338_ACEOF
16339
16340fi
16341if test x$support_scroll_rxvt = xyes; then
16342
16343cat >>confdefs.h <<\_ACEOF
16344#define RXVT_SCROLLBAR 1
16345_ACEOF
16346
16347 scrolltypes="rxvt"
16348fi
16349if test x$support_scroll_next = xyes; then
16350
16351cat >>confdefs.h <<\_ACEOF
16352#define NEXT_SCROLLBAR 1
16353_ACEOF
16354
16355 scrolltypes="$scrolltypes next"
16356fi
16357if test x$support_scroll_xterm = xyes; then
16358
16359cat >>confdefs.h <<\_ACEOF
16360#define XTERM_SCROLLBAR 1
16361_ACEOF
16362
16363 scrolltypes="$scrolltypes xterm"
16364fi
16365if test x$support_scroll_plain = xyes; then
16366
16367cat >>confdefs.h <<\_ACEOF
16368#define PLAIN_SCROLLBAR 1
16369_ACEOF
16370
16371 scrolltypes="$scrolltypes plain"
16372fi
16373if test x$support_pointer_blank = xyes; then
16374
16375cat >>confdefs.h <<\_ACEOF
16376#define POINTER_BLANK 1
16377_ACEOF
16378
16379fi
16380if test x$support_cursor_blink = xyes; then
16381
16382cat >>confdefs.h <<\_ACEOF
16383#define CURSOR_BLINK 1
16384_ACEOF
16385
16386fi
16387if test x$support_text_blink = xyes; then
16388
16389cat >>confdefs.h <<\_ACEOF
16390#define TEXT_BLINK 1
16391_ACEOF
16392
16393fi
16394if test x$support_unicode3 = xyes; then
16395
16396cat >>confdefs.h <<\_ACEOF
16397#define UNICODE_3 1
16398_ACEOF
16399
16400fi
16401if test x$support_combining = xyes; then
16402
16403cat >>confdefs.h <<\_ACEOF
16404#define ENABLE_COMBINING 1
16405_ACEOF
16406
16407fi
16408if test x$codesets = xall; then
16409 codesets=jp,jp-ext,kr,cn,cn-ext
16410fi
16411for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
16412
16413cat >>confdefs.h <<\_ACEOF
16414#define ENCODING_EU 1
16415_ACEOF
16416
16417
16418cat >>confdefs.h <<\_ACEOF
16419#define ENCODING_VN 1
16420_ACEOF
16421
16422 case "$codeset" in
16423 JP )
16424cat >>confdefs.h <<\_ACEOF
16425#define ENCODING_JP 1
16426_ACEOF
16427 ;;
16428 JP_EXT )
16429cat >>confdefs.h <<\_ACEOF
16430#define ENCODING_JP_EXT 1
16431_ACEOF
16432 ;;
16433 KR )
16434cat >>confdefs.h <<\_ACEOF
16435#define ENCODING_KR 1
16436_ACEOF
16437 ;;
16438 CN )
16439cat >>confdefs.h <<\_ACEOF
16440#define ENCODING_CN 1
16441_ACEOF
16442 ;;
16443 CN_EXT )
16444cat >>confdefs.h <<\_ACEOF
16445#define ENCODING_CN_EXT 1
16446_ACEOF
16447 ;;
16448 esac
16449done 10589done
10590done
16450 10591
16451 10592 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
16452CFLAGS=${CFLAGS--O} 10593 ;;
16453LDFLAGS=${LDFLAGS--O} 10594esac
16454
16455CPPFLAGS="$CPPFLAGS"
16456
16457
16458
16459
16460
16461
16462
16463if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
16464 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
16465 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
16466 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
16467 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
16468 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
16469fi 10595fi
10596XFT_CONFIG=$ac_cv_path_XFT_CONFIG
16470 10597
16471 10598if test -n "$XFT_CONFIG"; then
16472 10599 echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5
16473 10600echo "${ECHO_T}$XFT_CONFIG" >&6
16474 10601else
16475if test x$support_addstrings = xno; then 10602 echo "$as_me:$LINENO: result: no" >&5
16476 10603echo "${ECHO_T}no" >&6
16477cat >>confdefs.h <<\_ACEOF
16478#define NO_STRINGS 1
16479_ACEOF
16480
16481fi 10604fi
16482 10605
16483MCOMMON=./autoconf/Make.common 10606 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
16484 10607 LIBS="$LIBS `$PKG_CONFIG xft --libs`"
16485 10608 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
16486test "$program_prefix" != NONE &&
16487 program_transform_name="s,^,$program_prefix,;$program_transform_name"
16488# Use a double $ so make ignores it.
16489test "$program_suffix" != NONE &&
16490 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
16491# Double any \ or $. echo might interpret backslashes.
16492# By default was `s,x,x', remove it if useless.
16493cat <<\_ACEOF >conftest.sed
16494s/[\\$]/&&/g;s/;s,x,x,$//
16495_ACEOF
16496program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
16497rm conftest.sed
16498
16499
16500
16501
16502
16503if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
16504 include_stdint_h="#include <stdint.h>"
16505else 10609 else
16506 include_stdint_h="/* #include <stdint.h> */" 10610 if test $XFT_CONFIG != no; then
16507fi 10611 LIBS="$LIBS `$XFT_CONFIG --libs`"
16508if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then 10612 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
16509 include_stdarg_h="#include <cstdarg>" 10613 fi
16510else 10614 fi
16511 include_stdarg_h="/* #include <cstdarg> */"
16512fi
16513if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
16514 include_stdlib_h="#include <cstdlib>"
16515else
16516 include_stdlib_h="/* #include <cstdlib> */"
16517fi
16518if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
16519 include_unistd_h="#include <unistd.h>"
16520else
16521 include_unistd_h="/* #include <unistd.h> */"
16522fi
16523if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
16524 include_string_h="#include <cstring>"
16525else
16526 include_string_h="/* #include <cstring> */"
16527fi
16528if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
16529 include_fcntl_h="#include <fcntl.h>"
16530else
16531 include_fcntl_h="/* #include <fcntl.h> */"
16532fi
16533if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
16534 include_util_h="#include <util.h>"
16535else
16536 include_util_h="/* #include <util.h> */"
16537fi
16538if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
16539 include_assert_h="#include <assert.h>"
16540else
16541 include_assert_h="/* #include <assert.h> */"
16542fi
16543if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
16544 include_sys_ioctl_h="#include <sys/ioctl.h>"
16545else
16546 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
16547fi
16548if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
16549 include_sys_select_h="#include <sys/select.h>"
16550else
16551 include_sys_select_h="/* #include <sys/select.h> */"
16552fi
16553if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
16554 include_sys_strredir_h="#include <sys/strredir.h>"
16555else
16556 include_sys_strredir_h="/* #include <sys/strredir.h> */"
16557fi
16558if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
16559 include_sys_time_h="#include <sys/time.h>"
16560else
16561 include_sys_time_h="/* #include <sys/time.h> */"
16562fi
16563if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
16564 include_time_h="#include <time.h>"
16565else
16566 include_time_h="/* #include <time.h> */"
16567fi
16568
16569if test x$support_xft = xyes; then
16570 LIBS="$LIBS `pkg-config xft --libs`"
16571 CFLAGS="$CFLAGS `pkg-config xft --cflags`"
16572 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
16573 10615
16574 10616
16575for ac_header in X11/Xft/Xft.h 10617for ac_header in X11/Xft/Xft.h
16576do 10618do
16577as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10619as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16804#define XFT 1 10846#define XFT 1
16805_ACEOF 10847_ACEOF
16806 10848
16807 fi 10849 fi
16808fi 10850fi
10851if test x$support_styles = xyes; then
16809 10852
10853cat >>confdefs.h <<\_ACEOF
10854#define ENABLE_STYLES 1
10855_ACEOF
10856
10857fi
10858if test x$support_iso14755 = xyes; then
10859
10860cat >>confdefs.h <<\_ACEOF
10861#define ISO_14755 1
10862_ACEOF
10863
10864fi
10865if test x$support_8bitctrls = xyes; then
10866
10867cat >>confdefs.h <<\_ACEOF
10868#define EIGHT_BIT_CONTROLS 1
10869_ACEOF
10870
10871fi
10872if test x$support_fading = xyes; then
10873
10874cat >>confdefs.h <<\_ACEOF
10875#define OFF_FOCUS_FADING 1
10876_ACEOF
10877
10878fi
10879if test x$support_tinting = xyes; then
10880
10881cat >>confdefs.h <<\_ACEOF
10882#define TINTING 1
10883_ACEOF
10884
10885fi
10886if test x$support_inheritpixmap = xyes; then
10887
10888cat >>confdefs.h <<\_ACEOF
10889#define TRANSPARENT 1
10890_ACEOF
10891
10892fi
10893if test x$support_keepscrolling = xno; then
10894
10895cat >>confdefs.h <<\_ACEOF
10896#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
10897_ACEOF
10898
10899fi
10900if test x$support_selectionscrolling = xyes; then
10901
10902cat >>confdefs.h <<\_ACEOF
10903#define SELECTION_SCROLLING 1
10904_ACEOF
10905
10906fi
10907if test x$support_frills = xyes; then
10908
10909cat >>confdefs.h <<\_ACEOF
10910#define ENABLE_FRILLS 1
10911_ACEOF
10912
10913fi
10914if test x$support_24bit = xyes; then
10915
10916cat >>confdefs.h <<\_ACEOF
10917#define PREFER_24BIT 1
10918_ACEOF
10919
10920fi
10921if test x$support_mousewheel = xyes; then
10922
10923cat >>confdefs.h <<\_ACEOF
10924#define MOUSE_WHEEL 1
10925_ACEOF
10926
10927fi
10928if test x$support_mouseslipwheel = xyes; then
10929
10930cat >>confdefs.h <<\_ACEOF
10931#define MOUSE_SLIP_WHEELING 1
10932_ACEOF
10933
10934fi
10935if test x$support_utmp = xyes; then
10936
10937cat >>confdefs.h <<\_ACEOF
10938#define UTMP_SUPPORT 1
10939_ACEOF
10940
10941fi
10942if test x$support_wtmp = xyes; then
10943
10944cat >>confdefs.h <<\_ACEOF
10945#define WTMP_SUPPORT 1
10946_ACEOF
10947
10948fi
10949if test x$support_lastlog = xyes; then
10950
10951cat >>confdefs.h <<\_ACEOF
10952#define LASTLOG_SUPPORT 1
10953_ACEOF
10954
10955fi
10956if test x$support_xim = xyes -o x$multichar_set = xyes; then
10957 if test x$rxvt_cv_func_xlocale = xyes; then
10958
10959cat >>confdefs.h <<\_ACEOF
10960#define USE_XIM 1
10961_ACEOF
10962
10963 fi
10964fi
10965if test x$support_xpm = xyes; then
10966
10967cat >>confdefs.h <<\_ACEOF
10968#define XPM_BACKGROUND 1
10969_ACEOF
10970
10971fi
10972if test x$support_scroll_rxvt = xyes; then
10973
10974cat >>confdefs.h <<\_ACEOF
10975#define RXVT_SCROLLBAR 1
10976_ACEOF
10977
10978 scrolltypes="rxvt"
10979fi
10980if test x$support_scroll_next = xyes; then
10981
10982cat >>confdefs.h <<\_ACEOF
10983#define NEXT_SCROLLBAR 1
10984_ACEOF
10985
10986 scrolltypes="$scrolltypes next"
10987fi
10988if test x$support_scroll_xterm = xyes; then
10989
10990cat >>confdefs.h <<\_ACEOF
10991#define XTERM_SCROLLBAR 1
10992_ACEOF
10993
10994 scrolltypes="$scrolltypes xterm"
10995fi
10996if test x$support_scroll_plain = xyes; then
10997
10998cat >>confdefs.h <<\_ACEOF
10999#define PLAIN_SCROLLBAR 1
11000_ACEOF
11001
11002 scrolltypes="$scrolltypes plain"
11003fi
11004if test x$support_pointer_blank = xyes; then
11005
11006cat >>confdefs.h <<\_ACEOF
11007#define POINTER_BLANK 1
11008_ACEOF
11009
11010fi
11011if test x$support_text_blink = xyes; then
11012
11013cat >>confdefs.h <<\_ACEOF
11014#define TEXT_BLINK 1
11015_ACEOF
11016
11017fi
11018if test x$support_unicode3 = xyes; then
11019
11020cat >>confdefs.h <<\_ACEOF
11021#define UNICODE_3 1
11022_ACEOF
11023
11024fi
11025if test x$support_combining = xyes; then
11026
11027cat >>confdefs.h <<\_ACEOF
11028#define ENABLE_COMBINING 1
11029_ACEOF
11030
11031fi
11032if test x$codesets = xall; then
11033 codesets=jp,jp-ext,kr,zh,zh-ext
11034fi
11035
11036cat >>confdefs.h <<\_ACEOF
11037#define ENCODING_EU 1
11038_ACEOF
11039
11040
11041cat >>confdefs.h <<\_ACEOF
11042#define ENCODING_VN 1
11043_ACEOF
11044
11045for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
11046 case "$codeset" in
11047 JP )
11048cat >>confdefs.h <<\_ACEOF
11049#define ENCODING_JP 1
11050_ACEOF
11051 ;;
11052 JP_EXT )
11053cat >>confdefs.h <<\_ACEOF
11054#define ENCODING_JP_EXT 1
11055_ACEOF
11056 ;;
11057 KR )
11058cat >>confdefs.h <<\_ACEOF
11059#define ENCODING_KR 1
11060_ACEOF
11061 ;;
11062 ZH )
11063cat >>confdefs.h <<\_ACEOF
11064#define ENCODING_ZH 1
11065_ACEOF
11066 ;;
11067 ZH_EXT )
11068cat >>confdefs.h <<\_ACEOF
11069#define ENCODING_ZH_EXT 1
11070_ACEOF
11071 ;;
11072 esac
11073done
11074
11075IF_PERL=\#
11076if test x$support_perl = xyes; then
11077 # Extract the first word of "perl5", so it can be a program name with args.
11078set dummy perl5; ac_word=$2
11079echo "$as_me:$LINENO: checking for $ac_word" >&5
11080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11081if test "${ac_cv_path_PERL+set}" = set; then
11082 echo $ECHO_N "(cached) $ECHO_C" >&6
11083else
11084 case $PERL in
11085 [\\/]* | ?:[\\/]*)
11086 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11087 ;;
11088 *)
11089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11090for as_dir in $PATH
11091do
11092 IFS=$as_save_IFS
11093 test -z "$as_dir" && as_dir=.
11094 for ac_exec_ext in '' $ac_executable_extensions; do
11095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11096 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11098 break 2
11099 fi
11100done
11101done
11102
11103 ;;
11104esac
11105fi
11106PERL=$ac_cv_path_PERL
11107
11108if test -n "$PERL"; then
11109 echo "$as_me:$LINENO: result: $PERL" >&5
11110echo "${ECHO_T}$PERL" >&6
11111else
11112 echo "$as_me:$LINENO: result: no" >&5
11113echo "${ECHO_T}no" >&6
11114fi
11115
11116 # Extract the first word of "perl", so it can be a program name with args.
11117set dummy perl; ac_word=$2
11118echo "$as_me:$LINENO: checking for $ac_word" >&5
11119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11120if test "${ac_cv_path_PERL+set}" = set; then
11121 echo $ECHO_N "(cached) $ECHO_C" >&6
11122else
11123 case $PERL in
11124 [\\/]* | ?:[\\/]*)
11125 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11126 ;;
11127 *)
11128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11129for as_dir in $PATH
11130do
11131 IFS=$as_save_IFS
11132 test -z "$as_dir" && as_dir=.
11133 for ac_exec_ext in '' $ac_executable_extensions; do
11134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11135 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11137 break 2
11138 fi
11139done
11140done
11141
11142 ;;
11143esac
11144fi
11145PERL=$ac_cv_path_PERL
11146
11147if test -n "$PERL"; then
11148 echo "$as_me:$LINENO: result: $PERL" >&5
11149echo "${ECHO_T}$PERL" >&6
11150else
11151 echo "$as_me:$LINENO: result: no" >&5
11152echo "${ECHO_T}no" >&6
11153fi
11154
11155
11156 echo "$as_me:$LINENO: checking for $PERL suitability" >&5
11157echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6
11158 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
11159
11160 save_CXXFLAGS="$CXXFLAGS"
11161 save_LIBS="$LIBS"
11162 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
11163 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
11164 cat >conftest.$ac_ext <<_ACEOF
11165/* confdefs.h. */
11166_ACEOF
11167cat confdefs.h >>conftest.$ac_ext
11168cat >>conftest.$ac_ext <<_ACEOF
11169/* end confdefs.h. */
11170
11171#include <EXTERN.h>
11172#include <perl.h>
11173#include <XSUB.h>
11174
11175int
11176main ()
11177{
11178
11179 PerlInterpreter *perl = perl_alloc ();
11180
11181 ;
11182 return 0;
11183}
11184_ACEOF
11185rm -f conftest.$ac_objext conftest$ac_exeext
11186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11187 (eval $ac_link) 2>conftest.er1
11188 ac_status=$?
11189 grep -v '^ *+' conftest.er1 >conftest.err
11190 rm -f conftest.er1
11191 cat conftest.err >&5
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); } &&
11194 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11196 (eval $ac_try) 2>&5
11197 ac_status=$?
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); }; } &&
11200 { ac_try='test -s conftest$ac_exeext'
11201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11202 (eval $ac_try) 2>&5
11203 ac_status=$?
11204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 (exit $ac_status); }; }; then
11206 rxvt_perl_link=yes
11207else
11208 echo "$as_me: failed program was:" >&5
11209sed 's/^/| /' conftest.$ac_ext >&5
11210
11211rxvt_perl_link=no
11212fi
11213rm -f conftest.err conftest.$ac_objext \
11214 conftest$ac_exeext conftest.$ac_ext
11215 CXXFLAGS="$save_CXXFLAGS"
11216 LIBS="$save_LIBS"
11217
11218 if test x$rxvt_perl_link = xyes; then
11219 echo "$as_me:$LINENO: result: ok" >&5
11220echo "${ECHO_T}ok" >&6
11221
11222cat >>confdefs.h <<\_ACEOF
11223#define ENABLE_PERL 1
11224_ACEOF
11225
11226 IF_PERL=
11227 PERL_O=rxvtperl.o
11228 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
11229 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
11230 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
11231 else
11232 { { echo "$as_me:$LINENO: error: no, unable to link" >&5
11233echo "$as_me: error: no, unable to link" >&2;}
11234 { (exit 1); exit 1; }; }
11235 fi
11236 else
11237 { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5
11238echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;}
11239 { (exit 1); exit 1; }; }
11240 fi
11241fi
11242
11243
11244
11245
11246
11247
11248
11249if test x$support_perl = xyes; then
11250 support_frills=yes
11251fi
11252
11253
11254CFLAGS=${CFLAGS--O}
11255LDFLAGS=${LDFLAGS--O}
11256
11257CPPFLAGS="$CPPFLAGS"
11258
11259
11260
11261
11262
11263
11264
11265if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
11266 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
11267 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
11268 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
11269 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
11270 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
11271fi
11272
11273
11274
11275
11276
11277test "$program_prefix" != NONE &&
11278 program_transform_name="s,^,$program_prefix,;$program_transform_name"
11279# Use a double $ so make ignores it.
11280test "$program_suffix" != NONE &&
11281 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
11282# Double any \ or $. echo might interpret backslashes.
11283# By default was `s,x,x', remove it if useless.
11284cat <<\_ACEOF >conftest.sed
11285s/[\\$]/&&/g;s/;s,x,x,$//
11286_ACEOF
11287program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
11288rm conftest.sed
11289
11290
11291
11292
11293
11294if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
11295 include_stdint_h="#include <stdint.h>"
11296else
11297 include_stdint_h="/* #include <stdint.h> */"
11298fi
11299if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
11300 include_stdarg_h="#include <cstdarg>"
11301else
11302 include_stdarg_h="/* #include <cstdarg> */"
11303fi
11304if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
11305 include_stdlib_h="#include <cstdlib>"
11306else
11307 include_stdlib_h="/* #include <cstdlib> */"
11308fi
11309if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
11310 include_unistd_h="#include <unistd.h>"
11311else
11312 include_unistd_h="/* #include <unistd.h> */"
11313fi
11314if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
11315 include_string_h="#include <cstring>"
11316else
11317 include_string_h="/* #include <cstring> */"
11318fi
11319if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
11320 include_fcntl_h="#include <fcntl.h>"
11321else
11322 include_fcntl_h="/* #include <fcntl.h> */"
11323fi
11324if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
11325 include_util_h="#include <util.h>"
11326else
11327 include_util_h="/* #include <util.h> */"
11328fi
11329if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
11330 include_assert_h="#include <assert.h>"
11331else
11332 include_assert_h="/* #include <assert.h> */"
11333fi
11334if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
11335 include_sys_ioctl_h="#include <sys/ioctl.h>"
11336else
11337 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
11338fi
11339if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
11340 include_sys_select_h="#include <sys/select.h>"
11341else
11342 include_sys_select_h="/* #include <sys/select.h> */"
11343fi
11344if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
11345 include_sys_strredir_h="#include <sys/strredir.h>"
11346else
11347 include_sys_strredir_h="/* #include <sys/strredir.h> */"
11348fi
11349if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
11350 include_sys_time_h="#include <sys/time.h>"
11351else
11352 include_sys_time_h="/* #include <sys/time.h> */"
11353fi
11354if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
11355 include_time_h="#include <time.h>"
11356else
11357 include_time_h="/* #include <time.h> */"
11358fi
11359
16810 ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/test/Makefile src/rxvtlib.h W11/Makefile" 11360 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h"
11361
16811cat >confcache <<\_ACEOF 11362cat >confcache <<\_ACEOF
16812# This file is a shell script that caches the results of configure 11363# This file is a shell script that caches the results of configure
16813# tests run on this system so they can be shared between configure 11364# tests run on this system so they can be shared between configure
16814# scripts and configure runs, see configure's option --config-cache. 11365# scripts and configure runs, see configure's option --config-cache.
16815# It is not useful on other systems. If it contains results you don't 11366# It is not useful on other systems. If it contains results you don't
17331cat >>$CONFIG_STATUS <<\_ACEOF 11882cat >>$CONFIG_STATUS <<\_ACEOF
17332for ac_config_target in $ac_config_targets 11883for ac_config_target in $ac_config_targets
17333do 11884do
17334 case "$ac_config_target" in 11885 case "$ac_config_target" in
17335 # Handling of arguments. 11886 # Handling of arguments.
17336 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
17337 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11887 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17338 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 11888 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17339 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 11889 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17340 "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
17341 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; 11890 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
17342 "W11/Makefile" ) CONFIG_FILES="$CONFIG_FILES W11/Makefile" ;;
17343 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;; 11891 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
17344 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 11892 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17345echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 11893echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17346 { (exit 1); exit 1; }; };; 11894 { (exit 1); exit 1; }; };;
17347 esac 11895 esac
17348done 11896done
17423s,@DEFS@,$DEFS,;t t 11971s,@DEFS@,$DEFS,;t t
17424s,@ECHO_C@,$ECHO_C,;t t 11972s,@ECHO_C@,$ECHO_C,;t t
17425s,@ECHO_N@,$ECHO_N,;t t 11973s,@ECHO_N@,$ECHO_N,;t t
17426s,@ECHO_T@,$ECHO_T,;t t 11974s,@ECHO_T@,$ECHO_T,;t t
17427s,@LIBS@,$LIBS,;t t 11975s,@LIBS@,$LIBS,;t t
11976s,@build@,$build,;t t
11977s,@build_cpu@,$build_cpu,;t t
11978s,@build_vendor@,$build_vendor,;t t
11979s,@build_os@,$build_os,;t t
11980s,@host@,$host,;t t
11981s,@host_cpu@,$host_cpu,;t t
11982s,@host_vendor@,$host_vendor,;t t
11983s,@host_os@,$host_os,;t t
17428s,@VERSION@,$VERSION,;t t 11984s,@VERSION@,$VERSION,;t t
17429s,@DATE@,$DATE,;t t 11985s,@DATE@,$DATE,;t t
17430s,@LSMDATE@,$LSMDATE,;t t 11986s,@LSMDATE@,$LSMDATE,;t t
17431s,@LIBVERSION@,$LIBVERSION,;t t 11987s,@LIBVERSION@,$LIBVERSION,;t t
17432s,@CC@,$CC,;t t 11988s,@CC@,$CC,;t t
17441s,@ac_ct_CXX@,$ac_ct_CXX,;t t 11997s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17442s,@CPP@,$CPP,;t t 11998s,@CPP@,$CPP,;t t
17443s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 11999s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17444s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 12000s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17445s,@INSTALL_DATA@,$INSTALL_DATA,;t t 12001s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17446s,@AWK@,$AWK,;t t 12002s,@EGREP@,$EGREP,;t t
17447s,@LINKER@,$LINKER,;t t 12003s,@LINKER@,$LINKER,;t t
17448s,@CXXCPP@,$CXXCPP,;t t
17449s,@EGREP@,$EGREP,;t t
17450s,@build@,$build,;t t
17451s,@build_cpu@,$build_cpu,;t t
17452s,@build_vendor@,$build_vendor,;t t
17453s,@build_os@,$build_os,;t t
17454s,@host@,$host,;t t
17455s,@host_cpu@,$host_cpu,;t t
17456s,@host_vendor@,$host_vendor,;t t
17457s,@host_os@,$host_os,;t t
17458s,@LN_S@,$LN_S,;t t
17459s,@ECHO@,$ECHO,;t t
17460s,@RANLIB@,$RANLIB,;t t
17461s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17462s,@STRIP@,$STRIP,;t t
17463s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17464s,@LIBTOOL@,$LIBTOOL,;t t
17465s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t 12004s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
17466s,@RXVTNAME@,$RXVTNAME,;t t 12005s,@RXVTNAME@,$RXVTNAME,;t t
17467s,@MV@,$MV,;t t 12006s,@MV@,$MV,;t t
17468s,@RM@,$RM,;t t 12007s,@RM@,$RM,;t t
17469s,@CP@,$CP,;t t 12008s,@CP@,$CP,;t t
17470s,@LN@,$LN,;t t 12009s,@LN@,$LN,;t t
17471s,@SED@,$SED,;t t 12010s,@SED@,$SED,;t t
12011s,@ECHO@,$ECHO,;t t
17472s,@CMP@,$CMP,;t t 12012s,@CMP@,$CMP,;t t
17473s,@TBL@,$TBL,;t t 12013s,@TIC@,$TIC,;t t
12014s,@CXXCPP@,$CXXCPP,;t t
17474s,@X_CFLAGS@,$X_CFLAGS,;t t 12015s,@X_CFLAGS@,$X_CFLAGS,;t t
17475s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 12016s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17476s,@X_LIBS@,$X_LIBS,;t t 12017s,@X_LIBS@,$X_LIBS,;t t
17477s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 12018s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17478s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t 12019s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
17482s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t 12023s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
17483s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t 12024s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
17484s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t 12025s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
17485s,@rxvt_intp_define@,$rxvt_intp_define,;t t 12026s,@rxvt_intp_define@,$rxvt_intp_define,;t t
17486s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t 12027s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
12028s,@PKG_CONFIG@,$PKG_CONFIG,;t t
12029s,@XFT_CONFIG@,$XFT_CONFIG,;t t
12030s,@PERL@,$PERL,;t t
12031s,@PERLLIB@,$PERLLIB,;t t
12032s,@PERLFLAGS@,$PERLFLAGS,;t t
12033s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t
12034s,@IF_PERL@,$IF_PERL,;t t
12035s,@PERL_O@,$PERL_O,;t t
17487s,@DEBUG@,$DEBUG,;t t 12036s,@DEBUG@,$DEBUG,;t t
17488s,@DINCLUDE@,$DINCLUDE,;t t 12037s,@DINCLUDE@,$DINCLUDE,;t t
17489s,@DLIB@,$DLIB,;t t 12038s,@DLIB@,$DLIB,;t t
17490s,@include_stdint_h@,$include_stdint_h,;t t 12039s,@include_stdint_h@,$include_stdint_h,;t t
17491s,@include_stdarg_h@,$include_stdarg_h,;t t 12040s,@include_stdarg_h@,$include_stdarg_h,;t t
17500s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t 12049s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t
17501s,@include_sys_time_h@,$include_sys_time_h,;t t 12050s,@include_sys_time_h@,$include_sys_time_h,;t t
17502s,@include_time_h@,$include_time_h,;t t 12051s,@include_time_h@,$include_time_h,;t t
17503s,@LIBOBJS@,$LIBOBJS,;t t 12052s,@LIBOBJS@,$LIBOBJS,;t t
17504s,@LTLIBOBJS@,$LTLIBOBJS,;t t 12053s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17505/@MCOMMON@/r $MCOMMON
17506s,@MCOMMON@,,;t t
17507CEOF 12054CEOF
17508 12055
17509_ACEOF 12056_ACEOF
17510 12057
17511 cat >>$CONFIG_STATUS <<\_ACEOF 12058 cat >>$CONFIG_STATUS <<\_ACEOF
18021fi 12568fi
18022 12569
18023echo " 12570echo "
18024The following are set in config.h 12571The following are set in config.h
18025" 12572"
18026echo " pty/tty type: "$rxvt_cv_ptys
18027if test x$support_utmp != xyes; then 12573if test x$support_utmp != xyes; then
18028 echo " utmp support: disabled" 12574 echo " utmp support: disabled"
18029 echo 12575 echo
18030else 12576else
18031 echo " utmp support: enabled 12577 echo " utmp support: enabled
18032 utmp file: $rxvt_cv_path_utmp 12578 utmp file: $rxvt_cv_path_utmp
18033 utmpx file: $rxvt_cv_path_utmpx 12579 utmpx file: $rxvt_cv_path_utmpx
18034 wtmp file: $rxvt_cv_path_wtmp 12580 wtmp file: $rxvt_cv_path_wtmp
18035 wtmpx file: $rxvt_cv_path_wtmpx 12581 wtmpx file: $rxvt_cv_path_wtmpx
18036 lastlog file: $rxvt_cv_path_lastlog 12582 lastlog file: $rxvt_cv_path_lastlog
18037 ttys/ttytab file: $rxvt_cv_path_ttytab" 12583 ttys/ttytab file: $rxvt_cv_path_ttytab
12584 embedded perl: $support_perl"
18038 echo 12585 echo
18039fi 12586fi
18040if test x$term != x; then 12587if test x$term != x; then
18041 echo " set TERM to: $term" 12588 echo " set TERM to: $term"
18042fi 12589fi
18047echo " resource class: $RESCLASS" 12594echo " resource class: $RESCLASS"
18048if test x$RESFALLBACK != x; then 12595if test x$RESFALLBACK != x; then
18049 echo " resource class fallback: $RESFALLBACK" 12596 echo " resource class fallback: $RESFALLBACK"
18050fi 12597fi
18051echo 12598echo
18052if test x$rxvt_cv_ptys = xUNKNOWN; then
18053 echo ".----------------------------------------------------------------."
18054 echo ". WARNING: could not determine pty/tty type. Do not build until ."
18055 echo ". the appropriate PTYS_ARE_* is defined in config.h ."
18056 echo ".----------------------------------------------------------------."
18057fi
18058if test x$support_xpm = xneedsmanualspecification; then 12599if test x$support_xpm = xneedsmanualspecification; then
18059 echo ".----------------------------------------------------------------." 12600 echo ".----------------------------------------------------------------."
18060 echo ". WARNING: --enable-xpm-background was specified however the ." 12601 echo ". WARNING: --enable-xpm-background was specified however the ."
18061 echo ". XPM includes files and libraries could not be found. ." 12602 echo ". XPM includes files and libraries could not be found. ."
18062 echo ". XPM backgrounds are now being DISABLED! If you want ." 12603 echo ". XPM backgrounds are now being DISABLED! If you want ."
18071 echo ". functions could not be found. ." 12612 echo ". functions could not be found. ."
18072 echo ". XIM is now being DISABLED! ." 12613 echo ". XIM is now being DISABLED! ."
18073 echo ".----------------------------------------------------------------." 12614 echo ".----------------------------------------------------------------."
18074fi 12615fi
18075 12616
18076echo " *** Please check src/feature.h for further options ***" 12617echo " *** Optionally check src/feature.h for further options ***"
18077echo 12618echo
18078 12619
18079echo ".----------------------------------------------------------------." 12620echo ".----------------------------------------------------------------."
18080echo ". NOTE: most features are disabled by default, try ." 12621echo ". NOTE: some features are disabled by default, try ."
18081echo ". configure --help to get an idea of the optional features ." 12622echo ". configure --help to get an idea of the optional features, ."
12623echo ". or read ./README.configure ."
12624echo ". ."
12625echo ". The script ./reconf gives a reasonable baseline, try it if ."
12626echo ". you do not want to read documentation and still want some ."
12627echo ". useful features. ."
18082echo ".----------------------------------------------------------------." 12628echo ".----------------------------------------------------------------."
18083echo 12629echo
18084 12630

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines