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

Comparing rxvt-unicode/configure (file contents):
Revision 1.11 by pcg, Wed Feb 25 12:03:46 2004 UTC vs.
Revision 1.95 by root, Sat Jan 28 21:25:11 2006 UTC

239 239
240# CDPATH. 240# CDPATH.
241$as_unset CDPATH 241$as_unset CDPATH
242 242
243 243
244# Find the correct PATH separator. Usually this is `:', but
245# DJGPP uses `;' like DOS.
246if test "X${PATH_SEPARATOR+set}" != Xset; then
247 UNAME=${UNAME-`uname 2>/dev/null`}
248 case X$UNAME in
249 *-DOS) lt_cv_sys_path_separator=';' ;;
250 *) lt_cv_sys_path_separator=':' ;;
251 esac
252fi
253
254
255# Check that we are running under the correct shell.
256SHELL=${CONFIG_SHELL-/bin/sh}
257
258case "X$ECHO" in
259X*--fallback-echo)
260 # Remove one level of quotation (which was required for Make).
261 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
262 ;;
263esac
264
265echo=${ECHO-echo}
266if test "X$1" = X--no-reexec; then
267 # Discard the --no-reexec flag, and continue.
268 shift
269elif test "X$1" = X--fallback-echo; then
270 # Avoid inline document here, it may be left over
271 :
272elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
273 # Yippee, $echo works!
274 :
275else
276 # Restart under the correct shell.
277 exec $SHELL "$0" --no-reexec ${1+"$@"}
278fi
279
280if test "X$1" = X--fallback-echo; then
281 # used as fallback echo
282 shift
283 cat <<EOF
284
285EOF
286 exit 0
287fi
288
289# The HP-UX ksh and POSIX shell print the target directory to stdout
290# if CDPATH is set.
291if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
292
293if test -z "$ECHO"; then
294if test "X${echo_test_string+set}" != Xset; then
295# find a string as large as possible, as long as the shell can cope with it
296 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
297 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
298 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
299 echo_test_string="`eval $cmd`" &&
300 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301 then
302 break
303 fi
304 done
305fi
306
307if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
308 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
309 test "X$echo_testing_string" = "X$echo_test_string"; then
310 :
311else
312 # The Solaris, AIX, and Digital Unix default echo programs unquote
313 # backslashes. This makes it impossible to quote backslashes using
314 # echo "$something" | sed 's/\\/\\\\/g'
315 #
316 # So, first we look for a working echo in the user's PATH.
317
318 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
319 for dir in $PATH /usr/ucb; do
320 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323 test "X$echo_testing_string" = "X$echo_test_string"; then
324 echo="$dir/echo"
325 break
326 fi
327 done
328 IFS="$save_ifs"
329
330 if test "X$echo" = Xecho; then
331 # We didn't find a better echo, so look for alternatives.
332 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334 test "X$echo_testing_string" = "X$echo_test_string"; then
335 # This shell has a builtin print -r that does the trick.
336 echo='print -r'
337 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338 test "X$CONFIG_SHELL" != X/bin/ksh; then
339 # If we have ksh, try running ltconfig again with it.
340 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341 export ORIGINAL_CONFIG_SHELL
342 CONFIG_SHELL=/bin/ksh
343 export CONFIG_SHELL
344 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345 else
346 # Try using printf.
347 echo='printf %s\n'
348 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350 test "X$echo_testing_string" = "X$echo_test_string"; then
351 # Cool, printf works
352 :
353 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358 export CONFIG_SHELL
359 SHELL="$CONFIG_SHELL"
360 export SHELL
361 echo="$CONFIG_SHELL $0 --fallback-echo"
362 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363 test "X$echo_testing_string" = 'X\t' &&
364 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365 test "X$echo_testing_string" = "X$echo_test_string"; then
366 echo="$CONFIG_SHELL $0 --fallback-echo"
367 else
368 # maybe with a smaller string...
369 prev=:
370
371 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373 then
374 break
375 fi
376 prev="$cmd"
377 done
378
379 if test "$prev" != 'sed 50q "$0"'; then
380 echo_test_string=`eval $prev`
381 export echo_test_string
382 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383 else
384 # Oops. We lost completely, so just stick with echo.
385 echo=echo
386 fi
387 fi
388 fi
389 fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
400
401
402# Name of the host. 244# Name of the host.
403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404# so uname gets run too. 246# so uname gets run too.
405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406 248
465#endif 307#endif
466#if HAVE_UNISTD_H 308#if HAVE_UNISTD_H
467# include <unistd.h> 309# include <unistd.h>
468#endif" 310#endif"
469 311
470ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP LIBTOOL INSTALL_LIBRXVT MV RM CP LN SED CMP TBL X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define DEBUG DINCLUDE DLIB RXVTNAME include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS' 312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA EGREP LINKER INSTALL_LIBRXVT RXVTNAME MV 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
934ac_cv_env_CXXFLAGS_value=$CXXFLAGS 776ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935ac_env_CPP_set=${CPP+set} 777ac_env_CPP_set=${CPP+set}
936ac_env_CPP_value=$CPP 778ac_env_CPP_value=$CPP
937ac_cv_env_CPP_set=${CPP+set} 779ac_cv_env_CPP_set=${CPP+set}
938ac_cv_env_CPP_value=$CPP 780ac_cv_env_CPP_value=$CPP
781ac_env_CXXCPP_set=${CXXCPP+set}
782ac_env_CXXCPP_value=$CXXCPP
783ac_cv_env_CXXCPP_set=${CXXCPP+set}
784ac_cv_env_CXXCPP_value=$CXXCPP
939 785
940# 786#
941# Report the --help message. 787# Report the --help message.
942# 788#
943if test "$ac_init_help" = "long"; then 789if test "$ac_init_help" = "long"; then
1017 cat <<\_ACEOF 863 cat <<\_ACEOF
1018 864
1019Optional Features: 865Optional Features:
1020 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 866 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1021 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 867 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1022 --enable-shared=PKGS build shared libraries default=no
1023 --enable-static=PKGS build static libraries default=yes
1024 --enable-fast-install=PKGS optimize for fast installation default=yes
1025 --disable-libtool-lock avoid locking (might break parallel builds)
1026 --enable-everything enable standard non-multichoice features: marked * 868 --enable-everything enable standard non-multichoice features
1027 NOTE: this option is order dependent 869 NOTE: this option is order dependent
1028 NOTE: automatically enabled with --enable-shared 870 NOTE: automatically enabled with --enable-shared
1029 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters 871 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
872 --enable-combining enable composition of base and combining characters
1030 --enable-xft enable xft support on systems that have it 873 --enable-xft enable xft support on systems that have it
1031 --enable-utmp enable utmp (utmpx) support 874 --enable-font-styles enable bold and italic support
1032 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1033 --enable-lastlog enable lastlog support (requires --enable-utmp)
1034 --enable-xpm-background enable XPM background pixmaps 875 --enable-xpm-background enable XPM background pixmaps
1035 --enable-transparency enable transparent backgrounds 876 --enable-transparency enable transparent backgrounds
1036 --enable-menubar enable menubar 877 --enable-tinting enable tinting of transparent bg
878 --enable-fading enable colors fading when off focus
1037 --enable-rxvt-scroll enable rxvt style scrollbar 879 --enable-rxvt-scroll enable rxvt style scrollbar
1038 --enable-next-scroll enable NeXT style scrollbar 880 --enable-next-scroll enable NeXT style scrollbar
1039 --enable-xterm-scroll enable Xterm style scrollbar 881 --enable-xterm-scroll enable Xterm style scrollbar
882 --enable-perl enable embedded perl interpreter
1040 --enable-plain-scroll enable plain style scrollbar 883 --enable-plain-scroll enable plain style scrollbar
1041 --enable-half-shadow use half width/height shadow on rxvt scrollbar
1042 --enable-xim XIM (X Input Method) protocol support 884 --enable-xim XIM (X Input Method) protocol support
1043 --enable-ttygid enable tty setting to group named "tty"
1044 --disable-backspace-key disable handling of the backspace key 885 --disable-backspace-key disable handling of the backspace key
1045 --disable-delete-key disable handling of the delete key 886 --disable-delete-key disable handling of the delete key
1046 --disable-resources disable all resource checking 887 --disable-resources disable all resource checking
1047 --enable-xgetdefault enable resources via X instead of our small version 888 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1048 --enable-strings enable some replacement system functions 889 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
1049 --disable-swapscreen disable swap screen support 890 --disable-swapscreen disable swap screen support
891 --enable-iso14755 enable support for extended ISO 14755 modes
1050 --enable-frills enable support for rarely used features 892 --enable-frills enable support for rarely used features
1051 --enable-linespace enable support for linespace
1052 --enable-24bit enable support for using 24bit visuals if available
1053 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 893 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1054 --enable-selectionscrolling enable scrolling during selections 894 --enable-selectionscrolling enable scrolling during selections
1055 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 895 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1056 --enable-slipwheeling enable slip wheel scrolling (requires previous) 896 --enable-slipwheeling enable slip wheel scrolling (requires previous)
1057 --enable-old-selection enable v2.20 (& prior) mouse selection style support
1058 --disable-new-selection disable new mouse (xterm) selection style support
1059 --enable-dmalloc enable Gray Watson's malloc - for debugging use
1060 --enable-dlmalloc enable Doug Lea's malloc - for production use
1061 NOTE: enable only one malloc package
1062 --enable-smart-resize enable smart growth/shrink behaviour 897 --enable-smart-resize enable smart growth/shrink behaviour
1063 --enable-256-color enable 256-color support
1064 --enable-cursor-blink enable blinking cursor
1065 --enable-text-blink enable blinking text 898 --enable-text-blink enable blinking text
1066 --enable-pointer-blank enable pointer blank when typing or inactive pointer 899 --enable-pointer-blank enable pointer blank when typing or inactive pointer
900 --enable-utmp enable utmp (utmpx) support
901 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
902 --enable-lastlog enable lastlog support (requires --enable-utmp)
1067 903
1068Optional Packages: 904Optional Packages:
1069 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 905 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1070 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 906 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1071 --with-gnu-ld assume the C compiler uses GNU ld default=no
1072 --with-pic try to use only PIC/non-PIC objects default=use both
1073 --with-codesets=NAME,... compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,vn,all) 907 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
1074 --with-encoding=NAME set language default encoding to NAME (default: sjis) 908 --with-res-name=NAME use this as default resource name (default: urxvt)
1075 (eucj|sjis|big5|gb|kr|noenc) 909 --with-res-class=CLASS use this as the resource class (default: URxvt)
910 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1076 --with-term=NAME set the terminal to NAME (default \"rxvt\") 911 --with-term=NAME set the terminal to NAME (default: rxvt)
1077 --with-terminfo=PATH set the path to the terminfo tree to PATH 912 --with-terminfo=PATH set the path to the terminfo tree to PATH
1078 --with-x use the X Window System 913 --with-x use the X Window System
1079 --with-xpm-includes=DIR use XPM includes in DIR 914 --with-xpm-includes=DIR use XPM includes in DIR
1080 --with-xpm-library=DIR use XPM library in DIR 915 --with-xpm-library=DIR use XPM library in DIR
1081 --with-xpm use XPM 916 --with-xpm use XPM
1088 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 923 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1089 headers in a nonstandard directory <include dir> 924 headers in a nonstandard directory <include dir>
1090 CXX C++ compiler command 925 CXX C++ compiler command
1091 CXXFLAGS C++ compiler flags 926 CXXFLAGS C++ compiler flags
1092 CPP C preprocessor 927 CPP C preprocessor
928 CXXCPP C++ preprocessor
1093 929
1094Use these variables to override the choices made by `configure' or to help 930Use these variables to override the choices made by `configure' or to help
1095it to find libraries and programs with nonstandard names/locations. 931it to find libraries and programs with nonstandard names/locations.
1096 932
1097_ACEOF 933_ACEOF
1527 1363
1528 1364
1529 1365
1530 1366
1531 1367
1368
1369
1370 ac_config_headers="$ac_config_headers config.h:config.h.in"
1371
1372
1532ac_aux_dir= 1373ac_aux_dir=
1533for ac_dir in autoconf $srcdir/autoconf; do 1374for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1534 if test -f $ac_dir/install-sh; then 1375 if test -f $ac_dir/install-sh; then
1535 ac_aux_dir=$ac_dir 1376 ac_aux_dir=$ac_dir
1536 ac_install_sh="$ac_aux_dir/install-sh -c" 1377 ac_install_sh="$ac_aux_dir/install-sh -c"
1537 break 1378 break
1538 elif test -f $ac_dir/install.sh; then 1379 elif test -f $ac_dir/install.sh; then
1544 ac_install_sh="$ac_aux_dir/shtool install -c" 1385 ac_install_sh="$ac_aux_dir/shtool install -c"
1545 break 1386 break
1546 fi 1387 fi
1547done 1388done
1548if test -z "$ac_aux_dir"; then 1389if test -z "$ac_aux_dir"; then
1549 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 1390 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1550echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} 1391echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1551 { (exit 1); exit 1; }; } 1392 { (exit 1); exit 1; }; }
1552fi 1393fi
1553ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1394ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1554ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1395ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1555ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1396ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1556 1397
1557 ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in" 1398# Make sure we can run config.sub.
1399$ac_config_sub sun4 >/dev/null 2>&1 ||
1400 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1401echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1402 { (exit 1); exit 1; }; }
1403
1404echo "$as_me:$LINENO: checking build system type" >&5
1405echo $ECHO_N "checking build system type... $ECHO_C" >&6
1406if test "${ac_cv_build+set}" = set; then
1407 echo $ECHO_N "(cached) $ECHO_C" >&6
1408else
1409 ac_cv_build_alias=$build_alias
1410test -z "$ac_cv_build_alias" &&
1411 ac_cv_build_alias=`$ac_config_guess`
1412test -z "$ac_cv_build_alias" &&
1413 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1414echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1415 { (exit 1); exit 1; }; }
1416ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1417 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1418echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1419 { (exit 1); exit 1; }; }
1420
1421fi
1422echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1423echo "${ECHO_T}$ac_cv_build" >&6
1424build=$ac_cv_build
1425build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1426build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1427build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1428
1429
1430echo "$as_me:$LINENO: checking host system type" >&5
1431echo $ECHO_N "checking host system type... $ECHO_C" >&6
1432if test "${ac_cv_host+set}" = set; then
1433 echo $ECHO_N "(cached) $ECHO_C" >&6
1434else
1435 ac_cv_host_alias=$host_alias
1436test -z "$ac_cv_host_alias" &&
1437 ac_cv_host_alias=$ac_cv_build_alias
1438ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1439 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1440echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1441 { (exit 1); exit 1; }; }
1442
1443fi
1444echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1445echo "${ECHO_T}$ac_cv_host" >&6
1446host=$ac_cv_host
1447host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1448host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1449host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1450
1558 1451
1559 1452
1560VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1453VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1561DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1454DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1562LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1563LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1564echo "" 1455echo ""
1565echo "configuring for rxvt $VERSION" 1456echo "configuring for rxvt $VERSION"
1566echo "" 1457echo ""
1458
1459orig_CXXFLAGS="$CXXFLAGS"
1567 1460
1568 1461
1569ac_ext=c 1462ac_ext=c
1570ac_cpp='$CPP $CPPFLAGS' 1463ac_cpp='$CPP $CPPFLAGS'
1571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3152 3045
3153test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3046test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3154 3047
3155test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3048test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3156 3049
3157for ac_prog in gawk mawk nawk awk
3158do
3159 # Extract the first word of "$ac_prog", so it can be a program name with args.
3160set dummy $ac_prog; ac_word=$2
3161echo "$as_me:$LINENO: checking for $ac_word" >&5
3162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3163if test "${ac_cv_prog_AWK+set}" = set; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3165else
3166 if test -n "$AWK"; then
3167 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3168else
3169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170for as_dir in $PATH
3171do
3172 IFS=$as_save_IFS
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176 ac_cv_prog_AWK="$ac_prog"
3177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 break 2
3179 fi
3180done
3181done
3182
3183fi
3184fi
3185AWK=$ac_cv_prog_AWK
3186if test -n "$AWK"; then
3187 echo "$as_me:$LINENO: result: $AWK" >&5
3188echo "${ECHO_T}$AWK" >&6
3189else
3190 echo "$as_me:$LINENO: result: no" >&5
3191echo "${ECHO_T}no" >&6
3192fi
3193
3194 test -n "$AWK" && break
3195done
3196
3197 3050
3198 3051
3199 3052
3200echo "$as_me:$LINENO: checking for egrep" >&5 3053echo "$as_me:$LINENO: checking for egrep" >&5
3201echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3054echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3363if test "$ac_cv_search_strerror" != no; then 3216if test "$ac_cv_search_strerror" != no; then
3364 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 3217 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3365 3218
3366fi 3219fi
3367 3220
3221ac_ext=cc
3222ac_cpp='$CXXCPP $CPPFLAGS'
3223ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3224ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3225ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3368 3226
3369# Check whether --enable-shared or --disable-shared was given.
3370if test "${enable_shared+set}" = set; then
3371 enableval="$enable_shared"
3372 p=${PACKAGE-default}
3373case "$enableval" in
3374yes) enable_shared=yes ;;
3375no) enable_shared=no ;;
3376*)
3377 enable_shared=no
3378 # Look at the argument we got. We use all the common list separators.
3379 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3380 for pkg in $enableval; do
3381 if test "X$pkg" = "X$p"; then
3382 enable_shared=yes
3383 fi
3384 done
3385 IFS="$ac_save_ifs"
3386 ;;
3387esac
3388else
3389 enable_shared=no
3390fi; # Check whether --enable-static or --disable-static was given.
3391if test "${enable_static+set}" = set; then
3392 enableval="$enable_static"
3393 p=${PACKAGE-default}
3394case "$enableval" in
3395yes) enable_static=yes ;;
3396no) enable_static=no ;;
3397*)
3398 enable_static=no
3399 # Look at the argument we got. We use all the common list separators.
3400 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3401 for pkg in $enableval; do
3402 if test "X$pkg" = "X$p"; then
3403 enable_static=yes
3404 fi
3405 done
3406 IFS="$ac_save_ifs"
3407 ;;
3408esac
3409else
3410 enable_static=yes
3411fi; # Check whether --enable-fast-install or --disable-fast-install was given.
3412if test "${enable_fast_install+set}" = set; then
3413 enableval="$enable_fast_install"
3414 p=${PACKAGE-default}
3415case "$enableval" in
3416yes) enable_fast_install=yes ;;
3417no) enable_fast_install=no ;;
3418*)
3419 enable_fast_install=no
3420 # Look at the argument we got. We use all the common list separators.
3421 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3422 for pkg in $enableval; do
3423 if test "X$pkg" = "X$p"; then
3424 enable_fast_install=yes
3425 fi
3426 done
3427 IFS="$ac_save_ifs"
3428 ;;
3429esac
3430else
3431 enable_fast_install=yes
3432fi;
3433# Make sure we can run config.sub.
3434$ac_config_sub sun4 >/dev/null 2>&1 ||
3435 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3436echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3437 { (exit 1); exit 1; }; }
3438 3227
3439echo "$as_me:$LINENO: checking build system type" >&5 3228if test x$GCC = xyes && test x$GXX = xyes; then
3440echo $ECHO_N "checking build system type... $ECHO_C" >&6
3441if test "${ac_cv_build+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3443else
3444 ac_cv_build_alias=$build_alias
3445test -z "$ac_cv_build_alias" &&
3446 ac_cv_build_alias=`$ac_config_guess`
3447test -z "$ac_cv_build_alias" &&
3448 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3449echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3450 { (exit 1); exit 1; }; }
3451ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3452 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3453echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3454 { (exit 1); exit 1; }; }
3455
3456fi
3457echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3458echo "${ECHO_T}$ac_cv_build" >&6
3459build=$ac_cv_build
3460build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3461build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3462build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3463
3464
3465echo "$as_me:$LINENO: checking host system type" >&5
3466echo $ECHO_N "checking host system type... $ECHO_C" >&6
3467if test "${ac_cv_host+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3469else
3470 ac_cv_host_alias=$host_alias
3471test -z "$ac_cv_host_alias" &&
3472 ac_cv_host_alias=$ac_cv_build_alias
3473ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3474 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3475echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3476 { (exit 1); exit 1; }; }
3477
3478fi
3479echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3480echo "${ECHO_T}$ac_cv_host" >&6
3481host=$ac_cv_host
3482host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3483host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3484host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3485
3486
3487
3488# Check whether --with-gnu-ld or --without-gnu-ld was given.
3489if test "${with_gnu_ld+set}" = set; then
3490 withval="$with_gnu_ld"
3491 test "$withval" = no || with_gnu_ld=yes
3492else
3493 with_gnu_ld=no
3494fi;
3495ac_prog=ld
3496if test "$GCC" = yes; then
3497 # Check if gcc -print-prog-name=ld gives a path.
3498 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3499echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3500 case $host in
3501 *-*-mingw*)
3502 # gcc leaves a trailing carriage return which upsets mingw
3503 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3504 *)
3505 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3506 esac
3507 case "$ac_prog" in
3508 # Accept absolute paths.
3509 [\\/]* | [A-Za-z]:[\\/]*)
3510 re_direlt='/[^/][^/]*/\.\./'
3511 # Canonicalize the path of ld
3512 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3513 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3514 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3515 done
3516 test -z "$LD" && LD="$ac_prog"
3517 ;;
3518 "")
3519 # If it fails, then pretend we aren't using GCC.
3520 ac_prog=ld
3521 ;;
3522 *)
3523 # If it is relative, then search for the first ld in PATH.
3524 with_gnu_ld=unknown
3525 ;;
3526 esac
3527elif test "$with_gnu_ld" = yes; then
3528 echo "$as_me:$LINENO: checking for GNU ld" >&5 3229 echo "$as_me:$LINENO: checking for working libsupc++" >&5
3529echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3230echo $ECHO_N "checking for working libsupc++... $ECHO_C" >&6
3530else 3231 save_CXX="$CXX"
3531 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3532echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3533fi
3534if test "${lt_cv_path_LD+set}" = set; then
3535 echo $ECHO_N "(cached) $ECHO_C" >&6
3536else
3537 if test -z "$LD"; then
3538 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3539 for ac_dir in $PATH; do
3540 test -z "$ac_dir" && ac_dir=.
3541 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3542 lt_cv_path_LD="$ac_dir/$ac_prog"
3543 # Check to see if the program is GNU ld. I'd rather use --version,
3544 # but apparently some GNU ld's only accept -v.
3545 # Break only if it was the GNU/non-GNU ld that we prefer.
3546 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3547 test "$with_gnu_ld" != no && break
3548 else
3549 test "$with_gnu_ld" != yes && break
3550 fi
3551 fi
3552 done
3553 IFS="$ac_save_ifs"
3554else
3555 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3556fi
3557fi
3558
3559LD="$lt_cv_path_LD"
3560if test -n "$LD"; then
3561 echo "$as_me:$LINENO: result: $LD" >&5
3562echo "${ECHO_T}$LD" >&6
3563else
3564 echo "$as_me:$LINENO: result: no" >&5
3565echo "${ECHO_T}no" >&6
3566fi
3567test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3568echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3569 { (exit 1); exit 1; }; }
3570echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3571echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3572if test "${lt_cv_prog_gnu_ld+set}" = set; then
3573 echo $ECHO_N "(cached) $ECHO_C" >&6
3574else
3575 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3576if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3577 lt_cv_prog_gnu_ld=yes
3578else
3579 lt_cv_prog_gnu_ld=no
3580fi
3581fi
3582echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3583echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3584with_gnu_ld=$lt_cv_prog_gnu_ld
3585
3586
3587echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3588echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3589if test "${lt_cv_ld_reload_flag+set}" = set; then
3590 echo $ECHO_N "(cached) $ECHO_C" >&6
3591else
3592 lt_cv_ld_reload_flag='-r'
3593fi
3594echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3595echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3596reload_flag=$lt_cv_ld_reload_flag
3597test -n "$reload_flag" && reload_flag=" $reload_flag"
3598
3599echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3600echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3601if test "${lt_cv_path_NM+set}" = set; then
3602 echo $ECHO_N "(cached) $ECHO_C" >&6
3603else
3604 if test -n "$NM"; then
3605 # Let the user override the test.
3606 lt_cv_path_NM="$NM"
3607else
3608 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3609 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3610 test -z "$ac_dir" && ac_dir=.
3611 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3612 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3613 # Check to see if the nm accepts a BSD-compat flag.
3614 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3615 # nm: unknown option "B" ignored
3616 # Tru64's nm complains that /dev/null is an invalid object file
3617 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3618 lt_cv_path_NM="$tmp_nm -B"
3619 break
3620 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3621 lt_cv_path_NM="$tmp_nm -p"
3622 break
3623 else
3624 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3625 continue # so that we can try to find one that supports BSD flags
3626 fi
3627 fi
3628 done
3629 IFS="$ac_save_ifs"
3630 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3631fi
3632fi
3633
3634NM="$lt_cv_path_NM"
3635echo "$as_me:$LINENO: result: $NM" >&5
3636echo "${ECHO_T}$NM" >&6
3637
3638echo "$as_me:$LINENO: checking whether ln -s works" >&5
3639echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3640LN_S=$as_ln_s
3641if test "$LN_S" = "ln -s"; then
3642 echo "$as_me:$LINENO: result: yes" >&5
3643echo "${ECHO_T}yes" >&6
3644else
3645 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3646echo "${ECHO_T}no, using $LN_S" >&6
3647fi
3648
3649echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3650echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3651if test "${lt_cv_deplibs_check_method+set}" = set; then
3652 echo $ECHO_N "(cached) $ECHO_C" >&6
3653else
3654 lt_cv_file_magic_cmd='$MAGIC_CMD'
3655lt_cv_file_magic_test_file=
3656lt_cv_deplibs_check_method='unknown'
3657# Need to set the preceding variable on all platforms that support
3658# interlibrary dependencies.
3659# 'none' -- dependencies not supported.
3660# `unknown' -- same as none, but documents that we really don't know.
3661# 'pass_all' -- all dependencies passed with no checks.
3662# 'test_compile' -- check by making test program.
3663# ['file_magic [regex]'] -- check by looking for files in library path
3664# which responds to the $file_magic_cmd with a given egrep regex.
3665# If you have `file' or equivalent on your system and you're not sure
3666# whether `pass_all' will *always* work, you probably want this one.
3667
3668case "$host_os" in
3669aix4*)
3670 lt_cv_deplibs_check_method=pass_all
3671 ;;
3672
3673beos*)
3674 lt_cv_deplibs_check_method=pass_all
3675 ;;
3676
3677bsdi4*)
3678 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3679 lt_cv_file_magic_cmd='/usr/bin/file -L'
3680 lt_cv_file_magic_test_file=/shlib/libc.so
3681 ;;
3682
3683cygwin* | mingw* | pw32*)
3684 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3685 lt_cv_file_magic_cmd='$OBJDUMP -f'
3686 ;;
3687
3688darwin*|rhapsody*)
3689 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3690 lt_cv_file_magiic_cmd=/usr/bin/file
3691 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3692 ;;
3693
3694freebsd*)
3695 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3696 case "$host_cpu" in
3697 i*86 )
3698 # Not sure whether the presence of OpenBSD here was a mistake.
3699 # Let's accept both of them until this is cleared up.
3700 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3701 lt_cv_file_magic_cmd=/usr/bin/file
3702 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3703 ;;
3704 esac
3705 else
3706 lt_cv_deplibs_check_method=pass_all
3707 fi
3708 ;;
3709
3710gnu*)
3711 lt_cv_deplibs_check_method=pass_all
3712 ;;
3713
3714hpux10.20*|hpux11*)
3715 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3716 lt_cv_file_magic_cmd=/usr/bin/file
3717 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3718 ;;
3719
3720irix5* | irix6*)
3721 case "$host_os" in
3722 irix5*)
3723 # this will be overridden with pass_all, but let us keep it just in case
3724 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3725 ;;
3726 *)
3727 case "$LD" in
3728 *-32|*"-32 ") libmagic=32-bit;;
3729 *-n32|*"-n32 ") libmagic=N32;;
3730 *-64|*"-64 ") libmagic=64-bit;;
3731 *) libmagic=never-match;;
3732 esac
3733 # this will be overridden with pass_all, but let us keep it just in case
3734 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3735 ;;
3736 esac
3737 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3738 lt_cv_deplibs_check_method=pass_all
3739 ;;
3740
3741# This must be Linux ELF.
3742linux-gnu*)
3743 case "$host_cpu" in
3744 alpha* | i*86 | powerpc* | sparc* | ia64* )
3745 lt_cv_deplibs_check_method=pass_all ;;
3746 *)
3747 # glibc up to 2.1.1 does not perform some relocations on ARM
3748 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3749 esac
3750 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3751 ;;
3752
3753netbsd*)
3754 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3755 lt_cv_deplibs_check_method='file_magic NetBSD/[a-z0-9]* demand paged shared library'
3756 else
3757 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3758 fi
3759 lt_cv_file_magic_cmd='/usr/bin/file -L'
3760 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3761 ;;
3762
3763newos6*)
3764 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3765 lt_cv_file_magic_cmd=/usr/bin/file
3766 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3767 ;;
3768
3769osf3* | osf4* | osf5*)
3770 # this will be overridden with pass_all, but let us keep it just in case
3771 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3772 lt_cv_file_magic_test_file=/shlib/libc.so
3773 lt_cv_deplibs_check_method=pass_all
3774 ;;
3775
3776sco3.2v5*)
3777 lt_cv_deplibs_check_method=pass_all
3778 ;;
3779
3780solaris*)
3781 lt_cv_deplibs_check_method=pass_all
3782 lt_cv_file_magic_test_file=/lib/libc.so
3783 ;;
3784
3785sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3786 case "$host_vendor" in
3787 motorola)
3788 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]'
3789 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3790 ;;
3791 ncr)
3792 lt_cv_deplibs_check_method=pass_all
3793 ;;
3794 sequent)
3795 lt_cv_file_magic_cmd='/bin/file'
3796 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3797 ;;
3798 sni)
3799 lt_cv_file_magic_cmd='/bin/file'
3800 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3801 lt_cv_file_magic_test_file=/lib/libc.so
3802 ;;
3803 esac
3804 ;;
3805esac
3806
3807fi
3808echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3809echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3810file_magic_cmd=$lt_cv_file_magic_cmd
3811deplibs_check_method=$lt_cv_deplibs_check_method
3812
3813
3814
3815
3816
3817
3818
3819# Check for command to grab the raw symbol name followed by C symbol from nm.
3820echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3821echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3822if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3824else
3825
3826# These are sane defaults that work on at least a few old systems.
3827# [They come from Ultrix. What could be older than Ultrix?!! ;)]
3828
3829# Character class describing NM global symbol codes.
3830symcode='[BCDEGRST]'
3831
3832# Regexp to match symbols that can be accessed directly from C.
3833sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3834
3835# Transform the above into a raw symbol and a C symbol.
3836symxfrm='\1 \2\3 \3'
3837
3838# Transform an extracted symbol line into a proper C declaration
3839lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3840
3841# Define system-specific variables.
3842case "$host_os" in
3843aix*)
3844 symcode='[BCDT]'
3845 ;;
3846cygwin* | mingw* | pw32*)
3847 symcode='[ABCDGISTW]'
3848 ;;
3849hpux*) # Its linker distinguishes data from code symbols
3850 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
3851 ;;
3852irix*)
3853 symcode='[BCDEGRST]'
3854 ;;
3855solaris* | sysv5*)
3856 symcode='[BDT]'
3857 ;;
3858sysv4)
3859 symcode='[DFNSTU]'
3860 ;;
3861esac
3862
3863# Handle CRLF in mingw tool chain
3864opt_cr=
3865case "$host_os" in
3866mingw*)
3867 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3868 ;;
3869esac
3870
3871# If we're using GNU nm, then use its standard symbol codes.
3872if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3873 symcode='[ABCDGISTW]'
3874fi
3875
3876# Try without a prefix undercore, then with it.
3877for ac_symprfx in "" "_"; do
3878
3879 # Write the raw and C identifiers.
3880lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3881
3882 # Check to see that the pipe works correctly.
3883 pipe_works=no
3884 rm -f conftest*
3885 cat > conftest.$ac_ext <<EOF
3886#ifdef __cplusplus
3887extern "C" {
3888#endif
3889char nm_test_var;
3890void nm_test_func(){}
3891#ifdef __cplusplus
3892}
3893#endif
3894main(){nm_test_var='a';nm_test_func();return(0);}
3895EOF
3896
3897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3898 (eval $ac_compile) 2>&5
3899 ac_status=$?
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); }; then
3902 # Now try to grab the symbols.
3903 nlist=conftest.nm
3904 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3905 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3906 ac_status=$?
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); } && test -s "$nlist"; then
3909 # Try sorting and uniquifying the output.
3910 if sort "$nlist" | uniq > "$nlist"T; then
3911 mv -f "$nlist"T "$nlist"
3912 else
3913 rm -f "$nlist"T
3914 fi
3915
3916 # Make sure that we snagged all the symbols we need.
3917 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3918 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3919 cat <<EOF > conftest.$ac_ext
3920#ifdef __cplusplus
3921extern "C" {
3922#endif
3923
3924EOF
3925 # Now generate the symbol file.
3926 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3927
3928 cat <<EOF >> conftest.$ac_ext
3929#if defined (__STDC__) && __STDC__
3930# define lt_ptr_t void *
3931#else
3932# define lt_ptr_t char *
3933# define const
3934#endif
3935
3936/* The mapping between symbol names and symbols. */
3937const struct {
3938 const char *name;
3939 lt_ptr_t address;
3940}
3941lt_preloaded_symbols[] =
3942{
3943EOF
3944 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$nlist" >> conftest.$ac_ext
3945 cat <<\EOF >> conftest.$ac_ext
3946 {0, (lt_ptr_t) 0}
3947};
3948
3949#ifdef __cplusplus
3950}
3951#endif
3952EOF
3953 # Now try linking the two files.
3954 mv conftest.$ac_objext conftstm.$ac_objext
3955 save_LIBS="$LIBS" 3232 save_LIBS="$LIBS"
3956 save_CFLAGS="$CFLAGS" 3233 CXX="$CC"
3957 LIBS="conftstm.$ac_objext" 3234 LIBS="$LIBS -lsupc++"
3958 CFLAGS="$CFLAGS$no_builtin_flag" 3235 LINKER="$CC"
3959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3960 (eval $ac_link) 2>&5
3961 ac_status=$?
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } && test -s conftest; then
3964 pipe_works=yes
3965 fi
3966 LIBS="$save_LIBS"
3967 CFLAGS="$save_CFLAGS"
3968 else
3969 echo "cannot find nm_test_func in $nlist" >&5
3970 fi
3971 else
3972 echo "cannot find nm_test_var in $nlist" >&5
3973 fi
3974 else
3975 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3976 fi
3977 else
3978 echo "$progname: failed program was:" >&5
3979 cat conftest.$ac_ext >&5
3980 fi
3981 rm -f conftest* conftst*
3982 3236
3983 # Do not use the global_symbol_pipe unless it works.
3984 if test "$pipe_works" = yes; then
3985 break
3986 else
3987 lt_cv_sys_global_symbol_pipe=
3988 fi
3989done
3990
3991fi
3992
3993global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3994if test -z "$lt_cv_sys_global_symbol_pipe"; then
3995 global_symbol_to_cdecl=
3996else
3997 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3998fi
3999if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
4000 echo "$as_me:$LINENO: result: failed" >&5
4001echo "${ECHO_T}failed" >&6
4002else
4003 echo "$as_me:$LINENO: result: ok" >&5
4004echo "${ECHO_T}ok" >&6
4005fi
4006
4007echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4008echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4009if test "${ac_cv_header_stdc+set}" = set; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
4011else
4012 cat >conftest.$ac_ext <<_ACEOF 3237cat >conftest.$ac_ext <<_ACEOF
4013/* confdefs.h. */ 3238/* confdefs.h. */
4014_ACEOF 3239_ACEOF
4015cat confdefs.h >>conftest.$ac_ext 3240cat confdefs.h >>conftest.$ac_ext
4016cat >>conftest.$ac_ext <<_ACEOF 3241cat >>conftest.$ac_ext <<_ACEOF
4017/* end confdefs.h. */ 3242/* end confdefs.h. */
4018#include <stdlib.h> 3243struct test { }; void f() try { throw new test; } catch (...) { throw; }
4019#include <stdarg.h>
4020#include <string.h>
4021#include <float.h>
4022
4023int 3244int
4024main () 3245main ()
4025{ 3246{
4026 3247
4027 ; 3248 ;
4028 return 0; 3249 return 0;
4029} 3250}
4030_ACEOF 3251_ACEOF
3252rm -f conftest.$ac_objext conftest$ac_exeext
3253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3254 (eval $ac_link) 2>conftest.er1
3255 ac_status=$?
3256 grep -v '^ *+' conftest.er1 >conftest.err
3257 rm -f conftest.er1
3258 cat conftest.err >&5
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); } &&
3261 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3263 (eval $ac_try) 2>&5
3264 ac_status=$?
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); }; } &&
3267 { ac_try='test -s conftest$ac_exeext'
3268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3269 (eval $ac_try) 2>&5
3270 ac_status=$?
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); }; }; then
3273 echo "$as_me:$LINENO: result: ok" >&5
3274echo "${ECHO_T}ok" >&6
3275else
3276 echo "$as_me: failed program was:" >&5
3277sed 's/^/| /' conftest.$ac_ext >&5
3278
3279
3280 echo "$as_me:$LINENO: result: no, making everything bigger and slower" >&5
3281echo "${ECHO_T}no, making everything bigger and slower" >&6
3282 LIBS="$save_LIBS"
3283 LINKER="$save_CXX"
3284
3285
3286fi
3287rm -f conftest.err conftest.$ac_objext \
3288 conftest$ac_exeext conftest.$ac_ext
3289 CXX="$save_CXX"
3290fi
3291LINKER=$LINKER
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
3299
3300if test -z "$orig_CXXFLAGS"; then
3301 if test x$GCC = xyes && test "x$GXX" = xyes; then
3302 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs"
3303 cat >conftest.$ac_ext <<_ACEOF
3304/* confdefs.h. */
3305_ACEOF
3306cat confdefs.h >>conftest.$ac_ext
3307cat >>conftest.$ac_ext <<_ACEOF
3308/* end confdefs.h. */
3309
3310int
3311main ()
3312{
3313
3314 ;
3315 return 0;
3316}
3317_ACEOF
4031rm -f conftest.$ac_objext 3318rm -f conftest.$ac_objext
4032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4033 (eval $ac_compile) 2>conftest.er1 3320 (eval $ac_compile) 2>conftest.er1
4034 ac_status=$? 3321 ac_status=$?
4035 grep -v '^ *+' conftest.er1 >conftest.err 3322 grep -v '^ *+' conftest.er1 >conftest.err
4036 rm -f conftest.er1 3323 rm -f conftest.er1
4037 cat conftest.err >&5 3324 cat conftest.err >&5
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); } && 3326 (exit $ac_status); } &&
4040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3327 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4042 (eval $ac_try) 2>&5 3329 (eval $ac_try) 2>&5
4043 ac_status=$? 3330 ac_status=$?
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); }; } && 3332 (exit $ac_status); }; } &&
4047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048 (eval $ac_try) 2>&5 3335 (eval $ac_try) 2>&5
4049 ac_status=$? 3336 ac_status=$?
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; }; then 3338 (exit $ac_status); }; }; then
4052 ac_cv_header_stdc=yes 3339 :
4053else 3340else
4054 echo "$as_me: failed program was:" >&5 3341 echo "$as_me: failed program was:" >&5
4055sed 's/^/| /' conftest.$ac_ext >&5 3342sed 's/^/| /' conftest.$ac_ext >&5
4056 3343
4057ac_cv_header_stdc=no 3344CXXFLAGS="-g -O3"
4058fi 3345fi
4059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3347 else
3348 CXXFLAGS="-O"
3349 fi
3350 CFLAGS="$CXXFLAGS"
3351fi
4060 3352
4061if test $ac_cv_header_stdc = yes; then 3353
4062 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3354cat >>confdefs.h <<\_ACEOF
3355#define _GNU_SOURCE 1
3356_ACEOF
3357
3358
3359case $host in
3360 *-*-solaris* )
3361
3362cat >>confdefs.h <<\_ACEOF
3363#define _XOPEN_SOURCE_EXTENDED 1
3364_ACEOF
3365
3366
3367cat >>confdefs.h <<\_ACEOF
3368#define _XOPEN_SOURCE 2
3369_ACEOF
3370
3371
3372cat >>confdefs.h <<\_ACEOF
3373#define __EXTENSIONS__ 1
3374_ACEOF
3375
3376 ;;
3377esac
3378
3379
3380echo "$as_me:$LINENO: checking for setlocale" >&5
3381echo $ECHO_N "checking for setlocale... $ECHO_C" >&6
3382if test "${ac_cv_func_setlocale+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3384else
4063 cat >conftest.$ac_ext <<_ACEOF 3385 cat >conftest.$ac_ext <<_ACEOF
4064/* confdefs.h. */ 3386/* confdefs.h. */
4065_ACEOF 3387_ACEOF
4066cat confdefs.h >>conftest.$ac_ext 3388cat confdefs.h >>conftest.$ac_ext
4067cat >>conftest.$ac_ext <<_ACEOF 3389cat >>conftest.$ac_ext <<_ACEOF
4068/* end confdefs.h. */ 3390/* end confdefs.h. */
4069#include <string.h>
4070
4071_ACEOF
4072if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4073 $EGREP "memchr" >/dev/null 2>&1; then
4074 :
4075else
4076 ac_cv_header_stdc=no
4077fi
4078rm -f conftest*
4079
4080fi
4081
4082if test $ac_cv_header_stdc = yes; then
4083 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4084 cat >conftest.$ac_ext <<_ACEOF
4085/* confdefs.h. */
4086_ACEOF
4087cat confdefs.h >>conftest.$ac_ext
4088cat >>conftest.$ac_ext <<_ACEOF
4089/* end confdefs.h. */
4090#include <stdlib.h>
4091
4092_ACEOF
4093if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4094 $EGREP "free" >/dev/null 2>&1; then
4095 :
4096else
4097 ac_cv_header_stdc=no
4098fi
4099rm -f conftest*
4100
4101fi
4102
4103if test $ac_cv_header_stdc = yes; then
4104 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4105 if test "$cross_compiling" = yes; then
4106 :
4107else
4108 cat >conftest.$ac_ext <<_ACEOF
4109/* confdefs.h. */
4110_ACEOF
4111cat confdefs.h >>conftest.$ac_ext
4112cat >>conftest.$ac_ext <<_ACEOF
4113/* end confdefs.h. */
4114#include <ctype.h>
4115#if ((' ' & 0x0FF) == 0x020)
4116# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4117# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4118#else
4119# define ISLOWER(c) \
4120 (('a' <= (c) && (c) <= 'i') \
4121 || ('j' <= (c) && (c) <= 'r') \
4122 || ('s' <= (c) && (c) <= 'z'))
4123# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4124#endif
4125
4126#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4127int
4128main ()
4129{
4130 int i;
4131 for (i = 0; i < 256; i++)
4132 if (XOR (islower (i), ISLOWER (i))
4133 || toupper (i) != TOUPPER (i))
4134 exit(2);
4135 exit (0);
4136}
4137_ACEOF
4138rm -f conftest$ac_exeext
4139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4140 (eval $ac_link) 2>&5
4141 ac_status=$?
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4145 (eval $ac_try) 2>&5
4146 ac_status=$?
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }; }; then
4149 :
4150else
4151 echo "$as_me: program exited with status $ac_status" >&5
4152echo "$as_me: failed program was:" >&5
4153sed 's/^/| /' conftest.$ac_ext >&5
4154
4155( exit $ac_status )
4156ac_cv_header_stdc=no
4157fi
4158rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4159fi
4160fi
4161fi
4162echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4163echo "${ECHO_T}$ac_cv_header_stdc" >&6
4164if test $ac_cv_header_stdc = yes; then
4165
4166cat >>confdefs.h <<\_ACEOF
4167#define STDC_HEADERS 1
4168_ACEOF
4169
4170fi
4171
4172# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4183 inttypes.h stdint.h unistd.h
4184do
4185as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4186echo "$as_me:$LINENO: checking for $ac_header" >&5
4187echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4188if eval "test \"\${$as_ac_Header+set}\" = set"; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4190else
4191 cat >conftest.$ac_ext <<_ACEOF
4192/* confdefs.h. */
4193_ACEOF
4194cat confdefs.h >>conftest.$ac_ext
4195cat >>conftest.$ac_ext <<_ACEOF
4196/* end confdefs.h. */
4197$ac_includes_default
4198
4199#include <$ac_header>
4200_ACEOF
4201rm -f conftest.$ac_objext
4202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4203 (eval $ac_compile) 2>conftest.er1
4204 ac_status=$?
4205 grep -v '^ *+' conftest.er1 >conftest.err
4206 rm -f conftest.er1
4207 cat conftest.err >&5
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); } &&
4210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4212 (eval $ac_try) 2>&5
4213 ac_status=$?
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); }; } &&
4216 { ac_try='test -s conftest.$ac_objext'
4217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4218 (eval $ac_try) 2>&5
4219 ac_status=$?
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); }; }; then
4222 eval "$as_ac_Header=yes"
4223else
4224 echo "$as_me: failed program was:" >&5
4225sed 's/^/| /' conftest.$ac_ext >&5
4226
4227eval "$as_ac_Header=no"
4228fi
4229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4230fi
4231echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4232echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4233if test `eval echo '${'$as_ac_Header'}'` = yes; then
4234 cat >>confdefs.h <<_ACEOF
4235#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4236_ACEOF
4237
4238fi
4239
4240done
4241
4242
4243
4244for ac_header in dlfcn.h
4245do
4246as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4247if eval "test \"\${$as_ac_Header+set}\" = set"; then
4248 echo "$as_me:$LINENO: checking for $ac_header" >&5
4249echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4250if eval "test \"\${$as_ac_Header+set}\" = set"; then
4251 echo $ECHO_N "(cached) $ECHO_C" >&6
4252fi
4253echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4254echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4255else
4256 # Is the header compilable?
4257echo "$as_me:$LINENO: checking $ac_header usability" >&5
4258echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4259cat >conftest.$ac_ext <<_ACEOF
4260/* confdefs.h. */
4261_ACEOF
4262cat confdefs.h >>conftest.$ac_ext
4263cat >>conftest.$ac_ext <<_ACEOF
4264/* end confdefs.h. */
4265$ac_includes_default
4266#include <$ac_header>
4267_ACEOF
4268rm -f conftest.$ac_objext
4269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4270 (eval $ac_compile) 2>conftest.er1
4271 ac_status=$?
4272 grep -v '^ *+' conftest.er1 >conftest.err
4273 rm -f conftest.er1
4274 cat conftest.err >&5
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); } &&
4277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279 (eval $ac_try) 2>&5
4280 ac_status=$?
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; } &&
4283 { ac_try='test -s conftest.$ac_objext'
4284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4285 (eval $ac_try) 2>&5
4286 ac_status=$?
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); }; }; then
4289 ac_header_compiler=yes
4290else
4291 echo "$as_me: failed program was:" >&5
4292sed 's/^/| /' conftest.$ac_ext >&5
4293
4294ac_header_compiler=no
4295fi
4296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4297echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4298echo "${ECHO_T}$ac_header_compiler" >&6
4299
4300# Is the header present?
4301echo "$as_me:$LINENO: checking $ac_header presence" >&5
4302echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4303cat >conftest.$ac_ext <<_ACEOF
4304/* confdefs.h. */
4305_ACEOF
4306cat confdefs.h >>conftest.$ac_ext
4307cat >>conftest.$ac_ext <<_ACEOF
4308/* end confdefs.h. */
4309#include <$ac_header>
4310_ACEOF
4311if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4313 ac_status=$?
4314 grep -v '^ *+' conftest.er1 >conftest.err
4315 rm -f conftest.er1
4316 cat conftest.err >&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); } >/dev/null; then
4319 if test -s conftest.err; then
4320 ac_cpp_err=$ac_c_preproc_warn_flag
4321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4322 else
4323 ac_cpp_err=
4324 fi
4325else
4326 ac_cpp_err=yes
4327fi
4328if test -z "$ac_cpp_err"; then
4329 ac_header_preproc=yes
4330else
4331 echo "$as_me: failed program was:" >&5
4332sed 's/^/| /' conftest.$ac_ext >&5
4333
4334 ac_header_preproc=no
4335fi
4336rm -f conftest.err conftest.$ac_ext
4337echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4338echo "${ECHO_T}$ac_header_preproc" >&6
4339
4340# So? What about this header?
4341case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4342 yes:no: )
4343 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4344echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4346echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4347 ac_header_preproc=yes
4348 ;;
4349 no:yes:* )
4350 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4351echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4352 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4353echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4354 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4355echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4356 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4357echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4359echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4360 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4361echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4362 (
4363 cat <<\_ASBOX
4364## ------------------------------------------ ##
4365## Report this to the AC_PACKAGE_NAME lists. ##
4366## ------------------------------------------ ##
4367_ASBOX
4368 ) |
4369 sed "s/^/$as_me: WARNING: /" >&2
4370 ;;
4371esac
4372echo "$as_me:$LINENO: checking for $ac_header" >&5
4373echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4374if eval "test \"\${$as_ac_Header+set}\" = set"; then
4375 echo $ECHO_N "(cached) $ECHO_C" >&6
4376else
4377 eval "$as_ac_Header=\$ac_header_preproc"
4378fi
4379echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4380echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4381
4382fi
4383if test `eval echo '${'$as_ac_Header'}'` = yes; then
4384 cat >>confdefs.h <<_ACEOF
4385#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4386_ACEOF
4387
4388fi
4389
4390done
4391
4392
4393
4394
4395
4396# Only perform the check for file, if the check method requires it
4397case "$deplibs_check_method" in
4398file_magic*)
4399 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4400 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4401echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4402if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4403 echo $ECHO_N "(cached) $ECHO_C" >&6
4404else
4405 case "$MAGIC_CMD" in
4406 /*)
4407 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4408 ;;
4409 ?:/*)
4410 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4411 ;;
4412 *)
4413 ac_save_MAGIC_CMD="$MAGIC_CMD"
4414 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4415 ac_dummy="/usr/bin:$PATH"
4416 for ac_dir in $ac_dummy; do
4417 test -z "$ac_dir" && ac_dir=.
4418 if test -f $ac_dir/${ac_tool_prefix}file; then
4419 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4420 if test -n "$file_magic_test_file"; then
4421 case "$deplibs_check_method" in
4422 "file_magic "*)
4423 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4424 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4425 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4426 egrep "$file_magic_regex" > /dev/null; then
4427 :
4428 else
4429 cat <<EOF 1>&2
4430
4431*** Warning: the command libtool uses to detect shared libraries,
4432*** $file_magic_cmd, produces output that libtool cannot recognize.
4433*** The result is that libtool may fail to recognize shared libraries
4434*** as such. This will affect the creation of libtool libraries that
4435*** depend on shared libraries, but programs linked with such libtool
4436*** libraries will work regardless of this problem. Nevertheless, you
4437*** may want to report the problem to your system manager and/or to
4438*** bug-libtool@gnu.org
4439
4440EOF
4441 fi ;;
4442 esac
4443 fi
4444 break
4445 fi
4446 done
4447 IFS="$ac_save_ifs"
4448 MAGIC_CMD="$ac_save_MAGIC_CMD"
4449 ;;
4450esac
4451fi
4452
4453MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4454if test -n "$MAGIC_CMD"; then
4455 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4456echo "${ECHO_T}$MAGIC_CMD" >&6
4457else
4458 echo "$as_me:$LINENO: result: no" >&5
4459echo "${ECHO_T}no" >&6
4460fi
4461
4462if test -z "$lt_cv_path_MAGIC_CMD"; then
4463 if test -n "$ac_tool_prefix"; then
4464 echo "$as_me:$LINENO: checking for file" >&5
4465echo $ECHO_N "checking for file... $ECHO_C" >&6
4466if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4467 echo $ECHO_N "(cached) $ECHO_C" >&6
4468else
4469 case "$MAGIC_CMD" in
4470 /*)
4471 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4472 ;;
4473 ?:/*)
4474 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4475 ;;
4476 *)
4477 ac_save_MAGIC_CMD="$MAGIC_CMD"
4478 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4479 ac_dummy="/usr/bin:$PATH"
4480 for ac_dir in $ac_dummy; do
4481 test -z "$ac_dir" && ac_dir=.
4482 if test -f $ac_dir/file; then
4483 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4484 if test -n "$file_magic_test_file"; then
4485 case "$deplibs_check_method" in
4486 "file_magic "*)
4487 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4488 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4489 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4490 egrep "$file_magic_regex" > /dev/null; then
4491 :
4492 else
4493 cat <<EOF 1>&2
4494
4495*** Warning: the command libtool uses to detect shared libraries,
4496*** $file_magic_cmd, produces output that libtool cannot recognize.
4497*** The result is that libtool may fail to recognize shared libraries
4498*** as such. This will affect the creation of libtool libraries that
4499*** depend on shared libraries, but programs linked with such libtool
4500*** libraries will work regardless of this problem. Nevertheless, you
4501*** may want to report the problem to your system manager and/or to
4502*** bug-libtool@gnu.org
4503
4504EOF
4505 fi ;;
4506 esac
4507 fi
4508 break
4509 fi
4510 done
4511 IFS="$ac_save_ifs"
4512 MAGIC_CMD="$ac_save_MAGIC_CMD"
4513 ;;
4514esac
4515fi
4516
4517MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4518if test -n "$MAGIC_CMD"; then
4519 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4520echo "${ECHO_T}$MAGIC_CMD" >&6
4521else
4522 echo "$as_me:$LINENO: result: no" >&5
4523echo "${ECHO_T}no" >&6
4524fi
4525
4526 else
4527 MAGIC_CMD=:
4528 fi
4529fi
4530
4531 fi
4532 ;;
4533esac
4534
4535if test -n "$ac_tool_prefix"; then
4536 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4537set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4538echo "$as_me:$LINENO: checking for $ac_word" >&5
4539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4540if test "${ac_cv_prog_RANLIB+set}" = set; then
4541 echo $ECHO_N "(cached) $ECHO_C" >&6
4542else
4543 if test -n "$RANLIB"; then
4544 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4545else
4546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547for as_dir in $PATH
4548do
4549 IFS=$as_save_IFS
4550 test -z "$as_dir" && as_dir=.
4551 for ac_exec_ext in '' $ac_executable_extensions; do
4552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4553 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4555 break 2
4556 fi
4557done
4558done
4559
4560fi
4561fi
4562RANLIB=$ac_cv_prog_RANLIB
4563if test -n "$RANLIB"; then
4564 echo "$as_me:$LINENO: result: $RANLIB" >&5
4565echo "${ECHO_T}$RANLIB" >&6
4566else
4567 echo "$as_me:$LINENO: result: no" >&5
4568echo "${ECHO_T}no" >&6
4569fi
4570
4571fi
4572if test -z "$ac_cv_prog_RANLIB"; then
4573 ac_ct_RANLIB=$RANLIB
4574 # Extract the first word of "ranlib", so it can be a program name with args.
4575set dummy ranlib; ac_word=$2
4576echo "$as_me:$LINENO: checking for $ac_word" >&5
4577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4578if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4580else
4581 if test -n "$ac_ct_RANLIB"; then
4582 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4583else
4584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585for as_dir in $PATH
4586do
4587 IFS=$as_save_IFS
4588 test -z "$as_dir" && as_dir=.
4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4591 ac_cv_prog_ac_ct_RANLIB="ranlib"
4592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4593 break 2
4594 fi
4595done
4596done
4597
4598 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4599fi
4600fi
4601ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4602if test -n "$ac_ct_RANLIB"; then
4603 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4604echo "${ECHO_T}$ac_ct_RANLIB" >&6
4605else
4606 echo "$as_me:$LINENO: result: no" >&5
4607echo "${ECHO_T}no" >&6
4608fi
4609
4610 RANLIB=$ac_ct_RANLIB
4611else
4612 RANLIB="$ac_cv_prog_RANLIB"
4613fi
4614
4615if test -n "$ac_tool_prefix"; then
4616 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4617set dummy ${ac_tool_prefix}strip; ac_word=$2
4618echo "$as_me:$LINENO: checking for $ac_word" >&5
4619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4620if test "${ac_cv_prog_STRIP+set}" = set; then
4621 echo $ECHO_N "(cached) $ECHO_C" >&6
4622else
4623 if test -n "$STRIP"; then
4624 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4625else
4626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627for as_dir in $PATH
4628do
4629 IFS=$as_save_IFS
4630 test -z "$as_dir" && as_dir=.
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4633 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4635 break 2
4636 fi
4637done
4638done
4639
4640fi
4641fi
4642STRIP=$ac_cv_prog_STRIP
4643if test -n "$STRIP"; then
4644 echo "$as_me:$LINENO: result: $STRIP" >&5
4645echo "${ECHO_T}$STRIP" >&6
4646else
4647 echo "$as_me:$LINENO: result: no" >&5
4648echo "${ECHO_T}no" >&6
4649fi
4650
4651fi
4652if test -z "$ac_cv_prog_STRIP"; then
4653 ac_ct_STRIP=$STRIP
4654 # Extract the first word of "strip", so it can be a program name with args.
4655set dummy strip; ac_word=$2
4656echo "$as_me:$LINENO: checking for $ac_word" >&5
4657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4658if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4660else
4661 if test -n "$ac_ct_STRIP"; then
4662 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4663else
4664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665for as_dir in $PATH
4666do
4667 IFS=$as_save_IFS
4668 test -z "$as_dir" && as_dir=.
4669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4671 ac_cv_prog_ac_ct_STRIP="strip"
4672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4673 break 2
4674 fi
4675done
4676done
4677
4678 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4679fi
4680fi
4681ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4682if test -n "$ac_ct_STRIP"; then
4683 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4684echo "${ECHO_T}$ac_ct_STRIP" >&6
4685else
4686 echo "$as_me:$LINENO: result: no" >&5
4687echo "${ECHO_T}no" >&6
4688fi
4689
4690 STRIP=$ac_ct_STRIP
4691else
4692 STRIP="$ac_cv_prog_STRIP"
4693fi
4694
4695
4696enable_dlopen=no
4697enable_win32_dll=no
4698
4699# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4700if test "${enable_libtool_lock+set}" = set; then
4701 enableval="$enable_libtool_lock"
4702
4703fi;
4704test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4705
4706# Some flags need to be propagated to the compiler or linker for good
4707# libtool support.
4708case "$host" in
4709*-*-irix6*)
4710 # Find out which ABI we are using.
4711 echo '#line 4711 "configure"' > conftest.$ac_ext
4712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4713 (eval $ac_compile) 2>&5
4714 ac_status=$?
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; then
4717 case "`/usr/bin/file conftest.$ac_objext`" in
4718 *32-bit*)
4719 LD="${LD-ld} -32"
4720 ;;
4721 *N32*)
4722 LD="${LD-ld} -n32"
4723 ;;
4724 *64-bit*)
4725 LD="${LD-ld} -64"
4726 ;;
4727 esac
4728 fi
4729 rm -rf conftest*
4730 ;;
4731
4732*-*-sco3.2v5*)
4733 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4734 SAVE_CFLAGS="$CFLAGS"
4735 CFLAGS="$CFLAGS -belf"
4736 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4737echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4738if test "${lt_cv_cc_needs_belf+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4740else
4741
4742
4743 ac_ext=c
4744ac_cpp='$CPP $CPPFLAGS'
4745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4747ac_compiler_gnu=$ac_cv_c_compiler_gnu
4748
4749 cat >conftest.$ac_ext <<_ACEOF
4750/* confdefs.h. */
4751_ACEOF
4752cat confdefs.h >>conftest.$ac_ext
4753cat >>conftest.$ac_ext <<_ACEOF
4754/* end confdefs.h. */
4755
4756int
4757main ()
4758{
4759
4760 ;
4761 return 0;
4762}
4763_ACEOF
4764rm -f conftest.$ac_objext conftest$ac_exeext
4765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4766 (eval $ac_link) 2>conftest.er1
4767 ac_status=$?
4768 grep -v '^ *+' conftest.er1 >conftest.err
4769 rm -f conftest.er1
4770 cat conftest.err >&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); } &&
4773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4775 (eval $ac_try) 2>&5
4776 ac_status=$?
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); }; } &&
4779 { ac_try='test -s conftest$ac_exeext'
4780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781 (eval $ac_try) 2>&5
4782 ac_status=$?
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); }; }; then
4785 lt_cv_cc_needs_belf=yes
4786else
4787 echo "$as_me: failed program was:" >&5
4788sed 's/^/| /' conftest.$ac_ext >&5
4789
4790lt_cv_cc_needs_belf=no
4791fi
4792rm -f conftest.err conftest.$ac_objext \
4793 conftest$ac_exeext conftest.$ac_ext
4794 ac_ext=c
4795ac_cpp='$CPP $CPPFLAGS'
4796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4798ac_compiler_gnu=$ac_cv_c_compiler_gnu
4799
4800fi
4801echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4802echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4803 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4804 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4805 CFLAGS="$SAVE_CFLAGS"
4806 fi
4807 ;;
4808
4809
4810esac
4811
4812# Sed substitution that helps us do robust quoting. It backslashifies
4813# metacharacters that are still active within double-quoted strings.
4814Xsed='sed -e s/^X//'
4815sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4816
4817# Same as above, but do not quote variable references.
4818double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4819
4820# Sed substitution to delay expansion of an escaped shell variable in a
4821# double_quote_subst'ed string.
4822delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4823
4824# Constants:
4825rm="rm -f"
4826
4827# Global variables:
4828default_ofile=libtool
4829can_build_shared=yes
4830
4831# All known linkers require a `.a' archive for static linking (except M$VC,
4832# which needs '.lib').
4833libext=a
4834ltmain="$ac_aux_dir/ltmain.sh"
4835ofile="$default_ofile"
4836with_gnu_ld="$lt_cv_prog_gnu_ld"
4837need_locks="$enable_libtool_lock"
4838
4839old_CC="$CC"
4840old_CFLAGS="$CFLAGS"
4841
4842# Set sane defaults for various variables
4843test -z "$AR" && AR=ar
4844test -z "$AR_FLAGS" && AR_FLAGS=cru
4845test -z "$AS" && AS=as
4846test -z "$CC" && CC=cc
4847test -z "$DLLTOOL" && DLLTOOL=dlltool
4848test -z "$LD" && LD=ld
4849test -z "$LN_S" && LN_S="ln -s"
4850test -z "$MAGIC_CMD" && MAGIC_CMD=file
4851test -z "$NM" && NM=nm
4852test -z "$OBJDUMP" && OBJDUMP=objdump
4853test -z "$RANLIB" && RANLIB=:
4854test -z "$STRIP" && STRIP=:
4855test -z "$ac_objext" && ac_objext=o
4856
4857if test x"$host" != x"$build"; then
4858 ac_tool_prefix=${host_alias}-
4859else
4860 ac_tool_prefix=
4861fi
4862
4863# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4864case "$host_os" in
4865linux-gnu*) ;;
4866linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4867esac
4868
4869case "$host_os" in
4870aix3*)
4871 # AIX sometimes has problems with the GCC collect2 program. For some
4872 # reason, if we set the COLLECT_NAMES environment variable, the problems
4873 # vanish in a puff of smoke.
4874 if test "X${COLLECT_NAMES+set}" != Xset; then
4875 COLLECT_NAMES=
4876 export COLLECT_NAMES
4877 fi
4878 ;;
4879esac
4880
4881# Determine commands to create old-style static archives.
4882old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4883old_postinstall_cmds='chmod 644 $oldlib'
4884old_postuninstall_cmds=
4885
4886if test -n "$RANLIB"; then
4887 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4888 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4889fi
4890
4891# Allow CC to be a program name with arguments.
4892set dummy $CC
4893compiler="$2"
4894
4895## FIXME: this should be a separate macro
4896##
4897echo "$as_me:$LINENO: checking for objdir" >&5
4898echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4899rm -f .libs 2>/dev/null
4900mkdir .libs 2>/dev/null
4901if test -d .libs; then
4902 objdir=.libs
4903else
4904 # MS-DOS does not allow filenames that begin with a dot.
4905 objdir=_libs
4906fi
4907rmdir .libs 2>/dev/null
4908echo "$as_me:$LINENO: result: $objdir" >&5
4909echo "${ECHO_T}$objdir" >&6
4910##
4911## END FIXME
4912
4913
4914## FIXME: this should be a separate macro
4915##
4916
4917# Check whether --with-pic or --without-pic was given.
4918if test "${with_pic+set}" = set; then
4919 withval="$with_pic"
4920 pic_mode="$withval"
4921else
4922 pic_mode=default
4923fi;
4924test -z "$pic_mode" && pic_mode=default
4925
4926# We assume here that the value for lt_cv_prog_cc_pic will not be cached
4927# in isolation, and that seeing it set (from the cache) indicates that
4928# the associated values are set (in the cache) correctly too.
4929echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4930echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4931if test "${lt_cv_prog_cc_pic+set}" = set; then
4932 echo $ECHO_N "(cached) $ECHO_C" >&6
4933else
4934 lt_cv_prog_cc_pic=
4935 lt_cv_prog_cc_shlib=
4936 lt_cv_prog_cc_wl=
4937 lt_cv_prog_cc_static=
4938 lt_cv_prog_cc_no_builtin=
4939 lt_cv_prog_cc_can_build_shared=$can_build_shared
4940
4941 if test "$GCC" = yes; then
4942 lt_cv_prog_cc_wl='-Wl,'
4943 lt_cv_prog_cc_static='-static'
4944
4945 case "$host_os" in
4946 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4947 # PIC is the default for these OSes.
4948 ;;
4949 aix*)
4950 # Below there is a dirty hack to force normal static linking with -ldl
4951 # The problem is because libdl dynamically linked with both libc and
4952 # libC (AIX C++ library), which obviously doesn't included in libraries
4953 # list by gcc. This cause undefined symbols with -static flags.
4954 # This hack allows C programs to be linked with "-static -ldl", but
4955 # we not sure about C++ programs.
4956 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4957 ;;
4958 cygwin* | mingw* | pw32* | os2*)
4959 # This hack is so that the source file can tell whether it is being
4960 # built for inclusion in a dll (and should export symbols for example).
4961 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4962 ;;
4963 amigaos*)
4964 # FIXME: we need at least 68020 code to build shared libraries, but
4965 # adding the `-m68020' flag to GCC prevents building anything better,
4966 # like `-m68040'.
4967 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4968 ;;
4969 sysv4*MP*)
4970 if test -d /usr/nec; then
4971 lt_cv_prog_cc_pic=-Kconform_pic
4972 fi
4973 ;;
4974 *)
4975 lt_cv_prog_cc_pic='-fPIC'
4976 ;;
4977 esac
4978 else
4979 # PORTME Check for PIC flags for the system compiler.
4980 case "$host_os" in
4981 aix3* | aix4*)
4982 # All AIX code is PIC.
4983 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4984 ;;
4985
4986 hpux9* | hpux10* | hpux11*)
4987 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4988 lt_cv_prog_cc_wl='-Wl,'
4989 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4990 lt_cv_prog_cc_pic='+Z'
4991 ;;
4992
4993 irix5* | irix6*)
4994 lt_cv_prog_cc_wl='-Wl,'
4995 lt_cv_prog_cc_static='-non_shared'
4996 # PIC (with -KPIC) is the default.
4997 ;;
4998
4999 cygwin* | mingw* | pw32* | os2*)
5000 # This hack is so that the source file can tell whether it is being
5001 # built for inclusion in a dll (and should export symbols for example).
5002 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5003 ;;
5004
5005 newsos6)
5006 lt_cv_prog_cc_pic='-KPIC'
5007 lt_cv_prog_cc_static='-Bstatic'
5008 ;;
5009
5010 osf3* | osf4* | osf5*)
5011 # All OSF/1 code is PIC.
5012 lt_cv_prog_cc_wl='-Wl,'
5013 lt_cv_prog_cc_static='-non_shared'
5014 ;;
5015
5016 sco3.2v5*)
5017 lt_cv_prog_cc_pic='-Kpic'
5018 lt_cv_prog_cc_static='-dn'
5019 lt_cv_prog_cc_shlib='-belf'
5020 ;;
5021
5022 solaris*)
5023 lt_cv_prog_cc_pic='-KPIC'
5024 lt_cv_prog_cc_static='-Bstatic'
5025 lt_cv_prog_cc_wl='-Wl,'
5026 ;;
5027
5028 sunos4*)
5029 lt_cv_prog_cc_pic='-PIC'
5030 lt_cv_prog_cc_static='-Bstatic'
5031 lt_cv_prog_cc_wl='-Qoption ld '
5032 ;;
5033
5034 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5035 lt_cv_prog_cc_pic='-KPIC'
5036 lt_cv_prog_cc_static='-Bstatic'
5037 if test "x$host_vendor" = xsni; then
5038 lt_cv_prog_cc_wl='-LD'
5039 else
5040 lt_cv_prog_cc_wl='-Wl,'
5041 fi
5042 ;;
5043
5044 uts4*)
5045 lt_cv_prog_cc_pic='-pic'
5046 lt_cv_prog_cc_static='-Bstatic'
5047 ;;
5048
5049 sysv4*MP*)
5050 if test -d /usr/nec ;then
5051 lt_cv_prog_cc_pic='-Kconform_pic'
5052 lt_cv_prog_cc_static='-Bstatic'
5053 fi
5054 ;;
5055
5056 *)
5057 lt_cv_prog_cc_can_build_shared=no
5058 ;;
5059 esac
5060 fi
5061
5062fi
5063
5064if test -z "$lt_cv_prog_cc_pic"; then
5065 echo "$as_me:$LINENO: result: none" >&5
5066echo "${ECHO_T}none" >&6
5067else
5068 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5069echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5070
5071 # Check to make sure the pic_flag actually works.
5072 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5073echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5074 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5076else
5077 save_CFLAGS="$CFLAGS"
5078 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5079 cat >conftest.$ac_ext <<_ACEOF
5080/* confdefs.h. */
5081_ACEOF
5082cat confdefs.h >>conftest.$ac_ext
5083cat >>conftest.$ac_ext <<_ACEOF
5084/* end confdefs.h. */
5085
5086int
5087main ()
5088{
5089
5090 ;
5091 return 0;
5092}
5093_ACEOF
5094rm -f conftest.$ac_objext
5095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5096 (eval $ac_compile) 2>conftest.er1
5097 ac_status=$?
5098 grep -v '^ *+' conftest.er1 >conftest.err
5099 rm -f conftest.er1
5100 cat conftest.err >&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } &&
5103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105 (eval $ac_try) 2>&5
5106 ac_status=$?
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }; } &&
5109 { ac_try='test -s conftest.$ac_objext'
5110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5111 (eval $ac_try) 2>&5
5112 ac_status=$?
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); }; }; then
5115 case "$host_os" in
5116 hpux9* | hpux10* | hpux11*)
5117 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5118 # they create non-PIC objects. So, if there were any warnings, we
5119 # assume that PIC is not supported.
5120 if test -s conftest.err; then
5121 lt_cv_prog_cc_pic_works=no
5122 else
5123 lt_cv_prog_cc_pic_works=yes
5124 fi
5125 ;;
5126 *)
5127 lt_cv_prog_cc_pic_works=yes
5128 ;;
5129 esac
5130
5131else
5132 echo "$as_me: failed program was:" >&5
5133sed 's/^/| /' conftest.$ac_ext >&5
5134
5135 lt_cv_prog_cc_pic_works=no
5136
5137fi
5138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5139 CFLAGS="$save_CFLAGS"
5140
5141fi
5142
5143
5144 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5145 lt_cv_prog_cc_pic=
5146 lt_cv_prog_cc_can_build_shared=no
5147 else
5148 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5149 fi
5150
5151 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5152echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5153fi
5154##
5155## END FIXME
5156
5157# Check for any special shared library compilation flags.
5158if test -n "$lt_cv_prog_cc_shlib"; then
5159 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5160echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5161 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5162 else
5163 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5164echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5165 lt_cv_prog_cc_can_build_shared=no
5166 fi
5167fi
5168
5169## FIXME: this should be a separate macro
5170##
5171echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5172echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5173if test "${lt_cv_prog_cc_static_works+set}" = set; then
5174 echo $ECHO_N "(cached) $ECHO_C" >&6
5175else
5176 lt_cv_prog_cc_static_works=no
5177 save_LDFLAGS="$LDFLAGS"
5178 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5179 cat >conftest.$ac_ext <<_ACEOF
5180/* confdefs.h. */
5181_ACEOF
5182cat confdefs.h >>conftest.$ac_ext
5183cat >>conftest.$ac_ext <<_ACEOF
5184/* end confdefs.h. */
5185
5186int
5187main ()
5188{
5189
5190 ;
5191 return 0;
5192}
5193_ACEOF
5194rm -f conftest.$ac_objext conftest$ac_exeext
5195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5196 (eval $ac_link) 2>conftest.er1
5197 ac_status=$?
5198 grep -v '^ *+' conftest.er1 >conftest.err
5199 rm -f conftest.er1
5200 cat conftest.err >&5
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); } &&
5203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5205 (eval $ac_try) 2>&5
5206 ac_status=$?
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); }; } &&
5209 { ac_try='test -s conftest$ac_exeext'
5210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5211 (eval $ac_try) 2>&5
5212 ac_status=$?
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); }; }; then
5215 lt_cv_prog_cc_static_works=yes
5216else
5217 echo "$as_me: failed program was:" >&5
5218sed 's/^/| /' conftest.$ac_ext >&5
5219
5220fi
5221rm -f conftest.err conftest.$ac_objext \
5222 conftest$ac_exeext conftest.$ac_ext
5223 LDFLAGS="$save_LDFLAGS"
5224
5225fi
5226
5227
5228# Belt *and* braces to stop my trousers falling down:
5229test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5230echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5231echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5232
5233pic_flag="$lt_cv_prog_cc_pic"
5234special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5235wl="$lt_cv_prog_cc_wl"
5236link_static_flag="$lt_cv_prog_cc_static"
5237no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5238can_build_shared="$lt_cv_prog_cc_can_build_shared"
5239##
5240## END FIXME
5241
5242
5243## FIXME: this should be a separate macro
5244##
5245# Check to see if options -o and -c are simultaneously supported by compiler
5246echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5247echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5248$rm -r conftest 2>/dev/null
5249mkdir conftest
5250cd conftest
5251echo "int some_variable = 0;" > conftest.$ac_ext
5252mkdir out
5253# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5254# that will create temporary files in the current directory regardless of
5255# the output directory. Thus, making CWD read-only will cause this test
5256# to fail, enabling locking or at least warning the user not to do parallel
5257# builds.
5258chmod -w .
5259save_CFLAGS="$CFLAGS"
5260CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5261compiler_c_o=no
5262if { (eval echo configure:5262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5263 # The compiler can only warn and ignore the option if not recognized
5264 # So say no if there are warnings
5265 if test -s out/conftest.err; then
5266 compiler_c_o=no
5267 else
5268 compiler_c_o=yes
5269 fi
5270else
5271 # Append any errors to the config.log.
5272 cat out/conftest.err 1>&5
5273 compiler_c_o=no
5274fi
5275echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5276echo "${ECHO_T}$compiler_c_o" >&6
5277CFLAGS="$save_CFLAGS"
5278chmod u+w .
5279$rm conftest* out/*
5280rmdir out
5281cd ..
5282rmdir conftest
5283$rm -r conftest 2>/dev/null
5284
5285if test x"$compiler_c_o" = x"yes"; then
5286 # Check to see if we can write to a .lo
5287 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5288echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5289 compiler_o_lo=no
5290 save_CFLAGS="$CFLAGS"
5291 CFLAGS="$CFLAGS -c -o conftest.lo"
5292 cat >conftest.$ac_ext <<_ACEOF
5293/* confdefs.h. */
5294_ACEOF
5295cat confdefs.h >>conftest.$ac_ext
5296cat >>conftest.$ac_ext <<_ACEOF
5297/* end confdefs.h. */
5298
5299int
5300main ()
5301{
5302int some_variable = 0;
5303 ;
5304 return 0;
5305}
5306_ACEOF
5307rm -f conftest.$ac_objext
5308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5309 (eval $ac_compile) 2>conftest.er1
5310 ac_status=$?
5311 grep -v '^ *+' conftest.er1 >conftest.err
5312 rm -f conftest.er1
5313 cat conftest.err >&5
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); } &&
5316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318 (eval $ac_try) 2>&5
5319 ac_status=$?
5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321 (exit $ac_status); }; } &&
5322 { ac_try='test -s conftest.$ac_objext'
5323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5324 (eval $ac_try) 2>&5
5325 ac_status=$?
5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); }; }; then
5328 # The compiler can only warn and ignore the option if not recognized
5329 # So say no if there are warnings
5330 if test -s conftest.err; then
5331 compiler_o_lo=no
5332 else
5333 compiler_o_lo=yes
5334 fi
5335
5336else
5337 echo "$as_me: failed program was:" >&5
5338sed 's/^/| /' conftest.$ac_ext >&5
5339
5340fi
5341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5342 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5343echo "${ECHO_T}$compiler_c_o" >&6
5344 CFLAGS="$save_CFLAGS"
5345else
5346 compiler_o_lo=no
5347fi
5348##
5349## END FIXME
5350
5351## FIXME: this should be a separate macro
5352##
5353# Check to see if we can do hard links to lock some files if needed
5354hard_links="nottested"
5355if test "$compiler_c_o" = no && test "$need_locks" != no; then
5356 # do not overwrite the value of need_locks provided by the user
5357 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5358echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5359 hard_links=yes
5360 $rm conftest*
5361 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5362 touch conftest.a
5363 ln conftest.a conftest.b 2>&5 || hard_links=no
5364 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5365 echo "$as_me:$LINENO: result: $hard_links" >&5
5366echo "${ECHO_T}$hard_links" >&6
5367 if test "$hard_links" = no; then
5368 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5369echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5370 need_locks=warn
5371 fi
5372else
5373 need_locks=no
5374fi
5375##
5376## END FIXME
5377
5378## FIXME: this should be a separate macro
5379##
5380if test "$GCC" = yes; then
5381 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5382 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5383echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5384 echo "int some_variable = 0;" > conftest.$ac_ext
5385 save_CFLAGS="$CFLAGS"
5386 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5387 compiler_rtti_exceptions=no
5388 cat >conftest.$ac_ext <<_ACEOF
5389/* confdefs.h. */
5390_ACEOF
5391cat confdefs.h >>conftest.$ac_ext
5392cat >>conftest.$ac_ext <<_ACEOF
5393/* end confdefs.h. */
5394
5395int
5396main ()
5397{
5398int some_variable = 0;
5399 ;
5400 return 0;
5401}
5402_ACEOF
5403rm -f conftest.$ac_objext
5404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5405 (eval $ac_compile) 2>conftest.er1
5406 ac_status=$?
5407 grep -v '^ *+' conftest.er1 >conftest.err
5408 rm -f conftest.er1
5409 cat conftest.err >&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); } &&
5412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5414 (eval $ac_try) 2>&5
5415 ac_status=$?
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); }; } &&
5418 { ac_try='test -s conftest.$ac_objext'
5419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5420 (eval $ac_try) 2>&5
5421 ac_status=$?
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); }; }; then
5424 # The compiler can only warn and ignore the option if not recognized
5425 # So say no if there are warnings
5426 if test -s conftest.err; then
5427 compiler_rtti_exceptions=no
5428 else
5429 compiler_rtti_exceptions=yes
5430 fi
5431
5432else
5433 echo "$as_me: failed program was:" >&5
5434sed 's/^/| /' conftest.$ac_ext >&5
5435
5436fi
5437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5438 CFLAGS="$save_CFLAGS"
5439 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5440echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5441
5442 if test "$compiler_rtti_exceptions" = "yes"; then
5443 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5444 else
5445 no_builtin_flag=' -fno-builtin'
5446 fi
5447fi
5448##
5449## END FIXME
5450
5451## FIXME: this should be a separate macro
5452##
5453# See if the linker supports building shared libraries.
5454echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5455echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5456
5457allow_undefined_flag=
5458no_undefined_flag=
5459need_lib_prefix=unknown
5460need_version=unknown
5461# when you set need_version to no, make sure it does not cause -set_version
5462# flags to be left without arguments
5463archive_cmds=
5464archive_expsym_cmds=
5465old_archive_from_new_cmds=
5466old_archive_from_expsyms_cmds=
5467export_dynamic_flag_spec=
5468whole_archive_flag_spec=
5469thread_safe_flag_spec=
5470hardcode_into_libs=no
5471hardcode_libdir_flag_spec=
5472hardcode_libdir_separator=
5473hardcode_direct=no
5474hardcode_minus_L=no
5475hardcode_shlibpath_var=unsupported
5476runpath_var=
5477link_all_deplibs=unknown
5478always_export_symbols=no
5479export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5480# include_expsyms should be a list of space-separated symbols to be *always*
5481# included in the symbol list
5482include_expsyms=
5483# exclude_expsyms can be an egrep regular expression of symbols to exclude
5484# it will be wrapped by ` (' and `)$', so one must not match beginning or
5485# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5486# as well as any symbol that contains `d'.
5487exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5488# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5489# platforms (ab)use it in PIC code, but their linkers get confused if
5490# the symbol is explicitly referenced. Since portable code cannot
5491# rely on this symbol name, it's probably fine to never include it in
5492# preloaded symbol tables.
5493extract_expsyms_cmds=
5494
5495case "$host_os" in
5496cygwin* | mingw* | pw32* )
5497 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5498 # When not using gcc, we currently assume that we are using
5499 # Microsoft Visual C++.
5500 if test "$GCC" != yes; then
5501 with_gnu_ld=no
5502 fi
5503 ;;
5504
5505esac
5506
5507ld_shlibs=yes
5508if test "$with_gnu_ld" = yes; then
5509 # If archive_cmds runs LD, not CC, wlarc should be empty
5510 wlarc='${wl}'
5511
5512 # See if GNU ld supports shared libraries.
5513 case "$host_os" in
5514 aix3* | aix4*)
5515 # On AIX, the GNU linker is very broken
5516 ld_shlibs=no
5517 cat <<EOF 1>&2
5518
5519*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5520*** to be unable to reliably create shared libraries on AIX.
5521*** Therefore, libtool is disabling shared libraries support. If you
5522*** really care for shared libraries, you may want to modify your PATH
5523*** so that a non-GNU linker is found, and then restart.
5524
5525EOF
5526 ;;
5527
5528 amigaos*)
5529 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)'
5530 hardcode_libdir_flag_spec='-L$libdir'
5531 hardcode_minus_L=yes
5532
5533 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5534 # that the semantics of dynamic libraries on AmigaOS, at least up
5535 # to version 4, is to share data among multiple programs linked
5536 # with the same dynamic library. Since this doesn't match the
5537 # behavior of shared libraries on other platforms, we can use
5538 # them.
5539 ld_shlibs=no
5540 ;;
5541
5542 beos*)
5543 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5544 allow_undefined_flag=unsupported
5545 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5546 # support --undefined. This deserves some investigation. FIXME
5547 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5548 else
5549 ld_shlibs=no
5550 fi
5551 ;;
5552
5553 cygwin* | mingw* | pw32*)
5554 # hardcode_libdir_flag_spec is actually meaningless, as there is
5555 # no search path for DLLs.
5556 hardcode_libdir_flag_spec='-L$libdir'
5557 allow_undefined_flag=unsupported
5558 always_export_symbols=yes
5559
5560 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5561 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5562 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5563 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5564 else $CC -o impgen impgen.c ; fi)~
5565 $output_objdir/impgen $dir/$soname > $output_objdir/$soname-def'
5566
5567 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5568
5569 # cygwin and mingw dlls have different entry points and sets of symbols
5570 # to exclude.
5571 # FIXME: what about values for MSVC?
5572 dll_entry=__cygwin_dll_entry@12
5573 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5574 case "$host_os" in
5575 mingw*)
5576 # mingw values
5577 dll_entry=_DllMainCRTStartup@12
5578 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5579 ;;
5580 esac
5581
5582 # mingw and cygwin differ, and it's simplest to just exclude the union
5583 # of the two symbol sets.
5584 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5585
5586 # recent cygwin and mingw systems supply a stub DllMain which the user
5587 # can override, but on older systems we have to supply one (in ltdll.c)
5588 if test "x$lt_cv_need_dllmain" = "xyes"; then
5589 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5590 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~
5591 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5592 else
5593 ltdll_obj=
5594 ltdll_cmds=
5595 fi
5596
5597 # Extract the symbol export list from an `--export-all' def file,
5598 # then regenerate the def file from the symbol export list, so that
5599 # the compiled dll only exports the symbol export list.
5600 # Be careful not to strip the DATA tag left be newer dlltools.
5601 export_symbols_cmds="$ltdll_cmds"'
5602 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5603 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5604
5605 # If DATA tags from a recent dlltool are present, honour them!
5606 archive_expsym_cmds='echo EXPORTS > $output_objdir/$soname-def~
5607 _lt_hint=1;
5608 cat $export_symbols | while read symbol; do
5609 set dummy \$symbol;
5610 case \$# in
5611 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5612 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5613 esac;
5614 _lt_hint=`expr 1 + \$_lt_hint`;
5615 done~
5616 '"$ltdll_cmds"'
5617 $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~
5618 $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~
5619 $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~
5620 $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~
5621 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5622 ;;
5623
5624 netbsd*)
5625 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5626 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5627 wlarc=
5628 else
5629 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5630 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5631 fi
5632 ;;
5633
5634 solaris* | sysv5*)
5635 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5636 ld_shlibs=no
5637 cat <<EOF 1>&2
5638
5639*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5640*** create shared libraries on Solaris systems. Therefore, libtool
5641*** is disabling shared libraries support. We urge you to upgrade GNU
5642*** binutils to release 2.9.1 or newer. Another option is to modify
5643*** your PATH or compiler configuration so that the native linker is
5644*** used, and then restart.
5645
5646EOF
5647 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5648 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5649 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5650 else
5651 ld_shlibs=no
5652 fi
5653 ;;
5654
5655 sunos4*)
5656 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5657 wlarc=
5658 hardcode_direct=yes
5659 hardcode_shlibpath_var=no
5660 ;;
5661
5662 *)
5663 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5664 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5665 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5666 else
5667 ld_shlibs=no
5668 fi
5669 ;;
5670 esac
5671
5672 if test "$ld_shlibs" = yes; then
5673 runpath_var=LD_RUN_PATH
5674 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5675 export_dynamic_flag_spec='${wl}--export-dynamic'
5676 case $host_os in
5677 cygwin* | mingw* | pw32*)
5678 # dlltool doesn't understand --whole-archive et. al.
5679 whole_archive_flag_spec=
5680 ;;
5681 *)
5682 # ancient GNU ld didn't support --whole-archive et. al.
5683 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5684 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5685 else
5686 whole_archive_flag_spec=
5687 fi
5688 ;;
5689 esac
5690 fi
5691else
5692 # PORTME fill in a description of your system's linker (not GNU ld)
5693 case "$host_os" in
5694 aix3*)
5695 allow_undefined_flag=unsupported
5696 always_export_symbols=yes
5697 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'
5698 # Note: this linker hardcodes the directories in LIBPATH if there
5699 # are no directories specified by -L.
5700 hardcode_minus_L=yes
5701 if test "$GCC" = yes && test -z "$link_static_flag"; then
5702 # Neither direct hardcoding nor static linking is supported with a
5703 # broken collect2.
5704 hardcode_direct=unsupported
5705 fi
5706 ;;
5707
5708 aix4*)
5709 hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib'
5710 hardcode_libdir_separator=':'
5711 if test "$GCC" = yes; then
5712 collect2name=`${CC} -print-prog-name=collect2`
5713 if test -f "$collect2name" && \
5714 strings "$collect2name" | grep resolve_lib_name >/dev/null
5715 then
5716 # We have reworked collect2
5717 hardcode_direct=yes
5718 else
5719 # We have old collect2
5720 hardcode_direct=unsupported
5721 # It fails to find uninstalled libraries when the uninstalled
5722 # path is not listed in the libpath. Setting hardcode_minus_L
5723 # to unsupported forces relinking
5724 hardcode_minus_L=yes
5725 hardcode_libdir_flag_spec='-L$libdir'
5726 hardcode_libdir_separator=
5727 fi
5728 shared_flag='-shared'
5729 else
5730 shared_flag='${wl}-bM:SRE'
5731 hardcode_direct=yes
5732 fi
5733 allow_undefined_flag=' ${wl}-berok'
5734 archive_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}'
5735 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}'
5736 case "$host_os" in aix4.[01]|aix4.[01].*)
5737 # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on
5738 always_export_symbols=yes ;;
5739 esac
5740
5741 # We don't want to build shared libraries on unknown CPU types.
5742 case $host_cpu in
5743 powerpc | rs6000) ;;
5744 *) ld_shlibs=no ;;
5745 esac
5746 ;;
5747
5748 amigaos*)
5749 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)'
5750 hardcode_libdir_flag_spec='-L$libdir'
5751 hardcode_minus_L=yes
5752 # see comment about different semantics on the GNU ld section
5753 ld_shlibs=no
5754 ;;
5755
5756 cygwin* | mingw* | pw32*)
5757 # When not using gcc, we currently assume that we are using
5758 # Microsoft Visual C++.
5759 # hardcode_libdir_flag_spec is actually meaningless, as there is
5760 # no search path for DLLs.
5761 hardcode_libdir_flag_spec=' '
5762 allow_undefined_flag=unsupported
5763 # Tell ltmain to make .lib files, not .a files.
5764 libext=lib
5765 # FIXME: Setting linknames here is a bad hack.
5766 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5767 # The linker will automatically build a .lib file if we build a DLL.
5768 old_archive_from_new_cmds='true'
5769 # FIXME: Should let the user specify the lib program.
5770 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5771 fix_srcfile_path='`cygpath -w "$srcfile"`'
5772 ;;
5773
5774 darwin* | rhapsody*)
5775 allow_undefined_flag='-undefined warning'
5776 archive_cmds='$CC `if test "$module" = "yes"; then echo -bundle; else
5777 echo -dynamiclib; fi` -o $lib $libobjs $deplibs $linkopts'
5778 archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5779 ## What we need is to hardcode the path to the library, not the search path
5780 #hardcode_direct=yes
5781 #hardcode_libdir_flag_spec='-install_name $libdir/$lib'
5782 hardcode_shlibpath_var=no
5783 whole_archive_flag_spec='-all_load'
5784 ;;
5785
5786 freebsd1*)
5787 ld_shlibs=no
5788 ;;
5789
5790 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5791 # support. Future versions do this automatically, but an explicit c++rt0.o
5792 # does not break anything, and helps significantly (at the cost of a little
5793 # extra space).
5794 freebsd2.2*)
5795 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5796 hardcode_libdir_flag_spec='-R$libdir'
5797 hardcode_direct=yes
5798 hardcode_shlibpath_var=no
5799 ;;
5800
5801 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5802 freebsd2*)
5803 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5804 hardcode_direct=yes
5805 hardcode_minus_L=yes
5806 hardcode_shlibpath_var=no
5807 ;;
5808
5809 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5810 freebsd*)
5811 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5812 hardcode_libdir_flag_spec='-R$libdir'
5813 hardcode_direct=yes
5814 hardcode_shlibpath_var=no
5815 ;;
5816
5817 hpux9* | hpux10* | hpux11*)
5818 case "$host_os" in
5819 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' ;;
5820 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5821 esac
5822 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5823 hardcode_libdir_separator=:
5824 hardcode_direct=yes
5825 hardcode_minus_L=yes # Not in the search PATH, but as the default
5826 # location of the library.
5827 export_dynamic_flag_spec='${wl}-E'
5828 ;;
5829
5830 irix5* | irix6*)
5831 if test "$GCC" = yes; then
5832 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'
5833 else
5834 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'
5835 fi
5836 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5837 hardcode_libdir_separator=:
5838 link_all_deplibs=yes
5839 ;;
5840
5841 netbsd*)
5842 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5843 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5844 else
5845 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5846 fi
5847 hardcode_libdir_flag_spec='-R$libdir'
5848 hardcode_direct=yes
5849 hardcode_shlibpath_var=no
5850 ;;
5851
5852 newsos6)
5853 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
5854 hardcode_direct=yes
5855 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5856 hardcode_libdir_separator=:
5857 hardcode_shlibpath_var=no
5858 ;;
5859
5860 openbsd*)
5861 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5862 hardcode_libdir_flag_spec='-R$libdir'
5863 hardcode_direct=yes
5864 hardcode_shlibpath_var=no
5865 ;;
5866
5867 os2*)
5868 hardcode_libdir_flag_spec='-L$libdir'
5869 hardcode_minus_L=yes
5870 allow_undefined_flag=unsupported
5871 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'
5872 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5873 ;;
5874
5875 osf3*)
5876 if test "$GCC" = yes; then
5877 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5878 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'
5879 else
5880 allow_undefined_flag=' -expect_unresolved \*'
5881 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'
5882 fi
5883 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5884 hardcode_libdir_separator=:
5885 ;;
5886
5887 osf4* | osf5*) # as osf3* with the addition of -msym flag
5888 if test "$GCC" = yes; then
5889 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5890 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'
5891 else
5892 allow_undefined_flag=' -expect_unresolved \*'
5893 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'
5894 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5895 $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'
5896 fi
5897#Both c and cxx compiler support -rpath directly
5898 hardcode_libdir_flag_spec='-rpath $libdir'
5899 hardcode_libdir_separator=:
5900 ;;
5901
5902 sco3.2v5*)
5903 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5904 hardcode_shlibpath_var=no
5905 runpath_var=LD_RUN_PATH
5906 hardcode_runpath_var=yes
5907 ;;
5908
5909 solaris*)
5910 no_undefined_flag=' -z text'
5911 # $CC -shared without GNU ld will not create a library from C++
5912 # object files and a static libstdc++, better avoid it by now
5913 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5914 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5915 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5916 hardcode_libdir_flag_spec='-R$libdir'
5917 hardcode_shlibpath_var=no
5918 case "$host_os" in
5919 solaris2.[0-5] | solaris2.[0-5].*) ;;
5920 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5921 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5922 esac
5923 link_all_deplibs=yes
5924 ;;
5925
5926 sunos4*)
5927 if test "x$host_vendor" = xsequent; then
5928 # Use $CC to link under sequent, because it throws in some extra .o
5929 # files that make .init and .fini sections work.
5930 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5931 else
5932 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5933 fi
5934 hardcode_libdir_flag_spec='-L$libdir'
5935 hardcode_direct=yes
5936 hardcode_minus_L=yes
5937 hardcode_shlibpath_var=no
5938 ;;
5939
5940 sysv4)
5941 if test "x$host_vendor" = xsno; then
5942 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
5943 hardcode_direct=yes # is this really true???
5944 else
5945 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5946 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5947 fi
5948 runpath_var='LD_RUN_PATH'
5949 hardcode_shlibpath_var=no
5950 ;;
5951
5952 sysv4.3*)
5953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5954 hardcode_shlibpath_var=no
5955 export_dynamic_flag_spec='-Bexport'
5956 ;;
5957
5958 sysv5*)
5959 no_undefined_flag=' -z text'
5960 # $CC -shared without GNU ld will not create a library from C++
5961 # object files and a static libstdc++, better avoid it by now
5962 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5963 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5964 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5965 hardcode_libdir_flag_spec=
5966 hardcode_shlibpath_var=no
5967 runpath_var='LD_RUN_PATH'
5968 ;;
5969
5970 uts4*)
5971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5972 hardcode_libdir_flag_spec='-L$libdir'
5973 hardcode_shlibpath_var=no
5974 ;;
5975
5976 dgux*)
5977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5978 hardcode_libdir_flag_spec='-L$libdir'
5979 hardcode_shlibpath_var=no
5980 ;;
5981
5982 sysv4*MP*)
5983 if test -d /usr/nec; then
5984 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5985 hardcode_shlibpath_var=no
5986 runpath_var=LD_RUN_PATH
5987 hardcode_runpath_var=yes
5988 ld_shlibs=yes
5989 fi
5990 ;;
5991
5992 sysv4.2uw2*)
5993 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5994 hardcode_direct=yes
5995 hardcode_minus_L=no
5996 hardcode_shlibpath_var=no
5997 hardcode_runpath_var=yes
5998 runpath_var=LD_RUN_PATH
5999 ;;
6000
6001 unixware7*)
6002 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6003 runpath_var='LD_RUN_PATH'
6004 hardcode_shlibpath_var=no
6005 ;;
6006
6007 *)
6008 ld_shlibs=no
6009 ;;
6010 esac
6011fi
6012echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6013echo "${ECHO_T}$ld_shlibs" >&6
6014test "$ld_shlibs" = no && can_build_shared=no
6015##
6016## END FIXME
6017
6018## FIXME: this should be a separate macro
6019##
6020# Check hardcoding attributes.
6021echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6022echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6023hardcode_action=
6024if test -n "$hardcode_libdir_flag_spec" || \
6025 test -n "$runpath_var"; then
6026
6027 # We can hardcode non-existant directories.
6028 if test "$hardcode_direct" != no &&
6029 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6030 # have to relink, otherwise we might link with an installed library
6031 # when we should be linking with a yet-to-be-installed one
6032 ## test "$hardcode_shlibpath_var" != no &&
6033 test "$hardcode_minus_L" != no; then
6034 # Linking always hardcodes the temporary library directory.
6035 hardcode_action=relink
6036 else
6037 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6038 hardcode_action=immediate
6039 fi
6040else
6041 # We cannot hardcode anything, or else we can only hardcode existing
6042 # directories.
6043 hardcode_action=unsupported
6044fi
6045echo "$as_me:$LINENO: result: $hardcode_action" >&5
6046echo "${ECHO_T}$hardcode_action" >&6
6047##
6048## END FIXME
6049
6050## FIXME: this should be a separate macro
6051##
6052striplib=
6053old_striplib=
6054echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6055echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6056if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6057 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6058 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6059 echo "$as_me:$LINENO: result: yes" >&5
6060echo "${ECHO_T}yes" >&6
6061else
6062 echo "$as_me:$LINENO: result: no" >&5
6063echo "${ECHO_T}no" >&6
6064fi
6065##
6066## END FIXME
6067
6068reload_cmds='$LD$reload_flag -o $output$reload_objs'
6069test -z "$deplibs_check_method" && deplibs_check_method=unknown
6070
6071## FIXME: this should be a separate macro
6072##
6073# PORTME Fill in your ld.so characteristics
6074echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6075echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6076library_names_spec=
6077libname_spec='lib$name'
6078soname_spec=
6079postinstall_cmds=
6080postuninstall_cmds=
6081finish_cmds=
6082finish_eval=
6083shlibpath_var=
6084shlibpath_overrides_runpath=unknown
6085version_type=none
6086dynamic_linker="$host_os ld.so"
6087sys_lib_dlsearch_path_spec="/lib /usr/lib"
6088sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6089
6090case "$host_os" in
6091aix3*)
6092 version_type=linux
6093 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6094 shlibpath_var=LIBPATH
6095
6096 # AIX has no versioning support, so we append a major version to the name.
6097 soname_spec='${libname}${release}.so$major'
6098 ;;
6099
6100aix4*)
6101 version_type=linux
6102 # AIX has no versioning support, so currently we can not hardcode correct
6103 # soname into executable. Probably we can add versioning support to
6104 # collect2, so additional links can be useful in future.
6105 # We preserve .a as extension for shared libraries though AIX4.2
6106 # and later linker supports .so
6107 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.a'
6108 shlibpath_var=LIBPATH
6109 ;;
6110
6111amigaos*)
6112 library_names_spec='$libname.ixlibrary $libname.a'
6113 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6114 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'
6115 ;;
6116
6117beos*)
6118 library_names_spec='${libname}.so'
6119 dynamic_linker="$host_os ld.so"
6120 shlibpath_var=LIBRARY_PATH
6121 ;;
6122
6123bsdi4*)
6124 version_type=linux
6125 need_version=no
6126 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6127 soname_spec='${libname}${release}.so$major'
6128 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6129 shlibpath_var=LD_LIBRARY_PATH
6130 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6131 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6132 export_dynamic_flag_spec=-rdynamic
6133 # the default ld.so.conf also contains /usr/contrib/lib and
6134 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6135 # libtool to hard-code these into programs
6136 ;;
6137
6138cygwin* | mingw* | pw32*)
6139 version_type=windows
6140 need_version=no
6141 need_lib_prefix=no
6142 if test "$GCC" = yes; then
6143 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6144 else
6145 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6146 fi
6147 dynamic_linker='Win32 ld.exe'
6148 # FIXME: first we should search . and the directory the executable is in
6149 shlibpath_var=PATH
6150 ;;
6151
6152darwin* | rhapsody*)
6153 need_lib_prefix=no
6154 need_version=no
6155 library_names_spec='${libname}.`if test "$module" = "yes"; then echo so; else echo dylib; fi`'
6156 shlibpath_overrides_runpath=yes
6157 shlibpath_var=DYLD_LIBRARY_PATH
6158 postinstall_cmds='chmod +x $lib'
6159 ;;
6160
6161freebsd1*)
6162 dynamic_linker=no
6163 ;;
6164
6165freebsd*)
6166 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6167 version_type=freebsd-$objformat
6168 case "$version_type" in
6169 freebsd-elf*)
6170 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6171 need_version=no
6172 need_lib_prefix=no
6173 ;;
6174 freebsd-*)
6175 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6176 need_version=yes
6177 ;;
6178 esac
6179 shlibpath_var=LD_LIBRARY_PATH
6180 case "$host_os" in
6181 freebsd2*)
6182 shlibpath_overrides_runpath=yes
6183 ;;
6184 *)
6185 shlibpath_overrides_runpath=no
6186 hardcode_into_libs=yes
6187 ;;
6188 esac
6189 ;;
6190
6191gnu*)
6192 version_type=linux
6193 need_lib_prefix=no
6194 need_version=no
6195 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6196 soname_spec='${libname}${release}.so$major'
6197 shlibpath_var=LD_LIBRARY_PATH
6198 hardcode_into_libs=yes
6199 ;;
6200
6201hpux9* | hpux10* | hpux11*)
6202 # Give a soname corresponding to the major version so that dld.sl refuses to
6203 # link against other versions.
6204 dynamic_linker="$host_os dld.sl"
6205 version_type=sunos
6206 need_lib_prefix=no
6207 need_version=no
6208 shlibpath_var=SHLIB_PATH
6209 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6210 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6211 soname_spec='${libname}${release}.sl$major'
6212 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6213 postinstall_cmds='chmod 555 $lib'
6214 ;;
6215
6216irix5* | irix6*)
6217 version_type=irix
6218 need_lib_prefix=no
6219 need_version=no
6220 soname_spec='${libname}${release}.so$major'
6221 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6222 case "$host_os" in
6223 irix5*)
6224 libsuff= shlibsuff=
6225 ;;
6226 *)
6227 case "$LD" in # libtool.m4 will add one of these switches to LD
6228 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6229 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6230 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6231 *) libsuff= shlibsuff= libmagic=never-match;;
6232 esac
6233 ;;
6234 esac
6235 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6236 shlibpath_overrides_runpath=no
6237 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6238 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6239 ;;
6240
6241# No shared lib support for Linux oldld, aout, or coff.
6242linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6243 dynamic_linker=no
6244 ;;
6245
6246# This must be Linux ELF.
6247linux-gnu*)
6248 version_type=linux
6249 need_lib_prefix=no
6250 need_version=no
6251 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6252 soname_spec='${libname}${release}.so$major'
6253 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6254 shlibpath_var=LD_LIBRARY_PATH
6255 shlibpath_overrides_runpath=no
6256 # This implies no fast_install, which is unacceptable.
6257 # Some rework will be needed to allow for fast_install
6258 # before this can be enabled.
6259 hardcode_into_libs=yes
6260
6261 # We used to test for /lib/ld.so.1 and disable shared libraries on
6262 # powerpc, because MkLinux only supported shared libraries with the
6263 # GNU dynamic linker. Since this was broken with cross compilers,
6264 # most powerpc-linux boxes support dynamic linking these days and
6265 # people can always --disable-shared, the test was removed, and we
6266 # assume the GNU/Linux dynamic linker is in use.
6267 dynamic_linker='GNU/Linux ld.so'
6268 ;;
6269
6270netbsd*)
6271 version_type=sunos
6272 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6273 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6274 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6275 dynamic_linker='NetBSD (a.out) ld.so'
6276 else
6277 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6278 soname_spec='${libname}${release}.so$major'
6279 dynamic_linker='NetBSD ld.elf_so'
6280 fi
6281 shlibpath_var=LD_LIBRARY_PATH
6282 shlibpath_overrides_runpath=yes
6283 hardcode_into_libs=yes
6284 ;;
6285
6286newsos6)
6287 version_type=linux
6288 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6289 shlibpath_var=LD_LIBRARY_PATH
6290 shlibpath_overrides_runpath=yes
6291 ;;
6292
6293openbsd*)
6294 version_type=sunos
6295 if test "$with_gnu_ld" = yes; then
6296 need_lib_prefix=no
6297 need_version=no
6298 fi
6299 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6300 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6301 shlibpath_var=LD_LIBRARY_PATH
6302 ;;
6303
6304os2*)
6305 libname_spec='$name'
6306 need_lib_prefix=no
6307 library_names_spec='$libname.dll $libname.a'
6308 dynamic_linker='OS/2 ld.exe'
6309 shlibpath_var=LIBPATH
6310 ;;
6311
6312osf3* | osf4* | osf5*)
6313 version_type=osf
6314 need_version=no
6315 soname_spec='${libname}${release}.so'
6316 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6317 shlibpath_var=LD_LIBRARY_PATH
6318 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6319 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6320 ;;
6321
6322sco3.2v5*)
6323 version_type=osf
6324 soname_spec='${libname}${release}.so$major'
6325 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6326 shlibpath_var=LD_LIBRARY_PATH
6327 ;;
6328
6329solaris*)
6330 version_type=linux
6331 need_lib_prefix=no
6332 need_version=no
6333 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6334 soname_spec='${libname}${release}.so$major'
6335 shlibpath_var=LD_LIBRARY_PATH
6336 shlibpath_overrides_runpath=yes
6337 hardcode_into_libs=yes
6338 # ldd complains unless libraries are executable
6339 postinstall_cmds='chmod +x $lib'
6340 ;;
6341
6342sunos4*)
6343 version_type=sunos
6344 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6345 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6346 shlibpath_var=LD_LIBRARY_PATH
6347 shlibpath_overrides_runpath=yes
6348 if test "$with_gnu_ld" = yes; then
6349 need_lib_prefix=no
6350 fi
6351 need_version=yes
6352 ;;
6353
6354sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6355 version_type=linux
6356 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6357 soname_spec='${libname}${release}.so$major'
6358 shlibpath_var=LD_LIBRARY_PATH
6359 case "$host_vendor" in
6360 sni)
6361 shlibpath_overrides_runpath=no
6362 ;;
6363 motorola)
6364 need_lib_prefix=no
6365 need_version=no
6366 shlibpath_overrides_runpath=no
6367 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6368 ;;
6369 esac
6370 ;;
6371
6372uts4*)
6373 version_type=linux
6374 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6375 soname_spec='${libname}${release}.so$major'
6376 shlibpath_var=LD_LIBRARY_PATH
6377 ;;
6378
6379dgux*)
6380 version_type=linux
6381 need_lib_prefix=no
6382 need_version=no
6383 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6384 soname_spec='${libname}${release}.so$major'
6385 shlibpath_var=LD_LIBRARY_PATH
6386 ;;
6387
6388sysv4*MP*)
6389 if test -d /usr/nec ;then
6390 version_type=linux
6391 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6392 soname_spec='$libname.so.$major'
6393 shlibpath_var=LD_LIBRARY_PATH
6394 fi
6395 ;;
6396
6397*)
6398 dynamic_linker=no
6399 ;;
6400esac
6401echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6402echo "${ECHO_T}$dynamic_linker" >&6
6403test "$dynamic_linker" = no && can_build_shared=no
6404##
6405## END FIXME
6406
6407## FIXME: this should be a separate macro
6408##
6409# Report the final consequences.
6410echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6411echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6412echo "$as_me:$LINENO: result: $can_build_shared" >&5
6413echo "${ECHO_T}$can_build_shared" >&6
6414##
6415## END FIXME
6416
6417if test "$hardcode_action" = relink; then
6418 # Fast installation is not supported
6419 enable_fast_install=no
6420elif test "$shlibpath_overrides_runpath" = yes ||
6421 test "$enable_shared" = no; then
6422 # Fast installation is not necessary
6423 enable_fast_install=needless
6424fi
6425
6426variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6427if test "$GCC" = yes; then
6428 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6429fi
6430
6431if test "x$enable_dlopen" != xyes; then
6432 enable_dlopen=unknown
6433 enable_dlopen_self=unknown
6434 enable_dlopen_self_static=unknown
6435else
6436 lt_cv_dlopen=no
6437 lt_cv_dlopen_libs=
6438
6439 case "$host_os" in
6440 beos*)
6441 lt_cv_dlopen="load_add_on"
6442 lt_cv_dlopen_libs=
6443 lt_cv_dlopen_self=yes
6444 ;;
6445
6446 cygwin* | mingw* | pw32*)
6447 lt_cv_dlopen="LoadLibrary"
6448 lt_cv_dlopen_libs=
6449 ;;
6450
6451 *)
6452 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6453echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6454if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6455 echo $ECHO_N "(cached) $ECHO_C" >&6
6456else
6457 ac_check_lib_save_LIBS=$LIBS
6458LIBS="-ldl $LIBS"
6459cat >conftest.$ac_ext <<_ACEOF
6460/* confdefs.h. */
6461_ACEOF
6462cat confdefs.h >>conftest.$ac_ext
6463cat >>conftest.$ac_ext <<_ACEOF
6464/* end confdefs.h. */
6465
6466/* Override any gcc2 internal prototype to avoid an error. */
6467#ifdef __cplusplus
6468extern "C"
6469#endif
6470/* We use char because int might match the return type of a gcc2
6471 builtin and then its argument prototype would still apply. */
6472char dlopen ();
6473int
6474main ()
6475{
6476dlopen ();
6477 ;
6478 return 0;
6479}
6480_ACEOF
6481rm -f conftest.$ac_objext conftest$ac_exeext
6482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6483 (eval $ac_link) 2>conftest.er1
6484 ac_status=$?
6485 grep -v '^ *+' conftest.er1 >conftest.err
6486 rm -f conftest.er1
6487 cat conftest.err >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); } &&
6490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492 (eval $ac_try) 2>&5
6493 ac_status=$?
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; } &&
6496 { ac_try='test -s conftest$ac_exeext'
6497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6498 (eval $ac_try) 2>&5
6499 ac_status=$?
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); }; }; then
6502 ac_cv_lib_dl_dlopen=yes
6503else
6504 echo "$as_me: failed program was:" >&5
6505sed 's/^/| /' conftest.$ac_ext >&5
6506
6507ac_cv_lib_dl_dlopen=no
6508fi
6509rm -f conftest.err conftest.$ac_objext \
6510 conftest$ac_exeext conftest.$ac_ext
6511LIBS=$ac_check_lib_save_LIBS
6512fi
6513echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6514echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6515if test $ac_cv_lib_dl_dlopen = yes; then
6516 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6517else
6518 echo "$as_me:$LINENO: checking for dlopen" >&5
6519echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6520if test "${ac_cv_func_dlopen+set}" = set; then
6521 echo $ECHO_N "(cached) $ECHO_C" >&6
6522else
6523 cat >conftest.$ac_ext <<_ACEOF
6524/* confdefs.h. */
6525_ACEOF
6526cat confdefs.h >>conftest.$ac_ext
6527cat >>conftest.$ac_ext <<_ACEOF
6528/* end confdefs.h. */
6529/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 3391/* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale.
6530 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6531#define dlopen innocuous_dlopen 3393#define setlocale innocuous_setlocale
6532 3394
6533/* System header to define __stub macros and hopefully few prototypes, 3395/* System header to define __stub macros and hopefully few prototypes,
6534 which can conflict with char dlopen (); below. 3396 which can conflict with char setlocale (); below.
6535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6536 <limits.h> exists even on freestanding compilers. */ 3398 <limits.h> exists even on freestanding compilers. */
6537 3399
6538#ifdef __STDC__ 3400#ifdef __STDC__
6539# include <limits.h> 3401# include <limits.h>
6540#else 3402#else
6541# include <assert.h> 3403# include <assert.h>
6542#endif 3404#endif
6543 3405
6544#undef dlopen 3406#undef setlocale
6545 3407
6546/* Override any gcc2 internal prototype to avoid an error. */ 3408/* Override any gcc2 internal prototype to avoid an error. */
6547#ifdef __cplusplus 3409#ifdef __cplusplus
6548extern "C" 3410extern "C"
6549{ 3411{
6550#endif 3412#endif
6551/* We use char because int might match the return type of a gcc2 3413/* We use char because int might match the return type of a gcc2
6552 builtin and then its argument prototype would still apply. */ 3414 builtin and then its argument prototype would still apply. */
6553char dlopen (); 3415char setlocale ();
6554/* The GNU C library defines this for functions which it implements 3416/* The GNU C library defines this for functions which it implements
6555 to always fail with ENOSYS. Some functions are actually named 3417 to always fail with ENOSYS. Some functions are actually named
6556 something starting with __ and the normal name is an alias. */ 3418 something starting with __ and the normal name is an alias. */
6557#if defined (__stub_dlopen) || defined (__stub___dlopen) 3419#if defined (__stub_setlocale) || defined (__stub___setlocale)
6558choke me 3420choke me
6559#else 3421#else
6560char (*f) () = dlopen; 3422char (*f) () = setlocale;
6561#endif 3423#endif
6562#ifdef __cplusplus 3424#ifdef __cplusplus
6563} 3425}
6564#endif 3426#endif
6565 3427
6566int 3428int
6567main () 3429main ()
6568{ 3430{
6569return f != dlopen; 3431return f != setlocale;
6570 ; 3432 ;
6571 return 0; 3433 return 0;
6572} 3434}
6573_ACEOF 3435_ACEOF
6574rm -f conftest.$ac_objext conftest$ac_exeext 3436rm -f conftest.$ac_objext conftest$ac_exeext
6578 grep -v '^ *+' conftest.er1 >conftest.err 3440 grep -v '^ *+' conftest.er1 >conftest.err
6579 rm -f conftest.er1 3441 rm -f conftest.er1
6580 cat conftest.err >&5 3442 cat conftest.err >&5
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); } && 3444 (exit $ac_status); } &&
6583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3445 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585 (eval $ac_try) 2>&5 3447 (eval $ac_try) 2>&5
6586 ac_status=$? 3448 ac_status=$?
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); }; } && 3450 (exit $ac_status); }; } &&
6590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591 (eval $ac_try) 2>&5 3453 (eval $ac_try) 2>&5
6592 ac_status=$? 3454 ac_status=$?
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); }; }; then 3456 (exit $ac_status); }; }; then
6595 ac_cv_func_dlopen=yes 3457 ac_cv_func_setlocale=yes
6596else 3458else
6597 echo "$as_me: failed program was:" >&5 3459 echo "$as_me: failed program was:" >&5
6598sed 's/^/| /' conftest.$ac_ext >&5 3460sed 's/^/| /' conftest.$ac_ext >&5
6599 3461
6600ac_cv_func_dlopen=no 3462ac_cv_func_setlocale=no
6601fi 3463fi
6602rm -f conftest.err conftest.$ac_objext \ 3464rm -f conftest.err conftest.$ac_objext \
6603 conftest$ac_exeext conftest.$ac_ext 3465 conftest$ac_exeext conftest.$ac_ext
6604fi 3466fi
6605echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 3467echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5
6606echo "${ECHO_T}$ac_cv_func_dlopen" >&6 3468echo "${ECHO_T}$ac_cv_func_setlocale" >&6
6607if test $ac_cv_func_dlopen = yes; then 3469if test $ac_cv_func_setlocale = yes; then
6608 lt_cv_dlopen="dlopen" 3470 :
6609else 3471else
6610 echo "$as_me:$LINENO: checking for shl_load" >&5 3472 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
6611echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 3473echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
6612if test "${ac_cv_func_shl_load+set}" = set; then 3474if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
6613 echo $ECHO_N "(cached) $ECHO_C" >&6 3475 echo $ECHO_N "(cached) $ECHO_C" >&6
6614else 3476else
3477 ac_check_lib_save_LIBS=$LIBS
3478LIBS="-lxpg4 $LIBS"
6615 cat >conftest.$ac_ext <<_ACEOF 3479cat >conftest.$ac_ext <<_ACEOF
6616/* confdefs.h. */ 3480/* confdefs.h. */
6617_ACEOF 3481_ACEOF
6618cat confdefs.h >>conftest.$ac_ext 3482cat confdefs.h >>conftest.$ac_ext
6619cat >>conftest.$ac_ext <<_ACEOF 3483cat >>conftest.$ac_ext <<_ACEOF
6620/* end confdefs.h. */ 3484/* end confdefs.h. */
3485
3486/* Override any gcc2 internal prototype to avoid an error. */
3487#ifdef __cplusplus
3488extern "C"
3489#endif
3490/* We use char because int might match the return type of a gcc2
3491 builtin and then its argument prototype would still apply. */
3492char setlocale ();
3493int
3494main ()
3495{
3496setlocale ();
3497 ;
3498 return 0;
3499}
3500_ACEOF
3501rm -f conftest.$ac_objext conftest$ac_exeext
3502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3503 (eval $ac_link) 2>conftest.er1
3504 ac_status=$?
3505 grep -v '^ *+' conftest.er1 >conftest.err
3506 rm -f conftest.er1
3507 cat conftest.err >&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); } &&
3510 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3512 (eval $ac_try) 2>&5
3513 ac_status=$?
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); }; } &&
3516 { ac_try='test -s conftest$ac_exeext'
3517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518 (eval $ac_try) 2>&5
3519 ac_status=$?
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); }; }; then
3522 ac_cv_lib_xpg4_setlocale=yes
3523else
3524 echo "$as_me: failed program was:" >&5
3525sed 's/^/| /' conftest.$ac_ext >&5
3526
3527ac_cv_lib_xpg4_setlocale=no
3528fi
3529rm -f conftest.err conftest.$ac_objext \
3530 conftest$ac_exeext conftest.$ac_ext
3531LIBS=$ac_check_lib_save_LIBS
3532fi
3533echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
3534echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
3535if test $ac_cv_lib_xpg4_setlocale = yes; then
3536 LIBS="$LIBS -lxpg4"
3537fi
3538
3539fi
3540
3541
3542echo "$as_me:$LINENO: checking for gethostbyname" >&5
3543echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3544if test "${ac_cv_func_gethostbyname+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3546else
3547 cat >conftest.$ac_ext <<_ACEOF
3548/* confdefs.h. */
3549_ACEOF
3550cat confdefs.h >>conftest.$ac_ext
3551cat >>conftest.$ac_ext <<_ACEOF
3552/* end confdefs.h. */
6621/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 3553/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6622 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6623#define shl_load innocuous_shl_load 3555#define gethostbyname innocuous_gethostbyname
6624 3556
6625/* System header to define __stub macros and hopefully few prototypes, 3557/* System header to define __stub macros and hopefully few prototypes,
6626 which can conflict with char shl_load (); below. 3558 which can conflict with char gethostbyname (); below.
6627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6628 <limits.h> exists even on freestanding compilers. */ 3560 <limits.h> exists even on freestanding compilers. */
6629 3561
6630#ifdef __STDC__ 3562#ifdef __STDC__
6631# include <limits.h> 3563# include <limits.h>
6632#else 3564#else
6633# include <assert.h> 3565# include <assert.h>
6634#endif 3566#endif
6635 3567
6636#undef shl_load 3568#undef gethostbyname
6637 3569
6638/* Override any gcc2 internal prototype to avoid an error. */ 3570/* Override any gcc2 internal prototype to avoid an error. */
6639#ifdef __cplusplus 3571#ifdef __cplusplus
6640extern "C" 3572extern "C"
6641{ 3573{
6642#endif 3574#endif
6643/* We use char because int might match the return type of a gcc2 3575/* We use char because int might match the return type of a gcc2
6644 builtin and then its argument prototype would still apply. */ 3576 builtin and then its argument prototype would still apply. */
6645char shl_load (); 3577char gethostbyname ();
6646/* The GNU C library defines this for functions which it implements 3578/* The GNU C library defines this for functions which it implements
6647 to always fail with ENOSYS. Some functions are actually named 3579 to always fail with ENOSYS. Some functions are actually named
6648 something starting with __ and the normal name is an alias. */ 3580 something starting with __ and the normal name is an alias. */
6649#if defined (__stub_shl_load) || defined (__stub___shl_load) 3581#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6650choke me 3582choke me
6651#else 3583#else
6652char (*f) () = shl_load; 3584char (*f) () = gethostbyname;
6653#endif 3585#endif
6654#ifdef __cplusplus 3586#ifdef __cplusplus
6655} 3587}
6656#endif 3588#endif
6657 3589
6658int 3590int
6659main () 3591main ()
6660{ 3592{
6661return f != shl_load; 3593return f != gethostbyname;
6662 ; 3594 ;
6663 return 0; 3595 return 0;
6664} 3596}
6665_ACEOF 3597_ACEOF
6666rm -f conftest.$ac_objext conftest$ac_exeext 3598rm -f conftest.$ac_objext conftest$ac_exeext
6670 grep -v '^ *+' conftest.er1 >conftest.err 3602 grep -v '^ *+' conftest.er1 >conftest.err
6671 rm -f conftest.er1 3603 rm -f conftest.er1
6672 cat conftest.err >&5 3604 cat conftest.err >&5
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); } && 3606 (exit $ac_status); } &&
6675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3607 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6677 (eval $ac_try) 2>&5 3609 (eval $ac_try) 2>&5
6678 ac_status=$? 3610 ac_status=$?
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); }; } && 3612 (exit $ac_status); }; } &&
6682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6683 (eval $ac_try) 2>&5 3615 (eval $ac_try) 2>&5
6684 ac_status=$? 3616 ac_status=$?
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); }; }; then 3618 (exit $ac_status); }; }; then
6687 ac_cv_func_shl_load=yes 3619 ac_cv_func_gethostbyname=yes
6688else 3620else
6689 echo "$as_me: failed program was:" >&5 3621 echo "$as_me: failed program was:" >&5
6690sed 's/^/| /' conftest.$ac_ext >&5 3622sed 's/^/| /' conftest.$ac_ext >&5
6691 3623
6692ac_cv_func_shl_load=no 3624ac_cv_func_gethostbyname=no
6693fi 3625fi
6694rm -f conftest.err conftest.$ac_objext \ 3626rm -f conftest.err conftest.$ac_objext \
6695 conftest$ac_exeext conftest.$ac_ext 3627 conftest$ac_exeext conftest.$ac_ext
6696fi 3628fi
6697echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 3629echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6698echo "${ECHO_T}$ac_cv_func_shl_load" >&6 3630echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
6699if test $ac_cv_func_shl_load = yes; then 3631if test $ac_cv_func_gethostbyname = yes; then
6700 lt_cv_dlopen="shl_load" 3632 :
6701else 3633else
6702 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 3634 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6703echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 3635echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6704if test "${ac_cv_lib_svld_dlopen+set}" = set; then 3636if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6 3637 echo $ECHO_N "(cached) $ECHO_C" >&6
6706else 3638else
6707 ac_check_lib_save_LIBS=$LIBS 3639 ac_check_lib_save_LIBS=$LIBS
6708LIBS="-lsvld $LIBS" 3640LIBS="-lnsl $LIBS"
6709cat >conftest.$ac_ext <<_ACEOF 3641cat >conftest.$ac_ext <<_ACEOF
6710/* confdefs.h. */ 3642/* confdefs.h. */
6711_ACEOF 3643_ACEOF
6712cat confdefs.h >>conftest.$ac_ext 3644cat confdefs.h >>conftest.$ac_ext
6713cat >>conftest.$ac_ext <<_ACEOF 3645cat >>conftest.$ac_ext <<_ACEOF
6717#ifdef __cplusplus 3649#ifdef __cplusplus
6718extern "C" 3650extern "C"
6719#endif 3651#endif
6720/* We use char because int might match the return type of a gcc2 3652/* We use char because int might match the return type of a gcc2
6721 builtin and then its argument prototype would still apply. */ 3653 builtin and then its argument prototype would still apply. */
6722char dlopen (); 3654char gethostbyname ();
6723int 3655int
6724main () 3656main ()
6725{ 3657{
6726dlopen (); 3658gethostbyname ();
6727 ; 3659 ;
6728 return 0; 3660 return 0;
6729} 3661}
6730_ACEOF 3662_ACEOF
6731rm -f conftest.$ac_objext conftest$ac_exeext 3663rm -f conftest.$ac_objext conftest$ac_exeext
6735 grep -v '^ *+' conftest.er1 >conftest.err 3667 grep -v '^ *+' conftest.er1 >conftest.err
6736 rm -f conftest.er1 3668 rm -f conftest.er1
6737 cat conftest.err >&5 3669 cat conftest.err >&5
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); } && 3671 (exit $ac_status); } &&
6740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3672 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6742 (eval $ac_try) 2>&5 3674 (eval $ac_try) 2>&5
6743 ac_status=$? 3675 ac_status=$?
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); }; } && 3677 (exit $ac_status); }; } &&
6747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6748 (eval $ac_try) 2>&5 3680 (eval $ac_try) 2>&5
6749 ac_status=$? 3681 ac_status=$?
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); }; }; then 3683 (exit $ac_status); }; }; then
6752 ac_cv_lib_svld_dlopen=yes 3684 ac_cv_lib_nsl_gethostbyname=yes
6753else 3685else
6754 echo "$as_me: failed program was:" >&5 3686 echo "$as_me: failed program was:" >&5
6755sed 's/^/| /' conftest.$ac_ext >&5 3687sed 's/^/| /' conftest.$ac_ext >&5
6756 3688
6757ac_cv_lib_svld_dlopen=no 3689ac_cv_lib_nsl_gethostbyname=no
6758fi 3690fi
6759rm -f conftest.err conftest.$ac_objext \ 3691rm -f conftest.err conftest.$ac_objext \
6760 conftest$ac_exeext conftest.$ac_ext 3692 conftest$ac_exeext conftest.$ac_ext
6761LIBS=$ac_check_lib_save_LIBS 3693LIBS=$ac_check_lib_save_LIBS
6762fi 3694fi
6763echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 3695echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6764echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 3696echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6765if test $ac_cv_lib_svld_dlopen = yes; then 3697if test $ac_cv_lib_nsl_gethostbyname = yes; then
6766 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 3698 LIBS="$LIBS -lnsl"
6767else 3699fi
3700
3701fi
3702
6768 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 3703echo "$as_me:$LINENO: checking for socket" >&5
6769echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 3704echo $ECHO_N "checking for socket... $ECHO_C" >&6
6770if test "${ac_cv_lib_dld_shl_load+set}" = set; then 3705if test "${ac_cv_func_socket+set}" = set; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6 3706 echo $ECHO_N "(cached) $ECHO_C" >&6
6772else 3707else
3708 cat >conftest.$ac_ext <<_ACEOF
3709/* confdefs.h. */
3710_ACEOF
3711cat confdefs.h >>conftest.$ac_ext
3712cat >>conftest.$ac_ext <<_ACEOF
3713/* end confdefs.h. */
3714/* Define socket to an innocuous variant, in case <limits.h> declares socket.
3715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3716#define socket innocuous_socket
3717
3718/* System header to define __stub macros and hopefully few prototypes,
3719 which can conflict with char socket (); below.
3720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3721 <limits.h> exists even on freestanding compilers. */
3722
3723#ifdef __STDC__
3724# include <limits.h>
3725#else
3726# include <assert.h>
3727#endif
3728
3729#undef socket
3730
3731/* Override any gcc2 internal prototype to avoid an error. */
3732#ifdef __cplusplus
3733extern "C"
3734{
3735#endif
3736/* We use char because int might match the return type of a gcc2
3737 builtin and then its argument prototype would still apply. */
3738char socket ();
3739/* The GNU C library defines this for functions which it implements
3740 to always fail with ENOSYS. Some functions are actually named
3741 something starting with __ and the normal name is an alias. */
3742#if defined (__stub_socket) || defined (__stub___socket)
3743choke me
3744#else
3745char (*f) () = socket;
3746#endif
3747#ifdef __cplusplus
3748}
3749#endif
3750
3751int
3752main ()
3753{
3754return f != socket;
3755 ;
3756 return 0;
3757}
3758_ACEOF
3759rm -f conftest.$ac_objext conftest$ac_exeext
3760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3761 (eval $ac_link) 2>conftest.er1
3762 ac_status=$?
3763 grep -v '^ *+' conftest.er1 >conftest.err
3764 rm -f conftest.er1
3765 cat conftest.err >&5
3766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767 (exit $ac_status); } &&
3768 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3770 (eval $ac_try) 2>&5
3771 ac_status=$?
3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); }; } &&
3774 { ac_try='test -s conftest$ac_exeext'
3775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3776 (eval $ac_try) 2>&5
3777 ac_status=$?
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); }; }; then
3780 ac_cv_func_socket=yes
3781else
3782 echo "$as_me: failed program was:" >&5
3783sed 's/^/| /' conftest.$ac_ext >&5
3784
3785ac_cv_func_socket=no
3786fi
3787rm -f conftest.err conftest.$ac_objext \
3788 conftest$ac_exeext conftest.$ac_ext
3789fi
3790echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3791echo "${ECHO_T}$ac_cv_func_socket" >&6
3792if test $ac_cv_func_socket = yes; then
3793 :
3794else
3795 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3796echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3797if test "${ac_cv_lib_socket_socket+set}" = set; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3799else
6773 ac_check_lib_save_LIBS=$LIBS 3800 ac_check_lib_save_LIBS=$LIBS
6774LIBS="-ldld $LIBS" 3801LIBS="-lsocket $LIBS"
6775cat >conftest.$ac_ext <<_ACEOF 3802cat >conftest.$ac_ext <<_ACEOF
6776/* confdefs.h. */ 3803/* confdefs.h. */
6777_ACEOF 3804_ACEOF
6778cat confdefs.h >>conftest.$ac_ext 3805cat confdefs.h >>conftest.$ac_ext
6779cat >>conftest.$ac_ext <<_ACEOF 3806cat >>conftest.$ac_ext <<_ACEOF
6783#ifdef __cplusplus 3810#ifdef __cplusplus
6784extern "C" 3811extern "C"
6785#endif 3812#endif
6786/* We use char because int might match the return type of a gcc2 3813/* We use char because int might match the return type of a gcc2
6787 builtin and then its argument prototype would still apply. */ 3814 builtin and then its argument prototype would still apply. */
6788char shl_load (); 3815char socket ();
6789int 3816int
6790main () 3817main ()
6791{ 3818{
6792shl_load (); 3819socket ();
6793 ; 3820 ;
6794 return 0; 3821 return 0;
6795} 3822}
6796_ACEOF 3823_ACEOF
6797rm -f conftest.$ac_objext conftest$ac_exeext 3824rm -f conftest.$ac_objext conftest$ac_exeext
6801 grep -v '^ *+' conftest.er1 >conftest.err 3828 grep -v '^ *+' conftest.er1 >conftest.err
6802 rm -f conftest.er1 3829 rm -f conftest.er1
6803 cat conftest.err >&5 3830 cat conftest.err >&5
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); } && 3832 (exit $ac_status); } &&
6806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3833 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6808 (eval $ac_try) 2>&5 3835 (eval $ac_try) 2>&5
6809 ac_status=$? 3836 ac_status=$?
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); }; } && 3838 (exit $ac_status); }; } &&
6813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6814 (eval $ac_try) 2>&5 3841 (eval $ac_try) 2>&5
6815 ac_status=$? 3842 ac_status=$?
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); }; }; then 3844 (exit $ac_status); }; }; then
6818 ac_cv_lib_dld_shl_load=yes 3845 ac_cv_lib_socket_socket=yes
6819else 3846else
6820 echo "$as_me: failed program was:" >&5 3847 echo "$as_me: failed program was:" >&5
6821sed 's/^/| /' conftest.$ac_ext >&5 3848sed 's/^/| /' conftest.$ac_ext >&5
6822 3849
6823ac_cv_lib_dld_shl_load=no 3850ac_cv_lib_socket_socket=no
6824fi 3851fi
6825rm -f conftest.err conftest.$ac_objext \ 3852rm -f conftest.err conftest.$ac_objext \
6826 conftest$ac_exeext conftest.$ac_ext 3853 conftest$ac_exeext conftest.$ac_ext
6827LIBS=$ac_check_lib_save_LIBS 3854LIBS=$ac_check_lib_save_LIBS
6828fi 3855fi
6829echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 3856echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6830echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 3857echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
6831if test $ac_cv_lib_dld_shl_load = yes; then 3858if test $ac_cv_lib_socket_socket = yes; then
6832 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 3859 LIBS="$LIBS -lsocket"
6833fi 3860fi
6834 3861
6835
6836fi 3862fi
6837 3863
6838 3864
6839fi
6840 3865
6841
6842fi
6843
6844
6845fi
6846
6847 ;;
6848 esac
6849
6850 if test "x$lt_cv_dlopen" != xno; then
6851 enable_dlopen=yes
6852 else
6853 enable_dlopen=no
6854 fi
6855
6856 case "$lt_cv_dlopen" in
6857 dlopen)
6858 save_CPPFLAGS="$CPP_FLAGS"
6859 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6860
6861 save_LDFLAGS="$LDFLAGS"
6862 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6863
6864 save_LIBS="$LIBS"
6865 LIBS="$lt_cv_dlopen_libs $LIBS"
6866
6867 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6868echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6869if test "${lt_cv_dlopen_self+set}" = set; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6871else
6872 if test "$cross_compiling" = yes; then :
6873 lt_cv_dlopen_self=cross
6874else
6875 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6876 lt_status=$lt_dlunknown
6877 cat > conftest.$ac_ext <<EOF
6878#line 6878 "configure"
6879#include "confdefs.h"
6880
6881#if HAVE_DLFCN_H
6882#include <dlfcn.h>
6883#endif
6884
6885#include <stdio.h>
6886
6887#ifdef RTLD_GLOBAL
6888# define LT_DLGLOBAL RTLD_GLOBAL
6889#else
6890# ifdef DL_GLOBAL
6891# define LT_DLGLOBAL DL_GLOBAL
6892# else
6893# define LT_DLGLOBAL 0
6894# endif
6895#endif
6896
6897/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6898 find out it does not work in some platform. */
6899#ifndef LT_DLLAZY_OR_NOW
6900# ifdef RTLD_LAZY
6901# define LT_DLLAZY_OR_NOW RTLD_LAZY
6902# else
6903# ifdef DL_LAZY
6904# define LT_DLLAZY_OR_NOW DL_LAZY
6905# else
6906# ifdef RTLD_NOW
6907# define LT_DLLAZY_OR_NOW RTLD_NOW
6908# else
6909# ifdef DL_NOW
6910# define LT_DLLAZY_OR_NOW DL_NOW
6911# else
6912# define LT_DLLAZY_OR_NOW 0
6913# endif
6914# endif
6915# endif
6916# endif
6917#endif
6918
6919#ifdef __cplusplus
6920extern "C" void exit (int);
6921#endif
6922
6923fnord() { int i=42;}
6924main ()
6925{
6926 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6927 int status = $lt_dlunknown;
6928
6929 if (self)
6930 {
6931 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6932 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6933 /* dlclose (self); */
6934 }
6935
6936 exit (status);
6937}
6938EOF
6939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6940 (eval $ac_link) 2>&5
6941 ac_status=$?
6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6944 (./conftest; exit; ) 2>/dev/null
6945 lt_status=$?
6946 case x$lt_status in
6947 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6948 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6949 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6950 esac
6951 else :
6952 # compilation failed
6953 lt_cv_dlopen_self=no
6954 fi
6955fi
6956rm -fr conftest*
6957
6958
6959fi
6960echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6961echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6962
6963 if test "x$lt_cv_dlopen_self" = xyes; then
6964 LDFLAGS="$LDFLAGS $link_static_flag"
6965 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6966echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6967if test "${lt_cv_dlopen_self_static+set}" = set; then
6968 echo $ECHO_N "(cached) $ECHO_C" >&6
6969else
6970 if test "$cross_compiling" = yes; then :
6971 lt_cv_dlopen_self_static=cross
6972else
6973 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6974 lt_status=$lt_dlunknown
6975 cat > conftest.$ac_ext <<EOF
6976#line 6976 "configure"
6977#include "confdefs.h"
6978
6979#if HAVE_DLFCN_H
6980#include <dlfcn.h>
6981#endif
6982
6983#include <stdio.h>
6984
6985#ifdef RTLD_GLOBAL
6986# define LT_DLGLOBAL RTLD_GLOBAL
6987#else
6988# ifdef DL_GLOBAL
6989# define LT_DLGLOBAL DL_GLOBAL
6990# else
6991# define LT_DLGLOBAL 0
6992# endif
6993#endif
6994
6995/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6996 find out it does not work in some platform. */
6997#ifndef LT_DLLAZY_OR_NOW
6998# ifdef RTLD_LAZY
6999# define LT_DLLAZY_OR_NOW RTLD_LAZY
7000# else
7001# ifdef DL_LAZY
7002# define LT_DLLAZY_OR_NOW DL_LAZY
7003# else
7004# ifdef RTLD_NOW
7005# define LT_DLLAZY_OR_NOW RTLD_NOW
7006# else
7007# ifdef DL_NOW
7008# define LT_DLLAZY_OR_NOW DL_NOW
7009# else
7010# define LT_DLLAZY_OR_NOW 0
7011# endif
7012# endif
7013# endif
7014# endif
7015#endif
7016
7017#ifdef __cplusplus
7018extern "C" void exit (int);
7019#endif
7020
7021fnord() { int i=42;}
7022main ()
7023{
7024 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7025 int status = $lt_dlunknown;
7026
7027 if (self)
7028 {
7029 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7030 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7031 /* dlclose (self); */
7032 }
7033
7034 exit (status);
7035}
7036EOF
7037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7038 (eval $ac_link) 2>&5
7039 ac_status=$?
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7042 (./conftest; exit; ) 2>/dev/null
7043 lt_status=$?
7044 case x$lt_status in
7045 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7046 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7047 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7048 esac
7049 else :
7050 # compilation failed
7051 lt_cv_dlopen_self_static=no
7052 fi
7053fi
7054rm -fr conftest*
7055
7056
7057fi
7058echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7059echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7060 fi
7061
7062 CPPFLAGS="$save_CPPFLAGS"
7063 LDFLAGS="$save_LDFLAGS"
7064 LIBS="$save_LIBS"
7065 ;;
7066 esac
7067
7068 case "$lt_cv_dlopen_self" in
7069 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7070 *) enable_dlopen_self=unknown ;;
7071 esac
7072
7073 case "$lt_cv_dlopen_self_static" in
7074 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7075 *) enable_dlopen_self_static=unknown ;;
7076 esac
7077fi
7078
7079
7080## FIXME: this should be a separate macro
7081##
7082if test "$enable_shared" = yes && test "$GCC" = yes; then
7083 case "$archive_cmds" in
7084 *'~'*)
7085 # FIXME: we may have to deal with multi-command sequences.
7086 ;;
7087 '$CC '*)
7088 # Test whether the compiler implicitly links with -lc since on some
7089 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7090 # to ld, don't add -lc before -lgcc.
7091 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7092echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7093 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7094 echo $ECHO_N "(cached) $ECHO_C" >&6
7095else
7096 $rm conftest*
7097 echo 'static int dummy;' > conftest.$ac_ext
7098
7099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7100 (eval $ac_compile) 2>&5
7101 ac_status=$?
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); }; then
7104 soname=conftest
7105 lib=conftest
7106 libobjs=conftest.$ac_objext
7107 deplibs=
7108 wl=$lt_cv_prog_cc_wl
7109 compiler_flags=-v
7110 linker_flags=-v
7111 verstring=
7112 output_objdir=.
7113 libname=conftest
7114 save_allow_undefined_flag=$allow_undefined_flag
7115 allow_undefined_flag=
7116 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7117 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7118 ac_status=$?
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); }
7121 then
7122 lt_cv_archive_cmds_need_lc=no
7123 else
7124 lt_cv_archive_cmds_need_lc=yes
7125 fi
7126 allow_undefined_flag=$save_allow_undefined_flag
7127 else
7128 cat conftest.err 1>&5
7129 fi
7130fi
7131
7132 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7133echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7134 ;;
7135 esac
7136fi
7137need_lc=${lt_cv_archive_cmds_need_lc-yes}
7138##
7139## END FIXME
7140
7141## FIXME: this should be a separate macro
7142##
7143# The second clause should only fire when bootstrapping the
7144# libtool distribution, otherwise you forgot to ship ltmain.sh
7145# with your package, and you will get complaints that there are
7146# no rules to generate ltmain.sh.
7147if test -f "$ltmain"; then
7148 :
7149else
7150 # If there is no Makefile yet, we rely on a make rule to execute
7151 # `config.status --recheck' to rerun these tests and create the
7152 # libtool script then.
7153 test -f Makefile && make "$ltmain"
7154fi
7155
7156if test -f "$ltmain"; then
7157 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7158 $rm -f "${ofile}T"
7159
7160 echo creating $ofile
7161
7162 # Now quote all the things that may contain metacharacters while being
7163 # careful not to overquote the AC_SUBSTed values. We take copies of the
7164 # variables and quote the copies for generation of the libtool script.
7165 for var in echo old_CC old_CFLAGS \
7166 AR AR_FLAGS CC LD LN_S NM SHELL \
7167 reload_flag reload_cmds wl \
7168 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7169 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7170 library_names_spec soname_spec \
7171 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7172 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7173 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7174 old_striplib striplib file_magic_cmd export_symbols_cmds \
7175 deplibs_check_method allow_undefined_flag no_undefined_flag \
7176 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7177 hardcode_libdir_flag_spec hardcode_libdir_separator \
7178 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7179 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7180
7181 case "$var" in
7182 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7183 old_postinstall_cmds | old_postuninstall_cmds | \
7184 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7185 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7186 postinstall_cmds | postuninstall_cmds | \
7187 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7188 # Double-quote double-evaled strings.
7189 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7190 ;;
7191 *)
7192 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7193 ;;
7194 esac
7195 done
7196
7197 cat <<__EOF__ > "${ofile}T"
7198#! $SHELL
7199
7200# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7201# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7202# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7203#
7204# Copyright (C) 1996-2000 Free Software Foundation, Inc.
7205# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7206#
7207# This program is free software; you can redistribute it and/or modify
7208# it under the terms of the GNU General Public License as published by
7209# the Free Software Foundation; either version 2 of the License, or
7210# (at your option) any later version.
7211#
7212# This program is distributed in the hope that it will be useful, but
7213# WITHOUT ANY WARRANTY; without even the implied warranty of
7214# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7215# General Public License for more details.
7216#
7217# You should have received a copy of the GNU General Public License
7218# along with this program; if not, write to the Free Software
7219# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7220#
7221# As a special exception to the GNU General Public License, if you
7222# distribute this file as part of a program that contains a
7223# configuration script generated by Autoconf, you may include it under
7224# the same distribution terms that you use for the rest of that program.
7225
7226# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7227Xsed="sed -e s/^X//"
7228
7229# The HP-UX ksh and POSIX shell print the target directory to stdout
7230# if CDPATH is set.
7231if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7232
7233# ### BEGIN LIBTOOL CONFIG
7234
7235# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7236
7237# Shell to use when invoking shell scripts.
7238SHELL=$lt_SHELL
7239
7240# Whether or not to build shared libraries.
7241build_libtool_libs=$enable_shared
7242
7243# Whether or not to add -lc for building shared libraries.
7244build_libtool_need_lc=$need_lc
7245
7246# Whether or not to build static libraries.
7247build_old_libs=$enable_static
7248
7249# Whether or not to optimize for fast installation.
7250fast_install=$enable_fast_install
7251
7252# The host system.
7253host_alias=$host_alias
7254host=$host
7255
7256# An echo program that does not interpret backslashes.
7257echo=$lt_echo
7258
7259# The archiver.
7260AR=$lt_AR
7261AR_FLAGS=$lt_AR_FLAGS
7262
7263# The default C compiler.
7264CC=$lt_CC
7265
7266# Is the compiler the GNU C compiler?
7267with_gcc=$GCC
7268
7269# The linker used to build libraries.
7270LD=$lt_LD
7271
7272# Whether we need hard or soft links.
7273LN_S=$lt_LN_S
7274
7275# A BSD-compatible nm program.
7276NM=$lt_NM
7277
7278# A symbol stripping program
7279STRIP=$STRIP
7280
7281# Used to examine libraries when file_magic_cmd begins "file"
7282MAGIC_CMD=$MAGIC_CMD
7283
7284# Used on cygwin: DLL creation program.
7285DLLTOOL="$DLLTOOL"
7286
7287# Used on cygwin: object dumper.
7288OBJDUMP="$OBJDUMP"
7289
7290# Used on cygwin: assembler.
7291AS="$AS"
7292
7293# The name of the directory that contains temporary libtool files.
7294objdir=$objdir
7295
7296# How to create reloadable object files.
7297reload_flag=$lt_reload_flag
7298reload_cmds=$lt_reload_cmds
7299
7300# How to pass a linker flag through the compiler.
7301wl=$lt_wl
7302
7303# Object file suffix (normally "o").
7304objext="$ac_objext"
7305
7306# Old archive suffix (normally "a").
7307libext="$libext"
7308
7309# Executable file suffix (normally "").
7310exeext="$exeext"
7311
7312# Additional compiler flags for building library objects.
7313pic_flag=$lt_pic_flag
7314pic_mode=$pic_mode
7315
7316# Does compiler simultaneously support -c and -o options?
7317compiler_c_o=$lt_compiler_c_o
7318
7319# Can we write directly to a .lo ?
7320compiler_o_lo=$lt_compiler_o_lo
7321
7322# Must we lock files when doing compilation ?
7323need_locks=$lt_need_locks
7324
7325# Do we need the lib prefix for modules?
7326need_lib_prefix=$need_lib_prefix
7327
7328# Do we need a version for libraries?
7329need_version=$need_version
7330
7331# Whether dlopen is supported.
7332dlopen_support=$enable_dlopen
7333
7334# Whether dlopen of programs is supported.
7335dlopen_self=$enable_dlopen_self
7336
7337# Whether dlopen of statically linked programs is supported.
7338dlopen_self_static=$enable_dlopen_self_static
7339
7340# Compiler flag to prevent dynamic linking.
7341link_static_flag=$lt_link_static_flag
7342
7343# Compiler flag to turn off builtin functions.
7344no_builtin_flag=$lt_no_builtin_flag
7345
7346# Compiler flag to allow reflexive dlopens.
7347export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7348
7349# Compiler flag to generate shared objects directly from archives.
7350whole_archive_flag_spec=$lt_whole_archive_flag_spec
7351
7352# Compiler flag to generate thread-safe objects.
7353thread_safe_flag_spec=$lt_thread_safe_flag_spec
7354
7355# Library versioning type.
7356version_type=$version_type
7357
7358# Format of library name prefix.
7359libname_spec=$lt_libname_spec
7360
7361# List of archive names. First name is the real one, the rest are links.
7362# The last name is the one that the linker finds with -lNAME.
7363library_names_spec=$lt_library_names_spec
7364
7365# The coded name of the library, if different from the real name.
7366soname_spec=$lt_soname_spec
7367
7368# Commands used to build and install an old-style archive.
7369RANLIB=$lt_RANLIB
7370old_archive_cmds=$lt_old_archive_cmds
7371old_postinstall_cmds=$lt_old_postinstall_cmds
7372old_postuninstall_cmds=$lt_old_postuninstall_cmds
7373
7374# Create an old-style archive from a shared archive.
7375old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7376
7377# Create a temporary old-style archive to link instead of a shared archive.
7378old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7379
7380# Commands used to build and install a shared archive.
7381archive_cmds=$lt_archive_cmds
7382archive_expsym_cmds=$lt_archive_expsym_cmds
7383postinstall_cmds=$lt_postinstall_cmds
7384postuninstall_cmds=$lt_postuninstall_cmds
7385
7386# Commands to strip libraries.
7387old_striplib=$lt_old_striplib
7388striplib=$lt_striplib
7389
7390# Method to check whether dependent libraries are shared objects.
7391deplibs_check_method=$lt_deplibs_check_method
7392
7393# Command to use when deplibs_check_method == file_magic.
7394file_magic_cmd=$lt_file_magic_cmd
7395
7396# Flag that allows shared libraries with undefined symbols to be built.
7397allow_undefined_flag=$lt_allow_undefined_flag
7398
7399# Flag that forces no undefined symbols.
7400no_undefined_flag=$lt_no_undefined_flag
7401
7402# Commands used to finish a libtool library installation in a directory.
7403finish_cmds=$lt_finish_cmds
7404
7405# Same as above, but a single script fragment to be evaled but not shown.
7406finish_eval=$lt_finish_eval
7407
7408# Take the output of nm and produce a listing of raw symbols and C names.
7409global_symbol_pipe=$lt_global_symbol_pipe
7410
7411# Transform the output of nm in a proper C declaration
7412global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7413
7414# This is the shared library runtime path variable.
7415runpath_var=$runpath_var
7416
7417# This is the shared library path variable.
7418shlibpath_var=$shlibpath_var
7419
7420# Is shlibpath searched before the hard-coded library search path?
7421shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7422
7423# How to hardcode a shared library path into an executable.
7424hardcode_action=$hardcode_action
7425
7426# Whether we should hardcode library paths into libraries.
7427hardcode_into_libs=$hardcode_into_libs
7428
7429# Flag to hardcode \$libdir into a binary during linking.
7430# This must work even if \$libdir does not exist.
7431hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7432
7433# Whether we need a single -rpath flag with a separated argument.
7434hardcode_libdir_separator=$lt_hardcode_libdir_separator
7435
7436# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7437# resulting binary.
7438hardcode_direct=$hardcode_direct
7439
7440# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7441# resulting binary.
7442hardcode_minus_L=$hardcode_minus_L
7443
7444# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7445# the resulting binary.
7446hardcode_shlibpath_var=$hardcode_shlibpath_var
7447
7448# Variables whose values should be saved in libtool wrapper scripts and
7449# restored at relink time.
7450variables_saved_for_relink="$variables_saved_for_relink"
7451
7452# Whether libtool must link a program against all its dependency libraries.
7453link_all_deplibs=$link_all_deplibs
7454
7455# Compile-time system search path for libraries
7456sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7457
7458# Run-time system search path for libraries
7459sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7460
7461# Fix the shell variable \$srcfile for the compiler.
7462fix_srcfile_path="$fix_srcfile_path"
7463
7464# Set to yes if exported symbols are required.
7465always_export_symbols=$always_export_symbols
7466
7467# The commands to list exported symbols.
7468export_symbols_cmds=$lt_export_symbols_cmds
7469
7470# The commands to extract the exported symbol list from a shared archive.
7471extract_expsyms_cmds=$lt_extract_expsyms_cmds
7472
7473# Symbols that should not be listed in the preloaded symbols.
7474exclude_expsyms=$lt_exclude_expsyms
7475
7476# Symbols that must always be exported.
7477include_expsyms=$lt_include_expsyms
7478
7479# ### END LIBTOOL CONFIG
7480
7481__EOF__
7482
7483 case "$host_os" in
7484 aix3*)
7485 cat <<\EOF >> "${ofile}T"
7486
7487# AIX sometimes has problems with the GCC collect2 program. For some
7488# reason, if we set the COLLECT_NAMES environment variable, the problems
7489# vanish in a puff of smoke.
7490if test "X${COLLECT_NAMES+set}" != Xset; then
7491 COLLECT_NAMES=
7492 export COLLECT_NAMES
7493fi
7494EOF
7495 ;;
7496 esac
7497
7498 case "$host_os" in
7499 cygwin* | mingw* | pw32* | os2*)
7500 cat <<'EOF' >> "${ofile}T"
7501 # This is a source program that is used to create dlls on Windows
7502 # Don't remove nor modify the starting and closing comments
7503# /* ltdll.c starts here */
7504# #define WIN32_LEAN_AND_MEAN
7505# #include <windows.h>
7506# #undef WIN32_LEAN_AND_MEAN
7507# #include <stdio.h>
7508#
7509# #ifndef __CYGWIN__
7510# # ifdef __CYGWIN32__
7511# # define __CYGWIN__ __CYGWIN32__
7512# # endif
7513# #endif
7514#
7515# #ifdef __cplusplus
7516# extern "C" {
7517# #endif
7518# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7519# #ifdef __cplusplus
7520# }
7521# #endif
7522#
7523# #ifdef __CYGWIN__
7524# #include <cygwin/cygwin_dll.h>
7525# DECLARE_CYGWIN_DLL( DllMain );
7526# #endif
7527# HINSTANCE __hDllInstance_base;
7528#
7529# BOOL APIENTRY
7530# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7531# {
7532# __hDllInstance_base = hInst;
7533# return TRUE;
7534# }
7535# /* ltdll.c ends here */
7536 # This is a source program that is used to create import libraries
7537 # on Windows for dlls which lack them. Don't remove nor modify the
7538 # starting and closing comments
7539# /* impgen.c starts here */
7540# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7541#
7542# This file is part of GNU libtool.
7543#
7544# This program is free software; you can redistribute it and/or modify
7545# it under the terms of the GNU General Public License as published by
7546# the Free Software Foundation; either version 2 of the License, or
7547# (at your option) any later version.
7548#
7549# This program is distributed in the hope that it will be useful,
7550# but WITHOUT ANY WARRANTY; without even the implied warranty of
7551# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7552# GNU General Public License for more details.
7553#
7554# You should have received a copy of the GNU General Public License
7555# along with this program; if not, write to the Free Software
7556# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7557# */
7558#
7559# #include <stdio.h> /* for printf() */
7560# #include <unistd.h> /* for open(), lseek(), read() */
7561# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7562# #include <string.h> /* for strdup() */
7563#
7564# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7565# #ifndef O_BINARY
7566# #define O_BINARY 0
7567# #endif
7568#
7569# static unsigned int
7570# pe_get16 (fd, offset)
7571# int fd;
7572# int offset;
7573# {
7574# unsigned char b[2];
7575# lseek (fd, offset, SEEK_SET);
7576# read (fd, b, 2);
7577# return b[0] + (b[1]<<8);
7578# }
7579#
7580# static unsigned int
7581# pe_get32 (fd, offset)
7582# int fd;
7583# int offset;
7584# {
7585# unsigned char b[4];
7586# lseek (fd, offset, SEEK_SET);
7587# read (fd, b, 4);
7588# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7589# }
7590#
7591# static unsigned int
7592# pe_as32 (ptr)
7593# void *ptr;
7594# {
7595# unsigned char *b = ptr;
7596# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7597# }
7598#
7599# int
7600# main (argc, argv)
7601# int argc;
7602# char *argv[];
7603# {
7604# int dll;
7605# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7606# unsigned long export_rva, export_size, nsections, secptr, expptr;
7607# unsigned long name_rvas, nexp;
7608# unsigned char *expdata, *erva;
7609# char *filename, *dll_name;
7610#
7611# filename = argv[1];
7612#
7613# dll = open(filename, O_RDONLY|O_BINARY);
7614# if (!dll)
7615# return 1;
7616#
7617# dll_name = filename;
7618#
7619# for (i=0; filename[i]; i++)
7620# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7621# dll_name = filename + i +1;
7622#
7623# pe_header_offset = pe_get32 (dll, 0x3c);
7624# opthdr_ofs = pe_header_offset + 4 + 20;
7625# num_entries = pe_get32 (dll, opthdr_ofs + 92);
7626#
7627# if (num_entries < 1) /* no exports */
7628# return 1;
7629#
7630# export_rva = pe_get32 (dll, opthdr_ofs + 96);
7631# export_size = pe_get32 (dll, opthdr_ofs + 100);
7632# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7633# secptr = (pe_header_offset + 4 + 20 +
7634# pe_get16 (dll, pe_header_offset + 4 + 16));
7635#
7636# expptr = 0;
7637# for (i = 0; i < nsections; i++)
7638# {
7639# char sname[8];
7640# unsigned long secptr1 = secptr + 40 * i;
7641# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7642# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7643# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7644# lseek(dll, secptr1, SEEK_SET);
7645# read(dll, sname, 8);
7646# if (vaddr <= export_rva && vaddr+vsize > export_rva)
7647# {
7648# expptr = fptr + (export_rva - vaddr);
7649# if (export_rva + export_size > vaddr + vsize)
7650# export_size = vsize - (export_rva - vaddr);
7651# break;
7652# }
7653# }
7654#
7655# expdata = (unsigned char*)malloc(export_size);
7656# lseek (dll, expptr, SEEK_SET);
7657# read (dll, expdata, export_size);
7658# erva = expdata - export_rva;
7659#
7660# nexp = pe_as32 (expdata+24);
7661# name_rvas = pe_as32 (expdata+32);
7662#
7663# printf ("EXPORTS\n");
7664# for (i = 0; i<nexp; i++)
7665# {
7666# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7667# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7668# }
7669#
7670# return 0;
7671# }
7672# /* impgen.c ends here */
7673
7674EOF
7675 ;;
7676 esac
7677
7678 # We use sed instead of cat because bash on DJGPP gets confused if
7679 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7680 # text mode, it properly converts lines to CR/LF. This bash problem
7681 # is reportedly fixed, but why not run on old versions too?
7682 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7683
7684 mv -f "${ofile}T" "$ofile" || \
7685 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7686 chmod +x "$ofile"
7687fi
7688##
7689## END FIXME
7690
7691
7692
7693
7694
7695# This can be used to rebuild libtool when needed
7696LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7697
7698# Always use our own libtool.
7699LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7700
7701# Prevent multiple expansion
7702
7703
7704MALLOC_TYPE=S
7705support_addstrings=no
7706support_frills=no 3866support_frills=yes
7707support_linespace=no
7708support_inheritpixmap=no 3867support_inheritpixmap=yes
3868support_tinting=yes
3869support_fading=yes
7709support_keepscrolling=no 3870support_keepscrolling=yes
7710support_selectionscrolling=no 3871support_selectionscrolling=yes
7711support_menubar=no
7712support_mousewheel=no 3872support_mousewheel=yes
7713support_mouseslipwheel=no 3873support_mouseslipwheel=yes
7714support_oldselection=no
7715support_utmp=no
7716support_wtmp=no
7717support_lastlog=no
7718support_cursor_blink=no
7719support_text_blink=no 3874support_text_blink=yes
7720support_pointer_blank=no 3875support_pointer_blank=yes
7721support_scroll_rxvt=no 3876support_scroll_rxvt=yes
7722support_scroll_next=no 3877support_scroll_next=yes
7723support_scroll_xterm=no 3878support_scroll_xterm=yes
7724support_scroll_plain=no 3879support_scroll_plain=yes
7725support_xim=no 3880support_xim=yes
7726support_xpm=no 3881support_xpm=yes
7727support_xft=no 3882support_xft=yes
7728support_unicode3=no 3883support_unicode3=no
3884support_combining=yes
3885support_8bitctrls=no
3886support_iso14755=yes
3887support_styles=yes
3888support_perl=yes
7729codesets= 3889codesets=all
7730 3890
7731 3891
7732if test "x$enable_shared" = xyes; then 3892if test "x$enable_shared" = xyes; then
7733 3893
7734cat >>confdefs.h <<\_ACEOF 3894cat >>confdefs.h <<\_ACEOF
7740 3900
7741 3901
7742# Check whether --enable-everything or --disable-everything was given. 3902# Check whether --enable-everything or --disable-everything was given.
7743if test "${enable_everything+set}" = set; then 3903if test "${enable_everything+set}" = set; then
7744 enableval="$enable_everything" 3904 enableval="$enable_everything"
3905
3906 if test x$enableval = xno; then
3907 support_frills=no
3908 support_inheritpixmap=no
3909 support_tinting=no
3910 support_fading=no
3911 support_keepscrolling=no
3912 support_selectionscrolling=no
3913 support_lastlog=no
3914 support_mousewheel=no
3915 support_mouseslipwheel=no
3916 support_text_blink=no
3917 support_pointer_blank=no
3918 support_scroll_rxvt=no
3919 support_scroll_next=no
3920 support_scroll_xterm=no
3921 support_scroll_plain=no
3922 support_utmp=no
3923 support_wtmp=no
3924 support_xim=no
3925 support_xpm=no
3926 support_xft=no
3927 support_unicode3=no
3928 support_combining=no
3929 support_8bitctrls=no
3930 support_iso14755=no
3931 support_styles=no
3932 support_perl=no
3933 codesets=
3934 fi
7745 if test x$enableval = xyes; then 3935 if test x$enableval = xyes; then
7746 support_24bit=yes
7747 support_frills=yes 3936 support_frills=yes
7748 support_linespace=yes
7749 support_inheritpixmap=yes 3937 support_inheritpixmap=yes
3938 support_tinting=yes
3939 support_fading=yes
7750 support_keepscrolling=yes 3940 support_keepscrolling=yes
7751 support_selectionscrolling=yes 3941 support_selectionscrolling=yes
7752 support_lastlog=yes 3942 support_lastlog=yes
7753 support_menubar=yes
7754 support_mousewheel=yes 3943 support_mousewheel=yes
7755 support_mouseslipwheel=yes 3944 support_mouseslipwheel=yes
7756 support_oldselection=yes
7757 support_cursor_blink=yes
7758 support_text_blink=yes 3945 support_text_blink=yes
7759 support_pointer_blank=yes 3946 support_pointer_blank=yes
7760 support_scroll_rxvt=yes 3947 support_scroll_rxvt=yes
7761 support_scroll_next=yes 3948 support_scroll_next=yes
7762 support_scroll_xterm=yes 3949 support_scroll_xterm=yes
7763 support_scroll_plain=yes 3950 support_scroll_plain=yes
7764 support_utmp=yes 3951 support_utmp=yes
7765 support_wtmp=yes 3952 support_wtmp=yes
7766 support_xim=yes 3953 support_xim=yes
7767 support_xpm=yes 3954 support_xpm=yes
7768 support_xft=yes 3955 support_xft=yes
7769 support_unicode3=yes 3956 support_unicode3=yes
3957 support_combining=yes
3958 #support_8bitctrls=yes
3959 support_iso14755=yes
3960 support_styles=yes
3961 support_perl=yes
7770 codesets=all 3962 codesets=all
7771 fi 3963 fi
3964
7772fi; 3965fi;
7773 3966
7774# Check whether --enable-unicode3 or --disable-unicode3 was given. 3967# Check whether --enable-unicode3 or --disable-unicode3 was given.
7775if test "${enable_unicode3+set}" = set; then 3968if test "${enable_unicode3+set}" = set; then
7776 enableval="$enable_unicode3" 3969 enableval="$enable_unicode3"
7777 if test x$enableval = xyes; then 3970 if test x$enableval = xyes -o x$enableval = xno; then
7778 support_unicode3=yes 3971 support_unicode3=$enableval
3972 fi
3973fi;
3974
3975# Check whether --enable-combining or --disable-combining was given.
3976if test "${enable_combining+set}" = set; then
3977 enableval="$enable_combining"
3978 if test x$enableval = xyes -o x$enableval = xno; then
3979 support_combining=$enableval
7779 fi 3980 fi
7780fi; 3981fi;
7781 3982
7782# Check whether --enable-xft or --disable-xft was given. 3983# Check whether --enable-xft or --disable-xft was given.
7783if test "${enable_xft+set}" = set; then 3984if test "${enable_xft+set}" = set; then
7784 enableval="$enable_xft" 3985 enableval="$enable_xft"
7785 if test x$enableval = xyes; then 3986 if test x$enableval = xyes -o x$enableval = xno; then
7786 support_xft=yes 3987 support_xft=$enableval
7787 fi 3988 fi
7788fi; 3989fi;
7789 3990
7790
7791# Check whether --with-codesets or --without-codesets was given.
7792if test "${with_codesets+set}" = set; then
7793 withval="$with_codesets"
7794 if test x$enableval = xyes; then
7795 codesets="$withval"
7796 fi
7797fi;
7798
7799
7800# Check whether --with-encoding or --without-encoding was given.
7801if test "${with_encoding+set}" = set; then
7802 withval="$with_encoding"
7803 if test x$enableval = xyes; then
7804 withval=`echo $withval | tr 'a-z' 'A-Z'`
7805
7806cat >>confdefs.h <<_ACEOF
7807#define MULTICHAR_ENCODING $withval
7808_ACEOF
7809
7810 fi
7811fi;
7812
7813# Check whether --enable-utmp or --disable-utmp was given. 3991# Check whether --enable-font-styles or --disable-font-styles was given.
7814if test "${enable_utmp+set}" = set; then 3992if test "${enable_font_styles+set}" = set; then
7815 enableval="$enable_utmp" 3993 enableval="$enable_font_styles"
7816 if test x$enableval = xyes -o x$enableval = xno; then 3994 if test x$enableval = xyes -o x$enableval = xno; then
7817 support_utmp=$enableval
7818 fi
7819fi;
7820
7821# Check whether --enable-wtmp or --disable-wtmp was given.
7822if test "${enable_wtmp+set}" = set; then
7823 enableval="$enable_wtmp"
7824 if test x$enableval = xyes -o x$enableval = xno; then
7825 support_wtmp=$enableval
7826 fi
7827fi;
7828
7829# Check whether --enable-lastlog or --disable-lastlog was given.
7830if test "${enable_lastlog+set}" = set; then
7831 enableval="$enable_lastlog"
7832 if test x$enableval = xyes -o x$enableval = xno; then
7833 support_lastlog=$enableval 3995 support_styles=$enableval
7834 fi 3996 fi
7835fi; 3997fi;
7836 3998
7837# Check whether --enable-xpm-background or --disable-xpm-background was given. 3999# Check whether --enable-xpm-background or --disable-xpm-background was given.
7838if test "${enable_xpm_background+set}" = set; then 4000if test "${enable_xpm_background+set}" = set; then
7848 if test x$enableval = xyes -o x$enableval = xno; then 4010 if test x$enableval = xyes -o x$enableval = xno; then
7849 support_inheritpixmap=$enableval 4011 support_inheritpixmap=$enableval
7850 fi 4012 fi
7851fi; 4013fi;
7852 4014
7853# Check whether --enable-menubar or --disable-menubar was given. 4015# Check whether --enable-tinting or --disable-tinting was given.
7854if test "${enable_menubar+set}" = set; then 4016if test "${enable_tinting+set}" = set; then
7855 enableval="$enable_menubar" 4017 enableval="$enable_tinting"
7856 if test x$enableval = xyes -o x$enableval = xno; then 4018 if test x$enableval = xyes -o x$enableval = xno; then
4019 support_tinting=$enableval
4020 fi
4021fi;
4022
4023# Check whether --enable-fading or --disable-fading was given.
4024if test "${enable_fading+set}" = set; then
4025 enableval="$enable_fading"
4026 if test x$enableval = xyes -o x$enableval = xno; then
7857 support_menubar=$enableval 4027 support_fading=$enableval
7858 fi 4028 fi
7859fi; 4029fi;
7860 4030
7861# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given. 4031# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
7862if test "${enable_rxvt_scroll+set}" = set; then 4032if test "${enable_rxvt_scroll+set}" = set; then
7880 if test x$enableval = xyes -o x$enableval = xno; then 4050 if test x$enableval = xyes -o x$enableval = xno; then
7881 support_scroll_xterm=$enableval 4051 support_scroll_xterm=$enableval
7882 fi 4052 fi
7883fi; 4053fi;
7884 4054
4055# Check whether --enable-perl or --disable-perl was given.
4056if test "${enable_perl+set}" = set; then
4057 enableval="$enable_perl"
4058 if test x$enableval = xyes -o x$enableval = xno; then
4059 support_perl=$enableval
4060 fi
4061fi;
4062
7885# Check whether --enable-plain-scroll or --disable-plain-scroll was given. 4063# Check whether --enable-plain-scroll or --disable-plain-scroll was given.
7886if test "${enable_plain_scroll+set}" = set; then 4064if test "${enable_plain_scroll+set}" = set; then
7887 enableval="$enable_plain_scroll" 4065 enableval="$enable_plain_scroll"
7888 if test x$enableval = xyes -o x$enableval = xno; then 4066 if test x$enableval = xyes -o x$enableval = xno; then
7889 support_scroll_plain=$enableval 4067 support_scroll_plain=$enableval
7890 fi 4068 fi
7891fi; 4069fi;
7892 4070
7893# Check whether --enable-half-shadow or --disable-half-shadow was given.
7894if test "${enable_half_shadow+set}" = set; then
7895 enableval="$enable_half_shadow"
7896 if test x$enableval = xyes; then
7897 4071
7898cat >>confdefs.h <<\_ACEOF
7899#define HALFSHADOW 1
7900_ACEOF
7901 4072
7902 fi 4073# Check whether --with-codesets or --without-codesets was given.
4074if test "${with_codesets+set}" = set; then
4075 withval="$with_codesets"
4076 codesets="$withval"
7903fi; 4077fi;
7904 4078
7905# Check whether --enable-xim or --disable-xim was given. 4079# Check whether --enable-xim or --disable-xim was given.
7906if test "${enable_xim+set}" = set; then 4080if test "${enable_xim+set}" = set; then
7907 enableval="$enable_xim" 4081 enableval="$enable_xim"
7908 if test x$enableval = xyes -o x$enableval = xno; then 4082 if test x$enableval = xyes -o x$enableval = xno; then
7909 support_xim=$enableval 4083 support_xim=$enableval
7910 fi 4084 fi
7911fi; 4085fi;
7912 4086
7913# Check whether --enable-ttygid or --disable-ttygid was given.
7914if test "${enable_ttygid+set}" = set; then
7915 enableval="$enable_ttygid"
7916 if test x$enableval = xyes; then
7917
7918cat >>confdefs.h <<\_ACEOF
7919#define TTY_GID_SUPPORT 1
7920_ACEOF
7921
7922 fi
7923fi;
7924
7925# Check whether --enable-backspace-key or --disable-backspace-key was given. 4087# Check whether --enable-backspace-key or --disable-backspace-key was given.
7926if test "${enable_backspace_key+set}" = set; then 4088if test "${enable_backspace_key+set}" = set; then
7927 enableval="$enable_backspace_key" 4089 enableval="$enable_backspace_key"
7928 if test x$enableval = xno; then 4090 if test x$enableval = xno; then
7929 4091
7956_ACEOF 4118_ACEOF
7957 4119
7958 fi 4120 fi
7959fi; 4121fi;
7960 4122
7961# Check whether --enable-xgetdefault or --disable-xgetdefault was given. 4123# Check whether --enable-8bitctrls or --disable-8bitctrls was given.
7962if test "${enable_xgetdefault+set}" = set; then 4124if test "${enable_8bitctrls+set}" = set; then
7963 enableval="$enable_xgetdefault" 4125 enableval="$enable_8bitctrls"
7964 if test x$enableval = xyes; then 4126 if test x$enableval = xyes -o x$enableval = xno; then
7965 4127 support_8bitctrls=$enableval
7966cat >>confdefs.h <<\_ACEOF
7967#define USE_XGETDEFAULT 1
7968_ACEOF
7969
7970 fi 4128 fi
7971fi; 4129fi;
7972 4130
4131RESFALLBACK=Rxvt
7973# Check whether --enable-strings or --disable-strings was given. 4132# Check whether --enable-fallback or --disable-fallback was given.
7974if test "${enable_strings+set}" = set; then 4133if test "${enable_fallback+set}" = set; then
7975 enableval="$enable_strings" 4134 enableval="$enable_fallback"
4135
7976 if test x$enableval = xyes -o x$enableval = xno; then 4136 test x$enableval = xyes && enableval=Rxvt
7977 support_addstrings=$enableval 4137 test x$enableval = xno && enableval=
7978 fi 4138 RESFALLBACK="$enableval"
4139
7979fi; 4140fi;
4141
4142if test x$RESFALLBACK != x; then
4143
4144cat >>confdefs.h <<_ACEOF
4145#define RESFALLBACK "$RESFALLBACK"
4146_ACEOF
4147
4148fi
4149
4150RESNAME=urxvt
4151
4152# Check whether --with-res-name or --without-res-name was given.
4153if test "${with_res_name+set}" = set; then
4154 withval="$with_res_name"
4155 RESNAME="$withval"
4156fi;
4157
4158cat >>confdefs.h <<_ACEOF
4159#define RESNAME "$RESNAME"
4160_ACEOF
4161
4162
4163RESCLASS=URxvt
4164
4165# Check whether --with-res-class or --without-res-class was given.
4166if test "${with_res_class+set}" = set; then
4167 withval="$with_res_class"
4168 RESCLASS="$withval"
4169fi;
4170
4171cat >>confdefs.h <<_ACEOF
4172#define RESCLASS "$RESCLASS"
4173_ACEOF
4174
4175
4176RXVTNAME=urxvt
4177
4178# Check whether --with-name or --without-name was given.
4179if test "${with_name+set}" = set; then
4180 withval="$with_name"
4181 RXVTNAME="$withval"
4182fi;
4183
4184cat >>confdefs.h <<_ACEOF
4185#define RXVTNAME "$RXVTNAME"
4186_ACEOF
4187
4188
4189RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
4190
7980 4191
7981# Check whether --enable-swapscreen or --disable-swapscreen was given. 4192# Check whether --enable-swapscreen or --disable-swapscreen was given.
7982if test "${enable_swapscreen+set}" = set; then 4193if test "${enable_swapscreen+set}" = set; then
7983 enableval="$enable_swapscreen" 4194 enableval="$enable_swapscreen"
7984 if test x$enableval = xno; then 4195 if test x$enableval = xno; then
7985 4196
7986cat >>confdefs.h <<\_ACEOF 4197cat >>confdefs.h <<\_ACEOF
7987#define NO_SECONDARY_SCREEN 1 4198#define NO_SECONDARY_SCREEN 1
7988_ACEOF 4199_ACEOF
7989 4200
4201 fi
4202fi;
4203
4204# Check whether --enable-iso14755 or --disable-iso14755 was given.
4205if test "${enable_iso14755+set}" = set; then
4206 enableval="$enable_iso14755"
4207 if test x$enableval = xyes -o x$enableval = xno; then
4208 support_iso14755=$enableval
7990 fi 4209 fi
7991fi; 4210fi;
7992 4211
7993# Check whether --enable-frills or --disable-frills was given. 4212# Check whether --enable-frills or --disable-frills was given.
7994if test "${enable_frills+set}" = set; then 4213if test "${enable_frills+set}" = set; then
7996 if test x$enableval = xyes -o x$enableval = xno; then 4215 if test x$enableval = xyes -o x$enableval = xno; then
7997 support_frills=$enableval 4216 support_frills=$enableval
7998 fi 4217 fi
7999fi; 4218fi;
8000 4219
8001# Check whether --enable-linespace or --disable-linespace was given.
8002if test "${enable_linespace+set}" = set; then
8003 enableval="$enable_linespace"
8004 if test x$enableval = xyes -o x$enableval = xno; then
8005 support_linespace=$enableval
8006 fi
8007fi;
8008
8009# Check whether --enable-24bit or --disable-24bit was given.
8010if test "${enable_24bit+set}" = set; then
8011 enableval="$enable_24bit"
8012 if test x$enableval = xyes -o x$enableval = xno; then
8013 support_24bit=$enableval
8014 fi
8015fi;
8016
8017# Check whether --enable-keepscrolling or --disable-keepscrolling was given. 4220# Check whether --enable-keepscrolling or --disable-keepscrolling was given.
8018if test "${enable_keepscrolling+set}" = set; then 4221if test "${enable_keepscrolling+set}" = set; then
8019 enableval="$enable_keepscrolling" 4222 enableval="$enable_keepscrolling"
8020 if test x$enableval = xyes -o x$enableval = xno; then 4223 if test x$enableval = xyes -o x$enableval = xno; then
8021 support_keepscrolling=$enableval 4224 support_keepscrolling=$enableval
8044 if test x$enableval = xyes -o x$enableval = xno; then 4247 if test x$enableval = xyes -o x$enableval = xno; then
8045 support_mouseslipwheel=$enableval 4248 support_mouseslipwheel=$enableval
8046 fi 4249 fi
8047fi; 4250fi;
8048 4251
8049# Check whether --enable-old-selection or --disable-old-selection was given.
8050if test "${enable_old_selection+set}" = set; then
8051 enableval="$enable_old_selection"
8052 if test x$enableval = xyes -o x$enableval = xno; then
8053 support_oldselection=$enableval
8054 fi
8055fi;
8056
8057# Check whether --enable-new-selection or --disable-new-selection was given.
8058if test "${enable_new_selection+set}" = set; then
8059 enableval="$enable_new_selection"
8060 if test x$enableval = xno; then
8061
8062cat >>confdefs.h <<\_ACEOF
8063#define NO_NEW_SELECTION 1
8064_ACEOF
8065
8066 fi
8067fi;
8068
8069# Check whether --enable-dmalloc or --disable-dmalloc was given.
8070if test "${enable_dmalloc+set}" = set; then
8071 enableval="$enable_dmalloc"
8072 if test x$enableval = xyes; then
8073 MALLOC_TYPE=G
8074 DEBUG=-DDEBUG_MALLOC
8075 DLIB="-L/usr/local/lib -ldmalloc"
8076 DINCLUDE=-I/usr/local/include
8077 fi
8078fi;
8079
8080# Check whether --enable-dlmalloc or --disable-dlmalloc was given.
8081if test "${enable_dlmalloc+set}" = set; then
8082 enableval="$enable_dlmalloc"
8083 if test x$enableval = xyes; then
8084 MALLOC_TYPE=D
8085 DEBUG=
8086 DLIB="-L/usr/local/lib -ldlmalloc"
8087 DINCLUDE=
8088 fi
8089fi;
8090
8091# Check whether --enable-smart-resize or --disable-smart-resize was given. 4252# Check whether --enable-smart-resize or --disable-smart-resize was given.
8092if test "${enable_smart_resize+set}" = set; then 4253if test "${enable_smart_resize+set}" = set; then
8093 enableval="$enable_smart_resize" 4254 enableval="$enable_smart_resize"
8094 if test x$enableval = xyes; then 4255 if test x$enableval = xyes; then
8095 4256
8096cat >>confdefs.h <<\_ACEOF 4257cat >>confdefs.h <<\_ACEOF
8097#define SMART_RESIZE 1 4258#define SMART_RESIZE 1
8098_ACEOF 4259_ACEOF
8099 4260
8100 fi
8101fi;
8102
8103# Check whether --enable-256-color or --disable-256-color was given.
8104if test "${enable_256_color+set}" = set; then
8105 enableval="$enable_256_color"
8106 if test x$enableval = xyes; then
8107
8108cat >>confdefs.h <<\_ACEOF
8109#define TTY_256COLOR 1
8110_ACEOF
8111
8112 fi
8113fi;
8114
8115# Check whether --enable-cursor-blink or --disable-cursor-blink was given.
8116if test "${enable_cursor_blink+set}" = set; then
8117 enableval="$enable_cursor_blink"
8118 if test x$enableval = xyes -o x$enableval = xno; then
8119 support_cursor_blink=$enableval
8120 fi 4261 fi
8121fi; 4262fi;
8122 4263
8123# Check whether --enable-text-blink or --disable-text-blink was given. 4264# Check whether --enable-text-blink or --disable-text-blink was given.
8124if test "${enable_text_blink+set}" = set; then 4265if test "${enable_text_blink+set}" = set; then
8160_ACEOF 4301_ACEOF
8161 terminfo="$withval" 4302 terminfo="$withval"
8162 fi 4303 fi
8163fi; 4304fi;
8164 4305
8165
8166
8167cat >>confdefs.h <<\_ACEOF
8168#define PROTOTYPES 1
8169_ACEOF
8170
8171
8172if test -z "$CFLAGS"; then
8173 if test -z "$CCOPTS"; then
8174 CCOPTS='-O'
8175 fi
8176 CFLAGS="$CCOPTS"
8177fi
8178 4306
8179# Extract the first word of "mv", so it can be a program name with args. 4307# Extract the first word of "mv", so it can be a program name with args.
8180set dummy mv; ac_word=$2 4308set dummy mv; ac_word=$2
8181echo "$as_me:$LINENO: checking for $ac_word" >&5 4309echo "$as_me:$LINENO: checking for $ac_word" >&5
8182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8214else 4342else
8215 echo "$as_me:$LINENO: result: no" >&5 4343 echo "$as_me:$LINENO: result: no" >&5
8216echo "${ECHO_T}no" >&6 4344echo "${ECHO_T}no" >&6
8217fi 4345fi
8218 4346
8219# Extract the first word of "rm", so it can be a program name with args.
8220set dummy rm; ac_word=$2
8221echo "$as_me:$LINENO: checking for $ac_word" >&5
8222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8223if test "${ac_cv_path_RM+set}" = set; then
8224 echo $ECHO_N "(cached) $ECHO_C" >&6
8225else
8226 case $RM in
8227 [\\/]* | ?:[\\/]*)
8228 ac_cv_path_RM="$RM" # Let the user override the test with a path.
8229 ;;
8230 *)
8231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8232for as_dir in $PATH
8233do
8234 IFS=$as_save_IFS
8235 test -z "$as_dir" && as_dir=.
8236 for ac_exec_ext in '' $ac_executable_extensions; do
8237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8238 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8240 break 2
8241 fi
8242done
8243done
8244
8245 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
8246 ;;
8247esac
8248fi
8249RM=$ac_cv_path_RM
8250
8251if test -n "$RM"; then
8252 echo "$as_me:$LINENO: result: $RM" >&5
8253echo "${ECHO_T}$RM" >&6
8254else
8255 echo "$as_me:$LINENO: result: no" >&5
8256echo "${ECHO_T}no" >&6
8257fi
8258
8259# Extract the first word of "cp", so it can be a program name with args. 4347# Extract the first word of "cp", so it can be a program name with args.
8260set dummy cp; ac_word=$2 4348set dummy cp; ac_word=$2
8261echo "$as_me:$LINENO: checking for $ac_word" >&5 4349echo "$as_me:$LINENO: checking for $ac_word" >&5
8262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8263if test "${ac_cv_path_CP+set}" = set; then 4351if test "${ac_cv_path_CP+set}" = set; then
8454else 4542else
8455 echo "$as_me:$LINENO: result: no" >&5 4543 echo "$as_me:$LINENO: result: no" >&5
8456echo "${ECHO_T}no" >&6 4544echo "${ECHO_T}no" >&6
8457fi 4545fi
8458 4546
8459# Extract the first word of "tbl", so it can be a program name with args. 4547# Extract the first word of "tic", so it can be a program name with args.
8460set dummy tbl; ac_word=$2 4548set dummy tic; ac_word=$2
8461echo "$as_me:$LINENO: checking for $ac_word" >&5 4549echo "$as_me:$LINENO: checking for $ac_word" >&5
8462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8463if test "${ac_cv_path_TBL+set}" = set; then 4551if test "${ac_cv_path_TIC+set}" = set; then
8464 echo $ECHO_N "(cached) $ECHO_C" >&6 4552 echo $ECHO_N "(cached) $ECHO_C" >&6
8465else 4553else
8466 case $TBL in 4554 case $TIC in
8467 [\\/]* | ?:[\\/]*) 4555 [\\/]* | ?:[\\/]*)
8468 ac_cv_path_TBL="$TBL" # Let the user override the test with a path. 4556 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
8469 ;; 4557 ;;
8470 *) 4558 *)
8471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8472for as_dir in $PATH 4560for as_dir in $PATH
8473do 4561do
8474 IFS=$as_save_IFS 4562 IFS=$as_save_IFS
8475 test -z "$as_dir" && as_dir=. 4563 test -z "$as_dir" && as_dir=.
8476 for ac_exec_ext in '' $ac_executable_extensions; do 4564 for ac_exec_ext in '' $ac_executable_extensions; do
8477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8478 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext" 4566 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
8479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8480 break 2 4568 break 2
8481 fi 4569 fi
8482done 4570done
8483done 4571done
8484 4572
8485 ;; 4573 ;;
8486esac 4574esac
8487fi 4575fi
8488TBL=$ac_cv_path_TBL 4576TIC=$ac_cv_path_TIC
8489 4577
8490if test -n "$TBL"; then 4578if test -n "$TIC"; then
8491 echo "$as_me:$LINENO: result: $TBL" >&5 4579 echo "$as_me:$LINENO: result: $TIC" >&5
8492echo "${ECHO_T}$TBL" >&6 4580echo "${ECHO_T}$TIC" >&6
8493else 4581else
8494 echo "$as_me:$LINENO: result: no" >&5 4582 echo "$as_me:$LINENO: result: no" >&5
8495echo "${ECHO_T}no" >&6 4583echo "${ECHO_T}no" >&6
8496fi 4584fi
8497 4585
8498 4586
8499 4587
8500 4588
4589ac_ext=cc
4590ac_cpp='$CXXCPP $CPPFLAGS'
4591ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4592ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4593ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4594echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4595echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4596if test -z "$CXXCPP"; then
4597 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4598 echo $ECHO_N "(cached) $ECHO_C" >&6
4599else
4600 # Double quotes because CXXCPP needs to be expanded
4601 for CXXCPP in "$CXX -E" "/lib/cpp"
4602 do
4603 ac_preproc_ok=false
4604for ac_cxx_preproc_warn_flag in '' yes
4605do
4606 # Use a header file that comes with gcc, so configuring glibc
4607 # with a fresh cross-compiler works.
4608 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4609 # <limits.h> exists even on freestanding compilers.
4610 # On the NeXT, cc -E runs the code through the compiler's parser,
4611 # not just through cpp. "Syntax error" is here to catch this case.
4612 cat >conftest.$ac_ext <<_ACEOF
4613/* confdefs.h. */
4614_ACEOF
4615cat confdefs.h >>conftest.$ac_ext
4616cat >>conftest.$ac_ext <<_ACEOF
4617/* end confdefs.h. */
4618#ifdef __STDC__
4619# include <limits.h>
4620#else
4621# include <assert.h>
4622#endif
4623 Syntax error
4624_ACEOF
4625if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4626 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4627 ac_status=$?
4628 grep -v '^ *+' conftest.er1 >conftest.err
4629 rm -f conftest.er1
4630 cat conftest.err >&5
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); } >/dev/null; then
4633 if test -s conftest.err; then
4634 ac_cpp_err=$ac_cxx_preproc_warn_flag
4635 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4636 else
4637 ac_cpp_err=
4638 fi
4639else
4640 ac_cpp_err=yes
4641fi
4642if test -z "$ac_cpp_err"; then
4643 :
4644else
4645 echo "$as_me: failed program was:" >&5
4646sed 's/^/| /' conftest.$ac_ext >&5
4647
4648 # Broken: fails on valid input.
4649continue
4650fi
4651rm -f conftest.err conftest.$ac_ext
4652
4653 # OK, works on sane cases. Now check whether non-existent headers
4654 # can be detected and how.
4655 cat >conftest.$ac_ext <<_ACEOF
4656/* confdefs.h. */
4657_ACEOF
4658cat confdefs.h >>conftest.$ac_ext
4659cat >>conftest.$ac_ext <<_ACEOF
4660/* end confdefs.h. */
4661#include <ac_nonexistent.h>
4662_ACEOF
4663if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4664 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4665 ac_status=$?
4666 grep -v '^ *+' conftest.er1 >conftest.err
4667 rm -f conftest.er1
4668 cat conftest.err >&5
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); } >/dev/null; then
4671 if test -s conftest.err; then
4672 ac_cpp_err=$ac_cxx_preproc_warn_flag
4673 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4674 else
4675 ac_cpp_err=
4676 fi
4677else
4678 ac_cpp_err=yes
4679fi
4680if test -z "$ac_cpp_err"; then
4681 # Broken: success on invalid input.
4682continue
4683else
4684 echo "$as_me: failed program was:" >&5
4685sed 's/^/| /' conftest.$ac_ext >&5
4686
4687 # Passes both tests.
4688ac_preproc_ok=:
4689break
4690fi
4691rm -f conftest.err conftest.$ac_ext
4692
4693done
4694# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4695rm -f conftest.err conftest.$ac_ext
4696if $ac_preproc_ok; then
4697 break
4698fi
4699
4700 done
4701 ac_cv_prog_CXXCPP=$CXXCPP
4702
4703fi
4704 CXXCPP=$ac_cv_prog_CXXCPP
4705else
4706 ac_cv_prog_CXXCPP=$CXXCPP
4707fi
4708echo "$as_me:$LINENO: result: $CXXCPP" >&5
4709echo "${ECHO_T}$CXXCPP" >&6
4710ac_preproc_ok=false
4711for ac_cxx_preproc_warn_flag in '' yes
4712do
4713 # Use a header file that comes with gcc, so configuring glibc
4714 # with a fresh cross-compiler works.
4715 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4716 # <limits.h> exists even on freestanding compilers.
4717 # On the NeXT, cc -E runs the code through the compiler's parser,
4718 # not just through cpp. "Syntax error" is here to catch this case.
4719 cat >conftest.$ac_ext <<_ACEOF
4720/* confdefs.h. */
4721_ACEOF
4722cat confdefs.h >>conftest.$ac_ext
4723cat >>conftest.$ac_ext <<_ACEOF
4724/* end confdefs.h. */
4725#ifdef __STDC__
4726# include <limits.h>
4727#else
4728# include <assert.h>
4729#endif
4730 Syntax error
4731_ACEOF
4732if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4734 ac_status=$?
4735 grep -v '^ *+' conftest.er1 >conftest.err
4736 rm -f conftest.er1
4737 cat conftest.err >&5
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); } >/dev/null; then
4740 if test -s conftest.err; then
4741 ac_cpp_err=$ac_cxx_preproc_warn_flag
4742 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4743 else
4744 ac_cpp_err=
4745 fi
4746else
4747 ac_cpp_err=yes
4748fi
4749if test -z "$ac_cpp_err"; then
4750 :
4751else
4752 echo "$as_me: failed program was:" >&5
4753sed 's/^/| /' conftest.$ac_ext >&5
4754
4755 # Broken: fails on valid input.
4756continue
4757fi
4758rm -f conftest.err conftest.$ac_ext
4759
4760 # OK, works on sane cases. Now check whether non-existent headers
4761 # can be detected and how.
4762 cat >conftest.$ac_ext <<_ACEOF
4763/* confdefs.h. */
4764_ACEOF
4765cat confdefs.h >>conftest.$ac_ext
4766cat >>conftest.$ac_ext <<_ACEOF
4767/* end confdefs.h. */
4768#include <ac_nonexistent.h>
4769_ACEOF
4770if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4772 ac_status=$?
4773 grep -v '^ *+' conftest.er1 >conftest.err
4774 rm -f conftest.er1
4775 cat conftest.err >&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } >/dev/null; then
4778 if test -s conftest.err; then
4779 ac_cpp_err=$ac_cxx_preproc_warn_flag
4780 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4781 else
4782 ac_cpp_err=
4783 fi
4784else
4785 ac_cpp_err=yes
4786fi
4787if test -z "$ac_cpp_err"; then
4788 # Broken: success on invalid input.
4789continue
4790else
4791 echo "$as_me: failed program was:" >&5
4792sed 's/^/| /' conftest.$ac_ext >&5
4793
4794 # Passes both tests.
4795ac_preproc_ok=:
4796break
4797fi
4798rm -f conftest.err conftest.$ac_ext
4799
4800done
4801# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4802rm -f conftest.err conftest.$ac_ext
4803if $ac_preproc_ok; then
4804 :
4805else
4806 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4807See \`config.log' for more details." >&5
4808echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4809See \`config.log' for more details." >&2;}
4810 { (exit 1); exit 1; }; }
4811fi
4812
4813ac_ext=cc
4814ac_cpp='$CXXCPP $CPPFLAGS'
4815ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4816ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4817ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4818
4819
4820
4821if test "x$ac_path_x_has_been_run" != xyes; then
8501echo "$as_me:$LINENO: checking for X" >&5 4822 echo "$as_me:$LINENO: checking for X" >&5
8502echo $ECHO_N "checking for X... $ECHO_C" >&6 4823echo $ECHO_N "checking for X... $ECHO_C" >&6
8503 4824
4825ac_path_x_has_been_run=yes
8504 4826
8505# Check whether --with-x or --without-x was given. 4827# Check whether --with-x or --without-x was given.
8506if test "${with_x+set}" = set; then 4828if test "${with_x+set}" = set; then
8507 withval="$with_x" 4829 withval="$with_x"
8508 4830
8591 4913
8592/usr/openwin/include 4914/usr/openwin/include
8593/usr/openwin/share/include' 4915/usr/openwin/share/include'
8594 4916
8595if test "$ac_x_includes" = no; then 4917if test "$ac_x_includes" = no; then
8596 # Guess where to find include files, by looking for Intrinsic.h. 4918 # Guess where to find include files, by looking for a specified header file.
8597 # First, try using that file with no special directory specified. 4919 # First, try using that file with no special directory specified.
8598 cat >conftest.$ac_ext <<_ACEOF 4920 cat >conftest.$ac_ext <<_ACEOF
8599/* confdefs.h. */ 4921/* confdefs.h. */
8600_ACEOF 4922_ACEOF
8601cat confdefs.h >>conftest.$ac_ext 4923cat confdefs.h >>conftest.$ac_ext
8602cat >>conftest.$ac_ext <<_ACEOF 4924cat >>conftest.$ac_ext <<_ACEOF
8603/* end confdefs.h. */ 4925/* end confdefs.h. */
8604#include <X11/Intrinsic.h> 4926#include <X11/Xlib.h>
8605_ACEOF 4927_ACEOF
8606if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4928if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8607 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8608 ac_status=$? 4930 ac_status=$?
8609 grep -v '^ *+' conftest.er1 >conftest.err 4931 grep -v '^ *+' conftest.er1 >conftest.err
8610 rm -f conftest.er1 4932 rm -f conftest.er1
8611 cat conftest.err >&5 4933 cat conftest.err >&5
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); } >/dev/null; then 4935 (exit $ac_status); } >/dev/null; then
8614 if test -s conftest.err; then 4936 if test -s conftest.err; then
8615 ac_cpp_err=$ac_c_preproc_warn_flag 4937 ac_cpp_err=$ac_cxx_preproc_warn_flag
8616 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4938 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8617 else 4939 else
8618 ac_cpp_err= 4940 ac_cpp_err=
8619 fi 4941 fi
8620else 4942else
8621 ac_cpp_err=yes 4943 ac_cpp_err=yes
8626else 4948else
8627 echo "$as_me: failed program was:" >&5 4949 echo "$as_me: failed program was:" >&5
8628sed 's/^/| /' conftest.$ac_ext >&5 4950sed 's/^/| /' conftest.$ac_ext >&5
8629 4951
8630 for ac_dir in $ac_x_header_dirs; do 4952 for ac_dir in $ac_x_header_dirs; do
8631 if test -r "$ac_dir/X11/Intrinsic.h"; then 4953 if test -r "$ac_dir/X11/Xlib.h"; then
8632 ac_x_includes=$ac_dir 4954 ac_x_includes=$ac_dir
8633 break 4955 break
8634 fi 4956 fi
8635done 4957done
8636fi 4958fi
8640if test "$ac_x_libraries" = no; then 4962if test "$ac_x_libraries" = no; then
8641 # Check for the libraries. 4963 # Check for the libraries.
8642 # See if we find them without any special options. 4964 # See if we find them without any special options.
8643 # Don't add to $LIBS permanently. 4965 # Don't add to $LIBS permanently.
8644 ac_save_LIBS=$LIBS 4966 ac_save_LIBS=$LIBS
8645 LIBS="-lXt $LIBS" 4967 LIBS="-lX11 $LIBS"
8646 cat >conftest.$ac_ext <<_ACEOF 4968 cat >conftest.$ac_ext <<_ACEOF
8647/* confdefs.h. */ 4969/* confdefs.h. */
8648_ACEOF 4970_ACEOF
8649cat confdefs.h >>conftest.$ac_ext 4971cat confdefs.h >>conftest.$ac_ext
8650cat >>conftest.$ac_ext <<_ACEOF 4972cat >>conftest.$ac_ext <<_ACEOF
8651/* end confdefs.h. */ 4973/* end confdefs.h. */
8652#include <X11/Intrinsic.h> 4974#include <X11/Xlib.h>
8653int 4975int
8654main () 4976main ()
8655{ 4977{
8656XtMalloc (0) 4978XrmInitialize ()
8657 ; 4979 ;
8658 return 0; 4980 return 0;
8659} 4981}
8660_ACEOF 4982_ACEOF
8661rm -f conftest.$ac_objext conftest$ac_exeext 4983rm -f conftest.$ac_objext conftest$ac_exeext
8665 grep -v '^ *+' conftest.er1 >conftest.err 4987 grep -v '^ *+' conftest.er1 >conftest.err
8666 rm -f conftest.er1 4988 rm -f conftest.er1
8667 cat conftest.err >&5 4989 cat conftest.err >&5
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); } && 4991 (exit $ac_status); } &&
8670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4992 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8672 (eval $ac_try) 2>&5 4994 (eval $ac_try) 2>&5
8673 ac_status=$? 4995 ac_status=$?
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); }; } && 4997 (exit $ac_status); }; } &&
8689LIBS=$ac_save_LIBS 5011LIBS=$ac_save_LIBS
8690for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 5012for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8691do 5013do
8692 # Don't even attempt the hair of trying to link an X program! 5014 # Don't even attempt the hair of trying to link an X program!
8693 for ac_extension in a so sl; do 5015 for ac_extension in a so sl; do
8694 if test -r $ac_dir/libXt.$ac_extension; then 5016 if test -r $ac_dir/libX11.$ac_extension; then
8695 ac_x_libraries=$ac_dir 5017 ac_x_libraries=$ac_dir
8696 break 2 5018 break 2
8697 fi 5019 fi
8698 done 5020 done
8699done 5021done
8725 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 5047 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8726 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 5048 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8727 # Update the cache value to reflect the command line values. 5049 # Update the cache value to reflect the command line values.
8728 ac_cv_have_x="have_x=yes \ 5050 ac_cv_have_x="have_x=yes \
8729 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 5051 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5052 # It might be that x_includes is empty (headers are found in the
5053 # standard search path. Then output the corresponding message
5054 ac_out_x_includes=$x_includes
5055 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
8730 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 5056 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
8731echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 5057echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
8732fi 5058fi
8733 5059
5060fi
8734if test "$no_x" = yes; then 5061if test "$no_x" = yes; then
8735 # Not all programs may use this symbol, but it does not hurt to define it. 5062 # Not all programs may use this symbol, but it does not hurt to define it.
8736 5063
8737cat >>confdefs.h <<\_ACEOF 5064cat >>confdefs.h <<\_ACEOF
8738#define X_DISPLAY_MISSING 1 5065#define X_DISPLAY_MISSING 1
8776 grep -v '^ *+' conftest.er1 >conftest.err 5103 grep -v '^ *+' conftest.er1 >conftest.err
8777 rm -f conftest.er1 5104 rm -f conftest.er1
8778 cat conftest.err >&5 5105 cat conftest.err >&5
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); } && 5107 (exit $ac_status); } &&
8781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5108 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8783 (eval $ac_try) 2>&5 5110 (eval $ac_try) 2>&5
8784 ac_status=$? 5111 ac_status=$?
8785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786 (exit $ac_status); }; } && 5113 (exit $ac_status); }; } &&
8827 grep -v '^ *+' conftest.er1 >conftest.err 5154 grep -v '^ *+' conftest.er1 >conftest.err
8828 rm -f conftest.er1 5155 rm -f conftest.er1
8829 cat conftest.err >&5 5156 cat conftest.err >&5
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); } && 5158 (exit $ac_status); } &&
8832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5159 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834 (eval $ac_try) 2>&5 5161 (eval $ac_try) 2>&5
8835 ac_status=$? 5162 ac_status=$?
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); }; } && 5164 (exit $ac_status); }; } &&
8903 grep -v '^ *+' conftest.er1 >conftest.err 5230 grep -v '^ *+' conftest.er1 >conftest.err
8904 rm -f conftest.er1 5231 rm -f conftest.er1
8905 cat conftest.err >&5 5232 cat conftest.err >&5
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); } && 5234 (exit $ac_status); } &&
8908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5235 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8910 (eval $ac_try) 2>&5 5237 (eval $ac_try) 2>&5
8911 ac_status=$? 5238 ac_status=$?
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); }; } && 5240 (exit $ac_status); }; } &&
8958 grep -v '^ *+' conftest.er1 >conftest.err 5285 grep -v '^ *+' conftest.er1 >conftest.err
8959 rm -f conftest.er1 5286 rm -f conftest.er1
8960 cat conftest.err >&5 5287 cat conftest.err >&5
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); } && 5289 (exit $ac_status); } &&
8963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5290 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8965 (eval $ac_try) 2>&5 5292 (eval $ac_try) 2>&5
8966 ac_status=$? 5293 ac_status=$?
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); }; } && 5295 (exit $ac_status); }; } &&
9026 grep -v '^ *+' conftest.er1 >conftest.err 5353 grep -v '^ *+' conftest.er1 >conftest.err
9027 rm -f conftest.er1 5354 rm -f conftest.er1
9028 cat conftest.err >&5 5355 cat conftest.err >&5
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); } && 5357 (exit $ac_status); } &&
9031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5358 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9033 (eval $ac_try) 2>&5 5360 (eval $ac_try) 2>&5
9034 ac_status=$? 5361 ac_status=$?
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); }; } && 5363 (exit $ac_status); }; } &&
9134 grep -v '^ *+' conftest.er1 >conftest.err 5461 grep -v '^ *+' conftest.er1 >conftest.err
9135 rm -f conftest.er1 5462 rm -f conftest.er1
9136 cat conftest.err >&5 5463 cat conftest.err >&5
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); } && 5465 (exit $ac_status); } &&
9139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5466 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9141 (eval $ac_try) 2>&5 5468 (eval $ac_try) 2>&5
9142 ac_status=$? 5469 ac_status=$?
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); }; } && 5471 (exit $ac_status); }; } &&
9198 grep -v '^ *+' conftest.er1 >conftest.err 5525 grep -v '^ *+' conftest.er1 >conftest.err
9199 rm -f conftest.er1 5526 rm -f conftest.er1
9200 cat conftest.err >&5 5527 cat conftest.err >&5
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); } && 5529 (exit $ac_status); } &&
9203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5530 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9205 (eval $ac_try) 2>&5 5532 (eval $ac_try) 2>&5
9206 ac_status=$? 5533 ac_status=$?
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); }; } && 5535 (exit $ac_status); }; } &&
9266 grep -v '^ *+' conftest.er1 >conftest.err 5593 grep -v '^ *+' conftest.er1 >conftest.err
9267 rm -f conftest.er1 5594 rm -f conftest.er1
9268 cat conftest.err >&5 5595 cat conftest.err >&5
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); } && 5597 (exit $ac_status); } &&
9271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5598 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9273 (eval $ac_try) 2>&5 5600 (eval $ac_try) 2>&5
9274 ac_status=$? 5601 ac_status=$?
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); }; } && 5603 (exit $ac_status); }; } &&
9370 grep -v '^ *+' conftest.er1 >conftest.err 5697 grep -v '^ *+' conftest.er1 >conftest.err
9371 rm -f conftest.er1 5698 rm -f conftest.er1
9372 cat conftest.err >&5 5699 cat conftest.err >&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); } && 5701 (exit $ac_status); } &&
9375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5702 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9377 (eval $ac_try) 2>&5 5704 (eval $ac_try) 2>&5
9378 ac_status=$? 5705 ac_status=$?
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); }; } && 5707 (exit $ac_status); }; } &&
9434 grep -v '^ *+' conftest.er1 >conftest.err 5761 grep -v '^ *+' conftest.er1 >conftest.err
9435 rm -f conftest.er1 5762 rm -f conftest.er1
9436 cat conftest.err >&5 5763 cat conftest.err >&5
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); } && 5765 (exit $ac_status); } &&
9439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5766 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9441 (eval $ac_try) 2>&5 5768 (eval $ac_try) 2>&5
9442 ac_status=$? 5769 ac_status=$?
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); }; } && 5771 (exit $ac_status); }; } &&
9531 grep -v '^ *+' conftest.er1 >conftest.err 5858 grep -v '^ *+' conftest.er1 >conftest.err
9532 rm -f conftest.er1 5859 rm -f conftest.er1
9533 cat conftest.err >&5 5860 cat conftest.err >&5
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); } && 5862 (exit $ac_status); } &&
9536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5863 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9538 (eval $ac_try) 2>&5 5865 (eval $ac_try) 2>&5
9539 ac_status=$? 5866 ac_status=$?
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); }; } && 5868 (exit $ac_status); }; } &&
9595 grep -v '^ *+' conftest.er1 >conftest.err 5922 grep -v '^ *+' conftest.er1 >conftest.err
9596 rm -f conftest.er1 5923 rm -f conftest.er1
9597 cat conftest.err >&5 5924 cat conftest.err >&5
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); } && 5926 (exit $ac_status); } &&
9600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5927 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9602 (eval $ac_try) 2>&5 5929 (eval $ac_try) 2>&5
9603 ac_status=$? 5930 ac_status=$?
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); }; } && 5932 (exit $ac_status); }; } &&
9692 grep -v '^ *+' conftest.er1 >conftest.err 6019 grep -v '^ *+' conftest.er1 >conftest.err
9693 rm -f conftest.er1 6020 rm -f conftest.er1
9694 cat conftest.err >&5 6021 cat conftest.err >&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); } && 6023 (exit $ac_status); } &&
9697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6024 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9699 (eval $ac_try) 2>&5 6026 (eval $ac_try) 2>&5
9700 ac_status=$? 6027 ac_status=$?
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); }; } && 6029 (exit $ac_status); }; } &&
9756 grep -v '^ *+' conftest.er1 >conftest.err 6083 grep -v '^ *+' conftest.er1 >conftest.err
9757 rm -f conftest.er1 6084 rm -f conftest.er1
9758 cat conftest.err >&5 6085 cat conftest.err >&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); } && 6087 (exit $ac_status); } &&
9761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6088 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9763 (eval $ac_try) 2>&5 6090 (eval $ac_try) 2>&5
9764 ac_status=$? 6091 ac_status=$?
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); }; } && 6093 (exit $ac_status); }; } &&
9835 grep -v '^ *+' conftest.er1 >conftest.err 6162 grep -v '^ *+' conftest.er1 >conftest.err
9836 rm -f conftest.er1 6163 rm -f conftest.er1
9837 cat conftest.err >&5 6164 cat conftest.err >&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } && 6166 (exit $ac_status); } &&
9840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6167 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9842 (eval $ac_try) 2>&5 6169 (eval $ac_try) 2>&5
9843 ac_status=$? 6170 ac_status=$?
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); }; } && 6172 (exit $ac_status); }; } &&
9951 rm -f conftest.er1 6278 rm -f conftest.er1
9952 cat conftest.err >&5 6279 cat conftest.err >&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); } >/dev/null; then 6281 (exit $ac_status); } >/dev/null; then
9955 if test -s conftest.err; then 6282 if test -s conftest.err; then
9956 ac_cpp_err=$ac_c_preproc_warn_flag 6283 ac_cpp_err=$ac_cxx_preproc_warn_flag
9957 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6284 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9958 else 6285 else
9959 ac_cpp_err= 6286 ac_cpp_err=
9960 fi 6287 fi
9961else 6288else
9962 ac_cpp_err=yes 6289 ac_cpp_err=yes
10051 grep -v '^ *+' conftest.er1 >conftest.err 6378 grep -v '^ *+' conftest.er1 >conftest.err
10052 rm -f conftest.er1 6379 rm -f conftest.er1
10053 cat conftest.err >&5 6380 cat conftest.err >&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); } && 6382 (exit $ac_status); } &&
10056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6383 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10058 (eval $ac_try) 2>&5 6385 (eval $ac_try) 2>&5
10059 ac_status=$? 6386 ac_status=$?
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); }; } && 6388 (exit $ac_status); }; } &&
10163 rm -f conftest.er1 6490 rm -f conftest.er1
10164 cat conftest.err >&5 6491 cat conftest.err >&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); } >/dev/null; then 6493 (exit $ac_status); } >/dev/null; then
10167 if test -s conftest.err; then 6494 if test -s conftest.err; then
10168 ac_cpp_err=$ac_c_preproc_warn_flag 6495 ac_cpp_err=$ac_cxx_preproc_warn_flag
10169 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6496 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10170 else 6497 else
10171 ac_cpp_err= 6498 ac_cpp_err=
10172 fi 6499 fi
10173else 6500else
10174 ac_cpp_err=yes 6501 ac_cpp_err=yes
10265 grep -v '^ *+' conftest.er1 >conftest.err 6592 grep -v '^ *+' conftest.er1 >conftest.err
10266 rm -f conftest.er1 6593 rm -f conftest.er1
10267 cat conftest.err >&5 6594 cat conftest.err >&5
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); } && 6596 (exit $ac_status); } &&
10270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6597 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10272 (eval $ac_try) 2>&5 6599 (eval $ac_try) 2>&5
10273 ac_status=$? 6600 ac_status=$?
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); }; } && 6602 (exit $ac_status); }; } &&
10296#define HAVE_SYS_WAIT_H 1 6623#define HAVE_SYS_WAIT_H 1
10297_ACEOF 6624_ACEOF
10298 6625
10299fi 6626fi
10300 6627
6628echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6629echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6630if test "${ac_cv_header_stdc+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6632else
6633 cat >conftest.$ac_ext <<_ACEOF
6634/* confdefs.h. */
6635_ACEOF
6636cat confdefs.h >>conftest.$ac_ext
6637cat >>conftest.$ac_ext <<_ACEOF
6638/* end confdefs.h. */
6639#include <stdlib.h>
6640#include <stdarg.h>
6641#include <string.h>
6642#include <float.h>
6643
6644int
6645main ()
6646{
6647
6648 ;
6649 return 0;
6650}
6651_ACEOF
6652rm -f conftest.$ac_objext
6653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6654 (eval $ac_compile) 2>conftest.er1
6655 ac_status=$?
6656 grep -v '^ *+' conftest.er1 >conftest.err
6657 rm -f conftest.er1
6658 cat conftest.err >&5
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); } &&
6661 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6663 (eval $ac_try) 2>&5
6664 ac_status=$?
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); }; } &&
6667 { ac_try='test -s conftest.$ac_objext'
6668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6669 (eval $ac_try) 2>&5
6670 ac_status=$?
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); }; }; then
6673 ac_cv_header_stdc=yes
6674else
6675 echo "$as_me: failed program was:" >&5
6676sed 's/^/| /' conftest.$ac_ext >&5
6677
6678ac_cv_header_stdc=no
6679fi
6680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6681
6682if test $ac_cv_header_stdc = yes; then
6683 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6684 cat >conftest.$ac_ext <<_ACEOF
6685/* confdefs.h. */
6686_ACEOF
6687cat confdefs.h >>conftest.$ac_ext
6688cat >>conftest.$ac_ext <<_ACEOF
6689/* end confdefs.h. */
6690#include <string.h>
6691
6692_ACEOF
6693if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6694 $EGREP "memchr" >/dev/null 2>&1; then
6695 :
6696else
6697 ac_cv_header_stdc=no
6698fi
6699rm -f conftest*
6700
6701fi
6702
6703if test $ac_cv_header_stdc = yes; then
6704 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6705 cat >conftest.$ac_ext <<_ACEOF
6706/* confdefs.h. */
6707_ACEOF
6708cat confdefs.h >>conftest.$ac_ext
6709cat >>conftest.$ac_ext <<_ACEOF
6710/* end confdefs.h. */
6711#include <stdlib.h>
6712
6713_ACEOF
6714if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6715 $EGREP "free" >/dev/null 2>&1; then
6716 :
6717else
6718 ac_cv_header_stdc=no
6719fi
6720rm -f conftest*
6721
6722fi
6723
6724if test $ac_cv_header_stdc = yes; then
6725 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6726 if test "$cross_compiling" = yes; then
6727 :
6728else
6729 cat >conftest.$ac_ext <<_ACEOF
6730/* confdefs.h. */
6731_ACEOF
6732cat confdefs.h >>conftest.$ac_ext
6733cat >>conftest.$ac_ext <<_ACEOF
6734/* end confdefs.h. */
6735#include <ctype.h>
6736#if ((' ' & 0x0FF) == 0x020)
6737# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6738# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6739#else
6740# define ISLOWER(c) \
6741 (('a' <= (c) && (c) <= 'i') \
6742 || ('j' <= (c) && (c) <= 'r') \
6743 || ('s' <= (c) && (c) <= 'z'))
6744# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6745#endif
6746
6747#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6748int
6749main ()
6750{
6751 int i;
6752 for (i = 0; i < 256; i++)
6753 if (XOR (islower (i), ISLOWER (i))
6754 || toupper (i) != TOUPPER (i))
6755 exit(2);
6756 exit (0);
6757}
6758_ACEOF
6759rm -f conftest$ac_exeext
6760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6761 (eval $ac_link) 2>&5
6762 ac_status=$?
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6766 (eval $ac_try) 2>&5
6767 ac_status=$?
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); }; }; then
6770 :
6771else
6772 echo "$as_me: program exited with status $ac_status" >&5
6773echo "$as_me: failed program was:" >&5
6774sed 's/^/| /' conftest.$ac_ext >&5
6775
6776( exit $ac_status )
6777ac_cv_header_stdc=no
6778fi
6779rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6780fi
6781fi
6782fi
6783echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6784echo "${ECHO_T}$ac_cv_header_stdc" >&6
6785if test $ac_cv_header_stdc = yes; then
6786
6787cat >>confdefs.h <<\_ACEOF
6788#define STDC_HEADERS 1
6789_ACEOF
6790
6791fi
6792
6793# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6804 inttypes.h stdint.h unistd.h
6805do
6806as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6807echo "$as_me:$LINENO: checking for $ac_header" >&5
6808echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6809if eval "test \"\${$as_ac_Header+set}\" = set"; then
6810 echo $ECHO_N "(cached) $ECHO_C" >&6
6811else
6812 cat >conftest.$ac_ext <<_ACEOF
6813/* confdefs.h. */
6814_ACEOF
6815cat confdefs.h >>conftest.$ac_ext
6816cat >>conftest.$ac_ext <<_ACEOF
6817/* end confdefs.h. */
6818$ac_includes_default
6819
6820#include <$ac_header>
6821_ACEOF
6822rm -f conftest.$ac_objext
6823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6824 (eval $ac_compile) 2>conftest.er1
6825 ac_status=$?
6826 grep -v '^ *+' conftest.er1 >conftest.err
6827 rm -f conftest.er1
6828 cat conftest.err >&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } &&
6831 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6833 (eval $ac_try) 2>&5
6834 ac_status=$?
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); }; } &&
6837 { ac_try='test -s conftest.$ac_objext'
6838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6839 (eval $ac_try) 2>&5
6840 ac_status=$?
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); }; }; then
6843 eval "$as_ac_Header=yes"
6844else
6845 echo "$as_me: failed program was:" >&5
6846sed 's/^/| /' conftest.$ac_ext >&5
6847
6848eval "$as_ac_Header=no"
6849fi
6850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6851fi
6852echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6853echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6854if test `eval echo '${'$as_ac_Header'}'` = yes; then
6855 cat >>confdefs.h <<_ACEOF
6856#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6857_ACEOF
6858
6859fi
6860
6861done
10301 6862
10302 6863
10303 6864
10304 6865
10305 6866
10318 6879
10319 6880
10320for ac_header in \ 6881for ac_header in \
10321 assert.h \ 6882 assert.h \
10322 fcntl.h \ 6883 fcntl.h \
10323 grp.h \
10324 libc.h \
10325 lastlog.h \
10326 stdarg.h \ 6884 stdarg.h \
10327 stdlib.h \ 6885 stdlib.h \
10328 string.h \ 6886 string.h \
10329 termios.h \ 6887 termios.h \
10330 unistd.h \ 6888 unistd.h \
10332 sys/ioctl.h \ 6890 sys/ioctl.h \
10333 sys/select.h \ 6891 sys/select.h \
10334 sys/sockio.h \ 6892 sys/sockio.h \
10335 sys/strredir.h \ 6893 sys/strredir.h \
10336 sys/time.h \ 6894 sys/time.h \
10337 utmp.h \ 6895 stdint.h \
10338 utmpx.h \ 6896 wchar.h \
10339 stdint.h \ 6897 cwchar \
6898 clocale \
10340 6899
10341do 6900do
10342as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6901as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10343if eval "test \"\${$as_ac_Header+set}\" = set"; then 6902if eval "test \"\${$as_ac_Header+set}\" = set"; then
10344 echo "$as_me:$LINENO: checking for $ac_header" >&5 6903 echo "$as_me:$LINENO: checking for $ac_header" >&5
10368 grep -v '^ *+' conftest.er1 >conftest.err 6927 grep -v '^ *+' conftest.er1 >conftest.err
10369 rm -f conftest.er1 6928 rm -f conftest.er1
10370 cat conftest.err >&5 6929 cat conftest.err >&5
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); } && 6931 (exit $ac_status); } &&
10373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6932 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10375 (eval $ac_try) 2>&5 6934 (eval $ac_try) 2>&5
10376 ac_status=$? 6935 ac_status=$?
10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378 (exit $ac_status); }; } && 6937 (exit $ac_status); }; } &&
10411 rm -f conftest.er1 6970 rm -f conftest.er1
10412 cat conftest.err >&5 6971 cat conftest.err >&5
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); } >/dev/null; then 6973 (exit $ac_status); } >/dev/null; then
10415 if test -s conftest.err; then 6974 if test -s conftest.err; then
10416 ac_cpp_err=$ac_c_preproc_warn_flag 6975 ac_cpp_err=$ac_cxx_preproc_warn_flag
10417 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6976 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10418 else 6977 else
10419 ac_cpp_err= 6978 ac_cpp_err=
10420 fi 6979 fi
10421else 6980else
10422 ac_cpp_err=yes 6981 ac_cpp_err=yes
10432rm -f conftest.err conftest.$ac_ext 6991rm -f conftest.err conftest.$ac_ext
10433echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6992echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10434echo "${ECHO_T}$ac_header_preproc" >&6 6993echo "${ECHO_T}$ac_header_preproc" >&6
10435 6994
10436# So? What about this header? 6995# So? What about this header?
10437case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6996case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10438 yes:no: ) 6997 yes:no: )
10439 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6998 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10440echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6999echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10442echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7001echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10517 grep -v '^ *+' conftest.er1 >conftest.err 7076 grep -v '^ *+' conftest.er1 >conftest.err
10518 rm -f conftest.er1 7077 rm -f conftest.er1
10519 cat conftest.err >&5 7078 cat conftest.err >&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); } && 7080 (exit $ac_status); } &&
10522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7081 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10524 (eval $ac_try) 2>&5 7083 (eval $ac_try) 2>&5
10525 ac_status=$? 7084 ac_status=$?
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); }; } && 7086 (exit $ac_status); }; } &&
10582 grep -v '^ *+' conftest.er1 >conftest.err 7141 grep -v '^ *+' conftest.er1 >conftest.err
10583 rm -f conftest.er1 7142 rm -f conftest.er1
10584 cat conftest.err >&5 7143 cat conftest.err >&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); } && 7145 (exit $ac_status); } &&
10587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7146 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10589 (eval $ac_try) 2>&5 7148 (eval $ac_try) 2>&5
10590 ac_status=$? 7149 ac_status=$?
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); }; } && 7151 (exit $ac_status); }; } &&
10747 grep -v '^ *+' conftest.er1 >conftest.err 7306 grep -v '^ *+' conftest.er1 >conftest.err
10748 rm -f conftest.er1 7307 rm -f conftest.er1
10749 cat conftest.err >&5 7308 cat conftest.err >&5
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); } && 7310 (exit $ac_status); } &&
10752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7311 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10754 (eval $ac_try) 2>&5 7313 (eval $ac_try) 2>&5
10755 ac_status=$? 7314 ac_status=$?
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); }; } && 7316 (exit $ac_status); }; } &&
10856 grep -v '^ *+' conftest.er1 >conftest.err 7415 grep -v '^ *+' conftest.er1 >conftest.err
10857 rm -f conftest.er1 7416 rm -f conftest.er1
10858 cat conftest.err >&5 7417 cat conftest.err >&5
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); } && 7419 (exit $ac_status); } &&
10861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7420 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10863 (eval $ac_try) 2>&5 7422 (eval $ac_try) 2>&5
10864 ac_status=$? 7423 ac_status=$?
10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); }; } && 7425 (exit $ac_status); }; } &&
10916 grep -v '^ *+' conftest.er1 >conftest.err 7475 grep -v '^ *+' conftest.er1 >conftest.err
10917 rm -f conftest.er1 7476 rm -f conftest.er1
10918 cat conftest.err >&5 7477 cat conftest.err >&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); } && 7479 (exit $ac_status); } &&
10921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7480 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10923 (eval $ac_try) 2>&5 7482 (eval $ac_try) 2>&5
10924 ac_status=$? 7483 ac_status=$?
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); }; } && 7485 (exit $ac_status); }; } &&
10991 grep -v '^ *+' conftest.er1 >conftest.err 7550 grep -v '^ *+' conftest.er1 >conftest.err
10992 rm -f conftest.er1 7551 rm -f conftest.er1
10993 cat conftest.err >&5 7552 cat conftest.err >&5
10994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 (exit $ac_status); } && 7554 (exit $ac_status); } &&
10996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7555 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10998 (eval $ac_try) 2>&5 7557 (eval $ac_try) 2>&5
10999 ac_status=$? 7558 ac_status=$?
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); }; } && 7560 (exit $ac_status); }; } &&
11056 grep -v '^ *+' conftest.er1 >conftest.err 7615 grep -v '^ *+' conftest.er1 >conftest.err
11057 rm -f conftest.er1 7616 rm -f conftest.er1
11058 cat conftest.err >&5 7617 cat conftest.err >&5
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); } && 7619 (exit $ac_status); } &&
11061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7620 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11063 (eval $ac_try) 2>&5 7622 (eval $ac_try) 2>&5
11064 ac_status=$? 7623 ac_status=$?
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); }; } && 7625 (exit $ac_status); }; } &&
11126cat >>confdefs.h <<\_ACEOF 7685cat >>confdefs.h <<\_ACEOF
11127#define gid_t int 7686#define gid_t int
11128_ACEOF 7687_ACEOF
11129 7688
11130fi 7689fi
11131
11132
11133
11134echo "$as_me:$LINENO: checking for char" >&5
11135echo $ECHO_N "checking for char... $ECHO_C" >&6
11136if test "${ac_cv_type_char+set}" = set; then
11137 echo $ECHO_N "(cached) $ECHO_C" >&6
11138else
11139 cat >conftest.$ac_ext <<_ACEOF
11140/* confdefs.h. */
11141_ACEOF
11142cat confdefs.h >>conftest.$ac_ext
11143cat >>conftest.$ac_ext <<_ACEOF
11144/* end confdefs.h. */
11145$ac_includes_default
11146int
11147main ()
11148{
11149if ((char *) 0)
11150 return 0;
11151if (sizeof (char))
11152 return 0;
11153 ;
11154 return 0;
11155}
11156_ACEOF
11157rm -f conftest.$ac_objext
11158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11159 (eval $ac_compile) 2>conftest.er1
11160 ac_status=$?
11161 grep -v '^ *+' conftest.er1 >conftest.err
11162 rm -f conftest.er1
11163 cat conftest.err >&5
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); } &&
11166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11168 (eval $ac_try) 2>&5
11169 ac_status=$?
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); }; } &&
11172 { ac_try='test -s conftest.$ac_objext'
11173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11174 (eval $ac_try) 2>&5
11175 ac_status=$?
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); }; }; then
11178 ac_cv_type_char=yes
11179else
11180 echo "$as_me: failed program was:" >&5
11181sed 's/^/| /' conftest.$ac_ext >&5
11182
11183ac_cv_type_char=no
11184fi
11185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11186fi
11187echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11188echo "${ECHO_T}$ac_cv_type_char" >&6
11189
11190echo "$as_me:$LINENO: checking size of char" >&5
11191echo $ECHO_N "checking size of char... $ECHO_C" >&6
11192if test "${ac_cv_sizeof_char+set}" = set; then
11193 echo $ECHO_N "(cached) $ECHO_C" >&6
11194else
11195 if test "$ac_cv_type_char" = yes; then
11196 # The cast to unsigned long works around a bug in the HP C Compiler
11197 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11198 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11199 # This bug is HP SR number 8606223364.
11200 if test "$cross_compiling" = yes; then
11201 # Depending upon the size, compute the lo and hi bounds.
11202cat >conftest.$ac_ext <<_ACEOF
11203/* confdefs.h. */
11204_ACEOF
11205cat confdefs.h >>conftest.$ac_ext
11206cat >>conftest.$ac_ext <<_ACEOF
11207/* end confdefs.h. */
11208$ac_includes_default
11209int
11210main ()
11211{
11212static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11213test_array [0] = 0
11214
11215 ;
11216 return 0;
11217}
11218_ACEOF
11219rm -f conftest.$ac_objext
11220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11221 (eval $ac_compile) 2>conftest.er1
11222 ac_status=$?
11223 grep -v '^ *+' conftest.er1 >conftest.err
11224 rm -f conftest.er1
11225 cat conftest.err >&5
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); } &&
11228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11230 (eval $ac_try) 2>&5
11231 ac_status=$?
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); }; } &&
11234 { ac_try='test -s conftest.$ac_objext'
11235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11236 (eval $ac_try) 2>&5
11237 ac_status=$?
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); }; }; then
11240 ac_lo=0 ac_mid=0
11241 while :; do
11242 cat >conftest.$ac_ext <<_ACEOF
11243/* confdefs.h. */
11244_ACEOF
11245cat confdefs.h >>conftest.$ac_ext
11246cat >>conftest.$ac_ext <<_ACEOF
11247/* end confdefs.h. */
11248$ac_includes_default
11249int
11250main ()
11251{
11252static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11253test_array [0] = 0
11254
11255 ;
11256 return 0;
11257}
11258_ACEOF
11259rm -f conftest.$ac_objext
11260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11261 (eval $ac_compile) 2>conftest.er1
11262 ac_status=$?
11263 grep -v '^ *+' conftest.er1 >conftest.err
11264 rm -f conftest.er1
11265 cat conftest.err >&5
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); } &&
11268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11270 (eval $ac_try) 2>&5
11271 ac_status=$?
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); }; } &&
11274 { ac_try='test -s conftest.$ac_objext'
11275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11276 (eval $ac_try) 2>&5
11277 ac_status=$?
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); }; }; then
11280 ac_hi=$ac_mid; break
11281else
11282 echo "$as_me: failed program was:" >&5
11283sed 's/^/| /' conftest.$ac_ext >&5
11284
11285ac_lo=`expr $ac_mid + 1`
11286 if test $ac_lo -le $ac_mid; then
11287 ac_lo= ac_hi=
11288 break
11289 fi
11290 ac_mid=`expr 2 '*' $ac_mid + 1`
11291fi
11292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11293 done
11294else
11295 echo "$as_me: failed program was:" >&5
11296sed 's/^/| /' conftest.$ac_ext >&5
11297
11298cat >conftest.$ac_ext <<_ACEOF
11299/* confdefs.h. */
11300_ACEOF
11301cat confdefs.h >>conftest.$ac_ext
11302cat >>conftest.$ac_ext <<_ACEOF
11303/* end confdefs.h. */
11304$ac_includes_default
11305int
11306main ()
11307{
11308static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
11309test_array [0] = 0
11310
11311 ;
11312 return 0;
11313}
11314_ACEOF
11315rm -f conftest.$ac_objext
11316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11317 (eval $ac_compile) 2>conftest.er1
11318 ac_status=$?
11319 grep -v '^ *+' conftest.er1 >conftest.err
11320 rm -f conftest.er1
11321 cat conftest.err >&5
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); } &&
11324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11326 (eval $ac_try) 2>&5
11327 ac_status=$?
11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); }; } &&
11330 { ac_try='test -s conftest.$ac_objext'
11331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11332 (eval $ac_try) 2>&5
11333 ac_status=$?
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); }; }; then
11336 ac_hi=-1 ac_mid=-1
11337 while :; do
11338 cat >conftest.$ac_ext <<_ACEOF
11339/* confdefs.h. */
11340_ACEOF
11341cat confdefs.h >>conftest.$ac_ext
11342cat >>conftest.$ac_ext <<_ACEOF
11343/* end confdefs.h. */
11344$ac_includes_default
11345int
11346main ()
11347{
11348static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11349test_array [0] = 0
11350
11351 ;
11352 return 0;
11353}
11354_ACEOF
11355rm -f conftest.$ac_objext
11356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11357 (eval $ac_compile) 2>conftest.er1
11358 ac_status=$?
11359 grep -v '^ *+' conftest.er1 >conftest.err
11360 rm -f conftest.er1
11361 cat conftest.err >&5
11362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363 (exit $ac_status); } &&
11364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11366 (eval $ac_try) 2>&5
11367 ac_status=$?
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); }; } &&
11370 { ac_try='test -s conftest.$ac_objext'
11371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11372 (eval $ac_try) 2>&5
11373 ac_status=$?
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); }; }; then
11376 ac_lo=$ac_mid; break
11377else
11378 echo "$as_me: failed program was:" >&5
11379sed 's/^/| /' conftest.$ac_ext >&5
11380
11381ac_hi=`expr '(' $ac_mid ')' - 1`
11382 if test $ac_mid -le $ac_hi; then
11383 ac_lo= ac_hi=
11384 break
11385 fi
11386 ac_mid=`expr 2 '*' $ac_mid`
11387fi
11388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11389 done
11390else
11391 echo "$as_me: failed program was:" >&5
11392sed 's/^/| /' conftest.$ac_ext >&5
11393
11394ac_lo= ac_hi=
11395fi
11396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11397fi
11398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11399# Binary search between lo and hi bounds.
11400while test "x$ac_lo" != "x$ac_hi"; do
11401 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11402 cat >conftest.$ac_ext <<_ACEOF
11403/* confdefs.h. */
11404_ACEOF
11405cat confdefs.h >>conftest.$ac_ext
11406cat >>conftest.$ac_ext <<_ACEOF
11407/* end confdefs.h. */
11408$ac_includes_default
11409int
11410main ()
11411{
11412static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11413test_array [0] = 0
11414
11415 ;
11416 return 0;
11417}
11418_ACEOF
11419rm -f conftest.$ac_objext
11420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11421 (eval $ac_compile) 2>conftest.er1
11422 ac_status=$?
11423 grep -v '^ *+' conftest.er1 >conftest.err
11424 rm -f conftest.er1
11425 cat conftest.err >&5
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); } &&
11428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11430 (eval $ac_try) 2>&5
11431 ac_status=$?
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); }; } &&
11434 { ac_try='test -s conftest.$ac_objext'
11435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11436 (eval $ac_try) 2>&5
11437 ac_status=$?
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); }; }; then
11440 ac_hi=$ac_mid
11441else
11442 echo "$as_me: failed program was:" >&5
11443sed 's/^/| /' conftest.$ac_ext >&5
11444
11445ac_lo=`expr '(' $ac_mid ')' + 1`
11446fi
11447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11448done
11449case $ac_lo in
11450?*) ac_cv_sizeof_char=$ac_lo;;
11451'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11452See \`config.log' for more details." >&5
11453echo "$as_me: error: cannot compute sizeof (char), 77
11454See \`config.log' for more details." >&2;}
11455 { (exit 1); exit 1; }; } ;;
11456esac
11457else
11458 if test "$cross_compiling" = yes; then
11459 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11460See \`config.log' for more details." >&5
11461echo "$as_me: error: cannot run test program while cross compiling
11462See \`config.log' for more details." >&2;}
11463 { (exit 1); exit 1; }; }
11464else
11465 cat >conftest.$ac_ext <<_ACEOF
11466/* confdefs.h. */
11467_ACEOF
11468cat confdefs.h >>conftest.$ac_ext
11469cat >>conftest.$ac_ext <<_ACEOF
11470/* end confdefs.h. */
11471$ac_includes_default
11472long longval () { return (long) (sizeof (char)); }
11473unsigned long ulongval () { return (long) (sizeof (char)); }
11474#include <stdio.h>
11475#include <stdlib.h>
11476int
11477main ()
11478{
11479
11480 FILE *f = fopen ("conftest.val", "w");
11481 if (! f)
11482 exit (1);
11483 if (((long) (sizeof (char))) < 0)
11484 {
11485 long i = longval ();
11486 if (i != ((long) (sizeof (char))))
11487 exit (1);
11488 fprintf (f, "%ld\n", i);
11489 }
11490 else
11491 {
11492 unsigned long i = ulongval ();
11493 if (i != ((long) (sizeof (char))))
11494 exit (1);
11495 fprintf (f, "%lu\n", i);
11496 }
11497 exit (ferror (f) || fclose (f) != 0);
11498
11499 ;
11500 return 0;
11501}
11502_ACEOF
11503rm -f conftest$ac_exeext
11504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11505 (eval $ac_link) 2>&5
11506 ac_status=$?
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11510 (eval $ac_try) 2>&5
11511 ac_status=$?
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); }; }; then
11514 ac_cv_sizeof_char=`cat conftest.val`
11515else
11516 echo "$as_me: program exited with status $ac_status" >&5
11517echo "$as_me: failed program was:" >&5
11518sed 's/^/| /' conftest.$ac_ext >&5
11519
11520( exit $ac_status )
11521{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11522See \`config.log' for more details." >&5
11523echo "$as_me: error: cannot compute sizeof (char), 77
11524See \`config.log' for more details." >&2;}
11525 { (exit 1); exit 1; }; }
11526fi
11527rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11528fi
11529fi
11530rm -f conftest.val
11531else
11532 ac_cv_sizeof_char=0
11533fi
11534fi
11535echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
11536echo "${ECHO_T}$ac_cv_sizeof_char" >&6
11537cat >>confdefs.h <<_ACEOF
11538#define SIZEOF_CHAR $ac_cv_sizeof_char
11539_ACEOF
11540 7690
11541 7691
11542echo "$as_me:$LINENO: checking for short" >&5 7692echo "$as_me:$LINENO: checking for short" >&5
11543echo $ECHO_N "checking for short... $ECHO_C" >&6 7693echo $ECHO_N "checking for short... $ECHO_C" >&6
11544if test "${ac_cv_type_short+set}" = set; then 7694if test "${ac_cv_type_short+set}" = set; then
11569 grep -v '^ *+' conftest.er1 >conftest.err 7719 grep -v '^ *+' conftest.er1 >conftest.err
11570 rm -f conftest.er1 7720 rm -f conftest.er1
11571 cat conftest.err >&5 7721 cat conftest.err >&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); } && 7723 (exit $ac_status); } &&
11574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7724 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11576 (eval $ac_try) 2>&5 7726 (eval $ac_try) 2>&5
11577 ac_status=$? 7727 ac_status=$?
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); }; } && 7729 (exit $ac_status); }; } &&
11631 grep -v '^ *+' conftest.er1 >conftest.err 7781 grep -v '^ *+' conftest.er1 >conftest.err
11632 rm -f conftest.er1 7782 rm -f conftest.er1
11633 cat conftest.err >&5 7783 cat conftest.err >&5
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); } && 7785 (exit $ac_status); } &&
11636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7786 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11638 (eval $ac_try) 2>&5 7788 (eval $ac_try) 2>&5
11639 ac_status=$? 7789 ac_status=$?
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); }; } && 7791 (exit $ac_status); }; } &&
11671 grep -v '^ *+' conftest.er1 >conftest.err 7821 grep -v '^ *+' conftest.er1 >conftest.err
11672 rm -f conftest.er1 7822 rm -f conftest.er1
11673 cat conftest.err >&5 7823 cat conftest.err >&5
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); } && 7825 (exit $ac_status); } &&
11676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7826 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11678 (eval $ac_try) 2>&5 7828 (eval $ac_try) 2>&5
11679 ac_status=$? 7829 ac_status=$?
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); }; } && 7831 (exit $ac_status); }; } &&
11727 grep -v '^ *+' conftest.er1 >conftest.err 7877 grep -v '^ *+' conftest.er1 >conftest.err
11728 rm -f conftest.er1 7878 rm -f conftest.er1
11729 cat conftest.err >&5 7879 cat conftest.err >&5
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); } && 7881 (exit $ac_status); } &&
11732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7882 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734 (eval $ac_try) 2>&5 7884 (eval $ac_try) 2>&5
11735 ac_status=$? 7885 ac_status=$?
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; } && 7887 (exit $ac_status); }; } &&
11767 grep -v '^ *+' conftest.er1 >conftest.err 7917 grep -v '^ *+' conftest.er1 >conftest.err
11768 rm -f conftest.er1 7918 rm -f conftest.er1
11769 cat conftest.err >&5 7919 cat conftest.err >&5
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); } && 7921 (exit $ac_status); } &&
11772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7922 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774 (eval $ac_try) 2>&5 7924 (eval $ac_try) 2>&5
11775 ac_status=$? 7925 ac_status=$?
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); }; } && 7927 (exit $ac_status); }; } &&
11831 grep -v '^ *+' conftest.er1 >conftest.err 7981 grep -v '^ *+' conftest.er1 >conftest.err
11832 rm -f conftest.er1 7982 rm -f conftest.er1
11833 cat conftest.err >&5 7983 cat conftest.err >&5
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); } && 7985 (exit $ac_status); } &&
11836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7986 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11838 (eval $ac_try) 2>&5 7988 (eval $ac_try) 2>&5
11839 ac_status=$? 7989 ac_status=$?
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); }; } && 7991 (exit $ac_status); }; } &&
11862See \`config.log' for more details." >&2;} 8012See \`config.log' for more details." >&2;}
11863 { (exit 1); exit 1; }; } ;; 8013 { (exit 1); exit 1; }; } ;;
11864esac 8014esac
11865else 8015else
11866 if test "$cross_compiling" = yes; then 8016 if test "$cross_compiling" = yes; then
11867 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 8017 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
11868See \`config.log' for more details." >&5 8018echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
11869echo "$as_me: error: cannot run test program while cross compiling
11870See \`config.log' for more details." >&2;}
11871 { (exit 1); exit 1; }; } 8019 { (exit 1); exit 1; }; }
11872else 8020else
11873 cat >conftest.$ac_ext <<_ACEOF 8021 cat >conftest.$ac_ext <<_ACEOF
11874/* confdefs.h. */ 8022/* confdefs.h. */
11875_ACEOF 8023_ACEOF
11977 grep -v '^ *+' conftest.er1 >conftest.err 8125 grep -v '^ *+' conftest.er1 >conftest.err
11978 rm -f conftest.er1 8126 rm -f conftest.er1
11979 cat conftest.err >&5 8127 cat conftest.err >&5
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); } && 8129 (exit $ac_status); } &&
11982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8130 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11984 (eval $ac_try) 2>&5 8132 (eval $ac_try) 2>&5
11985 ac_status=$? 8133 ac_status=$?
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); }; } && 8135 (exit $ac_status); }; } &&
12039 grep -v '^ *+' conftest.er1 >conftest.err 8187 grep -v '^ *+' conftest.er1 >conftest.err
12040 rm -f conftest.er1 8188 rm -f conftest.er1
12041 cat conftest.err >&5 8189 cat conftest.err >&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); } && 8191 (exit $ac_status); } &&
12044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8192 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12046 (eval $ac_try) 2>&5 8194 (eval $ac_try) 2>&5
12047 ac_status=$? 8195 ac_status=$?
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); }; } && 8197 (exit $ac_status); }; } &&
12079 grep -v '^ *+' conftest.er1 >conftest.err 8227 grep -v '^ *+' conftest.er1 >conftest.err
12080 rm -f conftest.er1 8228 rm -f conftest.er1
12081 cat conftest.err >&5 8229 cat conftest.err >&5
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); } && 8231 (exit $ac_status); } &&
12084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8232 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12086 (eval $ac_try) 2>&5 8234 (eval $ac_try) 2>&5
12087 ac_status=$? 8235 ac_status=$?
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); }; } && 8237 (exit $ac_status); }; } &&
12135 grep -v '^ *+' conftest.er1 >conftest.err 8283 grep -v '^ *+' conftest.er1 >conftest.err
12136 rm -f conftest.er1 8284 rm -f conftest.er1
12137 cat conftest.err >&5 8285 cat conftest.err >&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); } && 8287 (exit $ac_status); } &&
12140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8288 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12142 (eval $ac_try) 2>&5 8290 (eval $ac_try) 2>&5
12143 ac_status=$? 8291 ac_status=$?
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); }; } && 8293 (exit $ac_status); }; } &&
12175 grep -v '^ *+' conftest.er1 >conftest.err 8323 grep -v '^ *+' conftest.er1 >conftest.err
12176 rm -f conftest.er1 8324 rm -f conftest.er1
12177 cat conftest.err >&5 8325 cat conftest.err >&5
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); } && 8327 (exit $ac_status); } &&
12180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8328 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12182 (eval $ac_try) 2>&5 8330 (eval $ac_try) 2>&5
12183 ac_status=$? 8331 ac_status=$?
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); }; } && 8333 (exit $ac_status); }; } &&
12239 grep -v '^ *+' conftest.er1 >conftest.err 8387 grep -v '^ *+' conftest.er1 >conftest.err
12240 rm -f conftest.er1 8388 rm -f conftest.er1
12241 cat conftest.err >&5 8389 cat conftest.err >&5
12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); } && 8391 (exit $ac_status); } &&
12244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8392 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12246 (eval $ac_try) 2>&5 8394 (eval $ac_try) 2>&5
12247 ac_status=$? 8395 ac_status=$?
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); }; } && 8397 (exit $ac_status); }; } &&
12270See \`config.log' for more details." >&2;} 8418See \`config.log' for more details." >&2;}
12271 { (exit 1); exit 1; }; } ;; 8419 { (exit 1); exit 1; }; } ;;
12272esac 8420esac
12273else 8421else
12274 if test "$cross_compiling" = yes; then 8422 if test "$cross_compiling" = yes; then
12275 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 8423 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12276See \`config.log' for more details." >&5 8424echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12277echo "$as_me: error: cannot run test program while cross compiling
12278See \`config.log' for more details." >&2;}
12279 { (exit 1); exit 1; }; } 8425 { (exit 1); exit 1; }; }
12280else 8426else
12281 cat >conftest.$ac_ext <<_ACEOF 8427 cat >conftest.$ac_ext <<_ACEOF
12282/* confdefs.h. */ 8428/* confdefs.h. */
12283_ACEOF 8429_ACEOF
12353cat >>confdefs.h <<_ACEOF 8499cat >>confdefs.h <<_ACEOF
12354#define SIZEOF_INT $ac_cv_sizeof_int 8500#define SIZEOF_INT $ac_cv_sizeof_int
12355_ACEOF 8501_ACEOF
12356 8502
12357 8503
12358echo "$as_me:$LINENO: checking for long" >&5
12359echo $ECHO_N "checking for long... $ECHO_C" >&6
12360if test "${ac_cv_type_long+set}" = set; then
12361 echo $ECHO_N "(cached) $ECHO_C" >&6
12362else
12363 cat >conftest.$ac_ext <<_ACEOF
12364/* confdefs.h. */
12365_ACEOF
12366cat confdefs.h >>conftest.$ac_ext
12367cat >>conftest.$ac_ext <<_ACEOF
12368/* end confdefs.h. */
12369$ac_includes_default
12370int
12371main ()
12372{
12373if ((long *) 0)
12374 return 0;
12375if (sizeof (long))
12376 return 0;
12377 ;
12378 return 0;
12379}
12380_ACEOF
12381rm -f conftest.$ac_objext
12382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12383 (eval $ac_compile) 2>conftest.er1
12384 ac_status=$?
12385 grep -v '^ *+' conftest.er1 >conftest.err
12386 rm -f conftest.er1
12387 cat conftest.err >&5
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); } &&
12390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12392 (eval $ac_try) 2>&5
12393 ac_status=$?
12394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395 (exit $ac_status); }; } &&
12396 { ac_try='test -s conftest.$ac_objext'
12397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12398 (eval $ac_try) 2>&5
12399 ac_status=$?
12400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); }; }; then
12402 ac_cv_type_long=yes
12403else
12404 echo "$as_me: failed program was:" >&5
12405sed 's/^/| /' conftest.$ac_ext >&5
12406
12407ac_cv_type_long=no
12408fi
12409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12410fi
12411echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12412echo "${ECHO_T}$ac_cv_type_long" >&6
12413
12414echo "$as_me:$LINENO: checking size of long" >&5
12415echo $ECHO_N "checking size of long... $ECHO_C" >&6
12416if test "${ac_cv_sizeof_long+set}" = set; then
12417 echo $ECHO_N "(cached) $ECHO_C" >&6
12418else
12419 if test "$ac_cv_type_long" = yes; then
12420 # The cast to unsigned long works around a bug in the HP C Compiler
12421 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12422 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12423 # This bug is HP SR number 8606223364.
12424 if test "$cross_compiling" = yes; then
12425 # Depending upon the size, compute the lo and hi bounds.
12426cat >conftest.$ac_ext <<_ACEOF
12427/* confdefs.h. */
12428_ACEOF
12429cat confdefs.h >>conftest.$ac_ext
12430cat >>conftest.$ac_ext <<_ACEOF
12431/* end confdefs.h. */
12432$ac_includes_default
12433int
12434main ()
12435{
12436static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12437test_array [0] = 0
12438
12439 ;
12440 return 0;
12441}
12442_ACEOF
12443rm -f conftest.$ac_objext
12444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12445 (eval $ac_compile) 2>conftest.er1
12446 ac_status=$?
12447 grep -v '^ *+' conftest.er1 >conftest.err
12448 rm -f conftest.er1
12449 cat conftest.err >&5
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); } &&
12452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12454 (eval $ac_try) 2>&5
12455 ac_status=$?
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); }; } &&
12458 { ac_try='test -s conftest.$ac_objext'
12459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12460 (eval $ac_try) 2>&5
12461 ac_status=$?
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); }; }; then
12464 ac_lo=0 ac_mid=0
12465 while :; do
12466 cat >conftest.$ac_ext <<_ACEOF
12467/* confdefs.h. */
12468_ACEOF
12469cat confdefs.h >>conftest.$ac_ext
12470cat >>conftest.$ac_ext <<_ACEOF
12471/* end confdefs.h. */
12472$ac_includes_default
12473int
12474main ()
12475{
12476static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12477test_array [0] = 0
12478
12479 ;
12480 return 0;
12481}
12482_ACEOF
12483rm -f conftest.$ac_objext
12484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12485 (eval $ac_compile) 2>conftest.er1
12486 ac_status=$?
12487 grep -v '^ *+' conftest.er1 >conftest.err
12488 rm -f conftest.er1
12489 cat conftest.err >&5
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); } &&
12492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12494 (eval $ac_try) 2>&5
12495 ac_status=$?
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); }; } &&
12498 { ac_try='test -s conftest.$ac_objext'
12499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12500 (eval $ac_try) 2>&5
12501 ac_status=$?
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); }; }; then
12504 ac_hi=$ac_mid; break
12505else
12506 echo "$as_me: failed program was:" >&5
12507sed 's/^/| /' conftest.$ac_ext >&5
12508
12509ac_lo=`expr $ac_mid + 1`
12510 if test $ac_lo -le $ac_mid; then
12511 ac_lo= ac_hi=
12512 break
12513 fi
12514 ac_mid=`expr 2 '*' $ac_mid + 1`
12515fi
12516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12517 done
12518else
12519 echo "$as_me: failed program was:" >&5
12520sed 's/^/| /' conftest.$ac_ext >&5
12521
12522cat >conftest.$ac_ext <<_ACEOF
12523/* confdefs.h. */
12524_ACEOF
12525cat confdefs.h >>conftest.$ac_ext
12526cat >>conftest.$ac_ext <<_ACEOF
12527/* end confdefs.h. */
12528$ac_includes_default
12529int
12530main ()
12531{
12532static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12533test_array [0] = 0
12534
12535 ;
12536 return 0;
12537}
12538_ACEOF
12539rm -f conftest.$ac_objext
12540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12541 (eval $ac_compile) 2>conftest.er1
12542 ac_status=$?
12543 grep -v '^ *+' conftest.er1 >conftest.err
12544 rm -f conftest.er1
12545 cat conftest.err >&5
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); } &&
12548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12550 (eval $ac_try) 2>&5
12551 ac_status=$?
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); }; } &&
12554 { ac_try='test -s conftest.$ac_objext'
12555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12556 (eval $ac_try) 2>&5
12557 ac_status=$?
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); }; }; then
12560 ac_hi=-1 ac_mid=-1
12561 while :; do
12562 cat >conftest.$ac_ext <<_ACEOF
12563/* confdefs.h. */
12564_ACEOF
12565cat confdefs.h >>conftest.$ac_ext
12566cat >>conftest.$ac_ext <<_ACEOF
12567/* end confdefs.h. */
12568$ac_includes_default
12569int
12570main ()
12571{
12572static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12573test_array [0] = 0
12574
12575 ;
12576 return 0;
12577}
12578_ACEOF
12579rm -f conftest.$ac_objext
12580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12581 (eval $ac_compile) 2>conftest.er1
12582 ac_status=$?
12583 grep -v '^ *+' conftest.er1 >conftest.err
12584 rm -f conftest.er1
12585 cat conftest.err >&5
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); } &&
12588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12590 (eval $ac_try) 2>&5
12591 ac_status=$?
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); }; } &&
12594 { ac_try='test -s conftest.$ac_objext'
12595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12596 (eval $ac_try) 2>&5
12597 ac_status=$?
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); }; }; then
12600 ac_lo=$ac_mid; break
12601else
12602 echo "$as_me: failed program was:" >&5
12603sed 's/^/| /' conftest.$ac_ext >&5
12604
12605ac_hi=`expr '(' $ac_mid ')' - 1`
12606 if test $ac_mid -le $ac_hi; then
12607 ac_lo= ac_hi=
12608 break
12609 fi
12610 ac_mid=`expr 2 '*' $ac_mid`
12611fi
12612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12613 done
12614else
12615 echo "$as_me: failed program was:" >&5
12616sed 's/^/| /' conftest.$ac_ext >&5
12617
12618ac_lo= ac_hi=
12619fi
12620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12621fi
12622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12623# Binary search between lo and hi bounds.
12624while test "x$ac_lo" != "x$ac_hi"; do
12625 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12626 cat >conftest.$ac_ext <<_ACEOF
12627/* confdefs.h. */
12628_ACEOF
12629cat confdefs.h >>conftest.$ac_ext
12630cat >>conftest.$ac_ext <<_ACEOF
12631/* end confdefs.h. */
12632$ac_includes_default
12633int
12634main ()
12635{
12636static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12637test_array [0] = 0
12638
12639 ;
12640 return 0;
12641}
12642_ACEOF
12643rm -f conftest.$ac_objext
12644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12645 (eval $ac_compile) 2>conftest.er1
12646 ac_status=$?
12647 grep -v '^ *+' conftest.er1 >conftest.err
12648 rm -f conftest.er1
12649 cat conftest.err >&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); } &&
12652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12654 (eval $ac_try) 2>&5
12655 ac_status=$?
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); }; } &&
12658 { ac_try='test -s conftest.$ac_objext'
12659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12660 (eval $ac_try) 2>&5
12661 ac_status=$?
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); }; }; then
12664 ac_hi=$ac_mid
12665else
12666 echo "$as_me: failed program was:" >&5
12667sed 's/^/| /' conftest.$ac_ext >&5
12668
12669ac_lo=`expr '(' $ac_mid ')' + 1`
12670fi
12671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12672done
12673case $ac_lo in
12674?*) ac_cv_sizeof_long=$ac_lo;;
12675'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12676See \`config.log' for more details." >&5
12677echo "$as_me: error: cannot compute sizeof (long), 77
12678See \`config.log' for more details." >&2;}
12679 { (exit 1); exit 1; }; } ;;
12680esac
12681else
12682 if test "$cross_compiling" = yes; then
12683 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12684See \`config.log' for more details." >&5
12685echo "$as_me: error: cannot run test program while cross compiling
12686See \`config.log' for more details." >&2;}
12687 { (exit 1); exit 1; }; }
12688else
12689 cat >conftest.$ac_ext <<_ACEOF
12690/* confdefs.h. */
12691_ACEOF
12692cat confdefs.h >>conftest.$ac_ext
12693cat >>conftest.$ac_ext <<_ACEOF
12694/* end confdefs.h. */
12695$ac_includes_default
12696long longval () { return (long) (sizeof (long)); }
12697unsigned long ulongval () { return (long) (sizeof (long)); }
12698#include <stdio.h>
12699#include <stdlib.h>
12700int
12701main ()
12702{
12703
12704 FILE *f = fopen ("conftest.val", "w");
12705 if (! f)
12706 exit (1);
12707 if (((long) (sizeof (long))) < 0)
12708 {
12709 long i = longval ();
12710 if (i != ((long) (sizeof (long))))
12711 exit (1);
12712 fprintf (f, "%ld\n", i);
12713 }
12714 else
12715 {
12716 unsigned long i = ulongval ();
12717 if (i != ((long) (sizeof (long))))
12718 exit (1);
12719 fprintf (f, "%lu\n", i);
12720 }
12721 exit (ferror (f) || fclose (f) != 0);
12722
12723 ;
12724 return 0;
12725}
12726_ACEOF
12727rm -f conftest$ac_exeext
12728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12729 (eval $ac_link) 2>&5
12730 ac_status=$?
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12734 (eval $ac_try) 2>&5
12735 ac_status=$?
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); }; }; then
12738 ac_cv_sizeof_long=`cat conftest.val`
12739else
12740 echo "$as_me: program exited with status $ac_status" >&5
12741echo "$as_me: failed program was:" >&5
12742sed 's/^/| /' conftest.$ac_ext >&5
12743
12744( exit $ac_status )
12745{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12746See \`config.log' for more details." >&5
12747echo "$as_me: error: cannot compute sizeof (long), 77
12748See \`config.log' for more details." >&2;}
12749 { (exit 1); exit 1; }; }
12750fi
12751rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12752fi
12753fi
12754rm -f conftest.val
12755else
12756 ac_cv_sizeof_long=0
12757fi
12758fi
12759echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12760echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12761cat >>confdefs.h <<_ACEOF
12762#define SIZEOF_LONG $ac_cv_sizeof_long
12763_ACEOF
12764
12765
12766echo "$as_me:$LINENO: checking for long long" >&5 8504echo "$as_me:$LINENO: checking for long long" >&5
12767echo $ECHO_N "checking for long long... $ECHO_C" >&6 8505echo $ECHO_N "checking for long long... $ECHO_C" >&6
12768if test "${ac_cv_type_long_long+set}" = set; then 8506if test "${ac_cv_type_long_long+set}" = set; then
12769 echo $ECHO_N "(cached) $ECHO_C" >&6 8507 echo $ECHO_N "(cached) $ECHO_C" >&6
12770else 8508else
12793 grep -v '^ *+' conftest.er1 >conftest.err 8531 grep -v '^ *+' conftest.er1 >conftest.err
12794 rm -f conftest.er1 8532 rm -f conftest.er1
12795 cat conftest.err >&5 8533 cat conftest.err >&5
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); } && 8535 (exit $ac_status); } &&
12798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8536 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12800 (eval $ac_try) 2>&5 8538 (eval $ac_try) 2>&5
12801 ac_status=$? 8539 ac_status=$?
12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803 (exit $ac_status); }; } && 8541 (exit $ac_status); }; } &&
12855 grep -v '^ *+' conftest.er1 >conftest.err 8593 grep -v '^ *+' conftest.er1 >conftest.err
12856 rm -f conftest.er1 8594 rm -f conftest.er1
12857 cat conftest.err >&5 8595 cat conftest.err >&5
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); } && 8597 (exit $ac_status); } &&
12860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8598 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12862 (eval $ac_try) 2>&5 8600 (eval $ac_try) 2>&5
12863 ac_status=$? 8601 ac_status=$?
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); }; } && 8603 (exit $ac_status); }; } &&
12895 grep -v '^ *+' conftest.er1 >conftest.err 8633 grep -v '^ *+' conftest.er1 >conftest.err
12896 rm -f conftest.er1 8634 rm -f conftest.er1
12897 cat conftest.err >&5 8635 cat conftest.err >&5
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); } && 8637 (exit $ac_status); } &&
12900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8638 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12902 (eval $ac_try) 2>&5 8640 (eval $ac_try) 2>&5
12903 ac_status=$? 8641 ac_status=$?
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); }; } && 8643 (exit $ac_status); }; } &&
12951 grep -v '^ *+' conftest.er1 >conftest.err 8689 grep -v '^ *+' conftest.er1 >conftest.err
12952 rm -f conftest.er1 8690 rm -f conftest.er1
12953 cat conftest.err >&5 8691 cat conftest.err >&5
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); } && 8693 (exit $ac_status); } &&
12956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8694 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12958 (eval $ac_try) 2>&5 8696 (eval $ac_try) 2>&5
12959 ac_status=$? 8697 ac_status=$?
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); }; } && 8699 (exit $ac_status); }; } &&
12991 grep -v '^ *+' conftest.er1 >conftest.err 8729 grep -v '^ *+' conftest.er1 >conftest.err
12992 rm -f conftest.er1 8730 rm -f conftest.er1
12993 cat conftest.err >&5 8731 cat conftest.err >&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); } && 8733 (exit $ac_status); } &&
12996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8734 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12998 (eval $ac_try) 2>&5 8736 (eval $ac_try) 2>&5
12999 ac_status=$? 8737 ac_status=$?
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); }; } && 8739 (exit $ac_status); }; } &&
13055 grep -v '^ *+' conftest.er1 >conftest.err 8793 grep -v '^ *+' conftest.er1 >conftest.err
13056 rm -f conftest.er1 8794 rm -f conftest.er1
13057 cat conftest.err >&5 8795 cat conftest.err >&5
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); } && 8797 (exit $ac_status); } &&
13060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8798 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13062 (eval $ac_try) 2>&5 8800 (eval $ac_try) 2>&5
13063 ac_status=$? 8801 ac_status=$?
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); }; } && 8803 (exit $ac_status); }; } &&
13086See \`config.log' for more details." >&2;} 8824See \`config.log' for more details." >&2;}
13087 { (exit 1); exit 1; }; } ;; 8825 { (exit 1); exit 1; }; } ;;
13088esac 8826esac
13089else 8827else
13090 if test "$cross_compiling" = yes; then 8828 if test "$cross_compiling" = yes; then
13091 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 8829 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13092See \`config.log' for more details." >&5 8830echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13093echo "$as_me: error: cannot run test program while cross compiling
13094See \`config.log' for more details." >&2;}
13095 { (exit 1); exit 1; }; } 8831 { (exit 1); exit 1; }; }
13096else 8832else
13097 cat >conftest.$ac_ext <<_ACEOF 8833 cat >conftest.$ac_ext <<_ACEOF
13098/* confdefs.h. */ 8834/* confdefs.h. */
13099_ACEOF 8835_ACEOF
13201 grep -v '^ *+' conftest.er1 >conftest.err 8937 grep -v '^ *+' conftest.er1 >conftest.err
13202 rm -f conftest.er1 8938 rm -f conftest.er1
13203 cat conftest.err >&5 8939 cat conftest.err >&5
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); } && 8941 (exit $ac_status); } &&
13206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8942 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13208 (eval $ac_try) 2>&5 8944 (eval $ac_try) 2>&5
13209 ac_status=$? 8945 ac_status=$?
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); }; } && 8947 (exit $ac_status); }; } &&
13263 grep -v '^ *+' conftest.er1 >conftest.err 8999 grep -v '^ *+' conftest.er1 >conftest.err
13264 rm -f conftest.er1 9000 rm -f conftest.er1
13265 cat conftest.err >&5 9001 cat conftest.err >&5
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); } && 9003 (exit $ac_status); } &&
13268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9004 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13270 (eval $ac_try) 2>&5 9006 (eval $ac_try) 2>&5
13271 ac_status=$? 9007 ac_status=$?
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); }; } && 9009 (exit $ac_status); }; } &&
13303 grep -v '^ *+' conftest.er1 >conftest.err 9039 grep -v '^ *+' conftest.er1 >conftest.err
13304 rm -f conftest.er1 9040 rm -f conftest.er1
13305 cat conftest.err >&5 9041 cat conftest.err >&5
13306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307 (exit $ac_status); } && 9043 (exit $ac_status); } &&
13308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9044 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13310 (eval $ac_try) 2>&5 9046 (eval $ac_try) 2>&5
13311 ac_status=$? 9047 ac_status=$?
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); }; } && 9049 (exit $ac_status); }; } &&
13359 grep -v '^ *+' conftest.er1 >conftest.err 9095 grep -v '^ *+' conftest.er1 >conftest.err
13360 rm -f conftest.er1 9096 rm -f conftest.er1
13361 cat conftest.err >&5 9097 cat conftest.err >&5
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); } && 9099 (exit $ac_status); } &&
13364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9100 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13366 (eval $ac_try) 2>&5 9102 (eval $ac_try) 2>&5
13367 ac_status=$? 9103 ac_status=$?
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); }; } && 9105 (exit $ac_status); }; } &&
13399 grep -v '^ *+' conftest.er1 >conftest.err 9135 grep -v '^ *+' conftest.er1 >conftest.err
13400 rm -f conftest.er1 9136 rm -f conftest.er1
13401 cat conftest.err >&5 9137 cat conftest.err >&5
13402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403 (exit $ac_status); } && 9139 (exit $ac_status); } &&
13404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9140 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13406 (eval $ac_try) 2>&5 9142 (eval $ac_try) 2>&5
13407 ac_status=$? 9143 ac_status=$?
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); }; } && 9145 (exit $ac_status); }; } &&
13463 grep -v '^ *+' conftest.er1 >conftest.err 9199 grep -v '^ *+' conftest.er1 >conftest.err
13464 rm -f conftest.er1 9200 rm -f conftest.er1
13465 cat conftest.err >&5 9201 cat conftest.err >&5
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); } && 9203 (exit $ac_status); } &&
13468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9204 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13470 (eval $ac_try) 2>&5 9206 (eval $ac_try) 2>&5
13471 ac_status=$? 9207 ac_status=$?
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); }; } && 9209 (exit $ac_status); }; } &&
13494See \`config.log' for more details." >&2;} 9230See \`config.log' for more details." >&2;}
13495 { (exit 1); exit 1; }; } ;; 9231 { (exit 1); exit 1; }; } ;;
13496esac 9232esac
13497else 9233else
13498 if test "$cross_compiling" = yes; then 9234 if test "$cross_compiling" = yes; then
13499 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 9235 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13500See \`config.log' for more details." >&5 9236echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13501echo "$as_me: error: cannot run test program while cross compiling
13502See \`config.log' for more details." >&2;}
13503 { (exit 1); exit 1; }; } 9237 { (exit 1); exit 1; }; }
13504else 9238else
13505 cat >conftest.$ac_ext <<_ACEOF 9239 cat >conftest.$ac_ext <<_ACEOF
13506/* confdefs.h. */ 9240/* confdefs.h. */
13507_ACEOF 9241_ACEOF
13608 grep -v '^ *+' conftest.er1 >conftest.err 9342 grep -v '^ *+' conftest.er1 >conftest.err
13609 rm -f conftest.er1 9343 rm -f conftest.er1
13610 cat conftest.err >&5 9344 cat conftest.err >&5
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); } && 9346 (exit $ac_status); } &&
13613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9347 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615 (eval $ac_try) 2>&5 9349 (eval $ac_try) 2>&5
13616 ac_status=$? 9350 ac_status=$?
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); }; } && 9352 (exit $ac_status); }; } &&
13625 rxvt_cv_int16_t=yes 9359 rxvt_cv_int16_t=yes
13626else 9360else
13627 echo "$as_me: failed program was:" >&5 9361 echo "$as_me: failed program was:" >&5
13628sed 's/^/| /' conftest.$ac_ext >&5 9362sed 's/^/| /' conftest.$ac_ext >&5
13629 9363
13630if test $ac_cv_sizeof_char -ge 2; then 9364if test "$ac_cv_sizeof_char" -ge 2; then
13631 rxvt_cv_int16_t=" char" 9365 rxvt_cv_int16_t=" char"
13632else 9366else
13633 if test $ac_cv_sizeof_short -ge 2; then 9367 if test "$ac_cv_sizeof_short" -ge 2; then
13634 rxvt_cv_int16_t=" short" 9368 rxvt_cv_int16_t=" short"
13635 else 9369 else
13636 if test $ac_cv_sizeof_int -ge 2; then 9370 if test "$ac_cv_sizeof_int" -ge 2; then
13637 rxvt_cv_int16_t=" int" 9371 rxvt_cv_int16_t=" int"
13638 else 9372 else
13639 if test $ac_cv_sizeof_long -ge 2; then 9373 if test "$ac_cv_sizeof_long" -ge 2; then
13640 rxvt_cv_int16_t=" long" 9374 rxvt_cv_int16_t=" long"
13641 else 9375 else
13642 if test $ac_cv_sizeof_long_long -ge 2; then 9376 if test "$ac_cv_sizeof_long_long" -ge 2; then
13643 rxvt_cv_int16_t=" long long" 9377 rxvt_cv_int16_t=" long long"
13644 else 9378 else
13645 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default 9379 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
13646 fi 9380 fi
13647 fi 9381 fi
13690 grep -v '^ *+' conftest.er1 >conftest.err 9424 grep -v '^ *+' conftest.er1 >conftest.err
13691 rm -f conftest.er1 9425 rm -f conftest.er1
13692 cat conftest.err >&5 9426 cat conftest.err >&5
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); } && 9428 (exit $ac_status); } &&
13695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9429 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13697 (eval $ac_try) 2>&5 9431 (eval $ac_try) 2>&5
13698 ac_status=$? 9432 ac_status=$?
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); }; } && 9434 (exit $ac_status); }; } &&
13707 rxvt_cv_uint16_t=yes 9441 rxvt_cv_uint16_t=yes
13708else 9442else
13709 echo "$as_me: failed program was:" >&5 9443 echo "$as_me: failed program was:" >&5
13710sed 's/^/| /' conftest.$ac_ext >&5 9444sed 's/^/| /' conftest.$ac_ext >&5
13711 9445
13712if test $ac_cv_sizeof_char -ge 2; then 9446if test "$ac_cv_sizeof_char" -ge 2; then
13713 rxvt_cv_uint16_t="unsigned char" 9447 rxvt_cv_uint16_t="unsigned char"
13714else 9448else
13715 if test $ac_cv_sizeof_short -ge 2; then 9449 if test "$ac_cv_sizeof_short" -ge 2; then
13716 rxvt_cv_uint16_t="unsigned short" 9450 rxvt_cv_uint16_t="unsigned short"
13717 else 9451 else
13718 if test $ac_cv_sizeof_int -ge 2; then 9452 if test "$ac_cv_sizeof_int" -ge 2; then
13719 rxvt_cv_uint16_t="unsigned int" 9453 rxvt_cv_uint16_t="unsigned int"
13720 else 9454 else
13721 if test $ac_cv_sizeof_long -ge 2; then 9455 if test "$ac_cv_sizeof_long" -ge 2; then
13722 rxvt_cv_uint16_t="unsigned long" 9456 rxvt_cv_uint16_t="unsigned long"
13723 else 9457 else
13724 if test $ac_cv_sizeof_long_long -ge 2; then 9458 if test "$ac_cv_sizeof_long_long" -ge 2; then
13725 rxvt_cv_uint16_t="unsigned long long" 9459 rxvt_cv_uint16_t="unsigned long long"
13726 else 9460 else
13727 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default 9461 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
13728 fi 9462 fi
13729 fi 9463 fi
13772 grep -v '^ *+' conftest.er1 >conftest.err 9506 grep -v '^ *+' conftest.er1 >conftest.err
13773 rm -f conftest.er1 9507 rm -f conftest.er1
13774 cat conftest.err >&5 9508 cat conftest.err >&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); } && 9510 (exit $ac_status); } &&
13777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9511 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13779 (eval $ac_try) 2>&5 9513 (eval $ac_try) 2>&5
13780 ac_status=$? 9514 ac_status=$?
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); }; } && 9516 (exit $ac_status); }; } &&
13789 rxvt_cv_int32_t=yes 9523 rxvt_cv_int32_t=yes
13790else 9524else
13791 echo "$as_me: failed program was:" >&5 9525 echo "$as_me: failed program was:" >&5
13792sed 's/^/| /' conftest.$ac_ext >&5 9526sed 's/^/| /' conftest.$ac_ext >&5
13793 9527
13794if test $ac_cv_sizeof_char -ge 4; then 9528if test "$ac_cv_sizeof_char" -ge 4; then
13795 rxvt_cv_int32_t=" char" 9529 rxvt_cv_int32_t=" char"
13796else 9530else
13797 if test $ac_cv_sizeof_short -ge 4; then 9531 if test "$ac_cv_sizeof_short" -ge 4; then
13798 rxvt_cv_int32_t=" short" 9532 rxvt_cv_int32_t=" short"
13799 else 9533 else
13800 if test $ac_cv_sizeof_int -ge 4; then 9534 if test "$ac_cv_sizeof_int" -ge 4; then
13801 rxvt_cv_int32_t=" int" 9535 rxvt_cv_int32_t=" int"
13802 else 9536 else
13803 if test $ac_cv_sizeof_long -ge 4; then 9537 if test "$ac_cv_sizeof_long" -ge 4; then
13804 rxvt_cv_int32_t=" long" 9538 rxvt_cv_int32_t=" long"
13805 else 9539 else
13806 if test $ac_cv_sizeof_long_long -ge 4; then 9540 if test "$ac_cv_sizeof_long_long" -ge 4; then
13807 rxvt_cv_int32_t=" long long" 9541 rxvt_cv_int32_t=" long long"
13808 else 9542 else
13809 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default 9543 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
13810 fi 9544 fi
13811 fi 9545 fi
13854 grep -v '^ *+' conftest.er1 >conftest.err 9588 grep -v '^ *+' conftest.er1 >conftest.err
13855 rm -f conftest.er1 9589 rm -f conftest.er1
13856 cat conftest.err >&5 9590 cat conftest.err >&5
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); } && 9592 (exit $ac_status); } &&
13859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9593 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13861 (eval $ac_try) 2>&5 9595 (eval $ac_try) 2>&5
13862 ac_status=$? 9596 ac_status=$?
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); }; } && 9598 (exit $ac_status); }; } &&
13871 rxvt_cv_uint32_t=yes 9605 rxvt_cv_uint32_t=yes
13872else 9606else
13873 echo "$as_me: failed program was:" >&5 9607 echo "$as_me: failed program was:" >&5
13874sed 's/^/| /' conftest.$ac_ext >&5 9608sed 's/^/| /' conftest.$ac_ext >&5
13875 9609
13876if test $ac_cv_sizeof_char -ge 4; then 9610if test "$ac_cv_sizeof_char" -ge 4; then
13877 rxvt_cv_uint32_t="unsigned char" 9611 rxvt_cv_uint32_t="unsigned char"
13878else 9612else
13879 if test $ac_cv_sizeof_short -ge 4; then 9613 if test "$ac_cv_sizeof_short" -ge 4; then
13880 rxvt_cv_uint32_t="unsigned short" 9614 rxvt_cv_uint32_t="unsigned short"
13881 else 9615 else
13882 if test $ac_cv_sizeof_int -ge 4; then 9616 if test "$ac_cv_sizeof_int" -ge 4; then
13883 rxvt_cv_uint32_t="unsigned int" 9617 rxvt_cv_uint32_t="unsigned int"
13884 else 9618 else
13885 if test $ac_cv_sizeof_long -ge 4; then 9619 if test "$ac_cv_sizeof_long" -ge 4; then
13886 rxvt_cv_uint32_t="unsigned long" 9620 rxvt_cv_uint32_t="unsigned long"
13887 else 9621 else
13888 if test $ac_cv_sizeof_long_long -ge 4; then 9622 if test "$ac_cv_sizeof_long_long" -ge 4; then
13889 rxvt_cv_uint32_t="unsigned long long" 9623 rxvt_cv_uint32_t="unsigned long long"
13890 else 9624 else
13891 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default 9625 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
13892 fi 9626 fi
13893 fi 9627 fi
13907 else 9641 else
13908 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" 9642 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
13909 fi 9643 fi
13910fi 9644fi
13911 9645
13912if test $ac_cv_sizeof_int_p -eq 8; then 9646if test "$ac_cv_sizeof_int_p" -eq 8; then
13913 rxvt_intp_define="#define intp_t int64_t" 9647 rxvt_intp_define="#define intp_t int64_t"
13914 rxvt_u_intp_define="#define u_intp_t u_int64_t" 9648 rxvt_u_intp_define="#define u_intp_t u_int64_t"
13915else 9649else
13916 if test $ac_cv_sizeof_int_p -eq 4; then 9650 if test "$ac_cv_sizeof_int_p" -eq 4; then
13917 rxvt_intp_define="#define intp_t int32_t" 9651 rxvt_intp_define="#define intp_t int32_t"
13918 rxvt_u_intp_define="#define u_intp_t u_int32_t" 9652 rxvt_u_intp_define="#define u_intp_t u_int32_t"
13919 else 9653 else
13920 if test $ac_cv_sizeof_int_p -eq 2; then 9654 if test "$ac_cv_sizeof_int_p" -eq 2; then
13921 rxvt_intp_define="#define intp_t int16_t" 9655 rxvt_intp_define="#define intp_t int16_t"
13922 rxvt_u_intp_define="#define u_intp_t u_int16_t" 9656 rxvt_u_intp_define="#define u_intp_t u_int16_t"
13923 else 9657 else
13924 rxvt_intp_define="#error set intp_t" 9658 rxvt_intp_define="#error set intp_t"
13925 rxvt_u_intp_define="#error set u_intp_t" 9659 rxvt_u_intp_define="#error set u_intp_t"
13966 grep -v '^ *+' conftest.er1 >conftest.err 9700 grep -v '^ *+' conftest.er1 >conftest.err
13967 rm -f conftest.er1 9701 rm -f conftest.er1
13968 cat conftest.err >&5 9702 cat conftest.err >&5
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); } && 9704 (exit $ac_status); } &&
13971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9705 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13973 (eval $ac_try) 2>&5 9707 (eval $ac_try) 2>&5
13974 ac_status=$? 9708 ac_status=$?
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); }; } && 9710 (exit $ac_status); }; } &&
13996#define RETSIGTYPE $ac_cv_type_signal 9730#define RETSIGTYPE $ac_cv_type_signal
13997_ACEOF 9731_ACEOF
13998 9732
13999 9733
14000 9734
14001case "$host_alias" in
14002 *ultrix) ac_cv_func_setsid='no' ;;
14003 *) break;;
14004esac
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021 9735
14022 9736
14023 9737
14024for ac_func in \ 9738for ac_func in \
14025 atexit \
14026 revoke \
14027 unsetenv \ 9739 unsetenv \
14028 setutent \ 9740 setutent \
14029 seteuid \
14030 setreuid \
14031 setsid \
14032 setpgrp \
14033 setpgid \
14034 openpty \
14035 _getpty \
14036 grantpt \
14037 unlockpt \
14038 isastream \
14039 on_exit \ 9741 on_exit \
14040 nanosleep \
14041 updwtmp \
14042 ttyslot \
14043 9742
14044do 9743do
14045as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9744as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14046echo "$as_me:$LINENO: checking for $ac_func" >&5 9745echo "$as_me:$LINENO: checking for $ac_func" >&5
14047echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9746echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14106 grep -v '^ *+' conftest.er1 >conftest.err 9805 grep -v '^ *+' conftest.er1 >conftest.err
14107 rm -f conftest.er1 9806 rm -f conftest.er1
14108 cat conftest.err >&5 9807 cat conftest.err >&5
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); } && 9809 (exit $ac_status); } &&
14111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9810 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14113 (eval $ac_try) 2>&5 9812 (eval $ac_try) 2>&5
14114 ac_status=$? 9813 ac_status=$?
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); }; } && 9815 (exit $ac_status); }; } &&
14140fi 9839fi
14141done 9840done
14142 9841
14143 9842
14144 9843
9844support_utmp=yes
9845support_wtmp=yes
9846support_lastlog=yes
9847
9848# Check whether --enable-utmp or --disable-utmp was given.
9849if test "${enable_utmp+set}" = set; then
9850 enableval="$enable_utmp"
9851 if test x$enableval = xyes -o x$enableval = xno; then
9852 support_utmp=$enableval
9853 fi
9854fi;
9855
9856# Check whether --enable-wtmp or --disable-wtmp was given.
9857if test "${enable_wtmp+set}" = set; then
9858 enableval="$enable_wtmp"
9859 if test x$enableval = xyes -o x$enableval = xno; then
9860 support_wtmp=$enableval
9861 fi
9862fi;
9863
9864# Check whether --enable-lastlog or --disable-lastlog was given.
9865if test "${enable_lastlog+set}" = set; then
9866 enableval="$enable_lastlog"
9867 if test x$enableval = xyes -o x$enableval = xno; then
9868 support_lastlog=$enableval
9869 fi
9870fi;
9871
9872if test x$support_utmp = xyes; then
9873
9874cat >>confdefs.h <<\_ACEOF
9875#define UTMP_SUPPORT 1
9876_ACEOF
9877
9878fi
9879if test x$support_wtmp = xyes; then
9880
9881cat >>confdefs.h <<\_ACEOF
9882#define WTMP_SUPPORT 1
9883_ACEOF
9884
9885fi
9886if test x$support_lastlog = xyes; then
9887
9888cat >>confdefs.h <<\_ACEOF
9889#define LASTLOG_SUPPORT 1
9890_ACEOF
9891
9892fi
9893
9894
9895
9896
9897for ac_func in \
9898 ttyslot \
9899 updwtmp \
9900 updwtmpx \
9901
9902do
9903as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9904echo "$as_me:$LINENO: checking for $ac_func" >&5
9905echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9906if eval "test \"\${$as_ac_var+set}\" = set"; then
9907 echo $ECHO_N "(cached) $ECHO_C" >&6
9908else
9909 cat >conftest.$ac_ext <<_ACEOF
9910/* confdefs.h. */
9911_ACEOF
9912cat confdefs.h >>conftest.$ac_ext
9913cat >>conftest.$ac_ext <<_ACEOF
9914/* end confdefs.h. */
9915/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9917#define $ac_func innocuous_$ac_func
9918
9919/* System header to define __stub macros and hopefully few prototypes,
9920 which can conflict with char $ac_func (); below.
9921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9922 <limits.h> exists even on freestanding compilers. */
9923
9924#ifdef __STDC__
9925# include <limits.h>
9926#else
9927# include <assert.h>
9928#endif
9929
9930#undef $ac_func
9931
9932/* Override any gcc2 internal prototype to avoid an error. */
9933#ifdef __cplusplus
9934extern "C"
9935{
9936#endif
9937/* We use char because int might match the return type of a gcc2
9938 builtin and then its argument prototype would still apply. */
9939char $ac_func ();
9940/* The GNU C library defines this for functions which it implements
9941 to always fail with ENOSYS. Some functions are actually named
9942 something starting with __ and the normal name is an alias. */
9943#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9944choke me
9945#else
9946char (*f) () = $ac_func;
9947#endif
9948#ifdef __cplusplus
9949}
9950#endif
9951
9952int
9953main ()
9954{
9955return f != $ac_func;
9956 ;
9957 return 0;
9958}
9959_ACEOF
9960rm -f conftest.$ac_objext conftest$ac_exeext
9961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9962 (eval $ac_link) 2>conftest.er1
9963 ac_status=$?
9964 grep -v '^ *+' conftest.er1 >conftest.err
9965 rm -f conftest.er1
9966 cat conftest.err >&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); } &&
9969 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9971 (eval $ac_try) 2>&5
9972 ac_status=$?
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); }; } &&
9975 { ac_try='test -s conftest$ac_exeext'
9976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9977 (eval $ac_try) 2>&5
9978 ac_status=$?
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); }; }; then
9981 eval "$as_ac_var=yes"
9982else
9983 echo "$as_me: failed program was:" >&5
9984sed 's/^/| /' conftest.$ac_ext >&5
9985
9986eval "$as_ac_var=no"
9987fi
9988rm -f conftest.err conftest.$ac_objext \
9989 conftest$ac_exeext conftest.$ac_ext
9990fi
9991echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9992echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9993if test `eval echo '${'$as_ac_var'}'` = yes; then
9994 cat >>confdefs.h <<_ACEOF
9995#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9996_ACEOF
9997
9998fi
9999done
10000
10001
10002
10003
10004
10005for ac_header in \
10006 utmp.h \
10007 utmpx.h \
10008 lastlog.h \
10009
10010do
10011as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10012if eval "test \"\${$as_ac_Header+set}\" = set"; then
10013 echo "$as_me:$LINENO: checking for $ac_header" >&5
10014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10015if eval "test \"\${$as_ac_Header+set}\" = set"; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
10017fi
10018echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10019echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10020else
10021 # Is the header compilable?
10022echo "$as_me:$LINENO: checking $ac_header usability" >&5
10023echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10024cat >conftest.$ac_ext <<_ACEOF
10025/* confdefs.h. */
10026_ACEOF
10027cat confdefs.h >>conftest.$ac_ext
10028cat >>conftest.$ac_ext <<_ACEOF
10029/* end confdefs.h. */
10030$ac_includes_default
10031#include <$ac_header>
10032_ACEOF
10033rm -f conftest.$ac_objext
10034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10035 (eval $ac_compile) 2>conftest.er1
10036 ac_status=$?
10037 grep -v '^ *+' conftest.er1 >conftest.err
10038 rm -f conftest.er1
10039 cat conftest.err >&5
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); } &&
10042 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10044 (eval $ac_try) 2>&5
10045 ac_status=$?
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); }; } &&
10048 { ac_try='test -s conftest.$ac_objext'
10049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10050 (eval $ac_try) 2>&5
10051 ac_status=$?
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); }; }; then
10054 ac_header_compiler=yes
10055else
10056 echo "$as_me: failed program was:" >&5
10057sed 's/^/| /' conftest.$ac_ext >&5
10058
10059ac_header_compiler=no
10060fi
10061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10062echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10063echo "${ECHO_T}$ac_header_compiler" >&6
10064
10065# Is the header present?
10066echo "$as_me:$LINENO: checking $ac_header presence" >&5
10067echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10068cat >conftest.$ac_ext <<_ACEOF
10069/* confdefs.h. */
10070_ACEOF
10071cat confdefs.h >>conftest.$ac_ext
10072cat >>conftest.$ac_ext <<_ACEOF
10073/* end confdefs.h. */
10074#include <$ac_header>
10075_ACEOF
10076if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10078 ac_status=$?
10079 grep -v '^ *+' conftest.er1 >conftest.err
10080 rm -f conftest.er1
10081 cat conftest.err >&5
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); } >/dev/null; then
10084 if test -s conftest.err; then
10085 ac_cpp_err=$ac_cxx_preproc_warn_flag
10086 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10087 else
10088 ac_cpp_err=
10089 fi
10090else
10091 ac_cpp_err=yes
10092fi
10093if test -z "$ac_cpp_err"; then
10094 ac_header_preproc=yes
10095else
10096 echo "$as_me: failed program was:" >&5
10097sed 's/^/| /' conftest.$ac_ext >&5
10098
10099 ac_header_preproc=no
10100fi
10101rm -f conftest.err conftest.$ac_ext
10102echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10103echo "${ECHO_T}$ac_header_preproc" >&6
10104
10105# So? What about this header?
10106case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10107 yes:no: )
10108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10109echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10111echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10112 ac_header_preproc=yes
10113 ;;
10114 no:yes:* )
10115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10116echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10118echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10120echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10122echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10124echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10126echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10127 (
10128 cat <<\_ASBOX
10129## ------------------------------------------ ##
10130## Report this to the AC_PACKAGE_NAME lists. ##
10131## ------------------------------------------ ##
10132_ASBOX
10133 ) |
10134 sed "s/^/$as_me: WARNING: /" >&2
10135 ;;
10136esac
10137echo "$as_me:$LINENO: checking for $ac_header" >&5
10138echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10139if eval "test \"\${$as_ac_Header+set}\" = set"; then
10140 echo $ECHO_N "(cached) $ECHO_C" >&6
10141else
10142 eval "$as_ac_Header=\$ac_header_preproc"
10143fi
10144echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10145echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10146
10147fi
10148if test `eval echo '${'$as_ac_Header'}'` = yes; then
10149 cat >>confdefs.h <<_ACEOF
10150#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10151_ACEOF
10152
10153fi
10154
10155done
10156
10157
10158
14145if test "${ac_cv_header_utmp_h+set}" = set; then 10159if test "${ac_cv_header_utmp_h+set}" = set; then
14146 echo "$as_me:$LINENO: checking for utmp.h" >&5 10160 echo "$as_me:$LINENO: checking for utmp.h" >&5
14147echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6 10161echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
14148if test "${ac_cv_header_utmp_h+set}" = set; then 10162if test "${ac_cv_header_utmp_h+set}" = set; then
14149 echo $ECHO_N "(cached) $ECHO_C" >&6 10163 echo $ECHO_N "(cached) $ECHO_C" >&6
14170 grep -v '^ *+' conftest.er1 >conftest.err 10184 grep -v '^ *+' conftest.er1 >conftest.err
14171 rm -f conftest.er1 10185 rm -f conftest.er1
14172 cat conftest.err >&5 10186 cat conftest.err >&5
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); } && 10188 (exit $ac_status); } &&
14175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10189 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14177 (eval $ac_try) 2>&5 10191 (eval $ac_try) 2>&5
14178 ac_status=$? 10192 ac_status=$?
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); }; } && 10194 (exit $ac_status); }; } &&
14213 rm -f conftest.er1 10227 rm -f conftest.er1
14214 cat conftest.err >&5 10228 cat conftest.err >&5
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); } >/dev/null; then 10230 (exit $ac_status); } >/dev/null; then
14217 if test -s conftest.err; then 10231 if test -s conftest.err; then
14218 ac_cpp_err=$ac_c_preproc_warn_flag 10232 ac_cpp_err=$ac_cxx_preproc_warn_flag
14219 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10233 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14220 else 10234 else
14221 ac_cpp_err= 10235 ac_cpp_err=
14222 fi 10236 fi
14223else 10237else
14224 ac_cpp_err=yes 10238 ac_cpp_err=yes
14234rm -f conftest.err conftest.$ac_ext 10248rm -f conftest.err conftest.$ac_ext
14235echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10249echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14236echo "${ECHO_T}$ac_header_preproc" >&6 10250echo "${ECHO_T}$ac_header_preproc" >&6
14237 10251
14238# So? What about this header? 10252# So? What about this header?
14239case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10253case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14240 yes:no: ) 10254 yes:no: )
14241 { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 10255 { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
14242echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 10256echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14243 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5 10257 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5
14244echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;} 10258echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;}
14279 10293
14280fi 10294fi
14281if test $ac_cv_header_utmp_h = yes; then 10295if test $ac_cv_header_utmp_h = yes; then
14282 echo "$as_me:$LINENO: checking for struct utmp" >&5 10296 echo "$as_me:$LINENO: checking for struct utmp" >&5
14283echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6 10297echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6
14284if test "${rxvt_cv_struct_utmp+set}" = set; then 10298if test "${struct_utmp+set}" = set; then
14285 echo $ECHO_N "(cached) $ECHO_C" >&6 10299 echo $ECHO_N "(cached) $ECHO_C" >&6
14286else 10300else
14287 cat >conftest.$ac_ext <<_ACEOF 10301 cat >conftest.$ac_ext <<_ACEOF
14288/* confdefs.h. */ 10302/* confdefs.h. */
14289_ACEOF 10303_ACEOF
14290cat confdefs.h >>conftest.$ac_ext 10304cat confdefs.h >>conftest.$ac_ext
14291cat >>conftest.$ac_ext <<_ACEOF 10305cat >>conftest.$ac_ext <<_ACEOF
14292/* end confdefs.h. */ 10306/* end confdefs.h. */
14293#include <sys/types.h> 10307#include <sys/types.h>
14294#include <stdint.h>
14295#include <utmp.h> 10308#include <utmp.h>
14296int 10309int
14297main () 10310main ()
14298{ 10311{
14299struct utmp ut; 10312struct utmp ut;
14308 grep -v '^ *+' conftest.er1 >conftest.err 10321 grep -v '^ *+' conftest.er1 >conftest.err
14309 rm -f conftest.er1 10322 rm -f conftest.er1
14310 cat conftest.err >&5 10323 cat conftest.err >&5
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); } && 10325 (exit $ac_status); } &&
14313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10326 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14315 (eval $ac_try) 2>&5 10328 (eval $ac_try) 2>&5
14316 ac_status=$? 10329 ac_status=$?
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); }; } && 10331 (exit $ac_status); }; } &&
14320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14321 (eval $ac_try) 2>&5 10334 (eval $ac_try) 2>&5
14322 ac_status=$? 10335 ac_status=$?
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); }; }; then 10337 (exit $ac_status); }; }; then
14325 rxvt_cv_struct_utmp=yes 10338 struct_utmp=yes
14326else 10339else
14327 echo "$as_me: failed program was:" >&5 10340 echo "$as_me: failed program was:" >&5
14328sed 's/^/| /' conftest.$ac_ext >&5 10341sed 's/^/| /' conftest.$ac_ext >&5
14329 10342
14330rxvt_cv_struct_utmp=no 10343struct_utmp=no
14331fi 10344fi
14332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14333fi 10346fi
14334echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5 10347echo "$as_me:$LINENO: result: $struct_utmp" >&5
14335echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6 10348echo "${ECHO_T}$struct_utmp" >&6
14336if test x$rxvt_cv_struct_utmp = xyes; then 10349if test x$struct_utmp = xyes; then
14337 10350
14338cat >>confdefs.h <<\_ACEOF 10351cat >>confdefs.h <<\_ACEOF
14339#define HAVE_STRUCT_UTMP 1 10352#define HAVE_STRUCT_UTMP 1
14340_ACEOF 10353_ACEOF
14341 10354
14342fi 10355fi
14343 10356
14344 10357
14345echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5 10358echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
14346echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6 10359echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6
14347if test "${rxvt_cv_struct_utmp_host+set}" = set; then 10360if test "${struct_utmp_host+set}" = set; then
14348 echo $ECHO_N "(cached) $ECHO_C" >&6 10361 echo $ECHO_N "(cached) $ECHO_C" >&6
14349else 10362else
14350 cat >conftest.$ac_ext <<_ACEOF 10363 cat >conftest.$ac_ext <<_ACEOF
14351/* confdefs.h. */ 10364/* confdefs.h. */
14352_ACEOF 10365_ACEOF
14370 grep -v '^ *+' conftest.er1 >conftest.err 10383 grep -v '^ *+' conftest.er1 >conftest.err
14371 rm -f conftest.er1 10384 rm -f conftest.er1
14372 cat conftest.err >&5 10385 cat conftest.err >&5
14373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374 (exit $ac_status); } && 10387 (exit $ac_status); } &&
14375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10388 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14377 (eval $ac_try) 2>&5 10390 (eval $ac_try) 2>&5
14378 ac_status=$? 10391 ac_status=$?
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); }; } && 10393 (exit $ac_status); }; } &&
14382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14383 (eval $ac_try) 2>&5 10396 (eval $ac_try) 2>&5
14384 ac_status=$? 10397 ac_status=$?
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); }; }; then 10399 (exit $ac_status); }; }; then
14387 rxvt_cv_struct_utmp_host=yes 10400 struct_utmp_host=yes
14388else 10401else
14389 echo "$as_me: failed program was:" >&5 10402 echo "$as_me: failed program was:" >&5
14390sed 's/^/| /' conftest.$ac_ext >&5 10403sed 's/^/| /' conftest.$ac_ext >&5
14391 10404
14392rxvt_cv_struct_utmp_host=no 10405struct_utmp_host=no
14393fi 10406fi
14394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14395fi 10408fi
14396echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5 10409echo "$as_me:$LINENO: result: $struct_utmp_host" >&5
14397echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6 10410echo "${ECHO_T}$struct_utmp_host" >&6
14398if test x$rxvt_cv_struct_utmp_host = xyes; then 10411if test x$struct_utmp_host = xyes; then
14399 10412
14400cat >>confdefs.h <<\_ACEOF 10413cat >>confdefs.h <<\_ACEOF
14401#define HAVE_UTMP_HOST 1 10414#define HAVE_UTMP_HOST 1
14402_ACEOF 10415_ACEOF
14403 10416
14404fi 10417fi
14405 10418
14406echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5 10419echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
14407echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6 10420echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6
14408if test "${rxvt_cv_struct_utmp_pid+set}" = set; then 10421if test "${struct_utmp_pid+set}" = set; then
14409 echo $ECHO_N "(cached) $ECHO_C" >&6 10422 echo $ECHO_N "(cached) $ECHO_C" >&6
14410else 10423else
14411 cat >conftest.$ac_ext <<_ACEOF 10424 cat >conftest.$ac_ext <<_ACEOF
14412/* confdefs.h. */ 10425/* confdefs.h. */
14413_ACEOF 10426_ACEOF
14431 grep -v '^ *+' conftest.er1 >conftest.err 10444 grep -v '^ *+' conftest.er1 >conftest.err
14432 rm -f conftest.er1 10445 rm -f conftest.er1
14433 cat conftest.err >&5 10446 cat conftest.err >&5
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); } && 10448 (exit $ac_status); } &&
14436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10449 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14438 (eval $ac_try) 2>&5 10451 (eval $ac_try) 2>&5
14439 ac_status=$? 10452 ac_status=$?
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); }; } && 10454 (exit $ac_status); }; } &&
14443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14444 (eval $ac_try) 2>&5 10457 (eval $ac_try) 2>&5
14445 ac_status=$? 10458 ac_status=$?
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); }; }; then 10460 (exit $ac_status); }; }; then
14448 rxvt_cv_struct_utmp_pid=yes 10461 struct_utmp_pid=yes
14449else 10462else
14450 echo "$as_me: failed program was:" >&5 10463 echo "$as_me: failed program was:" >&5
14451sed 's/^/| /' conftest.$ac_ext >&5 10464sed 's/^/| /' conftest.$ac_ext >&5
14452 10465
14453rxvt_cv_struct_utmp_pid=no 10466struct_utmp_pid=no
14454fi 10467fi
14455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14456fi 10469fi
14457echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5 10470echo "$as_me:$LINENO: result: $struct_utmp_pid" >&5
14458echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6 10471echo "${ECHO_T}$struct_utmp_pid" >&6
14459if test x$rxvt_cv_struct_utmp_pid = xyes; then 10472if test x$struct_utmp_pid = xyes; then
14460 10473
14461cat >>confdefs.h <<\_ACEOF 10474cat >>confdefs.h <<\_ACEOF
14462#define HAVE_UTMP_PID 1 10475#define HAVE_UTMP_PID 1
14463_ACEOF 10476_ACEOF
14464 10477
14496 grep -v '^ *+' conftest.er1 >conftest.err 10509 grep -v '^ *+' conftest.er1 >conftest.err
14497 rm -f conftest.er1 10510 rm -f conftest.er1
14498 cat conftest.err >&5 10511 cat conftest.err >&5
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); } && 10513 (exit $ac_status); } &&
14501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10514 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14503 (eval $ac_try) 2>&5 10516 (eval $ac_try) 2>&5
14504 ac_status=$? 10517 ac_status=$?
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); }; } && 10519 (exit $ac_status); }; } &&
14539 rm -f conftest.er1 10552 rm -f conftest.er1
14540 cat conftest.err >&5 10553 cat conftest.err >&5
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); } >/dev/null; then 10555 (exit $ac_status); } >/dev/null; then
14543 if test -s conftest.err; then 10556 if test -s conftest.err; then
14544 ac_cpp_err=$ac_c_preproc_warn_flag 10557 ac_cpp_err=$ac_cxx_preproc_warn_flag
14545 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10558 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14546 else 10559 else
14547 ac_cpp_err= 10560 ac_cpp_err=
14548 fi 10561 fi
14549else 10562else
14550 ac_cpp_err=yes 10563 ac_cpp_err=yes
14560rm -f conftest.err conftest.$ac_ext 10573rm -f conftest.err conftest.$ac_ext
14561echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10574echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14562echo "${ECHO_T}$ac_header_preproc" >&6 10575echo "${ECHO_T}$ac_header_preproc" >&6
14563 10576
14564# So? What about this header? 10577# So? What about this header?
14565case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10578case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14566 yes:no: ) 10579 yes:no: )
14567 { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5 10580 { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5
14568echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 10581echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14569 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5 10582 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5
14570echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;} 10583echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;}
14605 10618
14606fi 10619fi
14607if test $ac_cv_header_utmpx_h = yes; then 10620if test $ac_cv_header_utmpx_h = yes; then
14608 echo "$as_me:$LINENO: checking for struct utmpx" >&5 10621 echo "$as_me:$LINENO: checking for struct utmpx" >&5
14609echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6 10622echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6
14610if test "${rxvt_cv_struct_utmpx+set}" = set; then 10623if test "${struct_utmpx+set}" = set; then
14611 echo $ECHO_N "(cached) $ECHO_C" >&6 10624 echo $ECHO_N "(cached) $ECHO_C" >&6
14612else 10625else
14613 cat >conftest.$ac_ext <<_ACEOF 10626 cat >conftest.$ac_ext <<_ACEOF
14614/* confdefs.h. */ 10627/* confdefs.h. */
14615_ACEOF 10628_ACEOF
14633 grep -v '^ *+' conftest.er1 >conftest.err 10646 grep -v '^ *+' conftest.er1 >conftest.err
14634 rm -f conftest.er1 10647 rm -f conftest.er1
14635 cat conftest.err >&5 10648 cat conftest.err >&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); } && 10650 (exit $ac_status); } &&
14638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10651 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14640 (eval $ac_try) 2>&5 10653 (eval $ac_try) 2>&5
14641 ac_status=$? 10654 ac_status=$?
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); }; } && 10656 (exit $ac_status); }; } &&
14645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14646 (eval $ac_try) 2>&5 10659 (eval $ac_try) 2>&5
14647 ac_status=$? 10660 ac_status=$?
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); }; }; then 10662 (exit $ac_status); }; }; then
14650 rxvt_cv_struct_utmpx=yes 10663 struct_utmpx=yes
14651else 10664else
14652 echo "$as_me: failed program was:" >&5 10665 echo "$as_me: failed program was:" >&5
14653sed 's/^/| /' conftest.$ac_ext >&5 10666sed 's/^/| /' conftest.$ac_ext >&5
14654 10667
14655rxvt_cv_struct_utmpx=no 10668struct_utmpx=no
14656fi 10669fi
14657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14658fi 10671fi
14659echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5 10672echo "$as_me:$LINENO: result: $struct_utmpx" >&5
14660echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6 10673echo "${ECHO_T}$struct_utmpx" >&6
14661if test x$rxvt_cv_struct_utmpx = xyes; then 10674if test x$struct_utmpx = xyes; then
14662 10675
14663cat >>confdefs.h <<\_ACEOF 10676cat >>confdefs.h <<\_ACEOF
14664#define HAVE_STRUCT_UTMPX 1 10677#define HAVE_STRUCT_UTMPX 1
14665_ACEOF 10678_ACEOF
14666 10679
14667fi 10680fi
14668 10681
14669 10682
14670echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 10683echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
14671echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6 10684echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6
14672if test "${rxvt_cv_struct_utmpx_host+set}" = set; then 10685if test "${struct_utmpx_host+set}" = set; then
14673 echo $ECHO_N "(cached) $ECHO_C" >&6 10686 echo $ECHO_N "(cached) $ECHO_C" >&6
14674else 10687else
14675 cat >conftest.$ac_ext <<_ACEOF 10688 cat >conftest.$ac_ext <<_ACEOF
14676/* confdefs.h. */ 10689/* confdefs.h. */
14677_ACEOF 10690_ACEOF
14695 grep -v '^ *+' conftest.er1 >conftest.err 10708 grep -v '^ *+' conftest.er1 >conftest.err
14696 rm -f conftest.er1 10709 rm -f conftest.er1
14697 cat conftest.err >&5 10710 cat conftest.err >&5
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); } && 10712 (exit $ac_status); } &&
14700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10713 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14702 (eval $ac_try) 2>&5 10715 (eval $ac_try) 2>&5
14703 ac_status=$? 10716 ac_status=$?
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); }; } && 10718 (exit $ac_status); }; } &&
14707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708 (eval $ac_try) 2>&5 10721 (eval $ac_try) 2>&5
14709 ac_status=$? 10722 ac_status=$?
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); }; }; then 10724 (exit $ac_status); }; }; then
14712 rxvt_cv_struct_utmpx_host=yes 10725 struct_utmpx_host=yes
14713else 10726else
14714 echo "$as_me: failed program was:" >&5 10727 echo "$as_me: failed program was:" >&5
14715sed 's/^/| /' conftest.$ac_ext >&5 10728sed 's/^/| /' conftest.$ac_ext >&5
14716 10729
14717rxvt_cv_struct_utmpx_host=no 10730struct_utmpx_host=no
14718fi 10731fi
14719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14720fi 10733fi
14721echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5 10734echo "$as_me:$LINENO: result: $struct_utmpx_host" >&5
14722echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6 10735echo "${ECHO_T}$struct_utmpx_host" >&6
14723if test x$rxvt_cv_struct_utmpx_host = xyes; then 10736if test x$struct_utmpx_host = xyes; then
14724 10737
14725cat >>confdefs.h <<\_ACEOF 10738cat >>confdefs.h <<\_ACEOF
14726#define HAVE_UTMPX_HOST 1 10739#define HAVE_UTMPX_HOST 1
14727_ACEOF 10740_ACEOF
14728 10741
14729fi 10742fi
14730 10743
14731fi 10744echo "$as_me:$LINENO: checking for session in utmpx struct" >&5
10745echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6
10746if test "${struct_utmpx_session+set}" = set; then
10747 echo $ECHO_N "(cached) $ECHO_C" >&6
10748else
10749 cat >conftest.$ac_ext <<_ACEOF
10750/* confdefs.h. */
10751_ACEOF
10752cat confdefs.h >>conftest.$ac_ext
10753cat >>conftest.$ac_ext <<_ACEOF
10754/* end confdefs.h. */
10755#include <sys/types.h>
10756#include <utmpx.h>
10757int
10758main ()
10759{
10760struct utmpx utx; utx.ut_session;
10761 ;
10762 return 0;
10763}
10764_ACEOF
10765rm -f conftest.$ac_objext
10766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10767 (eval $ac_compile) 2>conftest.er1
10768 ac_status=$?
10769 grep -v '^ *+' conftest.er1 >conftest.err
10770 rm -f conftest.er1
10771 cat conftest.err >&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); } &&
10774 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10776 (eval $ac_try) 2>&5
10777 ac_status=$?
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); }; } &&
10780 { ac_try='test -s conftest.$ac_objext'
10781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10782 (eval $ac_try) 2>&5
10783 ac_status=$?
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); }; }; then
10786 struct_utmpx_session=yes
10787else
10788 echo "$as_me: failed program was:" >&5
10789sed 's/^/| /' conftest.$ac_ext >&5
14732 10790
10791struct_utmpx_session=no
10792fi
10793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10794fi
10795echo "$as_me:$LINENO: result: $struct_utmpx_session" >&5
10796echo "${ECHO_T}$struct_utmpx_session" >&6
10797if test x$struct_utmpx_session = xyes; then
10798
10799cat >>confdefs.h <<\_ACEOF
10800#define HAVE_UTMPX_SESSION 1
10801_ACEOF
10802
10803fi
10804
10805fi
14733 10806
14734 10807
14735echo "$as_me:$LINENO: checking for struct lastlog" >&5 10808echo "$as_me:$LINENO: checking for struct lastlog" >&5
14736echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 10809echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
14737if test "${rxvt_cv_struct_lastlog+set}" = set; then 10810if test "${struct_lastlog+set}" = set; then
14738 echo $ECHO_N "(cached) $ECHO_C" >&6 10811 echo $ECHO_N "(cached) $ECHO_C" >&6
14739else 10812else
14740 cat >conftest.$ac_ext <<_ACEOF 10813 cat >conftest.$ac_ext <<_ACEOF
14741/* confdefs.h. */ 10814/* confdefs.h. */
14742_ACEOF 10815_ACEOF
14764 grep -v '^ *+' conftest.er1 >conftest.err 10837 grep -v '^ *+' conftest.er1 >conftest.err
14765 rm -f conftest.er1 10838 rm -f conftest.er1
14766 cat conftest.err >&5 10839 cat conftest.err >&5
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); } && 10841 (exit $ac_status); } &&
14769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10842 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14771 (eval $ac_try) 2>&5 10844 (eval $ac_try) 2>&5
14772 ac_status=$? 10845 ac_status=$?
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); }; } && 10847 (exit $ac_status); }; } &&
14776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14777 (eval $ac_try) 2>&5 10850 (eval $ac_try) 2>&5
14778 ac_status=$? 10851 ac_status=$?
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); }; }; then 10853 (exit $ac_status); }; }; then
14781 rxvt_cv_struct_lastlog=yes 10854 struct_lastlog=yes
14782else 10855else
14783 echo "$as_me: failed program was:" >&5 10856 echo "$as_me: failed program was:" >&5
14784sed 's/^/| /' conftest.$ac_ext >&5 10857sed 's/^/| /' conftest.$ac_ext >&5
14785 10858
14786rxvt_cv_struct_lastlog=no 10859struct_lastlog=no
14787fi 10860fi
14788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14789fi 10862fi
14790echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5 10863echo "$as_me:$LINENO: result: $struct_lastlog" >&5
14791echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6 10864echo "${ECHO_T}$struct_lastlog" >&6
14792if test x$rxvt_cv_struct_lastlog = xyes; then 10865if test x$struct_lastlog = xyes; then
14793 10866
14794cat >>confdefs.h <<\_ACEOF 10867cat >>confdefs.h <<\_ACEOF
14795#define HAVE_STRUCT_LASTLOG 1 10868#define HAVE_STRUCT_LASTLOG 1
14796_ACEOF 10869_ACEOF
14797 10870
14798fi 10871fi
14799 10872
14800echo "$as_me:$LINENO: checking for struct lastlogx" >&5 10873echo "$as_me:$LINENO: checking for struct lastlogx" >&5
14801echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6 10874echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6
14802if test "${rxvt_cv_struct_lastlogx+set}" = set; then 10875if test "${struct_lastlogx+set}" = set; then
14803 echo $ECHO_N "(cached) $ECHO_C" >&6 10876 echo $ECHO_N "(cached) $ECHO_C" >&6
14804else 10877else
14805 cat >conftest.$ac_ext <<_ACEOF 10878 cat >conftest.$ac_ext <<_ACEOF
14806/* confdefs.h. */ 10879/* confdefs.h. */
14807_ACEOF 10880_ACEOF
14829 grep -v '^ *+' conftest.er1 >conftest.err 10902 grep -v '^ *+' conftest.er1 >conftest.err
14830 rm -f conftest.er1 10903 rm -f conftest.er1
14831 cat conftest.err >&5 10904 cat conftest.err >&5
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); } && 10906 (exit $ac_status); } &&
14834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10907 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14836 (eval $ac_try) 2>&5 10909 (eval $ac_try) 2>&5
14837 ac_status=$? 10910 ac_status=$?
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); }; } && 10912 (exit $ac_status); }; } &&
14841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14842 (eval $ac_try) 2>&5 10915 (eval $ac_try) 2>&5
14843 ac_status=$? 10916 ac_status=$?
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); }; }; then 10918 (exit $ac_status); }; }; then
14846 rxvt_cv_struct_lastlogx=yes 10919 struct_lastlogx=yes
14847else 10920else
14848 echo "$as_me: failed program was:" >&5 10921 echo "$as_me: failed program was:" >&5
14849sed 's/^/| /' conftest.$ac_ext >&5 10922sed 's/^/| /' conftest.$ac_ext >&5
14850 10923
14851rxvt_cv_struct_lastlogx=no 10924struct_lastlogx=no
14852fi 10925fi
14853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14854fi 10927fi
14855echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5 10928echo "$as_me:$LINENO: result: $struct_lastlogx" >&5
14856echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6 10929echo "${ECHO_T}$struct_lastlogx" >&6
14857if test x$rxvt_cv_struct_lastlogx = xyes; then 10930if test x$struct_lastlogx = xyes; then
14858 10931
14859cat >>confdefs.h <<\_ACEOF 10932cat >>confdefs.h <<\_ACEOF
14860#define HAVE_STRUCT_LASTLOGX 1 10933#define HAVE_STRUCT_LASTLOGX 1
14861_ACEOF 10934_ACEOF
14862 10935
14863fi 10936fi
14864 10937
14865 10938
14866echo "$as_me:$LINENO: checking where utmp is located" >&5 10939echo "$as_me:$LINENO: checking where utmp is located" >&5
14867echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6 10940echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6
14868if test "${rxvt_cv_path_utmp+set}" = set; then 10941if test "${path_utmp+set}" = set; then
14869 echo $ECHO_N "(cached) $ECHO_C" >&6 10942 echo $ECHO_N "(cached) $ECHO_C" >&6
14870else 10943else
14871 if test "$cross_compiling" = yes; then 10944 if test "$cross_compiling" = yes; then
14872 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5 10945 { echo "$as_me:$LINENO: WARNING: Define UTMP_FILE in config.h manually" >&5
14873echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;} 10946echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;}
14874else 10947else
14875 cat >conftest.$ac_ext <<_ACEOF 10948 cat >conftest.$ac_ext <<_ACEOF
14876/* confdefs.h. */ 10949/* confdefs.h. */
14877_ACEOF 10950_ACEOF
14878cat confdefs.h >>conftest.$ac_ext 10951cat confdefs.h >>conftest.$ac_ext
14914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14915 (eval $ac_try) 2>&5 10988 (eval $ac_try) 2>&5
14916 ac_status=$? 10989 ac_status=$?
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); }; }; then 10991 (exit $ac_status); }; }; then
14919 rxvt_cv_path_utmp=`cat conftestval` 10992 path_utmp=`cat conftestval`
14920else 10993else
14921 echo "$as_me: program exited with status $ac_status" >&5 10994 echo "$as_me: program exited with status $ac_status" >&5
14922echo "$as_me: failed program was:" >&5 10995echo "$as_me: failed program was:" >&5
14923sed 's/^/| /' conftest.$ac_ext >&5 10996sed 's/^/| /' conftest.$ac_ext >&5
14924 10997
14925( exit $ac_status ) 10998( exit $ac_status )
14926rxvt_cv_path_utmp= 10999path_utmp=
14927fi 11000fi
14928rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11001rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14929fi 11002fi
14930fi 11003fi
14931echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5 11004echo "$as_me:$LINENO: result: $path_utmp" >&5
14932echo "${ECHO_T}$rxvt_cv_path_utmp" >&6 11005echo "${ECHO_T}$path_utmp" >&6
14933if test x$rxvt_cv_path_utmp != x; then 11006if test x$path_utmp != x; then
14934 11007
14935cat >>confdefs.h <<_ACEOF 11008cat >>confdefs.h <<_ACEOF
14936#define RXVT_UTMP_FILE "$rxvt_cv_path_utmp" 11009#define UTMP_FILE "$path_utmp"
14937_ACEOF 11010_ACEOF
14938 11011
14939fi 11012fi
14940 11013
14941 11014
14942echo "$as_me:$LINENO: checking where utmpx is located" >&5 11015echo "$as_me:$LINENO: checking where utmpx is located" >&5
14943echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6 11016echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6
14944if test "${rxvt_cv_path_utmpx+set}" = set; then 11017if test "${path_utmpx+set}" = set; then
14945 echo $ECHO_N "(cached) $ECHO_C" >&6 11018 echo $ECHO_N "(cached) $ECHO_C" >&6
14946else 11019else
14947 if test "$cross_compiling" = yes; then 11020 if test "$cross_compiling" = yes; then
14948 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&5 11021 { echo "$as_me:$LINENO: WARNING: Define UTMPX_FILE in config.h manually" >&5
14949echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;} 11022echo "$as_me: WARNING: Define UTMPX_FILE in config.h manually" >&2;}
14950else 11023else
14951 cat >conftest.$ac_ext <<_ACEOF 11024 cat >conftest.$ac_ext <<_ACEOF
14952/* confdefs.h. */ 11025/* confdefs.h. */
14953_ACEOF 11026_ACEOF
14954cat confdefs.h >>conftest.$ac_ext 11027cat confdefs.h >>conftest.$ac_ext
15000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15001 (eval $ac_try) 2>&5 11074 (eval $ac_try) 2>&5
15002 ac_status=$? 11075 ac_status=$?
15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004 (exit $ac_status); }; }; then 11077 (exit $ac_status); }; }; then
15005 rxvt_cv_path_utmpx=`cat conftestval` 11078 path_utmpx=`cat conftestval`
15006else 11079else
15007 echo "$as_me: program exited with status $ac_status" >&5 11080 echo "$as_me: program exited with status $ac_status" >&5
15008echo "$as_me: failed program was:" >&5 11081echo "$as_me: failed program was:" >&5
15009sed 's/^/| /' conftest.$ac_ext >&5 11082sed 's/^/| /' conftest.$ac_ext >&5
15010 11083
15011( exit $ac_status ) 11084( exit $ac_status )
15012rxvt_cv_path_utmpx= 11085path_utmpx=
15013fi 11086fi
15014rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11087rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15015fi 11088fi
15016fi 11089fi
15017echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5 11090echo "$as_me:$LINENO: result: $path_utmpx" >&5
15018echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6 11091echo "${ECHO_T}$path_utmpx" >&6
15019if test x$rxvt_cv_path_utmpx != x; then 11092if test x$path_utmpx != x; then
15020 11093
15021cat >>confdefs.h <<_ACEOF 11094cat >>confdefs.h <<_ACEOF
15022#define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx" 11095#define UTMPX_FILE "$path_utmpx"
15023_ACEOF 11096_ACEOF
15024 11097
15025fi 11098fi
15026 11099
15027 11100
15028echo "$as_me:$LINENO: checking where wtmp is located" >&5 11101echo "$as_me:$LINENO: checking where wtmp is located" >&5
15029echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6 11102echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6
15030if test "${rxvt_cv_path_wtmp+set}" = set; then 11103if test "${path_wtmp+set}" = set; then
15031 echo $ECHO_N "(cached) $ECHO_C" >&6 11104 echo $ECHO_N "(cached) $ECHO_C" >&6
15032else 11105else
15033 if test "$cross_compiling" = yes; then 11106 if test "$cross_compiling" = yes; then
15034 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&5 11107 { echo "$as_me:$LINENO: WARNING: Define WTMP_FILE in config.h manually" >&5
15035echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;} 11108echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;}
15036else 11109else
15037 cat >conftest.$ac_ext <<_ACEOF 11110 cat >conftest.$ac_ext <<_ACEOF
15038/* confdefs.h. */ 11111/* confdefs.h. */
15039_ACEOF 11112_ACEOF
15040cat confdefs.h >>conftest.$ac_ext 11113cat confdefs.h >>conftest.$ac_ext
15078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15079 (eval $ac_try) 2>&5 11152 (eval $ac_try) 2>&5
15080 ac_status=$? 11153 ac_status=$?
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); }; }; then 11155 (exit $ac_status); }; }; then
15083 rxvt_cv_path_wtmp=`cat conftestval` 11156 path_wtmp=`cat conftestval`
15084else 11157else
15085 echo "$as_me: program exited with status $ac_status" >&5 11158 echo "$as_me: program exited with status $ac_status" >&5
15086echo "$as_me: failed program was:" >&5 11159echo "$as_me: failed program was:" >&5
15087sed 's/^/| /' conftest.$ac_ext >&5 11160sed 's/^/| /' conftest.$ac_ext >&5
15088 11161
15089( exit $ac_status ) 11162( exit $ac_status )
15090rxvt_cv_path_wtmp= 11163path_wtmp=
15091fi 11164fi
15092rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11165rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15093fi 11166fi
15094fi 11167fi
15095echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5 11168echo "$as_me:$LINENO: result: $path_wtmp" >&5
15096echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6 11169echo "${ECHO_T}$path_wtmp" >&6
15097if test x$rxvt_cv_path_wtmp != x; then 11170if test x$path_wtmp != x; then
15098 11171
15099cat >>confdefs.h <<_ACEOF 11172cat >>confdefs.h <<_ACEOF
15100#define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp" 11173#define WTMP_FILE "$path_wtmp"
15101_ACEOF 11174_ACEOF
15102 11175
15103fi 11176fi
15104 11177
15105echo "$as_me:$LINENO: checking where wtmpx is located" >&5 11178echo "$as_me:$LINENO: checking where wtmpx is located" >&5
15106echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6 11179echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6
15107if test "${rxvt_cv_path_wtmpx+set}" = set; then 11180if test "${path_wtmpx+set}" = set; then
15108 echo $ECHO_N "(cached) $ECHO_C" >&6 11181 echo $ECHO_N "(cached) $ECHO_C" >&6
15109else 11182else
15110 if test "$cross_compiling" = yes; then 11183 if test "$cross_compiling" = yes; then
15111 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&5 11184 { echo "$as_me:$LINENO: WARNING: Define WTMPX_FILE in config.h manually" >&5
15112echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;} 11185echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;}
15113else 11186else
15114 cat >conftest.$ac_ext <<_ACEOF 11187 cat >conftest.$ac_ext <<_ACEOF
15115/* confdefs.h. */ 11188/* confdefs.h. */
15116_ACEOF 11189_ACEOF
15117cat confdefs.h >>conftest.$ac_ext 11190cat confdefs.h >>conftest.$ac_ext
15154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15155 (eval $ac_try) 2>&5 11228 (eval $ac_try) 2>&5
15156 ac_status=$? 11229 ac_status=$?
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); }; }; then 11231 (exit $ac_status); }; }; then
15159 rxvt_cv_path_wtmpx=`cat conftestval` 11232 path_wtmpx=`cat conftestval`
15160else 11233else
15161 echo "$as_me: program exited with status $ac_status" >&5 11234 echo "$as_me: program exited with status $ac_status" >&5
15162echo "$as_me: failed program was:" >&5 11235echo "$as_me: failed program was:" >&5
15163sed 's/^/| /' conftest.$ac_ext >&5 11236sed 's/^/| /' conftest.$ac_ext >&5
15164 11237
15165( exit $ac_status ) 11238( exit $ac_status )
15166rxvt_cv_path_wtmpx= 11239path_wtmpx=
15167fi 11240fi
15168rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11241rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15169fi 11242fi
15170fi 11243fi
15171echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5 11244echo "$as_me:$LINENO: result: $path_wtmpx" >&5
15172echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6 11245echo "${ECHO_T}$path_wtmpx" >&6
15173if test x$rxvt_cv_path_wtmpx != x; then 11246if test x$path_wtmpx != x; then
15174 11247
15175cat >>confdefs.h <<_ACEOF 11248cat >>confdefs.h <<_ACEOF
15176#define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx" 11249#define WTMPX_FILE "$path_wtmpx"
15177_ACEOF 11250_ACEOF
15178 11251
15179fi 11252fi
15180 11253
15181echo "$as_me:$LINENO: checking where lastlog is located" >&5 11254echo "$as_me:$LINENO: checking where lastlog is located" >&5
15182echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6 11255echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6
15183if test "${rxvt_cv_path_lastlog+set}" = set; then 11256if test "${path_lastlog+set}" = set; then
15184 echo $ECHO_N "(cached) $ECHO_C" >&6 11257 echo $ECHO_N "(cached) $ECHO_C" >&6
15185else 11258else
15186 if test "$cross_compiling" = yes; then 11259 if test "$cross_compiling" = yes; then
15187 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&5 11260 { echo "$as_me:$LINENO: WARNING: Define LASTLOG_FILE in config.h manually" >&5
15188echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;} 11261echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;}
15189else 11262else
15190 cat >conftest.$ac_ext <<_ACEOF 11263 cat >conftest.$ac_ext <<_ACEOF
15191/* confdefs.h. */ 11264/* confdefs.h. */
15192_ACEOF 11265_ACEOF
15193cat confdefs.h >>conftest.$ac_ext 11266cat confdefs.h >>conftest.$ac_ext
15235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15236 (eval $ac_try) 2>&5 11309 (eval $ac_try) 2>&5
15237 ac_status=$? 11310 ac_status=$?
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); }; }; then 11312 (exit $ac_status); }; }; then
15240 rxvt_cv_path_lastlog=`cat conftestval` 11313 path_lastlog=`cat conftestval`
15241else 11314else
15242 echo "$as_me: program exited with status $ac_status" >&5 11315 echo "$as_me: program exited with status $ac_status" >&5
15243echo "$as_me: failed program was:" >&5 11316echo "$as_me: failed program was:" >&5
15244sed 's/^/| /' conftest.$ac_ext >&5 11317sed 's/^/| /' conftest.$ac_ext >&5
15245 11318
15246( exit $ac_status ) 11319( exit $ac_status )
15247rxvt_cv_path_lastlog= 11320path_lastlog=
15248fi 11321fi
15249rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11322rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15250fi 11323fi
15251fi 11324fi
15252echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5 11325echo "$as_me:$LINENO: result: $path_lastlog" >&5
15253echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6 11326echo "${ECHO_T}$path_lastlog" >&6
15254if test x$rxvt_cv_path_lastlog != x; then 11327if test x$path_lastlog != x; then
15255 11328
15256cat >>confdefs.h <<_ACEOF 11329cat >>confdefs.h <<_ACEOF
15257#define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog" 11330#define LASTLOG_FILE "$path_lastlog"
15258_ACEOF 11331_ACEOF
15259 11332
15260 if test -d "$rxvt_cv_path_lastlog"; then 11333 if test -d "$path_lastlog"; then
15261 11334
15262cat >>confdefs.h <<\_ACEOF 11335cat >>confdefs.h <<\_ACEOF
15263#define LASTLOG_IS_DIR 1 11336#define LASTLOG_IS_DIR 1
15264_ACEOF 11337_ACEOF
15265 11338
15266 fi 11339 fi
15267fi 11340fi
15268 11341
15269echo "$as_me:$LINENO: checking where lastlogx is located" >&5 11342echo "$as_me:$LINENO: checking where lastlogx is located" >&5
15270echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6 11343echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6
15271if test "${rxvt_cv_path_lastlogx+set}" = set; then 11344if test "${path_lastlogx+set}" = set; then
15272 echo $ECHO_N "(cached) $ECHO_C" >&6 11345 echo $ECHO_N "(cached) $ECHO_C" >&6
15273else 11346else
15274 if test "$cross_compiling" = yes; then 11347 if test "$cross_compiling" = yes; then
15275 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&5 11348 { echo "$as_me:$LINENO: WARNING: Define LASTLOGX_FILE in config.h manually" >&5
15276echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;} 11349echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;}
15277else 11350else
15278 cat >conftest.$ac_ext <<_ACEOF 11351 cat >conftest.$ac_ext <<_ACEOF
15279/* confdefs.h. */ 11352/* confdefs.h. */
15280_ACEOF 11353_ACEOF
15281cat confdefs.h >>conftest.$ac_ext 11354cat confdefs.h >>conftest.$ac_ext
15317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15318 (eval $ac_try) 2>&5 11391 (eval $ac_try) 2>&5
15319 ac_status=$? 11392 ac_status=$?
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); }; }; then 11394 (exit $ac_status); }; }; then
15322 rxvt_cv_path_lastlogx=`cat conftestval` 11395 path_lastlogx=`cat conftestval`
15323else 11396else
15324 echo "$as_me: program exited with status $ac_status" >&5 11397 echo "$as_me: program exited with status $ac_status" >&5
15325echo "$as_me: failed program was:" >&5 11398echo "$as_me: failed program was:" >&5
15326sed 's/^/| /' conftest.$ac_ext >&5 11399sed 's/^/| /' conftest.$ac_ext >&5
15327 11400
15328( exit $ac_status ) 11401( exit $ac_status )
15329rxvt_cv_path_lastlogx= 11402path_lastlogx=
15330fi 11403fi
15331rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11404rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15332fi 11405fi
15333fi 11406fi
15334echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5 11407echo "$as_me:$LINENO: result: $path_lastlogx" >&5
15335echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6 11408echo "${ECHO_T}$path_lastlogx" >&6
15336if test x$rxvt_cv_path_lastlogx != x; then 11409if test x$path_lastlogx != x; then
15337 11410
15338cat >>confdefs.h <<_ACEOF 11411cat >>confdefs.h <<_ACEOF
15339#define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx" 11412#define LASTLOGX_FILE "$path_lastlogx"
15340_ACEOF 11413_ACEOF
15341 11414
15342fi 11415fi
11416
11417if test x$support_utmp != xyes; then
11418 echo " utmp support: disabled"
11419 echo
11420else
11421 echo " utmp support: enabled
11422 utmp file: $path_utmp
11423 utmpx file: $path_utmpx
11424 wtmp file: $path_wtmp
11425 wtmpx file: $path_wtmpx
11426 lastlog file: $path_lastlog
11427 lastlogx file: $path_lastlogx"
11428fi
11429
15343 11430
15344 11431
15345echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 11432echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
15346echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 11433echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6
15347if test "${rxvt_cv_path_ttytab+set}" = set; then 11434if test "${rxvt_cv_path_ttytab+set}" = set; then
15458 grep -v '^ *+' conftest.er1 >conftest.err 11545 grep -v '^ *+' conftest.er1 >conftest.err
15459 rm -f conftest.er1 11546 rm -f conftest.er1
15460 cat conftest.err >&5 11547 cat conftest.err >&5
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); } && 11549 (exit $ac_status); } &&
15463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11550 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15465 (eval $ac_try) 2>&5 11552 (eval $ac_try) 2>&5
15466 ac_status=$? 11553 ac_status=$?
15467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468 (exit $ac_status); }; } && 11555 (exit $ac_status); }; } &&
15503/* confdefs.h. */ 11590/* confdefs.h. */
15504_ACEOF 11591_ACEOF
15505cat confdefs.h >>conftest.$ac_ext 11592cat confdefs.h >>conftest.$ac_ext
15506cat >>conftest.$ac_ext <<_ACEOF 11593cat >>conftest.$ac_ext <<_ACEOF
15507/* end confdefs.h. */ 11594/* end confdefs.h. */
15508#include <locale.h> 11595#include <clocale>
15509int 11596int
15510main () 11597main ()
15511{ 11598{
15512setlocale(LC_CTYPE, ""); 11599setlocale(LC_CTYPE, "");
15513 ; 11600 ;
15521 grep -v '^ *+' conftest.er1 >conftest.err 11608 grep -v '^ *+' conftest.er1 >conftest.err
15522 rm -f conftest.er1 11609 rm -f conftest.er1
15523 cat conftest.err >&5 11610 cat conftest.err >&5
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); } && 11612 (exit $ac_status); } &&
15526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11613 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15528 (eval $ac_try) 2>&5 11615 (eval $ac_try) 2>&5
15529 ac_status=$? 11616 ac_status=$?
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); }; } && 11618 (exit $ac_status); }; } &&
15582 grep -v '^ *+' conftest.er1 >conftest.err 11669 grep -v '^ *+' conftest.er1 >conftest.err
15583 rm -f conftest.er1 11670 rm -f conftest.er1
15584 cat conftest.err >&5 11671 cat conftest.err >&5
15585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586 (exit $ac_status); } && 11673 (exit $ac_status); } &&
15587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11674 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15589 (eval $ac_try) 2>&5 11676 (eval $ac_try) 2>&5
15590 ac_status=$? 11677 ac_status=$?
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); }; } && 11679 (exit $ac_status); }; } &&
15614#define HAVE_NL_LANGINFO 1 11701#define HAVE_NL_LANGINFO 1
15615_ACEOF 11702_ACEOF
15616 11703
15617fi 11704fi
15618 11705
15619echo "$as_me:$LINENO: checking for getpt" >&5 11706
15620echo $ECHO_N "checking for getpt... $ECHO_C" >&6 11707echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5
15621if test "${rxvt_cv_func_getpt+set}" = set; then 11708echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6
11709if test "${can_pass_fds+set}" = set; then
15622 echo $ECHO_N "(cached) $ECHO_C" >&6 11710 echo $ECHO_N "(cached) $ECHO_C" >&6
15623else 11711else
15624 cat >conftest.$ac_ext <<_ACEOF 11712 cat >conftest.$ac_ext <<_ACEOF
15625/* confdefs.h. */ 11713/* confdefs.h. */
15626_ACEOF 11714_ACEOF
15627cat confdefs.h >>conftest.$ac_ext 11715cat confdefs.h >>conftest.$ac_ext
15628cat >>conftest.$ac_ext <<_ACEOF 11716cat >>conftest.$ac_ext <<_ACEOF
15629/* end confdefs.h. */ 11717/* end confdefs.h. */
15630#define _GNU_SOURCE 11718
15631#ifdef HAVE_STDLIB_H 11719#include <cstddef> // broken bsds (is that redundant?) need this
11720#include <sys/types.h>
11721#include <sys/socket.h>
15632# include <stdlib.h> 11722#include <sys/uio.h>
15633#endif 11723
15634int 11724int
15635main () 11725main ()
15636{ 11726{
15637(void)getpt(); 11727
11728{
11729 msghdr msg;
11730 iovec iov;
11731 char buf [100];
11732 char data = 0;
11733
11734 iov.iov_base = &data;
11735 iov.iov_len = 1;
11736
11737 msg.msg_iov = &iov;
11738 msg.msg_iovlen = 1;
11739 msg.msg_control = buf;
11740 msg.msg_controllen = sizeof buf;
11741
11742 cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
11743 cmsg->cmsg_level = SOL_SOCKET;
11744 cmsg->cmsg_type = SCM_RIGHTS;
11745 cmsg->cmsg_len = 100;
11746
11747 *(int *)CMSG_DATA (cmsg) = 5;
11748
11749 return sendmsg (3, &msg, 0);
11750}
11751
15638 ; 11752 ;
15639 return 0; 11753 return 0;
15640} 11754}
15641_ACEOF 11755_ACEOF
15642rm -f conftest.$ac_objext conftest$ac_exeext 11756rm -f conftest.$ac_objext conftest$ac_exeext
15646 grep -v '^ *+' conftest.er1 >conftest.err 11760 grep -v '^ *+' conftest.er1 >conftest.err
15647 rm -f conftest.er1 11761 rm -f conftest.er1
15648 cat conftest.err >&5 11762 cat conftest.err >&5
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); } && 11764 (exit $ac_status); } &&
15651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11765 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15653 (eval $ac_try) 2>&5 11767 (eval $ac_try) 2>&5
15654 ac_status=$? 11768 ac_status=$?
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); }; } && 11770 (exit $ac_status); }; } &&
15658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15659 (eval $ac_try) 2>&5 11773 (eval $ac_try) 2>&5
15660 ac_status=$? 11774 ac_status=$?
15661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); }; }; then 11776 (exit $ac_status); }; }; then
15663 rxvt_cv_func_getpt=yes 11777 can_pass_fds=yes
15664else 11778else
15665 echo "$as_me: failed program was:" >&5 11779 echo "$as_me: failed program was:" >&5
15666sed 's/^/| /' conftest.$ac_ext >&5 11780sed 's/^/| /' conftest.$ac_ext >&5
15667 11781
15668rxvt_cv_func_getpt=no 11782can_pass_fds=no
15669fi 11783fi
15670rm -f conftest.err conftest.$ac_objext \ 11784rm -f conftest.err conftest.$ac_objext \
15671 conftest$ac_exeext conftest.$ac_ext 11785 conftest$ac_exeext conftest.$ac_ext
15672fi 11786fi
15673echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5 11787echo "$as_me:$LINENO: result: $can_pass_fds" >&5
15674echo "${ECHO_T}$rxvt_cv_func_getpt" >&6 11788echo "${ECHO_T}$can_pass_fds" >&6
15675if test x$rxvt_cv_func_getpt = xyes; then 11789if test x$can_pass_fds = xyes; then
15676 11790
15677cat >>confdefs.h <<\_ACEOF 11791cat >>confdefs.h <<\_ACEOF
15678#define HAVE_GETPT 1 11792#define HAVE_UNIX_FDPASS 1
15679_ACEOF 11793_ACEOF
15680 11794
11795else
11796 { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5
11797echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;}
11798 { (exit 1); exit 1; }; }
15681fi 11799fi
15682 11800
15683echo "$as_me:$LINENO: checking for pty/tty type" >&5 11801
11802echo "$as_me:$LINENO: checking for broken XIM callback" >&5
15684echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6 11803echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6
15685if test "${rxvt_cv_ptys+set}" = set; then 11804if test "${rxvt_broken_ximcb+set}" = set; then
15686 echo $ECHO_N "(cached) $ECHO_C" >&6 11805 echo $ECHO_N "(cached) $ECHO_C" >&6
15687else 11806else
15688 if test x$ac_cv_func_openpty = xyes; then
15689 rxvt_cv_ptys=OPENPTY
15690 else if test x$ac_cv_func__getpty = xyes; then
15691 rxvt_cv_ptys=SGI4
15692 else if test -c /dev/ttyp20; then
15693 rxvt_cv_ptys=SCO
15694 else if test -c /dev/ptym/clone; then
15695 rxvt_cv_ptys=HPUX
15696 else if test x$rxvt_cv_func_getpt = xyes; then
15697 rxvt_cv_ptys=GLIBC
15698 else if test -c /dev/ptc -a -c /dev/pts; then
15699 rxvt_cv_ptys=PTC
15700 else if test -c /dev/ptc -a -d /dev/pts; then
15701 rxvt_cv_ptys=PTC
15702 else if test -c /dev/ptmx -a -c /dev/pts/0; then
15703 rxvt_cv_ptys=STREAMS
15704 else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then
15705 rxvt_cv_ptys=STREAMS
15706 else
15707 rxvt_cv_ptys=BSD
15708fi
15709fi
15710fi
15711fi
15712fi
15713fi
15714fi
15715fi
15716fi
15717
15718fi
15719echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
15720echo "${ECHO_T}$rxvt_cv_ptys" >&6
15721
15722if test x$rxvt_cv_ptys = xOPENPTY; then
15723
15724cat >>confdefs.h <<\_ACEOF
15725#define PTYS_ARE_OPENPTY 1
15726_ACEOF
15727
15728fi
15729if test x$rxvt_cv_ptys = xSCO; then
15730
15731cat >>confdefs.h <<\_ACEOF
15732#define PTYS_ARE_NUMERIC 1
15733_ACEOF
15734
15735fi
15736if test x$rxvt_cv_ptys = xSTREAMS; then
15737
15738cat >>confdefs.h <<\_ACEOF
15739#define PTYS_ARE_PTMX 1
15740_ACEOF
15741
15742fi
15743if test x$rxvt_cv_ptys = xPTC; then
15744
15745cat >>confdefs.h <<\_ACEOF
15746#define PTYS_ARE_PTC 1
15747_ACEOF
15748
15749fi
15750if test x$rxvt_cv_ptys = xSGI4; then
15751
15752cat >>confdefs.h <<\_ACEOF
15753#define PTYS_ARE__GETPTY 1
15754_ACEOF
15755
15756fi
15757if test x$rxvt_cv_ptys = xCONVEX; then
15758
15759cat >>confdefs.h <<\_ACEOF
15760#define PTYS_ARE_GETPTY 1
15761_ACEOF
15762
15763fi
15764if test x$rxvt_cv_ptys = xGLIBC; then
15765
15766cat >>confdefs.h <<\_ACEOF
15767#define PTYS_ARE_GETPT 1
15768_ACEOF
15769
15770fi
15771if test x$rxvt_cv_ptys = xHPUX; then
15772
15773cat >>confdefs.h <<\_ACEOF
15774#define PTYS_ARE_CLONE 1
15775_ACEOF
15776
15777fi
15778if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then
15779
15780cat >>confdefs.h <<\_ACEOF
15781#define PTYS_ARE_SEARCHED 1
15782_ACEOF
15783
15784fi
15785
15786
15787{ echo "$as_me:$LINENO: checking for pty ranges..." >&5
15788echo "$as_me: checking for pty ranges..." >&6;}
15789ptys=`echo /dev/pty??`
15790pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
15791pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
15792if test x$pch1 != x; then
15793
15794cat >>confdefs.h <<_ACEOF
15795#define PTYCHAR1 "$pch1"
15796_ACEOF
15797
15798fi
15799if test x$pch2 != x; then
15800
15801cat >>confdefs.h <<_ACEOF
15802#define PTYCHAR2 "$pch2"
15803_ACEOF
15804
15805fi
15806
15807echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
15808echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
15809if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
15810 echo $ECHO_N "(cached) $ECHO_C" >&6
15811else
15812 ac_check_lib_save_LIBS=$LIBS
15813LIBS="-lxpg4 $LIBS"
15814cat >conftest.$ac_ext <<_ACEOF 11807 cat >conftest.$ac_ext <<_ACEOF
15815/* confdefs.h. */
15816_ACEOF
15817cat confdefs.h >>conftest.$ac_ext
15818cat >>conftest.$ac_ext <<_ACEOF
15819/* end confdefs.h. */
15820 11808
15821/* Override any gcc2 internal prototype to avoid an error. */ 11809#include <X11/Xlib.h>
15822#ifdef __cplusplus 11810
15823extern "C" 11811void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
15824#endif 11812
15825/* We use char because int might match the return type of a gcc2 11813void f() {
15826 builtin and then its argument prototype would still apply. */ 11814 XIMCallback cb;
15827char setlocale (); 11815 cb.callback = im_destroy_cb;
15828int
15829main ()
15830{
15831setlocale ();
15832 ;
15833 return 0;
15834} 11816}
11817
15835_ACEOF 11818_ACEOF
15836rm -f conftest.$ac_objext conftest$ac_exeext 11819rm -f conftest.$ac_objext
15837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15838 (eval $ac_link) 2>conftest.er1 11821 (eval $ac_compile) 2>conftest.er1
15839 ac_status=$? 11822 ac_status=$?
15840 grep -v '^ *+' conftest.er1 >conftest.err 11823 grep -v '^ *+' conftest.er1 >conftest.err
15841 rm -f conftest.er1 11824 rm -f conftest.er1
15842 cat conftest.err >&5 11825 cat conftest.err >&5
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); } && 11827 (exit $ac_status); } &&
15845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11828 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15847 (eval $ac_try) 2>&5 11830 (eval $ac_try) 2>&5
15848 ac_status=$? 11831 ac_status=$?
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); }; } && 11833 (exit $ac_status); }; } &&
15851 { ac_try='test -s conftest$ac_exeext' 11834 { ac_try='test -s conftest.$ac_objext'
15852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15853 (eval $ac_try) 2>&5 11836 (eval $ac_try) 2>&5
15854 ac_status=$? 11837 ac_status=$?
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); }; }; then 11839 (exit $ac_status); }; }; then
15857 ac_cv_lib_xpg4_setlocale=yes 11840 rxvt_broken_ximcb=yes
15858else 11841else
15859 echo "$as_me: failed program was:" >&5 11842 echo "$as_me: failed program was:" >&5
15860sed 's/^/| /' conftest.$ac_ext >&5 11843sed 's/^/| /' conftest.$ac_ext >&5
15861 11844
15862ac_cv_lib_xpg4_setlocale=no 11845rxvt_broken_ximcb=no
15863fi 11846fi
15864rm -f conftest.err conftest.$ac_objext \ 11847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15865 conftest$ac_exeext conftest.$ac_ext
15866LIBS=$ac_check_lib_save_LIBS
15867fi 11848fi
15868echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5 11849echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
15869echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6 11850echo "${ECHO_T}$rxvt_broken_ximcb" >&6
15870if test $ac_cv_lib_xpg4_setlocale = yes; then
15871 LIBS="$LIBS -lxpg4"
15872fi
15873 11851
15874 11852if test x$rxvt_broken_ximcb = xyes; then
15875if test x$support_inheritpixmap = xyes; then
15876 11853
15877cat >>confdefs.h <<\_ACEOF 11854cat >>confdefs.h <<\_ACEOF
15878#define TRANSPARENT 1 11855#define XIMCB_PROTO_BROKEN 1
15879_ACEOF 11856_ACEOF
15880 11857
15881fi 11858fi
15882if test x$support_keepscrolling = xno; then
15883 11859
15884cat >>confdefs.h <<\_ACEOF
15885#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
15886_ACEOF
15887 11860
15888fi
15889if test x$support_selectionscrolling = xyes; then
15890 11861
15891cat >>confdefs.h <<\_ACEOF
15892#define SELECTION_SCROLLING 1
15893_ACEOF
15894 11862
15895fi
15896if test x$support_menubar = xyes; then
15897 11863
15898cat >>confdefs.h <<\_ACEOF
15899#define MENUBAR 1
15900_ACEOF
15901 11864
15902fi
15903if test x$support_frills = xno; then
15904 11865
15905cat >>confdefs.h <<\_ACEOF 11866for ac_header in \
15906#define NO_FRILLS 1 11867 pty.h \
15907_ACEOF 11868 util.h \
11869 libutil.h \
11870 sys/ioctl.h \
11871 sys/stropts.h \
15908 11872
15909fi
15910if test x$support_linespace = xno; then
15911
15912cat >>confdefs.h <<\_ACEOF
15913#define NO_LINESPACE 1
15914_ACEOF
15915
15916fi
15917if test x$support_24bit = xyes; then
15918
15919cat >>confdefs.h <<\_ACEOF
15920#define PREFER_24BIT 1
15921_ACEOF
15922
15923fi
15924if test x$support_mousewheel = xyes; then
15925
15926cat >>confdefs.h <<\_ACEOF
15927#define MOUSE_WHEEL 1
15928_ACEOF
15929
15930fi
15931if test x$support_mouseslipwheel = xyes; then
15932
15933cat >>confdefs.h <<\_ACEOF
15934#define MOUSE_SLIP_WHEELING 1
15935_ACEOF
15936
15937fi
15938if test x$support_oldselection = xno; then
15939
15940cat >>confdefs.h <<\_ACEOF
15941#define NO_OLD_SELECTION 1
15942_ACEOF
15943
15944fi
15945if test x$support_utmp = xyes; then
15946
15947cat >>confdefs.h <<\_ACEOF
15948#define UTMP_SUPPORT 1
15949_ACEOF
15950
15951fi
15952if test x$support_wtmp = xyes; then
15953
15954cat >>confdefs.h <<\_ACEOF
15955#define WTMP_SUPPORT 1
15956_ACEOF
15957
15958fi
15959if test x$support_lastlog = xyes; then
15960
15961cat >>confdefs.h <<\_ACEOF
15962#define LASTLOG_SUPPORT 1
15963_ACEOF
15964
15965fi
15966if test x$support_xim = xyes -o x$multichar_set = xyes; then
15967 if test x$rxvt_cv_func_xlocale = xyes; then
15968
15969cat >>confdefs.h <<\_ACEOF
15970#define USE_XIM 1
15971_ACEOF
15972
15973 fi
15974fi
15975if test x$support_xpm = xyes; then
15976
15977cat >>confdefs.h <<\_ACEOF
15978#define XPM_BACKGROUND 1
15979_ACEOF
15980
15981fi
15982if test x$support_scroll_rxvt = xyes; then
15983
15984cat >>confdefs.h <<\_ACEOF
15985#define RXVT_SCROLLBAR 1
15986_ACEOF
15987
15988 scrolltypes="rxvt"
15989fi
15990if test x$support_scroll_next = xyes; then
15991
15992cat >>confdefs.h <<\_ACEOF
15993#define NEXT_SCROLLBAR 1
15994_ACEOF
15995
15996 scrolltypes="$scrolltypes next"
15997fi
15998if test x$support_scroll_xterm = xyes; then
15999
16000cat >>confdefs.h <<\_ACEOF
16001#define XTERM_SCROLLBAR 1
16002_ACEOF
16003
16004 scrolltypes="$scrolltypes xterm"
16005fi
16006if test x$support_scroll_plain = xyes; then
16007
16008cat >>confdefs.h <<\_ACEOF
16009#define PLAIN_SCROLLBAR 1
16010_ACEOF
16011
16012 scrolltypes="$scrolltypes plain"
16013fi
16014if test x$support_pointer_blank = xyes; then
16015
16016cat >>confdefs.h <<\_ACEOF
16017#define POINTER_BLANK 1
16018_ACEOF
16019
16020fi
16021if test x$support_cursor_blink = xyes; then
16022
16023cat >>confdefs.h <<\_ACEOF
16024#define CURSOR_BLINK 1
16025_ACEOF
16026
16027fi
16028if test x$support_text_blink = xyes; then
16029
16030cat >>confdefs.h <<\_ACEOF
16031#define TEXT_BLINK 1
16032_ACEOF
16033
16034fi
16035if test x$support_unicode3 = xyes; then
16036
16037cat >>confdefs.h <<\_ACEOF
16038#define UNICODE_3 1
16039_ACEOF
16040
16041fi
16042if test x$codesets = xall; then
16043 codesets=jp,jp-ext,kr,cn,cn-ext,vn
16044fi
16045for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
16046
16047cat >>confdefs.h <<\_ACEOF
16048#define ENCODING_EU 1
16049_ACEOF
16050
16051 case "$codeset" in
16052 VN )
16053cat >>confdefs.h <<\_ACEOF
16054#define ENCODING_VN 1
16055_ACEOF
16056 ;;
16057 JP )
16058cat >>confdefs.h <<\_ACEOF
16059#define ENCODING_JP 1
16060_ACEOF
16061 ;;
16062 JP_EXT )
16063cat >>confdefs.h <<\_ACEOF
16064#define ENCODING_JP_EXT 1
16065_ACEOF
16066 ;;
16067 KR )
16068cat >>confdefs.h <<\_ACEOF
16069#define ENCODING_KR 1
16070_ACEOF
16071 ;;
16072 CN )
16073cat >>confdefs.h <<\_ACEOF
16074#define ENCODING_CN 1
16075_ACEOF
16076 ;;
16077 CN_EXT )
16078cat >>confdefs.h <<\_ACEOF
16079#define ENCODING_CN_EXT 1
16080_ACEOF
16081 ;;
16082 esac
16083done
16084
16085
16086CFLAGS=${CFLAGS--O}
16087LDFLAGS=${LDFLAGS--O}
16088
16089CPPFLAGS="$CPPFLAGS"
16090
16091
16092
16093
16094
16095
16096
16097if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
16098 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
16099 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
16100 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
16101 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
16102 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
16103fi
16104
16105
16106
16107
16108
16109if test x$support_addstrings = xno; then
16110
16111cat >>confdefs.h <<\_ACEOF
16112#define NO_STRINGS 1
16113_ACEOF
16114
16115fi
16116
16117MCOMMON=./autoconf/Make.common
16118
16119
16120test "$program_prefix" != NONE &&
16121 program_transform_name="s,^,$program_prefix,;$program_transform_name"
16122# Use a double $ so make ignores it.
16123test "$program_suffix" != NONE &&
16124 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
16125# Double any \ or $. echo might interpret backslashes.
16126# By default was `s,x,x', remove it if useless.
16127cat <<\_ACEOF >conftest.sed
16128s/[\\$]/&&/g;s/;s,x,x,$//
16129_ACEOF
16130program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
16131rm conftest.sed
16132
16133
16134RXVTNAME=`echo rxvt|sed "$program_transform_name"`
16135
16136
16137
16138
16139
16140if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
16141 include_stdint_h="#include <stdint.h>"
16142else
16143 include_stdint_h="/* #include <stdint.h> */"
16144fi
16145if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
16146 include_stdarg_h="#include <stdarg.h>"
16147else
16148 include_stdarg_h="/* #include <stdarg.h> */"
16149fi
16150if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
16151 include_stdlib_h="#include <stdlib.h>"
16152else
16153 include_stdlib_h="/* #include <stdlib.h> */"
16154fi
16155if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
16156 include_unistd_h="#include <unistd.h>"
16157else
16158 include_unistd_h="/* #include <unistd.h> */"
16159fi
16160if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
16161 include_string_h="#include <string.h>"
16162else
16163 include_string_h="/* #include <string.h> */"
16164fi
16165if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
16166 include_fcntl_h="#include <fcntl.h>"
16167else
16168 include_fcntl_h="/* #include <fcntl.h> */"
16169fi
16170if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
16171 include_util_h="#include <util.h>"
16172else
16173 include_util_h="/* #include <util.h> */"
16174fi
16175if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
16176 include_assert_h="#include <assert.h>"
16177else
16178 include_assert_h="/* #include <assert.h> */"
16179fi
16180if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
16181 include_sys_ioctl_h="#include <sys/ioctl.h>"
16182else
16183 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
16184fi
16185if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
16186 include_sys_select_h="#include <sys/select.h>"
16187else
16188 include_sys_select_h="/* #include <sys/select.h> */"
16189fi
16190if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
16191 include_sys_strredir_h="#include <sys/strredir.h>"
16192else
16193 include_sys_strredir_h="/* #include <sys/strredir.h> */"
16194fi
16195if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
16196 include_sys_time_h="#include <sys/time.h>"
16197else
16198 include_sys_time_h="/* #include <sys/time.h> */"
16199fi
16200if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
16201 include_time_h="#include <time.h>"
16202else
16203 include_time_h="/* #include <time.h> */"
16204fi
16205
16206if test x$support_xft = xyes; then
16207 LIBS="$LIBS `pkg-config xft --libs`"
16208 CFLAGS="$CFLAGS `pkg-config xft --cflags`"
16209 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
16210
16211
16212for ac_header in X11/Xft/Xft.h
16213do 11873do
16214as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11874as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16215if eval "test \"\${$as_ac_Header+set}\" = set"; then 11875if eval "test \"\${$as_ac_Header+set}\" = set"; then
16216 echo "$as_me:$LINENO: checking for $ac_header" >&5 11876 echo "$as_me:$LINENO: checking for $ac_header" >&5
16217echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11877echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16240 grep -v '^ *+' conftest.er1 >conftest.err 11900 grep -v '^ *+' conftest.er1 >conftest.err
16241 rm -f conftest.er1 11901 rm -f conftest.er1
16242 cat conftest.err >&5 11902 cat conftest.err >&5
16243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); } && 11904 (exit $ac_status); } &&
16245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11905 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16247 (eval $ac_try) 2>&5 11907 (eval $ac_try) 2>&5
16248 ac_status=$? 11908 ac_status=$?
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); }; } && 11910 (exit $ac_status); }; } &&
16283 rm -f conftest.er1 11943 rm -f conftest.er1
16284 cat conftest.err >&5 11944 cat conftest.err >&5
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); } >/dev/null; then 11946 (exit $ac_status); } >/dev/null; then
16287 if test -s conftest.err; then 11947 if test -s conftest.err; then
16288 ac_cpp_err=$ac_c_preproc_warn_flag 11948 ac_cpp_err=$ac_cxx_preproc_warn_flag
16289 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11949 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16290 else 11950 else
16291 ac_cpp_err= 11951 ac_cpp_err=
16292 fi 11952 fi
16293else 11953else
16294 ac_cpp_err=yes 11954 ac_cpp_err=yes
16304rm -f conftest.err conftest.$ac_ext 11964rm -f conftest.err conftest.$ac_ext
16305echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11965echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16306echo "${ECHO_T}$ac_header_preproc" >&6 11966echo "${ECHO_T}$ac_header_preproc" >&6
16307 11967
16308# So? What about this header? 11968# So? What about this header?
16309case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11969case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16310 yes:no: ) 11970 yes:no: )
16311 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16312echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11972echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16314echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11974echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16351if test `eval echo '${'$as_ac_Header'}'` = yes; then 12011if test `eval echo '${'$as_ac_Header'}'` = yes; then
16352 cat >>confdefs.h <<_ACEOF 12012 cat >>confdefs.h <<_ACEOF
16353#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12013#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16354_ACEOF 12014_ACEOF
16355 12015
12016fi
12017
12018done
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030for ac_func in \
12031 revoke \
12032 _getpty \
12033 getpt \
12034 posix_openpt \
12035 isastream \
12036 setuid \
12037 seteuid \
12038 setreuid \
12039 setresuid \
12040
12041do
12042as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12043echo "$as_me:$LINENO: checking for $ac_func" >&5
12044echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12045if eval "test \"\${$as_ac_var+set}\" = set"; then
12046 echo $ECHO_N "(cached) $ECHO_C" >&6
12047else
12048 cat >conftest.$ac_ext <<_ACEOF
12049/* confdefs.h. */
12050_ACEOF
12051cat confdefs.h >>conftest.$ac_ext
12052cat >>conftest.$ac_ext <<_ACEOF
12053/* end confdefs.h. */
12054/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12056#define $ac_func innocuous_$ac_func
12057
12058/* System header to define __stub macros and hopefully few prototypes,
12059 which can conflict with char $ac_func (); below.
12060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12061 <limits.h> exists even on freestanding compilers. */
12062
12063#ifdef __STDC__
12064# include <limits.h>
12065#else
12066# include <assert.h>
12067#endif
12068
12069#undef $ac_func
12070
12071/* Override any gcc2 internal prototype to avoid an error. */
12072#ifdef __cplusplus
12073extern "C"
12074{
12075#endif
12076/* We use char because int might match the return type of a gcc2
12077 builtin and then its argument prototype would still apply. */
12078char $ac_func ();
12079/* The GNU C library defines this for functions which it implements
12080 to always fail with ENOSYS. Some functions are actually named
12081 something starting with __ and the normal name is an alias. */
12082#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12083choke me
12084#else
12085char (*f) () = $ac_func;
12086#endif
12087#ifdef __cplusplus
12088}
12089#endif
12090
12091int
12092main ()
12093{
12094return f != $ac_func;
12095 ;
12096 return 0;
12097}
12098_ACEOF
12099rm -f conftest.$ac_objext conftest$ac_exeext
12100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12101 (eval $ac_link) 2>conftest.er1
12102 ac_status=$?
12103 grep -v '^ *+' conftest.er1 >conftest.err
12104 rm -f conftest.er1
12105 cat conftest.err >&5
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); } &&
12108 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12110 (eval $ac_try) 2>&5
12111 ac_status=$?
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); }; } &&
12114 { ac_try='test -s conftest$ac_exeext'
12115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12116 (eval $ac_try) 2>&5
12117 ac_status=$?
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); }; }; then
12120 eval "$as_ac_var=yes"
12121else
12122 echo "$as_me: failed program was:" >&5
12123sed 's/^/| /' conftest.$ac_ext >&5
12124
12125eval "$as_ac_var=no"
12126fi
12127rm -f conftest.err conftest.$ac_objext \
12128 conftest$ac_exeext conftest.$ac_ext
12129fi
12130echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12131echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12132if test `eval echo '${'$as_ac_var'}'` = yes; then
12133 cat >>confdefs.h <<_ACEOF
12134#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12135_ACEOF
12136
12137fi
12138done
12139
12140
12141have_clone=no
12142
12143echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5
12144echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6
12145if test -e /dev/ptym/clone; then
12146 echo "$as_me:$LINENO: result: yes" >&5
12147echo "${ECHO_T}yes" >&6
12148
12149cat >>confdefs.h <<\_ACEOF
12150#define HAVE_DEV_CLONE 1
12151_ACEOF
12152
12153
12154cat >>confdefs.h <<\_ACEOF
12155#define CLONE_DEVICE "/dev/ptym/clone"
12156_ACEOF
12157
12158 have_clone=yes
12159else
12160 echo "$as_me:$LINENO: result: no" >&5
12161echo "${ECHO_T}no" >&6
12162fi
12163
12164echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12165echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
12166if test -e /dev/ptc; then
12167 echo "$as_me:$LINENO: result: yes" >&5
12168echo "${ECHO_T}yes" >&6
12169
12170cat >>confdefs.h <<\_ACEOF
12171#define HAVE_DEV_PTC 1
12172_ACEOF
12173
12174
12175cat >>confdefs.h <<\_ACEOF
12176#define CLONE_DEVICE "/dev/ptc"
12177_ACEOF
12178
12179 have_clone=yes
12180else
12181 echo "$as_me:$LINENO: result: no" >&5
12182echo "${ECHO_T}no" >&6
12183fi
12184
12185case $host in
12186 *-*-cygwin*)
12187 have_clone=yes
12188
12189cat >>confdefs.h <<\_ACEOF
12190#define CLONE_DEVICE "/dev/ptmx"
12191_ACEOF
12192
12193 ;;
12194 *)
12195 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
12196echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
12197 if test -e /dev/ptmx; then
12198 echo "$as_me:$LINENO: result: yes" >&5
12199echo "${ECHO_T}yes" >&6
12200
12201cat >>confdefs.h <<\_ACEOF
12202#define HAVE_DEV_PTMX 1
12203_ACEOF
12204
12205
12206cat >>confdefs.h <<\_ACEOF
12207#define CLONE_DEVICE "/dev/ptmx"
12208_ACEOF
12209
12210 have_clone=yes
12211 else
12212 echo "$as_me:$LINENO: result: no" >&5
12213echo "${ECHO_T}no" >&6
12214 fi
12215 ;;
12216esac
12217
12218if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then
12219 echo "$as_me:$LINENO: checking for UNIX98 ptys" >&5
12220echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6
12221 cat >conftest.$ac_ext <<_ACEOF
12222/* confdefs.h. */
12223_ACEOF
12224cat confdefs.h >>conftest.$ac_ext
12225cat >>conftest.$ac_ext <<_ACEOF
12226/* end confdefs.h. */
12227#include <stdlib.h>
12228int
12229main ()
12230{
12231grantpt(0);unlockpt(0);ptsname(0);
12232 ;
12233 return 0;
12234}
12235_ACEOF
12236rm -f conftest.$ac_objext conftest$ac_exeext
12237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12238 (eval $ac_link) 2>conftest.er1
12239 ac_status=$?
12240 grep -v '^ *+' conftest.er1 >conftest.err
12241 rm -f conftest.er1
12242 cat conftest.err >&5
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); } &&
12245 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12247 (eval $ac_try) 2>&5
12248 ac_status=$?
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); }; } &&
12251 { ac_try='test -s conftest$ac_exeext'
12252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12253 (eval $ac_try) 2>&5
12254 ac_status=$?
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); }; }; then
12257 unix98_pty=yes
12258
12259cat >>confdefs.h <<\_ACEOF
12260#define UNIX98_PTY 1
12261_ACEOF
12262
12263 echo "$as_me:$LINENO: result: yes" >&5
12264echo "${ECHO_T}yes" >&6
12265else
12266 echo "$as_me: failed program was:" >&5
12267sed 's/^/| /' conftest.$ac_ext >&5
12268
12269echo "$as_me:$LINENO: result: no" >&5
12270echo "${ECHO_T}no" >&6
12271fi
12272rm -f conftest.err conftest.$ac_objext \
12273 conftest$ac_exeext conftest.$ac_ext
12274fi
12275
12276if test -z "$unix98_pty"; then
12277
12278for ac_func in openpty
12279do
12280as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12281echo "$as_me:$LINENO: checking for $ac_func" >&5
12282echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12283if eval "test \"\${$as_ac_var+set}\" = set"; then
12284 echo $ECHO_N "(cached) $ECHO_C" >&6
12285else
12286 cat >conftest.$ac_ext <<_ACEOF
12287/* confdefs.h. */
12288_ACEOF
12289cat confdefs.h >>conftest.$ac_ext
12290cat >>conftest.$ac_ext <<_ACEOF
12291/* end confdefs.h. */
12292/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12294#define $ac_func innocuous_$ac_func
12295
12296/* System header to define __stub macros and hopefully few prototypes,
12297 which can conflict with char $ac_func (); below.
12298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12299 <limits.h> exists even on freestanding compilers. */
12300
12301#ifdef __STDC__
12302# include <limits.h>
12303#else
12304# include <assert.h>
12305#endif
12306
12307#undef $ac_func
12308
12309/* Override any gcc2 internal prototype to avoid an error. */
12310#ifdef __cplusplus
12311extern "C"
12312{
12313#endif
12314/* We use char because int might match the return type of a gcc2
12315 builtin and then its argument prototype would still apply. */
12316char $ac_func ();
12317/* The GNU C library defines this for functions which it implements
12318 to always fail with ENOSYS. Some functions are actually named
12319 something starting with __ and the normal name is an alias. */
12320#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12321choke me
12322#else
12323char (*f) () = $ac_func;
12324#endif
12325#ifdef __cplusplus
12326}
12327#endif
12328
12329int
12330main ()
12331{
12332return f != $ac_func;
12333 ;
12334 return 0;
12335}
12336_ACEOF
12337rm -f conftest.$ac_objext conftest$ac_exeext
12338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12339 (eval $ac_link) 2>conftest.er1
12340 ac_status=$?
12341 grep -v '^ *+' conftest.er1 >conftest.err
12342 rm -f conftest.er1
12343 cat conftest.err >&5
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); } &&
12346 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12348 (eval $ac_try) 2>&5
12349 ac_status=$?
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); }; } &&
12352 { ac_try='test -s conftest$ac_exeext'
12353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12354 (eval $ac_try) 2>&5
12355 ac_status=$?
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); }; }; then
12358 eval "$as_ac_var=yes"
12359else
12360 echo "$as_me: failed program was:" >&5
12361sed 's/^/| /' conftest.$ac_ext >&5
12362
12363eval "$as_ac_var=no"
12364fi
12365rm -f conftest.err conftest.$ac_objext \
12366 conftest$ac_exeext conftest.$ac_ext
12367fi
12368echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12369echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12370if test `eval echo '${'$as_ac_var'}'` = yes; then
12371 cat >>confdefs.h <<_ACEOF
12372#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12373_ACEOF
12374
12375else
12376 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
12377echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
12378if test "${ac_cv_lib_util_openpty+set}" = set; then
12379 echo $ECHO_N "(cached) $ECHO_C" >&6
12380else
12381 ac_check_lib_save_LIBS=$LIBS
12382LIBS="-lutil $LIBS"
12383cat >conftest.$ac_ext <<_ACEOF
12384/* confdefs.h. */
12385_ACEOF
12386cat confdefs.h >>conftest.$ac_ext
12387cat >>conftest.$ac_ext <<_ACEOF
12388/* end confdefs.h. */
12389
12390/* Override any gcc2 internal prototype to avoid an error. */
12391#ifdef __cplusplus
12392extern "C"
12393#endif
12394/* We use char because int might match the return type of a gcc2
12395 builtin and then its argument prototype would still apply. */
12396char openpty ();
12397int
12398main ()
12399{
12400openpty ();
12401 ;
12402 return 0;
12403}
12404_ACEOF
12405rm -f conftest.$ac_objext conftest$ac_exeext
12406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12407 (eval $ac_link) 2>conftest.er1
12408 ac_status=$?
12409 grep -v '^ *+' conftest.er1 >conftest.err
12410 rm -f conftest.er1
12411 cat conftest.err >&5
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); } &&
12414 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12416 (eval $ac_try) 2>&5
12417 ac_status=$?
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); }; } &&
12420 { ac_try='test -s conftest$ac_exeext'
12421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12422 (eval $ac_try) 2>&5
12423 ac_status=$?
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); }; }; then
12426 ac_cv_lib_util_openpty=yes
12427else
12428 echo "$as_me: failed program was:" >&5
12429sed 's/^/| /' conftest.$ac_ext >&5
12430
12431ac_cv_lib_util_openpty=no
12432fi
12433rm -f conftest.err conftest.$ac_objext \
12434 conftest$ac_exeext conftest.$ac_ext
12435LIBS=$ac_check_lib_save_LIBS
12436fi
12437echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
12438echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
12439if test $ac_cv_lib_util_openpty = yes; then
12440 cat >>confdefs.h <<\_ACEOF
12441#define HAVE_OPENPTY 1
12442_ACEOF
12443 LIBS="$LIBS -lutil"
12444fi
12445
12446fi
12447done
12448
12449fi
12450
12451
12452
12453echo "$as_me:$LINENO: checking for tty group" >&5
12454echo $ECHO_N "checking for tty group... $ECHO_C" >&6
12455if test "${tty_group+set}" = set; then
12456 echo $ECHO_N "(cached) $ECHO_C" >&6
12457else
12458 if test "$cross_compiling" = yes; then
12459 tty_group=no
12460else
12461 cat >conftest.$ac_ext <<_ACEOF
12462/* confdefs.h. */
12463_ACEOF
12464cat confdefs.h >>conftest.$ac_ext
12465cat >>conftest.$ac_ext <<_ACEOF
12466/* end confdefs.h. */
12467
12468#include <sys/types.h>
12469#include <sys/stat.h>
12470#include <unistd.h>
12471#include <grp.h>
12472
12473main()
12474{
12475 struct stat st;
12476 struct group *gr;
12477 char *tty;
12478 gr = getgrnam("tty");
12479 tty = ttyname(0);
12480 if (gr != 0
12481 && tty != 0
12482 && (stat(tty, &st)) == 0
12483 && st.st_gid == gr->gr_gid)
12484 return 0;
12485 else
12486 return 1;
12487}
12488_ACEOF
12489rm -f conftest$ac_exeext
12490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12491 (eval $ac_link) 2>&5
12492 ac_status=$?
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12496 (eval $ac_try) 2>&5
12497 ac_status=$?
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); }; }; then
12500 tty_group=yes
12501else
12502 echo "$as_me: program exited with status $ac_status" >&5
12503echo "$as_me: failed program was:" >&5
12504sed 's/^/| /' conftest.$ac_ext >&5
12505
12506( exit $ac_status )
12507tty_group=no
12508fi
12509rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12510fi
12511fi
12512echo "$as_me:$LINENO: result: $tty_group" >&5
12513echo "${ECHO_T}$tty_group" >&6
12514if test x$tty_group = xyes; then
12515
12516cat >>confdefs.h <<\_ACEOF
12517#define TTY_GID_SUPPORT 1
12518_ACEOF
12519
12520fi
12521
12522if test x$support_xft = xyes; then
12523 # Extract the first word of "pkg-config", so it can be a program name with args.
12524set dummy pkg-config; ac_word=$2
12525echo "$as_me:$LINENO: checking for $ac_word" >&5
12526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12527if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12528 echo $ECHO_N "(cached) $ECHO_C" >&6
12529else
12530 case $PKG_CONFIG in
12531 [\\/]* | ?:[\\/]*)
12532 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12533 ;;
12534 *)
12535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12536for as_dir in $PATH
12537do
12538 IFS=$as_save_IFS
12539 test -z "$as_dir" && as_dir=.
12540 for ac_exec_ext in '' $ac_executable_extensions; do
12541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12542 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12544 break 2
12545 fi
12546done
12547done
12548
12549 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12550 ;;
12551esac
12552fi
12553PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12554
12555if test -n "$PKG_CONFIG"; then
12556 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12557echo "${ECHO_T}$PKG_CONFIG" >&6
12558else
12559 echo "$as_me:$LINENO: result: no" >&5
12560echo "${ECHO_T}no" >&6
12561fi
12562
12563 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
12564 LIBS="$LIBS `$PKG_CONFIG xft --libs`"
12565 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
12566 else
12567 # Extract the first word of "xft-config", so it can be a program name with args.
12568set dummy xft-config; ac_word=$2
12569echo "$as_me:$LINENO: checking for $ac_word" >&5
12570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12571if test "${ac_cv_path_XFT_CONFIG+set}" = set; then
12572 echo $ECHO_N "(cached) $ECHO_C" >&6
12573else
12574 case $XFT_CONFIG in
12575 [\\/]* | ?:[\\/]*)
12576 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
12577 ;;
12578 *)
12579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12580for as_dir in $PATH
12581do
12582 IFS=$as_save_IFS
12583 test -z "$as_dir" && as_dir=.
12584 for ac_exec_ext in '' $ac_executable_extensions; do
12585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12586 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12588 break 2
12589 fi
12590done
12591done
12592
12593 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
12594 ;;
12595esac
12596fi
12597XFT_CONFIG=$ac_cv_path_XFT_CONFIG
12598
12599if test -n "$XFT_CONFIG"; then
12600 echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5
12601echo "${ECHO_T}$XFT_CONFIG" >&6
12602else
12603 echo "$as_me:$LINENO: result: no" >&5
12604echo "${ECHO_T}no" >&6
12605fi
12606
12607 if test $XFT_CONFIG != no; then
12608 LIBS="$LIBS `$XFT_CONFIG --libs`"
12609 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
12610 fi
12611 fi
12612
12613
12614for ac_header in X11/Xft/Xft.h
12615do
12616as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12617if eval "test \"\${$as_ac_Header+set}\" = set"; then
12618 echo "$as_me:$LINENO: checking for $ac_header" >&5
12619echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12620if eval "test \"\${$as_ac_Header+set}\" = set"; then
12621 echo $ECHO_N "(cached) $ECHO_C" >&6
12622fi
12623echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12624echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12625else
12626 # Is the header compilable?
12627echo "$as_me:$LINENO: checking $ac_header usability" >&5
12628echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12629cat >conftest.$ac_ext <<_ACEOF
12630/* confdefs.h. */
12631_ACEOF
12632cat confdefs.h >>conftest.$ac_ext
12633cat >>conftest.$ac_ext <<_ACEOF
12634/* end confdefs.h. */
12635$ac_includes_default
12636#include <$ac_header>
12637_ACEOF
12638rm -f conftest.$ac_objext
12639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12640 (eval $ac_compile) 2>conftest.er1
12641 ac_status=$?
12642 grep -v '^ *+' conftest.er1 >conftest.err
12643 rm -f conftest.er1
12644 cat conftest.err >&5
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); } &&
12647 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12649 (eval $ac_try) 2>&5
12650 ac_status=$?
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); }; } &&
12653 { ac_try='test -s conftest.$ac_objext'
12654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12655 (eval $ac_try) 2>&5
12656 ac_status=$?
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); }; }; then
12659 ac_header_compiler=yes
12660else
12661 echo "$as_me: failed program was:" >&5
12662sed 's/^/| /' conftest.$ac_ext >&5
12663
12664ac_header_compiler=no
12665fi
12666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12667echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12668echo "${ECHO_T}$ac_header_compiler" >&6
12669
12670# Is the header present?
12671echo "$as_me:$LINENO: checking $ac_header presence" >&5
12672echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12673cat >conftest.$ac_ext <<_ACEOF
12674/* confdefs.h. */
12675_ACEOF
12676cat confdefs.h >>conftest.$ac_ext
12677cat >>conftest.$ac_ext <<_ACEOF
12678/* end confdefs.h. */
12679#include <$ac_header>
12680_ACEOF
12681if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12682 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12683 ac_status=$?
12684 grep -v '^ *+' conftest.er1 >conftest.err
12685 rm -f conftest.er1
12686 cat conftest.err >&5
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); } >/dev/null; then
12689 if test -s conftest.err; then
12690 ac_cpp_err=$ac_cxx_preproc_warn_flag
12691 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12692 else
12693 ac_cpp_err=
12694 fi
12695else
12696 ac_cpp_err=yes
12697fi
12698if test -z "$ac_cpp_err"; then
12699 ac_header_preproc=yes
12700else
12701 echo "$as_me: failed program was:" >&5
12702sed 's/^/| /' conftest.$ac_ext >&5
12703
12704 ac_header_preproc=no
12705fi
12706rm -f conftest.err conftest.$ac_ext
12707echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12708echo "${ECHO_T}$ac_header_preproc" >&6
12709
12710# So? What about this header?
12711case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12712 yes:no: )
12713 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12714echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12716echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12717 ac_header_preproc=yes
12718 ;;
12719 no:yes:* )
12720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12721echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12723echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12724 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12725echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12726 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12727echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12729echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12730 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12731echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12732 (
12733 cat <<\_ASBOX
12734## ------------------------------------------ ##
12735## Report this to the AC_PACKAGE_NAME lists. ##
12736## ------------------------------------------ ##
12737_ASBOX
12738 ) |
12739 sed "s/^/$as_me: WARNING: /" >&2
12740 ;;
12741esac
12742echo "$as_me:$LINENO: checking for $ac_header" >&5
12743echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12744if eval "test \"\${$as_ac_Header+set}\" = set"; then
12745 echo $ECHO_N "(cached) $ECHO_C" >&6
12746else
12747 eval "$as_ac_Header=\$ac_header_preproc"
12748fi
12749echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12750echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12751
12752fi
12753if test `eval echo '${'$as_ac_Header'}'` = yes; then
12754 cat >>confdefs.h <<_ACEOF
12755#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12756_ACEOF
12757
16356else 12758else
16357 support_xft=no 12759 support_xft=no
16358fi 12760fi
16359 12761
16360done 12762done
16396 grep -v '^ *+' conftest.er1 >conftest.err 12798 grep -v '^ *+' conftest.er1 >conftest.err
16397 rm -f conftest.er1 12799 rm -f conftest.er1
16398 cat conftest.err >&5 12800 cat conftest.err >&5
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); } && 12802 (exit $ac_status); } &&
16401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12803 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16403 (eval $ac_try) 2>&5 12805 (eval $ac_try) 2>&5
16404 ac_status=$? 12806 ac_status=$?
16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); }; } && 12808 (exit $ac_status); }; } &&
16441#define XFT 1 12843#define XFT 1
16442_ACEOF 12844_ACEOF
16443 12845
16444 fi 12846 fi
16445fi 12847fi
12848if test x$support_styles = xyes; then
16446 12849
12850cat >>confdefs.h <<\_ACEOF
12851#define ENABLE_STYLES 1
12852_ACEOF
12853
12854fi
12855if test x$support_iso14755 = xyes; then
12856
12857cat >>confdefs.h <<\_ACEOF
12858#define ISO_14755 1
12859_ACEOF
12860
12861fi
12862if test x$support_8bitctrls = xyes; then
12863
12864cat >>confdefs.h <<\_ACEOF
12865#define EIGHT_BIT_CONTROLS 1
12866_ACEOF
12867
12868fi
12869if test x$support_fading = xyes; then
12870
12871cat >>confdefs.h <<\_ACEOF
12872#define OFF_FOCUS_FADING 1
12873_ACEOF
12874
12875fi
12876if test x$support_tinting = xyes; then
12877
12878cat >>confdefs.h <<\_ACEOF
12879#define TINTING 1
12880_ACEOF
12881
12882fi
12883if test x$support_inheritpixmap = xyes; then
12884
12885cat >>confdefs.h <<\_ACEOF
12886#define TRANSPARENT 1
12887_ACEOF
12888
12889fi
12890if test x$support_keepscrolling = xno; then
12891
12892cat >>confdefs.h <<\_ACEOF
12893#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
12894_ACEOF
12895
12896fi
12897if test x$support_selectionscrolling = xyes; then
12898
12899cat >>confdefs.h <<\_ACEOF
12900#define SELECTION_SCROLLING 1
12901_ACEOF
12902
12903fi
12904if test x$support_frills = xyes; then
12905
12906cat >>confdefs.h <<\_ACEOF
12907#define ENABLE_FRILLS 1
12908_ACEOF
12909
12910fi
12911if test x$support_mousewheel = xyes; then
12912
12913cat >>confdefs.h <<\_ACEOF
12914#define MOUSE_WHEEL 1
12915_ACEOF
12916
12917fi
12918if test x$support_mouseslipwheel = xyes; then
12919
12920cat >>confdefs.h <<\_ACEOF
12921#define MOUSE_SLIP_WHEELING 1
12922_ACEOF
12923
12924fi
12925if test x$support_xim = xyes -o x$multichar_set = xyes; then
12926 if test x$rxvt_cv_func_xlocale = xyes; then
12927
12928cat >>confdefs.h <<\_ACEOF
12929#define USE_XIM 1
12930_ACEOF
12931
12932 fi
12933fi
12934if test x$support_xpm = xyes; then
12935
12936cat >>confdefs.h <<\_ACEOF
12937#define XPM_BACKGROUND 1
12938_ACEOF
12939
12940fi
12941if test x$support_scroll_rxvt = xyes; then
12942
12943cat >>confdefs.h <<\_ACEOF
12944#define RXVT_SCROLLBAR 1
12945_ACEOF
12946
12947 scrolltypes="rxvt"
12948fi
12949if test x$support_scroll_next = xyes; then
12950
12951cat >>confdefs.h <<\_ACEOF
12952#define NEXT_SCROLLBAR 1
12953_ACEOF
12954
12955 scrolltypes="$scrolltypes next"
12956fi
12957if test x$support_scroll_xterm = xyes; then
12958
12959cat >>confdefs.h <<\_ACEOF
12960#define XTERM_SCROLLBAR 1
12961_ACEOF
12962
12963 scrolltypes="$scrolltypes xterm"
12964fi
12965if test x$support_scroll_plain = xyes; then
12966
12967cat >>confdefs.h <<\_ACEOF
12968#define PLAIN_SCROLLBAR 1
12969_ACEOF
12970
12971 scrolltypes="$scrolltypes plain"
12972fi
12973if test x$support_pointer_blank = xyes; then
12974
12975cat >>confdefs.h <<\_ACEOF
12976#define POINTER_BLANK 1
12977_ACEOF
12978
12979fi
12980if test x$support_text_blink = xyes; then
12981
12982cat >>confdefs.h <<\_ACEOF
12983#define TEXT_BLINK 1
12984_ACEOF
12985
12986fi
12987if test x$support_unicode3 = xyes; then
12988
12989cat >>confdefs.h <<\_ACEOF
12990#define UNICODE_3 1
12991_ACEOF
12992
12993fi
12994if test x$support_combining = xyes; then
12995
12996cat >>confdefs.h <<\_ACEOF
12997#define ENABLE_COMBINING 1
12998_ACEOF
12999
13000fi
13001if test x$codesets = xall; then
13002 codesets=jp,jp-ext,kr,zh,zh-ext
13003fi
13004
13005cat >>confdefs.h <<\_ACEOF
13006#define ENCODING_EU 1
13007_ACEOF
13008
13009
13010cat >>confdefs.h <<\_ACEOF
13011#define ENCODING_VN 1
13012_ACEOF
13013
13014for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
13015 case "$codeset" in
13016 JP )
13017cat >>confdefs.h <<\_ACEOF
13018#define ENCODING_JP 1
13019_ACEOF
13020 ;;
13021 JP_EXT )
13022cat >>confdefs.h <<\_ACEOF
13023#define ENCODING_JP_EXT 1
13024_ACEOF
13025 ;;
13026 KR )
13027cat >>confdefs.h <<\_ACEOF
13028#define ENCODING_KR 1
13029_ACEOF
13030 ;;
13031 ZH )
13032cat >>confdefs.h <<\_ACEOF
13033#define ENCODING_ZH 1
13034_ACEOF
13035 ;;
13036 ZH_EXT )
13037cat >>confdefs.h <<\_ACEOF
13038#define ENCODING_ZH_EXT 1
13039_ACEOF
13040 ;;
13041 esac
13042done
13043
13044IF_PERL=\#
13045if test x$support_perl = xyes; then
13046 # Extract the first word of "perl5", so it can be a program name with args.
13047set dummy perl5; ac_word=$2
13048echo "$as_me:$LINENO: checking for $ac_word" >&5
13049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13050if test "${ac_cv_path_PERL+set}" = set; then
13051 echo $ECHO_N "(cached) $ECHO_C" >&6
13052else
13053 case $PERL in
13054 [\\/]* | ?:[\\/]*)
13055 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13056 ;;
13057 *)
13058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13059for as_dir in $PATH
13060do
13061 IFS=$as_save_IFS
13062 test -z "$as_dir" && as_dir=.
13063 for ac_exec_ext in '' $ac_executable_extensions; do
13064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13065 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13067 break 2
13068 fi
13069done
13070done
13071
13072 ;;
13073esac
13074fi
13075PERL=$ac_cv_path_PERL
13076
13077if test -n "$PERL"; then
13078 echo "$as_me:$LINENO: result: $PERL" >&5
13079echo "${ECHO_T}$PERL" >&6
13080else
13081 echo "$as_me:$LINENO: result: no" >&5
13082echo "${ECHO_T}no" >&6
13083fi
13084
13085 # Extract the first word of "perl", so it can be a program name with args.
13086set dummy perl; ac_word=$2
13087echo "$as_me:$LINENO: checking for $ac_word" >&5
13088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13089if test "${ac_cv_path_PERL+set}" = set; then
13090 echo $ECHO_N "(cached) $ECHO_C" >&6
13091else
13092 case $PERL in
13093 [\\/]* | ?:[\\/]*)
13094 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13095 ;;
13096 *)
13097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13098for as_dir in $PATH
13099do
13100 IFS=$as_save_IFS
13101 test -z "$as_dir" && as_dir=.
13102 for ac_exec_ext in '' $ac_executable_extensions; do
13103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13104 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13106 break 2
13107 fi
13108done
13109done
13110
13111 ;;
13112esac
13113fi
13114PERL=$ac_cv_path_PERL
13115
13116if test -n "$PERL"; then
13117 echo "$as_me:$LINENO: result: $PERL" >&5
13118echo "${ECHO_T}$PERL" >&6
13119else
13120 echo "$as_me:$LINENO: result: no" >&5
13121echo "${ECHO_T}no" >&6
13122fi
13123
13124
13125 echo "$as_me:$LINENO: checking for $PERL suitability" >&5
13126echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6
13127 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
13128
13129 save_CXXFLAGS="$CXXFLAGS"
13130 save_LIBS="$LIBS"
13131 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
13132 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
13133 cat >conftest.$ac_ext <<_ACEOF
13134/* confdefs.h. */
13135_ACEOF
13136cat confdefs.h >>conftest.$ac_ext
13137cat >>conftest.$ac_ext <<_ACEOF
13138/* end confdefs.h. */
13139
13140#include <EXTERN.h>
13141#include <perl.h>
13142#include <XSUB.h>
13143
13144int
13145main ()
13146{
13147
13148 PerlInterpreter *perl = perl_alloc ();
13149
13150 ;
13151 return 0;
13152}
13153_ACEOF
13154rm -f conftest.$ac_objext conftest$ac_exeext
13155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13156 (eval $ac_link) 2>conftest.er1
13157 ac_status=$?
13158 grep -v '^ *+' conftest.er1 >conftest.err
13159 rm -f conftest.er1
13160 cat conftest.err >&5
13161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162 (exit $ac_status); } &&
13163 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13165 (eval $ac_try) 2>&5
13166 ac_status=$?
13167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168 (exit $ac_status); }; } &&
13169 { ac_try='test -s conftest$ac_exeext'
13170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13171 (eval $ac_try) 2>&5
13172 ac_status=$?
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); }; }; then
13175 rxvt_perl_link=yes
13176else
13177 echo "$as_me: failed program was:" >&5
13178sed 's/^/| /' conftest.$ac_ext >&5
13179
13180rxvt_perl_link=no
13181fi
13182rm -f conftest.err conftest.$ac_objext \
13183 conftest$ac_exeext conftest.$ac_ext
13184 CXXFLAGS="$save_CXXFLAGS"
13185 LIBS="$save_LIBS"
13186
13187 if test x$rxvt_perl_link = xyes; then
13188 echo "$as_me:$LINENO: result: ok" >&5
13189echo "${ECHO_T}ok" >&6
13190
13191cat >>confdefs.h <<\_ACEOF
13192#define ENABLE_PERL 1
13193_ACEOF
13194
13195 IF_PERL=
13196 PERL_O=rxvtperl.o
13197 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
13198 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
13199 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
13200 else
13201 { { echo "$as_me:$LINENO: error: no, unable to link" >&5
13202echo "$as_me: error: no, unable to link" >&2;}
13203 { (exit 1); exit 1; }; }
13204 fi
13205 else
13206 { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5
13207echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;}
13208 { (exit 1); exit 1; }; }
13209 fi
13210fi
13211
13212
13213
13214
13215
13216
13217
13218if test x$support_perl = xyes; then
13219 support_frills=yes
13220fi
13221
13222
13223CFLAGS=${CFLAGS--O}
13224LDFLAGS=${LDFLAGS--O}
13225
13226CPPFLAGS="$CPPFLAGS"
13227
13228
13229
13230
13231
13232
13233
13234if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
13235 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
13236 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
13237 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
13238 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
13239 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
13240fi
13241
13242
13243
13244
13245
13246test "$program_prefix" != NONE &&
13247 program_transform_name="s,^,$program_prefix,;$program_transform_name"
13248# Use a double $ so make ignores it.
13249test "$program_suffix" != NONE &&
13250 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
13251# Double any \ or $. echo might interpret backslashes.
13252# By default was `s,x,x', remove it if useless.
13253cat <<\_ACEOF >conftest.sed
13254s/[\\$]/&&/g;s/;s,x,x,$//
13255_ACEOF
13256program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
13257rm conftest.sed
13258
13259
13260
13261
13262
13263if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
13264 include_stdint_h="#include <stdint.h>"
13265else
13266 include_stdint_h="/* #include <stdint.h> */"
13267fi
13268if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
13269 include_stdarg_h="#include <cstdarg>"
13270else
13271 include_stdarg_h="/* #include <cstdarg> */"
13272fi
13273if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
13274 include_stdlib_h="#include <cstdlib>"
13275else
13276 include_stdlib_h="/* #include <cstdlib> */"
13277fi
13278if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
13279 include_unistd_h="#include <unistd.h>"
13280else
13281 include_unistd_h="/* #include <unistd.h> */"
13282fi
13283if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
13284 include_string_h="#include <cstring>"
13285else
13286 include_string_h="/* #include <cstring> */"
13287fi
13288if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
13289 include_fcntl_h="#include <fcntl.h>"
13290else
13291 include_fcntl_h="/* #include <fcntl.h> */"
13292fi
13293if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
13294 include_util_h="#include <util.h>"
13295else
13296 include_util_h="/* #include <util.h> */"
13297fi
13298if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
13299 include_assert_h="#include <assert.h>"
13300else
13301 include_assert_h="/* #include <assert.h> */"
13302fi
13303if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
13304 include_sys_ioctl_h="#include <sys/ioctl.h>"
13305else
13306 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
13307fi
13308if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
13309 include_sys_select_h="#include <sys/select.h>"
13310else
13311 include_sys_select_h="/* #include <sys/select.h> */"
13312fi
13313if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
13314 include_sys_strredir_h="#include <sys/strredir.h>"
13315else
13316 include_sys_strredir_h="/* #include <sys/strredir.h> */"
13317fi
13318if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
13319 include_sys_time_h="#include <sys/time.h>"
13320else
13321 include_sys_time_h="/* #include <sys/time.h> */"
13322fi
13323if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
13324 include_time_h="#include <time.h>"
13325else
13326 include_time_h="/* #include <time.h> */"
13327fi
13328
16447 ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/test/Makefile src/rxvtlib.h W11/Makefile" 13329 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h"
13330
16448cat >confcache <<\_ACEOF 13331cat >confcache <<\_ACEOF
16449# This file is a shell script that caches the results of configure 13332# This file is a shell script that caches the results of configure
16450# tests run on this system so they can be shared between configure 13333# tests run on this system so they can be shared between configure
16451# scripts and configure runs, see configure's option --config-cache. 13334# scripts and configure runs, see configure's option --config-cache.
16452# It is not useful on other systems. If it contains results you don't 13335# It is not useful on other systems. If it contains results you don't
16968cat >>$CONFIG_STATUS <<\_ACEOF 13851cat >>$CONFIG_STATUS <<\_ACEOF
16969for ac_config_target in $ac_config_targets 13852for ac_config_target in $ac_config_targets
16970do 13853do
16971 case "$ac_config_target" in 13854 case "$ac_config_target" in
16972 # Handling of arguments. 13855 # Handling of arguments.
16973 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
16974 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13856 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16975 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 13857 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16976 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 13858 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16977 "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
16978 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; 13859 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
16979 "W11/Makefile" ) CONFIG_FILES="$CONFIG_FILES W11/Makefile" ;;
16980 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;; 13860 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
16981 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 13861 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16982echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 13862echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16983 { (exit 1); exit 1; }; };; 13863 { (exit 1); exit 1; }; };;
16984 esac 13864 esac
16985done 13865done
17060s,@DEFS@,$DEFS,;t t 13940s,@DEFS@,$DEFS,;t t
17061s,@ECHO_C@,$ECHO_C,;t t 13941s,@ECHO_C@,$ECHO_C,;t t
17062s,@ECHO_N@,$ECHO_N,;t t 13942s,@ECHO_N@,$ECHO_N,;t t
17063s,@ECHO_T@,$ECHO_T,;t t 13943s,@ECHO_T@,$ECHO_T,;t t
17064s,@LIBS@,$LIBS,;t t 13944s,@LIBS@,$LIBS,;t t
13945s,@build@,$build,;t t
13946s,@build_cpu@,$build_cpu,;t t
13947s,@build_vendor@,$build_vendor,;t t
13948s,@build_os@,$build_os,;t t
13949s,@host@,$host,;t t
13950s,@host_cpu@,$host_cpu,;t t
13951s,@host_vendor@,$host_vendor,;t t
13952s,@host_os@,$host_os,;t t
17065s,@VERSION@,$VERSION,;t t 13953s,@VERSION@,$VERSION,;t t
17066s,@DATE@,$DATE,;t t 13954s,@DATE@,$DATE,;t t
17067s,@LSMDATE@,$LSMDATE,;t t 13955s,@LSMDATE@,$LSMDATE,;t t
17068s,@LIBVERSION@,$LIBVERSION,;t t 13956s,@LIBVERSION@,$LIBVERSION,;t t
17069s,@CC@,$CC,;t t 13957s,@CC@,$CC,;t t
17078s,@ac_ct_CXX@,$ac_ct_CXX,;t t 13966s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17079s,@CPP@,$CPP,;t t 13967s,@CPP@,$CPP,;t t
17080s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 13968s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17081s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 13969s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17082s,@INSTALL_DATA@,$INSTALL_DATA,;t t 13970s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17083s,@AWK@,$AWK,;t t
17084s,@EGREP@,$EGREP,;t t 13971s,@EGREP@,$EGREP,;t t
17085s,@build@,$build,;t t 13972s,@LINKER@,$LINKER,;t t
17086s,@build_cpu@,$build_cpu,;t t
17087s,@build_vendor@,$build_vendor,;t t
17088s,@build_os@,$build_os,;t t
17089s,@host@,$host,;t t
17090s,@host_cpu@,$host_cpu,;t t
17091s,@host_vendor@,$host_vendor,;t t
17092s,@host_os@,$host_os,;t t
17093s,@LN_S@,$LN_S,;t t
17094s,@ECHO@,$ECHO,;t t
17095s,@RANLIB@,$RANLIB,;t t
17096s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17097s,@STRIP@,$STRIP,;t t
17098s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17099s,@LIBTOOL@,$LIBTOOL,;t t
17100s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t 13973s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
13974s,@RXVTNAME@,$RXVTNAME,;t t
17101s,@MV@,$MV,;t t 13975s,@MV@,$MV,;t t
17102s,@RM@,$RM,;t t
17103s,@CP@,$CP,;t t 13976s,@CP@,$CP,;t t
17104s,@LN@,$LN,;t t 13977s,@LN@,$LN,;t t
17105s,@SED@,$SED,;t t 13978s,@SED@,$SED,;t t
13979s,@ECHO@,$ECHO,;t t
17106s,@CMP@,$CMP,;t t 13980s,@CMP@,$CMP,;t t
17107s,@TBL@,$TBL,;t t 13981s,@TIC@,$TIC,;t t
13982s,@CXXCPP@,$CXXCPP,;t t
17108s,@X_CFLAGS@,$X_CFLAGS,;t t 13983s,@X_CFLAGS@,$X_CFLAGS,;t t
17109s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 13984s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17110s,@X_LIBS@,$X_LIBS,;t t 13985s,@X_LIBS@,$X_LIBS,;t t
17111s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 13986s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17112s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t 13987s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
17116s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t 13991s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
17117s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t 13992s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
17118s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t 13993s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
17119s,@rxvt_intp_define@,$rxvt_intp_define,;t t 13994s,@rxvt_intp_define@,$rxvt_intp_define,;t t
17120s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t 13995s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
13996s,@PKG_CONFIG@,$PKG_CONFIG,;t t
13997s,@XFT_CONFIG@,$XFT_CONFIG,;t t
13998s,@PERL@,$PERL,;t t
13999s,@PERLLIB@,$PERLLIB,;t t
14000s,@PERLFLAGS@,$PERLFLAGS,;t t
14001s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t
14002s,@IF_PERL@,$IF_PERL,;t t
14003s,@PERL_O@,$PERL_O,;t t
17121s,@DEBUG@,$DEBUG,;t t 14004s,@DEBUG@,$DEBUG,;t t
17122s,@DINCLUDE@,$DINCLUDE,;t t 14005s,@DINCLUDE@,$DINCLUDE,;t t
17123s,@DLIB@,$DLIB,;t t 14006s,@DLIB@,$DLIB,;t t
17124s,@RXVTNAME@,$RXVTNAME,;t t
17125s,@include_stdint_h@,$include_stdint_h,;t t 14007s,@include_stdint_h@,$include_stdint_h,;t t
17126s,@include_stdarg_h@,$include_stdarg_h,;t t 14008s,@include_stdarg_h@,$include_stdarg_h,;t t
17127s,@include_stdlib_h@,$include_stdlib_h,;t t 14009s,@include_stdlib_h@,$include_stdlib_h,;t t
17128s,@include_unistd_h@,$include_unistd_h,;t t 14010s,@include_unistd_h@,$include_unistd_h,;t t
17129s,@include_string_h@,$include_string_h,;t t 14011s,@include_string_h@,$include_string_h,;t t
17135s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t 14017s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t
17136s,@include_sys_time_h@,$include_sys_time_h,;t t 14018s,@include_sys_time_h@,$include_sys_time_h,;t t
17137s,@include_time_h@,$include_time_h,;t t 14019s,@include_time_h@,$include_time_h,;t t
17138s,@LIBOBJS@,$LIBOBJS,;t t 14020s,@LIBOBJS@,$LIBOBJS,;t t
17139s,@LTLIBOBJS@,$LTLIBOBJS,;t t 14021s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17140/@MCOMMON@/r $MCOMMON
17141s,@MCOMMON@,,;t t
17142CEOF 14022CEOF
17143 14023
17144_ACEOF 14024_ACEOF
17145 14025
17146 cat >>$CONFIG_STATUS <<\_ACEOF 14026 cat >>$CONFIG_STATUS <<\_ACEOF
17635echo "Configuration: 14515echo "Configuration:
17636 14516
17637 Rxvt version: $VERSION : $DATE 14517 Rxvt version: $VERSION : $DATE
17638 Source code location: $srcdir 14518 Source code location: $srcdir
17639 Install path: ${prefix}/bin 14519 Install path: ${prefix}/bin
17640 Compiler: $CC 14520 Compiler: $CXX
17641 Compiler flags: $CFLAGS" 14521 Compiler flags: $CFLAGS
17642 14522 Linker: $LINKER"
17643if test "$MALLOC_TYPE" = S; then
17644 echo " malloc support: system default"
17645fi
17646if test "$MALLOC_TYPE" = G; then
17647 echo " malloc support: Gray Watson's dmalloc"
17648fi
17649if test "$MALLOC_TYPE" = D; then
17650 echo " malloc support: Doug Lea's malloc"
17651fi
17652 14523
17653if test x$support_xpm = xyes; then 14524if test x$support_xpm = xyes; then
17654 echo " Xpm library: $XPM_LIBS" 14525 echo " Xpm library: $XPM_LIBS"
17655fi 14526fi
17656 14527
17657echo "
17658The following are set in config.h
17659"
17660echo " pty/tty type: "$rxvt_cv_ptys
17661if test x$support_utmp != xyes; then
17662 echo " utmp support: disabled
17663"
17664else
17665 echo " utmp support: enabled
17666 utmp file: $rxvt_cv_path_utmp
17667 utmpx file: $rxvt_cv_path_utmpx
17668 wtmp file: $rxvt_cv_path_wtmp
17669 wtmpx file: $rxvt_cv_path_wtmpx
17670 lastlog file: $rxvt_cv_path_lastlog
17671 ttys/ttytab file: $rxvt_cv_path_ttytab
17672"
17673fi
17674if test x$term != x; then 14528if test x$term != x; then
17675 echo " set TERM to: $term 14529 echo " set TERM to: $term"
17676"
17677fi 14530fi
17678if test x$terminfo != x; then 14531if test x$terminfo != x; then
17679 echo " set TERMINFO to: $terminfo 14532 echo " set TERMINFO to: $terminfo"
17680"
17681fi 14533fi
17682if test x$rxvt_cv_ptys = xUNKNOWN; then 14534echo " default resource name: $RESNAME"
17683 echo ".----------------------------------------------------------------." 14535echo " resource class: $RESCLASS"
17684 echo ". WARNING: could not determine pty/tty type. Do not build until ." 14536if test x$RESFALLBACK != x; then
17685 echo ". the appropriate PTYS_ARE_* is defined in config.h ." 14537 echo " resource class fallback: $RESFALLBACK"
17686 echo ".----------------------------------------------------------------."
17687fi 14538fi
14539echo
14540echo " embedded perl: $support_perl"
14541echo
17688if test x$support_xpm = xneedsmanualspecification; then 14542if test x$support_xpm = xneedsmanualspecification; then
17689 echo ".----------------------------------------------------------------." 14543 echo ".----------------------------------------------------------------."
17690 echo ". WARNING: --enable-xpm-background was specified however the ." 14544 echo ". WARNING: --enable-xpm-background was specified however the ."
17691 echo ". XPM includes files and libraries could not be found. ." 14545 echo ". XPM includes files and libraries could not be found. ."
17692 echo ". XPM backgrounds are now being DISABLED! If you want ." 14546 echo ". XPM backgrounds are now being DISABLED! If you want ."
17700 echo ". WARNING: --enable-xim was specified however the locale support ." 14554 echo ". WARNING: --enable-xim was specified however the locale support ."
17701 echo ". functions could not be found. ." 14555 echo ". functions could not be found. ."
17702 echo ". XIM is now being DISABLED! ." 14556 echo ". XIM is now being DISABLED! ."
17703 echo ".----------------------------------------------------------------." 14557 echo ".----------------------------------------------------------------."
17704fi 14558fi
14559
17705echo " *** Please check src/feature.h for further options *** 14560echo " *** Optionally check src/feature.h for further options ***"
17706" 14561echo
14562
14563echo ".----------------------------------------------------------------."
14564echo ". NOTE: some features are disabled by default, try ."
14565echo ". configure --help to get an idea of the optional features, ."
14566echo ". or read ./README.configure ."
14567echo ". ."
14568echo ". The script ./reconf gives a reasonable baseline, try it if ."
14569echo ". you do not want to read documentation and still want some ."
14570echo ". useful features. ."
14571echo ".----------------------------------------------------------------."
14572echo
14573

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines