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

Comparing rxvt-unicode/configure (file contents):
Revision 1.24 by pcg, Fri Apr 2 17:59:49 2004 UTC vs.
Revision 1.82 by root, Fri Jan 20 16:02:20 2006 UTC

239 239
240# CDPATH. 240# CDPATH.
241$as_unset CDPATH 241$as_unset CDPATH
242 242
243 243
244# Find the correct PATH separator. Usually this is `:', but
245# DJGPP uses `;' like DOS.
246if test "X${PATH_SEPARATOR+set}" != Xset; then
247 UNAME=${UNAME-`uname 2>/dev/null`}
248 case X$UNAME in
249 *-DOS) lt_cv_sys_path_separator=';' ;;
250 *) lt_cv_sys_path_separator=':' ;;
251 esac
252fi
253
254
255# Check that we are running under the correct shell.
256SHELL=${CONFIG_SHELL-/bin/sh}
257
258case "X$ECHO" in
259X*--fallback-echo)
260 # Remove one level of quotation (which was required for Make).
261 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
262 ;;
263esac
264
265echo=${ECHO-echo}
266if test "X$1" = X--no-reexec; then
267 # Discard the --no-reexec flag, and continue.
268 shift
269elif test "X$1" = X--fallback-echo; then
270 # Avoid inline document here, it may be left over
271 :
272elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
273 # Yippee, $echo works!
274 :
275else
276 # Restart under the correct shell.
277 exec $SHELL "$0" --no-reexec ${1+"$@"}
278fi
279
280if test "X$1" = X--fallback-echo; then
281 # used as fallback echo
282 shift
283 cat <<EOF
284
285EOF
286 exit 0
287fi
288
289# The HP-UX ksh and POSIX shell print the target directory to stdout
290# if CDPATH is set.
291if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
292
293if test -z "$ECHO"; then
294if test "X${echo_test_string+set}" != Xset; then
295# find a string as large as possible, as long as the shell can cope with it
296 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
297 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
298 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
299 echo_test_string="`eval $cmd`" &&
300 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301 then
302 break
303 fi
304 done
305fi
306
307if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
308 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
309 test "X$echo_testing_string" = "X$echo_test_string"; then
310 :
311else
312 # The Solaris, AIX, and Digital Unix default echo programs unquote
313 # backslashes. This makes it impossible to quote backslashes using
314 # echo "$something" | sed 's/\\/\\\\/g'
315 #
316 # So, first we look for a working echo in the user's PATH.
317
318 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
319 for dir in $PATH /usr/ucb; do
320 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323 test "X$echo_testing_string" = "X$echo_test_string"; then
324 echo="$dir/echo"
325 break
326 fi
327 done
328 IFS="$save_ifs"
329
330 if test "X$echo" = Xecho; then
331 # We didn't find a better echo, so look for alternatives.
332 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334 test "X$echo_testing_string" = "X$echo_test_string"; then
335 # This shell has a builtin print -r that does the trick.
336 echo='print -r'
337 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338 test "X$CONFIG_SHELL" != X/bin/ksh; then
339 # If we have ksh, try running ltconfig again with it.
340 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341 export ORIGINAL_CONFIG_SHELL
342 CONFIG_SHELL=/bin/ksh
343 export CONFIG_SHELL
344 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345 else
346 # Try using printf.
347 echo='printf %s\n'
348 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350 test "X$echo_testing_string" = "X$echo_test_string"; then
351 # Cool, printf works
352 :
353 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358 export CONFIG_SHELL
359 SHELL="$CONFIG_SHELL"
360 export SHELL
361 echo="$CONFIG_SHELL $0 --fallback-echo"
362 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363 test "X$echo_testing_string" = 'X\t' &&
364 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365 test "X$echo_testing_string" = "X$echo_test_string"; then
366 echo="$CONFIG_SHELL $0 --fallback-echo"
367 else
368 # maybe with a smaller string...
369 prev=:
370
371 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373 then
374 break
375 fi
376 prev="$cmd"
377 done
378
379 if test "$prev" != 'sed 50q "$0"'; then
380 echo_test_string=`eval $prev`
381 export echo_test_string
382 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383 else
384 # Oops. We lost completely, so just stick with echo.
385 echo=echo
386 fi
387 fi
388 fi
389 fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
400
401
402# Name of the host. 244# Name of the host.
403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404# so uname gets run too. 246# so uname gets run too.
405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406 248
465#endif 307#endif
466#if HAVE_UNISTD_H 308#if HAVE_UNISTD_H
467# include <unistd.h> 309# include <unistd.h>
468#endif" 310#endif"
469 311
470ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK LINKER CXXCPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP LIBTOOL INSTALL_LIBRXVT RXVTNAME MV RM CP LN SED CMP TBL X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define DEBUG DINCLUDE DLIB include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS' 312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA EGREP LINKER INSTALL_LIBRXVT RXVTNAME MV RM CP LN SED ECHO CMP TIC CXXCPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define PERL PERLLIB PERLFLAGS PERLPRIVLIBEXP IF_PERL PERL_O DEBUG DINCLUDE DLIB include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS'
471ac_subst_files='MCOMMON' 313ac_subst_files=''
472 314
473# Initialize some variables set by options. 315# Initialize some variables set by options.
474ac_init_help= 316ac_init_help=
475ac_init_version=false 317ac_init_version=false
476# The variables have the same names as the options, with 318# The variables have the same names as the options, with
1021 cat <<\_ACEOF 863 cat <<\_ACEOF
1022 864
1023Optional Features: 865Optional Features:
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 866 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 867 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --enable-shared=PKGS build shared libraries default=no
1027 --enable-static=PKGS build static libraries default=yes
1028 --enable-fast-install=PKGS optimize for fast installation default=yes
1029 --disable-libtool-lock avoid locking (might break parallel builds)
1030 --enable-everything enable standard non-multichoice features 868 --enable-everything enable standard non-multichoice features
1031 NOTE: this option is order dependent 869 NOTE: this option is order dependent
1032 NOTE: automatically enabled with --enable-shared 870 NOTE: automatically enabled with --enable-shared
1033 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters 871 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1034 --enable-combining enable composition of base and combining characters 872 --enable-combining enable composition of base and combining characters
1035 --enable-xft enable xft support on systems that have it 873 --enable-xft enable xft support on systems that have it
874 --enable-font-styles enable bold and italic support
1036 --enable-utmp enable utmp (utmpx) support 875 --enable-utmp enable utmp (utmpx) support
1037 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) 876 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1038 --enable-lastlog enable lastlog support (requires --enable-utmp) 877 --enable-lastlog enable lastlog support (requires --enable-utmp)
1039 --enable-xpm-background enable XPM background pixmaps 878 --enable-xpm-background enable XPM background pixmaps
1040 --enable-transparency enable transparent backgrounds 879 --enable-transparency enable transparent backgrounds
1041 --enable-tinting enable tinting of transparent bg 880 --enable-tinting enable tinting of transparent bg
1042 --enable-menubar enable menubar 881 --enable-fading enable colors fading when off focus
1043 --enable-rxvt-scroll enable rxvt style scrollbar 882 --enable-rxvt-scroll enable rxvt style scrollbar
1044 --enable-next-scroll enable NeXT style scrollbar 883 --enable-next-scroll enable NeXT style scrollbar
1045 --enable-xterm-scroll enable Xterm style scrollbar 884 --enable-xterm-scroll enable Xterm style scrollbar
885 --enable-perl enable embedded perl interpreter
1046 --enable-plain-scroll enable plain style scrollbar 886 --enable-plain-scroll enable plain style scrollbar
1047 --enable-half-shadow use half width/height shadow on rxvt scrollbar
1048 --enable-xim XIM (X Input Method) protocol support 887 --enable-xim XIM (X Input Method) protocol support
1049 --enable-ttygid enable tty setting to group named "tty" 888 --enable-ttygid enable tty setting to group named "tty"
1050 --disable-backspace-key disable handling of the backspace key 889 --disable-backspace-key disable handling of the backspace key
1051 --disable-delete-key disable handling of the delete key 890 --disable-delete-key disable handling of the delete key
1052 --disable-resources disable all resource checking 891 --disable-resources disable all resource checking
1053 --enable-xgetdefault enable resources via X instead of our small version 892 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1054 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) 893 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
1055 --enable-strings enable some replacement system functions
1056 --disable-swapscreen disable swap screen support 894 --disable-swapscreen disable swap screen support
895 --enable-iso14755 enable support for extended ISO 14755 modes
1057 --enable-frills enable support for rarely used features 896 --enable-frills enable support for rarely used features
1058 --enable-linespace enable support for linespace
1059 --enable-24bit enable support for using 24bit visuals if available 897 --enable-24bit enable support for using 24bit visuals if available
1060 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 898 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1061 --enable-selectionscrolling enable scrolling during selections 899 --enable-selectionscrolling enable scrolling during selections
1062 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 900 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1063 --enable-slipwheeling enable slip wheel scrolling (requires previous) 901 --enable-slipwheeling enable slip wheel scrolling (requires previous)
1064 --enable-dmalloc enable Gray Watson's malloc - for debugging use 902 --enable-dmalloc enable Gray Watson's malloc - for debugging use
1065 --enable-dlmalloc enable Doug Lea's malloc - for production use 903 --enable-dlmalloc enable Doug Lea's malloc - for production use
1066 NOTE: enable only one malloc package 904 NOTE: enable only one malloc package
1067 --enable-smart-resize enable smart growth/shrink behaviour 905 --enable-smart-resize enable smart growth/shrink behaviour
1068 --enable-256-color enable 256-color support
1069 --enable-cursor-blink enable blinking cursor
1070 --enable-text-blink enable blinking text 906 --enable-text-blink enable blinking text
1071 --enable-pointer-blank enable pointer blank when typing or inactive pointer 907 --enable-pointer-blank enable pointer blank when typing or inactive pointer
1072 908
1073Optional Packages: 909Optional Packages:
1074 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 910 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1075 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 911 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1076 --with-gnu-ld assume the C compiler uses GNU ld default=no
1077 --with-pic try to use only PIC/non-PIC objects default=use both
1078 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,all) 912 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
1079 --with-res-name=NAME use this as default resource name (default: urxvt) 913 --with-res-name=NAME use this as default resource name (default: urxvt)
1080 --with-res-class=CLASS use this as the resource class (default: URxvt) 914 --with-res-class=CLASS use this as the resource class (default: URxvt)
1081 --with-name=NAME set the basename for the installed binaries (default: urxvt) 915 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1082 --with-term=NAME set the terminal to NAME (default: rxvt) 916 --with-term=NAME set the terminal to NAME (default: rxvt)
1083 --with-terminfo=PATH set the path to the terminfo tree to PATH 917 --with-terminfo=PATH set the path to the terminfo tree to PATH
1534 1368
1535 1369
1536 1370
1537 1371
1538 1372
1373
1374
1375 ac_config_headers="$ac_config_headers config.h:config.h.in"
1376
1377
1539ac_aux_dir= 1378ac_aux_dir=
1540for ac_dir in autoconf $srcdir/autoconf; do 1379for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1541 if test -f $ac_dir/install-sh; then 1380 if test -f $ac_dir/install-sh; then
1542 ac_aux_dir=$ac_dir 1381 ac_aux_dir=$ac_dir
1543 ac_install_sh="$ac_aux_dir/install-sh -c" 1382 ac_install_sh="$ac_aux_dir/install-sh -c"
1544 break 1383 break
1545 elif test -f $ac_dir/install.sh; then 1384 elif test -f $ac_dir/install.sh; then
1551 ac_install_sh="$ac_aux_dir/shtool install -c" 1390 ac_install_sh="$ac_aux_dir/shtool install -c"
1552 break 1391 break
1553 fi 1392 fi
1554done 1393done
1555if test -z "$ac_aux_dir"; then 1394if test -z "$ac_aux_dir"; then
1556 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 1395 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1557echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} 1396echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1558 { (exit 1); exit 1; }; } 1397 { (exit 1); exit 1; }; }
1559fi 1398fi
1560ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1399ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1561ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1400ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1562ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1401ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1563 1402
1564 ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in" 1403# Make sure we can run config.sub.
1404$ac_config_sub sun4 >/dev/null 2>&1 ||
1405 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1406echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1407 { (exit 1); exit 1; }; }
1408
1409echo "$as_me:$LINENO: checking build system type" >&5
1410echo $ECHO_N "checking build system type... $ECHO_C" >&6
1411if test "${ac_cv_build+set}" = set; then
1412 echo $ECHO_N "(cached) $ECHO_C" >&6
1413else
1414 ac_cv_build_alias=$build_alias
1415test -z "$ac_cv_build_alias" &&
1416 ac_cv_build_alias=`$ac_config_guess`
1417test -z "$ac_cv_build_alias" &&
1418 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1419echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1420 { (exit 1); exit 1; }; }
1421ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1422 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1423echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1424 { (exit 1); exit 1; }; }
1425
1426fi
1427echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1428echo "${ECHO_T}$ac_cv_build" >&6
1429build=$ac_cv_build
1430build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1431build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1432build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1433
1434
1435echo "$as_me:$LINENO: checking host system type" >&5
1436echo $ECHO_N "checking host system type... $ECHO_C" >&6
1437if test "${ac_cv_host+set}" = set; then
1438 echo $ECHO_N "(cached) $ECHO_C" >&6
1439else
1440 ac_cv_host_alias=$host_alias
1441test -z "$ac_cv_host_alias" &&
1442 ac_cv_host_alias=$ac_cv_build_alias
1443ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1444 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1445echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1446 { (exit 1); exit 1; }; }
1447
1448fi
1449echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1450echo "${ECHO_T}$ac_cv_host" >&6
1451host=$ac_cv_host
1452host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1453host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1454host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1455
1565 1456
1566 1457
1567VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1458VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1568DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1459DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1569LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1570LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1571echo "" 1460echo ""
1572echo "configuring for rxvt $VERSION" 1461echo "configuring for rxvt $VERSION"
1573echo "" 1462echo ""
1463
1464orig_CXXFLAGS="$CXXFLAGS"
1574 1465
1575 1466
1576ac_ext=c 1467ac_ext=c
1577ac_cpp='$CPP $CPPFLAGS' 1468ac_cpp='$CPP $CPPFLAGS'
1578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3159 3050
3160test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3051test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3161 3052
3162test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3053test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3163 3054
3164for ac_prog in gawk mawk nawk awk
3165do
3166 # Extract the first word of "$ac_prog", so it can be a program name with args.
3167set dummy $ac_prog; ac_word=$2
3168echo "$as_me:$LINENO: checking for $ac_word" >&5
3169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3170if test "${ac_cv_prog_AWK+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3172else
3173 if test -n "$AWK"; then
3174 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3175else
3176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177for as_dir in $PATH
3178do
3179 IFS=$as_save_IFS
3180 test -z "$as_dir" && as_dir=.
3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3183 ac_cv_prog_AWK="$ac_prog"
3184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3185 break 2
3186 fi
3187done
3188done
3189 3055
3190fi
3191fi
3192AWK=$ac_cv_prog_AWK
3193if test -n "$AWK"; then
3194 echo "$as_me:$LINENO: result: $AWK" >&5
3195echo "${ECHO_T}$AWK" >&6
3196else
3197 echo "$as_me:$LINENO: result: no" >&5
3198echo "${ECHO_T}no" >&6
3199fi
3200
3201 test -n "$AWK" && break
3202done
3203
3204
3205ac_ext=c
3206ac_cpp='$CPP $CPPFLAGS'
3207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210
3211
3212LINKER="$CXX"
3213if test x$GCC = xyes && test x$GXX = xyes; then
3214
3215echo "$as_me:$LINENO: checking for main in -lsupc++" >&5
3216echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6
3217if test "${ac_cv_lib_supcpp_main+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3219else
3220 ac_check_lib_save_LIBS=$LIBS
3221LIBS="-lsupc++ $LIBS"
3222cat >conftest.$ac_ext <<_ACEOF
3223/* confdefs.h. */
3224_ACEOF
3225cat confdefs.h >>conftest.$ac_ext
3226cat >>conftest.$ac_ext <<_ACEOF
3227/* end confdefs.h. */
3228
3229
3230int
3231main ()
3232{
3233main ();
3234 ;
3235 return 0;
3236}
3237_ACEOF
3238rm -f conftest.$ac_objext conftest$ac_exeext
3239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3240 (eval $ac_link) 2>conftest.er1
3241 ac_status=$?
3242 grep -v '^ *+' conftest.er1 >conftest.err
3243 rm -f conftest.er1
3244 cat conftest.err >&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } &&
3247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3249 (eval $ac_try) 2>&5
3250 ac_status=$?
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; } &&
3253 { ac_try='test -s conftest$ac_exeext'
3254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3255 (eval $ac_try) 2>&5
3256 ac_status=$?
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }; }; then
3259 ac_cv_lib_supcpp_main=yes
3260else
3261 echo "$as_me: failed program was:" >&5
3262sed 's/^/| /' conftest.$ac_ext >&5
3263
3264ac_cv_lib_supcpp_main=no
3265fi
3266rm -f conftest.err conftest.$ac_objext \
3267 conftest$ac_exeext conftest.$ac_ext
3268LIBS=$ac_check_lib_save_LIBS
3269fi
3270echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5
3271echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6
3272if test $ac_cv_lib_supcpp_main = yes; then
3273
3274 LINKER="$CC"
3275 LIBS="$LIBS -lsupc++"
3276
3277fi
3278
3279fi
3280LINKER=$LINKER
3281
3282
3283CPPFLAGS="-D_GNU_SOURCE -D_XOPEN_SOURCE"
3284
3285
3286ac_ext=cc
3287ac_cpp='$CXXCPP $CPPFLAGS'
3288ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3289ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3290ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3291
3292
3293
3294ac_ext=cc
3295ac_cpp='$CXXCPP $CPPFLAGS'
3296ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3297ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3298ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3299echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3300echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3301if test -z "$CXXCPP"; then
3302 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3304else
3305 # Double quotes because CXXCPP needs to be expanded
3306 for CXXCPP in "$CXX -E" "/lib/cpp"
3307 do
3308 ac_preproc_ok=false
3309for ac_cxx_preproc_warn_flag in '' yes
3310do
3311 # Use a header file that comes with gcc, so configuring glibc
3312 # with a fresh cross-compiler works.
3313 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3314 # <limits.h> exists even on freestanding compilers.
3315 # On the NeXT, cc -E runs the code through the compiler's parser,
3316 # not just through cpp. "Syntax error" is here to catch this case.
3317 cat >conftest.$ac_ext <<_ACEOF
3318/* confdefs.h. */
3319_ACEOF
3320cat confdefs.h >>conftest.$ac_ext
3321cat >>conftest.$ac_ext <<_ACEOF
3322/* end confdefs.h. */
3323#ifdef __STDC__
3324# include <limits.h>
3325#else
3326# include <assert.h>
3327#endif
3328 Syntax error
3329_ACEOF
3330if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3331 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3332 ac_status=$?
3333 grep -v '^ *+' conftest.er1 >conftest.err
3334 rm -f conftest.er1
3335 cat conftest.err >&5
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); } >/dev/null; then
3338 if test -s conftest.err; then
3339 ac_cpp_err=$ac_cxx_preproc_warn_flag
3340 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3341 else
3342 ac_cpp_err=
3343 fi
3344else
3345 ac_cpp_err=yes
3346fi
3347if test -z "$ac_cpp_err"; then
3348 :
3349else
3350 echo "$as_me: failed program was:" >&5
3351sed 's/^/| /' conftest.$ac_ext >&5
3352
3353 # Broken: fails on valid input.
3354continue
3355fi
3356rm -f conftest.err conftest.$ac_ext
3357
3358 # OK, works on sane cases. Now check whether non-existent headers
3359 # can be detected and how.
3360 cat >conftest.$ac_ext <<_ACEOF
3361/* confdefs.h. */
3362_ACEOF
3363cat confdefs.h >>conftest.$ac_ext
3364cat >>conftest.$ac_ext <<_ACEOF
3365/* end confdefs.h. */
3366#include <ac_nonexistent.h>
3367_ACEOF
3368if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3370 ac_status=$?
3371 grep -v '^ *+' conftest.er1 >conftest.err
3372 rm -f conftest.er1
3373 cat conftest.err >&5
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); } >/dev/null; then
3376 if test -s conftest.err; then
3377 ac_cpp_err=$ac_cxx_preproc_warn_flag
3378 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3379 else
3380 ac_cpp_err=
3381 fi
3382else
3383 ac_cpp_err=yes
3384fi
3385if test -z "$ac_cpp_err"; then
3386 # Broken: success on invalid input.
3387continue
3388else
3389 echo "$as_me: failed program was:" >&5
3390sed 's/^/| /' conftest.$ac_ext >&5
3391
3392 # Passes both tests.
3393ac_preproc_ok=:
3394break
3395fi
3396rm -f conftest.err conftest.$ac_ext
3397
3398done
3399# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3400rm -f conftest.err conftest.$ac_ext
3401if $ac_preproc_ok; then
3402 break
3403fi
3404
3405 done
3406 ac_cv_prog_CXXCPP=$CXXCPP
3407
3408fi
3409 CXXCPP=$ac_cv_prog_CXXCPP
3410else
3411 ac_cv_prog_CXXCPP=$CXXCPP
3412fi
3413echo "$as_me:$LINENO: result: $CXXCPP" >&5
3414echo "${ECHO_T}$CXXCPP" >&6
3415ac_preproc_ok=false
3416for ac_cxx_preproc_warn_flag in '' yes
3417do
3418 # Use a header file that comes with gcc, so configuring glibc
3419 # with a fresh cross-compiler works.
3420 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3421 # <limits.h> exists even on freestanding compilers.
3422 # On the NeXT, cc -E runs the code through the compiler's parser,
3423 # not just through cpp. "Syntax error" is here to catch this case.
3424 cat >conftest.$ac_ext <<_ACEOF
3425/* confdefs.h. */
3426_ACEOF
3427cat confdefs.h >>conftest.$ac_ext
3428cat >>conftest.$ac_ext <<_ACEOF
3429/* end confdefs.h. */
3430#ifdef __STDC__
3431# include <limits.h>
3432#else
3433# include <assert.h>
3434#endif
3435 Syntax error
3436_ACEOF
3437if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3438 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3439 ac_status=$?
3440 grep -v '^ *+' conftest.er1 >conftest.err
3441 rm -f conftest.er1
3442 cat conftest.err >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } >/dev/null; then
3445 if test -s conftest.err; then
3446 ac_cpp_err=$ac_cxx_preproc_warn_flag
3447 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3448 else
3449 ac_cpp_err=
3450 fi
3451else
3452 ac_cpp_err=yes
3453fi
3454if test -z "$ac_cpp_err"; then
3455 :
3456else
3457 echo "$as_me: failed program was:" >&5
3458sed 's/^/| /' conftest.$ac_ext >&5
3459
3460 # Broken: fails on valid input.
3461continue
3462fi
3463rm -f conftest.err conftest.$ac_ext
3464
3465 # OK, works on sane cases. Now check whether non-existent headers
3466 # can be detected and how.
3467 cat >conftest.$ac_ext <<_ACEOF
3468/* confdefs.h. */
3469_ACEOF
3470cat confdefs.h >>conftest.$ac_ext
3471cat >>conftest.$ac_ext <<_ACEOF
3472/* end confdefs.h. */
3473#include <ac_nonexistent.h>
3474_ACEOF
3475if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3476 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3477 ac_status=$?
3478 grep -v '^ *+' conftest.er1 >conftest.err
3479 rm -f conftest.er1
3480 cat conftest.err >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } >/dev/null; then
3483 if test -s conftest.err; then
3484 ac_cpp_err=$ac_cxx_preproc_warn_flag
3485 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3486 else
3487 ac_cpp_err=
3488 fi
3489else
3490 ac_cpp_err=yes
3491fi
3492if test -z "$ac_cpp_err"; then
3493 # Broken: success on invalid input.
3494continue
3495else
3496 echo "$as_me: failed program was:" >&5
3497sed 's/^/| /' conftest.$ac_ext >&5
3498
3499 # Passes both tests.
3500ac_preproc_ok=:
3501break
3502fi
3503rm -f conftest.err conftest.$ac_ext
3504
3505done
3506# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3507rm -f conftest.err conftest.$ac_ext
3508if $ac_preproc_ok; then
3509 :
3510else
3511 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3512See \`config.log' for more details." >&5
3513echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3514See \`config.log' for more details." >&2;}
3515 { (exit 1); exit 1; }; }
3516fi
3517
3518ac_ext=cc
3519ac_cpp='$CXXCPP $CPPFLAGS'
3520ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3521ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3522ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3523 3056
3524 3057
3525echo "$as_me:$LINENO: checking for egrep" >&5 3058echo "$as_me:$LINENO: checking for egrep" >&5
3526echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3059echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3527if test "${ac_cv_prog_egrep+set}" = set; then 3060if test "${ac_cv_prog_egrep+set}" = set; then
3602 grep -v '^ *+' conftest.er1 >conftest.err 3135 grep -v '^ *+' conftest.er1 >conftest.err
3603 rm -f conftest.er1 3136 rm -f conftest.er1
3604 cat conftest.err >&5 3137 cat conftest.err >&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } && 3139 (exit $ac_status); } &&
3607 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609 (eval $ac_try) 2>&5 3142 (eval $ac_try) 2>&5
3610 ac_status=$? 3143 ac_status=$?
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }; } && 3145 (exit $ac_status); }; } &&
3656 grep -v '^ *+' conftest.er1 >conftest.err 3189 grep -v '^ *+' conftest.er1 >conftest.err
3657 rm -f conftest.er1 3190 rm -f conftest.er1
3658 cat conftest.err >&5 3191 cat conftest.err >&5
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); } && 3193 (exit $ac_status); } &&
3661 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3663 (eval $ac_try) 2>&5 3196 (eval $ac_try) 2>&5
3664 ac_status=$? 3197 ac_status=$?
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); }; } && 3199 (exit $ac_status); }; } &&
3689 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 3222 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3690 3223
3691fi 3224fi
3692 3225
3693 3226
3694# Check whether --enable-shared or --disable-shared was given.
3695if test "${enable_shared+set}" = set; then
3696 enableval="$enable_shared"
3697 p=${PACKAGE-default}
3698case "$enableval" in
3699yes) enable_shared=yes ;;
3700no) enable_shared=no ;;
3701*)
3702 enable_shared=no
3703 # Look at the argument we got. We use all the common list separators.
3704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3705 for pkg in $enableval; do
3706 if test "X$pkg" = "X$p"; then
3707 enable_shared=yes
3708 fi
3709 done
3710 IFS="$ac_save_ifs"
3711 ;;
3712esac
3713else
3714 enable_shared=no
3715fi; # Check whether --enable-static or --disable-static was given.
3716if test "${enable_static+set}" = set; then
3717 enableval="$enable_static"
3718 p=${PACKAGE-default}
3719case "$enableval" in
3720yes) enable_static=yes ;;
3721no) enable_static=no ;;
3722*)
3723 enable_static=no
3724 # Look at the argument we got. We use all the common list separators.
3725 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3726 for pkg in $enableval; do
3727 if test "X$pkg" = "X$p"; then
3728 enable_static=yes
3729 fi
3730 done
3731 IFS="$ac_save_ifs"
3732 ;;
3733esac
3734else
3735 enable_static=yes
3736fi; # Check whether --enable-fast-install or --disable-fast-install was given.
3737if test "${enable_fast_install+set}" = set; then
3738 enableval="$enable_fast_install"
3739 p=${PACKAGE-default}
3740case "$enableval" in
3741yes) enable_fast_install=yes ;;
3742no) enable_fast_install=no ;;
3743*)
3744 enable_fast_install=no
3745 # Look at the argument we got. We use all the common list separators.
3746 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3747 for pkg in $enableval; do
3748 if test "X$pkg" = "X$p"; then
3749 enable_fast_install=yes
3750 fi
3751 done
3752 IFS="$ac_save_ifs"
3753 ;;
3754esac
3755else
3756 enable_fast_install=yes
3757fi;
3758# Make sure we can run config.sub.
3759$ac_config_sub sun4 >/dev/null 2>&1 ||
3760 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3761echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3762 { (exit 1); exit 1; }; }
3763
3764echo "$as_me:$LINENO: checking build system type" >&5
3765echo $ECHO_N "checking build system type... $ECHO_C" >&6
3766if test "${ac_cv_build+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3768else
3769 ac_cv_build_alias=$build_alias
3770test -z "$ac_cv_build_alias" &&
3771 ac_cv_build_alias=`$ac_config_guess`
3772test -z "$ac_cv_build_alias" &&
3773 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3774echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3775 { (exit 1); exit 1; }; }
3776ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3777 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3778echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3779 { (exit 1); exit 1; }; }
3780
3781fi
3782echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3783echo "${ECHO_T}$ac_cv_build" >&6
3784build=$ac_cv_build
3785build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3786build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3787build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3788
3789
3790echo "$as_me:$LINENO: checking host system type" >&5
3791echo $ECHO_N "checking host system type... $ECHO_C" >&6
3792if test "${ac_cv_host+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3794else
3795 ac_cv_host_alias=$host_alias
3796test -z "$ac_cv_host_alias" &&
3797 ac_cv_host_alias=$ac_cv_build_alias
3798ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3799 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3800echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3801 { (exit 1); exit 1; }; }
3802
3803fi
3804echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3805echo "${ECHO_T}$ac_cv_host" >&6
3806host=$ac_cv_host
3807host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3808host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3809host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3810
3811
3812
3813# Check whether --with-gnu-ld or --without-gnu-ld was given.
3814if test "${with_gnu_ld+set}" = set; then
3815 withval="$with_gnu_ld"
3816 test "$withval" = no || with_gnu_ld=yes
3817else
3818 with_gnu_ld=no
3819fi;
3820ac_prog=ld
3821if test "$GCC" = yes; then
3822 # Check if gcc -print-prog-name=ld gives a path.
3823 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3824echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3825 case $host in
3826 *-*-mingw*)
3827 # gcc leaves a trailing carriage return which upsets mingw
3828 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3829 *)
3830 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3831 esac
3832 case "$ac_prog" in
3833 # Accept absolute paths.
3834 [\\/]* | [A-Za-z]:[\\/]*)
3835 re_direlt='/[^/][^/]*/\.\./'
3836 # Canonicalize the path of ld
3837 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3838 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3839 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3840 done
3841 test -z "$LD" && LD="$ac_prog"
3842 ;;
3843 "")
3844 # If it fails, then pretend we aren't using GCC.
3845 ac_prog=ld
3846 ;;
3847 *)
3848 # If it is relative, then search for the first ld in PATH.
3849 with_gnu_ld=unknown
3850 ;;
3851 esac
3852elif test "$with_gnu_ld" = yes; then
3853 echo "$as_me:$LINENO: checking for GNU ld" >&5
3854echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3855else
3856 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3857echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3858fi
3859if test "${lt_cv_path_LD+set}" = set; then
3860 echo $ECHO_N "(cached) $ECHO_C" >&6
3861else
3862 if test -z "$LD"; then
3863 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3864 for ac_dir in $PATH; do
3865 test -z "$ac_dir" && ac_dir=.
3866 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3867 lt_cv_path_LD="$ac_dir/$ac_prog"
3868 # Check to see if the program is GNU ld. I'd rather use --version,
3869 # but apparently some GNU ld's only accept -v.
3870 # Break only if it was the GNU/non-GNU ld that we prefer.
3871 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3872 test "$with_gnu_ld" != no && break
3873 else
3874 test "$with_gnu_ld" != yes && break
3875 fi
3876 fi
3877 done
3878 IFS="$ac_save_ifs"
3879else
3880 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3881fi
3882fi
3883
3884LD="$lt_cv_path_LD"
3885if test -n "$LD"; then
3886 echo "$as_me:$LINENO: result: $LD" >&5
3887echo "${ECHO_T}$LD" >&6
3888else
3889 echo "$as_me:$LINENO: result: no" >&5
3890echo "${ECHO_T}no" >&6
3891fi
3892test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3893echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3894 { (exit 1); exit 1; }; }
3895echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3896echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3897if test "${lt_cv_prog_gnu_ld+set}" = set; then
3898 echo $ECHO_N "(cached) $ECHO_C" >&6
3899else
3900 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3901if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3902 lt_cv_prog_gnu_ld=yes
3903else
3904 lt_cv_prog_gnu_ld=no
3905fi
3906fi
3907echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3908echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3909with_gnu_ld=$lt_cv_prog_gnu_ld
3910
3911
3912echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3913echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3914if test "${lt_cv_ld_reload_flag+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3916else
3917 lt_cv_ld_reload_flag='-r'
3918fi
3919echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3920echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3921reload_flag=$lt_cv_ld_reload_flag
3922test -n "$reload_flag" && reload_flag=" $reload_flag"
3923
3924echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3925echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3926if test "${lt_cv_path_NM+set}" = set; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
3928else
3929 if test -n "$NM"; then
3930 # Let the user override the test.
3931 lt_cv_path_NM="$NM"
3932else
3933 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3934 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3935 test -z "$ac_dir" && ac_dir=.
3936 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3937 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3938 # Check to see if the nm accepts a BSD-compat flag.
3939 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3940 # nm: unknown option "B" ignored
3941 # Tru64's nm complains that /dev/null is an invalid object file
3942 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3943 lt_cv_path_NM="$tmp_nm -B"
3944 break
3945 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3946 lt_cv_path_NM="$tmp_nm -p"
3947 break
3948 else
3949 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3950 continue # so that we can try to find one that supports BSD flags
3951 fi
3952 fi
3953 done
3954 IFS="$ac_save_ifs"
3955 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3956fi
3957fi
3958
3959NM="$lt_cv_path_NM"
3960echo "$as_me:$LINENO: result: $NM" >&5
3961echo "${ECHO_T}$NM" >&6
3962
3963echo "$as_me:$LINENO: checking whether ln -s works" >&5
3964echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3965LN_S=$as_ln_s
3966if test "$LN_S" = "ln -s"; then
3967 echo "$as_me:$LINENO: result: yes" >&5
3968echo "${ECHO_T}yes" >&6
3969else
3970 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3971echo "${ECHO_T}no, using $LN_S" >&6
3972fi
3973
3974echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3975echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3976if test "${lt_cv_deplibs_check_method+set}" = set; then
3977 echo $ECHO_N "(cached) $ECHO_C" >&6
3978else
3979 lt_cv_file_magic_cmd='$MAGIC_CMD'
3980lt_cv_file_magic_test_file=
3981lt_cv_deplibs_check_method='unknown'
3982# Need to set the preceding variable on all platforms that support
3983# interlibrary dependencies.
3984# 'none' -- dependencies not supported.
3985# `unknown' -- same as none, but documents that we really don't know.
3986# 'pass_all' -- all dependencies passed with no checks.
3987# 'test_compile' -- check by making test program.
3988# ['file_magic [regex]'] -- check by looking for files in library path
3989# which responds to the $file_magic_cmd with a given egrep regex.
3990# If you have `file' or equivalent on your system and you're not sure
3991# whether `pass_all' will *always* work, you probably want this one.
3992
3993case "$host_os" in
3994aix4*)
3995 lt_cv_deplibs_check_method=pass_all
3996 ;;
3997
3998beos*)
3999 lt_cv_deplibs_check_method=pass_all
4000 ;;
4001
4002bsdi4*)
4003 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4004 lt_cv_file_magic_cmd='/usr/bin/file -L'
4005 lt_cv_file_magic_test_file=/shlib/libc.so
4006 ;;
4007
4008cygwin* | mingw* | pw32*)
4009 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4010 lt_cv_file_magic_cmd='$OBJDUMP -f'
4011 ;;
4012
4013darwin*|rhapsody*)
4014 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4015 lt_cv_file_magiic_cmd=/usr/bin/file
4016 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4017 ;;
4018
4019freebsd*)
4020 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4021 case "$host_cpu" in
4022 i*86 )
4023 # Not sure whether the presence of OpenBSD here was a mistake.
4024 # Let's accept both of them until this is cleared up.
4025 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4026 lt_cv_file_magic_cmd=/usr/bin/file
4027 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4028 ;;
4029 esac
4030 else
4031 lt_cv_deplibs_check_method=pass_all
4032 fi
4033 ;;
4034
4035gnu*)
4036 lt_cv_deplibs_check_method=pass_all
4037 ;;
4038
4039hpux10.20*|hpux11*)
4040 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4041 lt_cv_file_magic_cmd=/usr/bin/file
4042 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4043 ;;
4044
4045irix5* | irix6*)
4046 case "$host_os" in
4047 irix5*)
4048 # this will be overridden with pass_all, but let us keep it just in case
4049 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4050 ;;
4051 *)
4052 case "$LD" in
4053 *-32|*"-32 ") libmagic=32-bit;;
4054 *-n32|*"-n32 ") libmagic=N32;;
4055 *-64|*"-64 ") libmagic=64-bit;;
4056 *) libmagic=never-match;;
4057 esac
4058 # this will be overridden with pass_all, but let us keep it just in case
4059 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4060 ;;
4061 esac
4062 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4063 lt_cv_deplibs_check_method=pass_all
4064 ;;
4065
4066# This must be Linux ELF.
4067linux-gnu*)
4068 case "$host_cpu" in
4069 alpha* | i*86 | powerpc* | sparc* | ia64* )
4070 lt_cv_deplibs_check_method=pass_all ;;
4071 *)
4072 # glibc up to 2.1.1 does not perform some relocations on ARM
4073 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4074 esac
4075 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4076 ;;
4077
4078netbsd*)
4079 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4080 lt_cv_deplibs_check_method='file_magic NetBSD/[a-z0-9]* demand paged shared library'
4081 else
4082 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4083 fi
4084 lt_cv_file_magic_cmd='/usr/bin/file -L'
4085 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4086 ;;
4087
4088newos6*)
4089 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4090 lt_cv_file_magic_cmd=/usr/bin/file
4091 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4092 ;;
4093
4094osf3* | osf4* | osf5*)
4095 # this will be overridden with pass_all, but let us keep it just in case
4096 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4097 lt_cv_file_magic_test_file=/shlib/libc.so
4098 lt_cv_deplibs_check_method=pass_all
4099 ;;
4100
4101sco3.2v5*)
4102 lt_cv_deplibs_check_method=pass_all
4103 ;;
4104
4105solaris*)
4106 lt_cv_deplibs_check_method=pass_all
4107 lt_cv_file_magic_test_file=/lib/libc.so
4108 ;;
4109
4110sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4111 case "$host_vendor" in
4112 motorola)
4113 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4114 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4115 ;;
4116 ncr)
4117 lt_cv_deplibs_check_method=pass_all
4118 ;;
4119 sequent)
4120 lt_cv_file_magic_cmd='/bin/file'
4121 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4122 ;;
4123 sni)
4124 lt_cv_file_magic_cmd='/bin/file'
4125 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4126 lt_cv_file_magic_test_file=/lib/libc.so
4127 ;;
4128 esac
4129 ;;
4130esac
4131
4132fi
4133echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4134echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4135file_magic_cmd=$lt_cv_file_magic_cmd
4136deplibs_check_method=$lt_cv_deplibs_check_method
4137
4138
4139
4140
4141
4142
4143
4144# Check for command to grab the raw symbol name followed by C symbol from nm.
4145echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4146echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4147if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4149else
4150
4151# These are sane defaults that work on at least a few old systems.
4152# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4153
4154# Character class describing NM global symbol codes.
4155symcode='[BCDEGRST]'
4156
4157# Regexp to match symbols that can be accessed directly from C.
4158sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4159
4160# Transform the above into a raw symbol and a C symbol.
4161symxfrm='\1 \2\3 \3'
4162
4163# Transform an extracted symbol line into a proper C declaration
4164lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4165
4166# Define system-specific variables.
4167case "$host_os" in
4168aix*)
4169 symcode='[BCDT]'
4170 ;;
4171cygwin* | mingw* | pw32*)
4172 symcode='[ABCDGISTW]'
4173 ;;
4174hpux*) # Its linker distinguishes data from code symbols
4175 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
4176 ;;
4177irix*)
4178 symcode='[BCDEGRST]'
4179 ;;
4180solaris* | sysv5*)
4181 symcode='[BDT]'
4182 ;;
4183sysv4)
4184 symcode='[DFNSTU]'
4185 ;;
4186esac
4187
4188# Handle CRLF in mingw tool chain
4189opt_cr=
4190case "$host_os" in
4191mingw*)
4192 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4193 ;;
4194esac
4195
4196# If we're using GNU nm, then use its standard symbol codes.
4197if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4198 symcode='[ABCDGISTW]'
4199fi
4200
4201# Try without a prefix undercore, then with it.
4202for ac_symprfx in "" "_"; do
4203
4204 # Write the raw and C identifiers.
4205lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4206
4207 # Check to see that the pipe works correctly.
4208 pipe_works=no
4209 rm -f conftest*
4210 cat > conftest.$ac_ext <<EOF
4211#ifdef __cplusplus
4212extern "C" {
4213#endif
4214char nm_test_var;
4215void nm_test_func(){}
4216#ifdef __cplusplus
4217}
4218#endif
4219main(){nm_test_var='a';nm_test_func();return(0);}
4220EOF
4221
4222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4223 (eval $ac_compile) 2>&5
4224 ac_status=$?
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); }; then
4227 # Now try to grab the symbols.
4228 nlist=conftest.nm
4229 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4230 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4231 ac_status=$?
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); } && test -s "$nlist"; then
4234 # Try sorting and uniquifying the output.
4235 if sort "$nlist" | uniq > "$nlist"T; then
4236 mv -f "$nlist"T "$nlist"
4237 else
4238 rm -f "$nlist"T
4239 fi
4240
4241 # Make sure that we snagged all the symbols we need.
4242 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4243 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4244 cat <<EOF > conftest.$ac_ext
4245#ifdef __cplusplus
4246extern "C" {
4247#endif
4248
4249EOF
4250 # Now generate the symbol file.
4251 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4252
4253 cat <<EOF >> conftest.$ac_ext
4254#if defined (__STDC__) && __STDC__
4255# define lt_ptr_t void *
4256#else
4257# define lt_ptr_t char *
4258# define const
4259#endif
4260
4261/* The mapping between symbol names and symbols. */
4262const struct {
4263 const char *name;
4264 lt_ptr_t address;
4265}
4266lt_preloaded_symbols[] =
4267{
4268EOF
4269 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$nlist" >> conftest.$ac_ext
4270 cat <<\EOF >> conftest.$ac_ext
4271 {0, (lt_ptr_t) 0}
4272};
4273
4274#ifdef __cplusplus
4275}
4276#endif
4277EOF
4278 # Now try linking the two files.
4279 mv conftest.$ac_objext conftstm.$ac_objext
4280 save_LIBS="$LIBS"
4281 save_CFLAGS="$CFLAGS"
4282 LIBS="conftstm.$ac_objext"
4283 CFLAGS="$CFLAGS$no_builtin_flag"
4284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4285 (eval $ac_link) 2>&5
4286 ac_status=$?
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); } && test -s conftest; then
4289 pipe_works=yes
4290 fi
4291 LIBS="$save_LIBS"
4292 CFLAGS="$save_CFLAGS"
4293 else
4294 echo "cannot find nm_test_func in $nlist" >&5
4295 fi
4296 else
4297 echo "cannot find nm_test_var in $nlist" >&5
4298 fi
4299 else
4300 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4301 fi
4302 else
4303 echo "$progname: failed program was:" >&5
4304 cat conftest.$ac_ext >&5
4305 fi
4306 rm -f conftest* conftst*
4307
4308 # Do not use the global_symbol_pipe unless it works.
4309 if test "$pipe_works" = yes; then
4310 break
4311 else
4312 lt_cv_sys_global_symbol_pipe=
4313 fi
4314done
4315
4316fi
4317
4318global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4319if test -z "$lt_cv_sys_global_symbol_pipe"; then
4320 global_symbol_to_cdecl=
4321else
4322 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4323fi
4324if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
4325 echo "$as_me:$LINENO: result: failed" >&5
4326echo "${ECHO_T}failed" >&6
4327else
4328 echo "$as_me:$LINENO: result: ok" >&5
4329echo "${ECHO_T}ok" >&6
4330fi
4331
4332echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4333echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4334if test "${ac_cv_header_stdc+set}" = set; then
4335 echo $ECHO_N "(cached) $ECHO_C" >&6
4336else
4337 cat >conftest.$ac_ext <<_ACEOF
4338/* confdefs.h. */
4339_ACEOF
4340cat confdefs.h >>conftest.$ac_ext
4341cat >>conftest.$ac_ext <<_ACEOF
4342/* end confdefs.h. */
4343#include <stdlib.h>
4344#include <stdarg.h>
4345#include <string.h>
4346#include <float.h>
4347
4348int
4349main ()
4350{
4351
4352 ;
4353 return 0;
4354}
4355_ACEOF
4356rm -f conftest.$ac_objext
4357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4358 (eval $ac_compile) 2>conftest.er1
4359 ac_status=$?
4360 grep -v '^ *+' conftest.er1 >conftest.err
4361 rm -f conftest.er1
4362 cat conftest.err >&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); } &&
4365 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367 (eval $ac_try) 2>&5
4368 ac_status=$?
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }; } &&
4371 { ac_try='test -s conftest.$ac_objext'
4372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4373 (eval $ac_try) 2>&5
4374 ac_status=$?
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); }; }; then
4377 ac_cv_header_stdc=yes
4378else
4379 echo "$as_me: failed program was:" >&5
4380sed 's/^/| /' conftest.$ac_ext >&5
4381
4382ac_cv_header_stdc=no
4383fi
4384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4385
4386if test $ac_cv_header_stdc = yes; then
4387 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4388 cat >conftest.$ac_ext <<_ACEOF
4389/* confdefs.h. */
4390_ACEOF
4391cat confdefs.h >>conftest.$ac_ext
4392cat >>conftest.$ac_ext <<_ACEOF
4393/* end confdefs.h. */
4394#include <string.h>
4395
4396_ACEOF
4397if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4398 $EGREP "memchr" >/dev/null 2>&1; then
4399 :
4400else
4401 ac_cv_header_stdc=no
4402fi
4403rm -f conftest*
4404
4405fi
4406
4407if test $ac_cv_header_stdc = yes; then
4408 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4409 cat >conftest.$ac_ext <<_ACEOF
4410/* confdefs.h. */
4411_ACEOF
4412cat confdefs.h >>conftest.$ac_ext
4413cat >>conftest.$ac_ext <<_ACEOF
4414/* end confdefs.h. */
4415#include <stdlib.h>
4416
4417_ACEOF
4418if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4419 $EGREP "free" >/dev/null 2>&1; then
4420 :
4421else
4422 ac_cv_header_stdc=no
4423fi
4424rm -f conftest*
4425
4426fi
4427
4428if test $ac_cv_header_stdc = yes; then
4429 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4430 if test "$cross_compiling" = yes; then
4431 :
4432else
4433 cat >conftest.$ac_ext <<_ACEOF
4434/* confdefs.h. */
4435_ACEOF
4436cat confdefs.h >>conftest.$ac_ext
4437cat >>conftest.$ac_ext <<_ACEOF
4438/* end confdefs.h. */
4439#include <ctype.h>
4440#if ((' ' & 0x0FF) == 0x020)
4441# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4442# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4443#else
4444# define ISLOWER(c) \
4445 (('a' <= (c) && (c) <= 'i') \
4446 || ('j' <= (c) && (c) <= 'r') \
4447 || ('s' <= (c) && (c) <= 'z'))
4448# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4449#endif
4450
4451#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4452int
4453main ()
4454{
4455 int i;
4456 for (i = 0; i < 256; i++)
4457 if (XOR (islower (i), ISLOWER (i))
4458 || toupper (i) != TOUPPER (i))
4459 exit(2);
4460 exit (0);
4461}
4462_ACEOF
4463rm -f conftest$ac_exeext
4464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4465 (eval $ac_link) 2>&5
4466 ac_status=$?
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470 (eval $ac_try) 2>&5
4471 ac_status=$?
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); }; }; then
4474 :
4475else
4476 echo "$as_me: program exited with status $ac_status" >&5
4477echo "$as_me: failed program was:" >&5
4478sed 's/^/| /' conftest.$ac_ext >&5
4479
4480( exit $ac_status )
4481ac_cv_header_stdc=no
4482fi
4483rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4484fi
4485fi
4486fi
4487echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4488echo "${ECHO_T}$ac_cv_header_stdc" >&6
4489if test $ac_cv_header_stdc = yes; then
4490
4491cat >>confdefs.h <<\_ACEOF
4492#define STDC_HEADERS 1
4493_ACEOF
4494
4495fi
4496
4497# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4508 inttypes.h stdint.h unistd.h
4509do
4510as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4511echo "$as_me:$LINENO: checking for $ac_header" >&5
4512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4513if eval "test \"\${$as_ac_Header+set}\" = set"; then
4514 echo $ECHO_N "(cached) $ECHO_C" >&6
4515else
4516 cat >conftest.$ac_ext <<_ACEOF
4517/* confdefs.h. */
4518_ACEOF
4519cat confdefs.h >>conftest.$ac_ext
4520cat >>conftest.$ac_ext <<_ACEOF
4521/* end confdefs.h. */
4522$ac_includes_default
4523
4524#include <$ac_header>
4525_ACEOF
4526rm -f conftest.$ac_objext
4527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4528 (eval $ac_compile) 2>conftest.er1
4529 ac_status=$?
4530 grep -v '^ *+' conftest.er1 >conftest.err
4531 rm -f conftest.er1
4532 cat conftest.err >&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); } &&
4535 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537 (eval $ac_try) 2>&5
4538 ac_status=$?
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; } &&
4541 { ac_try='test -s conftest.$ac_objext'
4542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4543 (eval $ac_try) 2>&5
4544 ac_status=$?
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }; }; then
4547 eval "$as_ac_Header=yes"
4548else
4549 echo "$as_me: failed program was:" >&5
4550sed 's/^/| /' conftest.$ac_ext >&5
4551
4552eval "$as_ac_Header=no"
4553fi
4554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4555fi
4556echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4557echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4558if test `eval echo '${'$as_ac_Header'}'` = yes; then
4559 cat >>confdefs.h <<_ACEOF
4560#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4561_ACEOF
4562
4563fi
4564
4565done
4566
4567
4568
4569for ac_header in dlfcn.h
4570do
4571as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4572if eval "test \"\${$as_ac_Header+set}\" = set"; then
4573 echo "$as_me:$LINENO: checking for $ac_header" >&5
4574echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4575if eval "test \"\${$as_ac_Header+set}\" = set"; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4577fi
4578echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4579echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4580else
4581 # Is the header compilable?
4582echo "$as_me:$LINENO: checking $ac_header usability" >&5
4583echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4584cat >conftest.$ac_ext <<_ACEOF
4585/* confdefs.h. */
4586_ACEOF
4587cat confdefs.h >>conftest.$ac_ext
4588cat >>conftest.$ac_ext <<_ACEOF
4589/* end confdefs.h. */
4590$ac_includes_default
4591#include <$ac_header>
4592_ACEOF
4593rm -f conftest.$ac_objext
4594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4595 (eval $ac_compile) 2>conftest.er1
4596 ac_status=$?
4597 grep -v '^ *+' conftest.er1 >conftest.err
4598 rm -f conftest.er1
4599 cat conftest.err >&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); } &&
4602 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4604 (eval $ac_try) 2>&5
4605 ac_status=$?
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); }; } &&
4608 { ac_try='test -s conftest.$ac_objext'
4609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4610 (eval $ac_try) 2>&5
4611 ac_status=$?
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); }; }; then
4614 ac_header_compiler=yes
4615else
4616 echo "$as_me: failed program was:" >&5
4617sed 's/^/| /' conftest.$ac_ext >&5
4618
4619ac_header_compiler=no
4620fi
4621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4622echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4623echo "${ECHO_T}$ac_header_compiler" >&6
4624
4625# Is the header present?
4626echo "$as_me:$LINENO: checking $ac_header presence" >&5
4627echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4628cat >conftest.$ac_ext <<_ACEOF
4629/* confdefs.h. */
4630_ACEOF
4631cat confdefs.h >>conftest.$ac_ext
4632cat >>conftest.$ac_ext <<_ACEOF
4633/* end confdefs.h. */
4634#include <$ac_header>
4635_ACEOF
4636if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4638 ac_status=$?
4639 grep -v '^ *+' conftest.er1 >conftest.err
4640 rm -f conftest.er1
4641 cat conftest.err >&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); } >/dev/null; then
4644 if test -s conftest.err; then
4645 ac_cpp_err=$ac_cxx_preproc_warn_flag
4646 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4647 else
4648 ac_cpp_err=
4649 fi
4650else
4651 ac_cpp_err=yes
4652fi
4653if test -z "$ac_cpp_err"; then
4654 ac_header_preproc=yes
4655else
4656 echo "$as_me: failed program was:" >&5
4657sed 's/^/| /' conftest.$ac_ext >&5
4658
4659 ac_header_preproc=no
4660fi
4661rm -f conftest.err conftest.$ac_ext
4662echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4663echo "${ECHO_T}$ac_header_preproc" >&6
4664
4665# So? What about this header?
4666case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4667 yes:no: )
4668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4669echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4671echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4672 ac_header_preproc=yes
4673 ;;
4674 no:yes:* )
4675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4676echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4678echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4680echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4682echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4684echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4686echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4687 (
4688 cat <<\_ASBOX
4689## ------------------------------------------ ##
4690## Report this to the AC_PACKAGE_NAME lists. ##
4691## ------------------------------------------ ##
4692_ASBOX
4693 ) |
4694 sed "s/^/$as_me: WARNING: /" >&2
4695 ;;
4696esac
4697echo "$as_me:$LINENO: checking for $ac_header" >&5
4698echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4699if eval "test \"\${$as_ac_Header+set}\" = set"; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4701else
4702 eval "$as_ac_Header=\$ac_header_preproc"
4703fi
4704echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4705echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4706
4707fi
4708if test `eval echo '${'$as_ac_Header'}'` = yes; then
4709 cat >>confdefs.h <<_ACEOF
4710#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4711_ACEOF
4712
4713fi
4714
4715done
4716
4717
4718
4719
4720
4721# Only perform the check for file, if the check method requires it
4722case "$deplibs_check_method" in
4723file_magic*)
4724 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4725 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4726echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4727if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4728 echo $ECHO_N "(cached) $ECHO_C" >&6
4729else
4730 case "$MAGIC_CMD" in
4731 /*)
4732 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4733 ;;
4734 ?:/*)
4735 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4736 ;;
4737 *)
4738 ac_save_MAGIC_CMD="$MAGIC_CMD"
4739 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4740 ac_dummy="/usr/bin:$PATH"
4741 for ac_dir in $ac_dummy; do
4742 test -z "$ac_dir" && ac_dir=.
4743 if test -f $ac_dir/${ac_tool_prefix}file; then
4744 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4745 if test -n "$file_magic_test_file"; then
4746 case "$deplibs_check_method" in
4747 "file_magic "*)
4748 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4749 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4750 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4751 egrep "$file_magic_regex" > /dev/null; then
4752 :
4753 else
4754 cat <<EOF 1>&2
4755
4756*** Warning: the command libtool uses to detect shared libraries,
4757*** $file_magic_cmd, produces output that libtool cannot recognize.
4758*** The result is that libtool may fail to recognize shared libraries
4759*** as such. This will affect the creation of libtool libraries that
4760*** depend on shared libraries, but programs linked with such libtool
4761*** libraries will work regardless of this problem. Nevertheless, you
4762*** may want to report the problem to your system manager and/or to
4763*** bug-libtool@gnu.org
4764
4765EOF
4766 fi ;;
4767 esac
4768 fi
4769 break
4770 fi
4771 done
4772 IFS="$ac_save_ifs"
4773 MAGIC_CMD="$ac_save_MAGIC_CMD"
4774 ;;
4775esac
4776fi
4777
4778MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4779if test -n "$MAGIC_CMD"; then
4780 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4781echo "${ECHO_T}$MAGIC_CMD" >&6
4782else
4783 echo "$as_me:$LINENO: result: no" >&5
4784echo "${ECHO_T}no" >&6
4785fi
4786
4787if test -z "$lt_cv_path_MAGIC_CMD"; then
4788 if test -n "$ac_tool_prefix"; then
4789 echo "$as_me:$LINENO: checking for file" >&5
4790echo $ECHO_N "checking for file... $ECHO_C" >&6
4791if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4792 echo $ECHO_N "(cached) $ECHO_C" >&6
4793else
4794 case "$MAGIC_CMD" in
4795 /*)
4796 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4797 ;;
4798 ?:/*)
4799 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4800 ;;
4801 *)
4802 ac_save_MAGIC_CMD="$MAGIC_CMD"
4803 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4804 ac_dummy="/usr/bin:$PATH"
4805 for ac_dir in $ac_dummy; do
4806 test -z "$ac_dir" && ac_dir=.
4807 if test -f $ac_dir/file; then
4808 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4809 if test -n "$file_magic_test_file"; then
4810 case "$deplibs_check_method" in
4811 "file_magic "*)
4812 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4813 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4814 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4815 egrep "$file_magic_regex" > /dev/null; then
4816 :
4817 else
4818 cat <<EOF 1>&2
4819
4820*** Warning: the command libtool uses to detect shared libraries,
4821*** $file_magic_cmd, produces output that libtool cannot recognize.
4822*** The result is that libtool may fail to recognize shared libraries
4823*** as such. This will affect the creation of libtool libraries that
4824*** depend on shared libraries, but programs linked with such libtool
4825*** libraries will work regardless of this problem. Nevertheless, you
4826*** may want to report the problem to your system manager and/or to
4827*** bug-libtool@gnu.org
4828
4829EOF
4830 fi ;;
4831 esac
4832 fi
4833 break
4834 fi
4835 done
4836 IFS="$ac_save_ifs"
4837 MAGIC_CMD="$ac_save_MAGIC_CMD"
4838 ;;
4839esac
4840fi
4841
4842MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4843if test -n "$MAGIC_CMD"; then
4844 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4845echo "${ECHO_T}$MAGIC_CMD" >&6
4846else
4847 echo "$as_me:$LINENO: result: no" >&5
4848echo "${ECHO_T}no" >&6
4849fi
4850
4851 else
4852 MAGIC_CMD=:
4853 fi
4854fi
4855
4856 fi
4857 ;;
4858esac
4859
4860if test -n "$ac_tool_prefix"; then
4861 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4862set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4863echo "$as_me:$LINENO: checking for $ac_word" >&5
4864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4865if test "${ac_cv_prog_RANLIB+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4867else
4868 if test -n "$RANLIB"; then
4869 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4870else
4871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872for as_dir in $PATH
4873do
4874 IFS=$as_save_IFS
4875 test -z "$as_dir" && as_dir=.
4876 for ac_exec_ext in '' $ac_executable_extensions; do
4877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4878 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4880 break 2
4881 fi
4882done
4883done
4884
4885fi
4886fi
4887RANLIB=$ac_cv_prog_RANLIB
4888if test -n "$RANLIB"; then
4889 echo "$as_me:$LINENO: result: $RANLIB" >&5
4890echo "${ECHO_T}$RANLIB" >&6
4891else
4892 echo "$as_me:$LINENO: result: no" >&5
4893echo "${ECHO_T}no" >&6
4894fi
4895
4896fi
4897if test -z "$ac_cv_prog_RANLIB"; then
4898 ac_ct_RANLIB=$RANLIB
4899 # Extract the first word of "ranlib", so it can be a program name with args.
4900set dummy ranlib; ac_word=$2
4901echo "$as_me:$LINENO: checking for $ac_word" >&5
4902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4903if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4905else
4906 if test -n "$ac_ct_RANLIB"; then
4907 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4908else
4909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910for as_dir in $PATH
4911do
4912 IFS=$as_save_IFS
4913 test -z "$as_dir" && as_dir=.
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4916 ac_cv_prog_ac_ct_RANLIB="ranlib"
4917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4918 break 2
4919 fi
4920done
4921done
4922
4923 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4924fi
4925fi
4926ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4927if test -n "$ac_ct_RANLIB"; then
4928 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4929echo "${ECHO_T}$ac_ct_RANLIB" >&6
4930else
4931 echo "$as_me:$LINENO: result: no" >&5
4932echo "${ECHO_T}no" >&6
4933fi
4934
4935 RANLIB=$ac_ct_RANLIB
4936else
4937 RANLIB="$ac_cv_prog_RANLIB"
4938fi
4939
4940if test -n "$ac_tool_prefix"; then
4941 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4942set dummy ${ac_tool_prefix}strip; ac_word=$2
4943echo "$as_me:$LINENO: checking for $ac_word" >&5
4944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4945if test "${ac_cv_prog_STRIP+set}" = set; then
4946 echo $ECHO_N "(cached) $ECHO_C" >&6
4947else
4948 if test -n "$STRIP"; then
4949 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4950else
4951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952for as_dir in $PATH
4953do
4954 IFS=$as_save_IFS
4955 test -z "$as_dir" && as_dir=.
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4958 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4960 break 2
4961 fi
4962done
4963done
4964
4965fi
4966fi
4967STRIP=$ac_cv_prog_STRIP
4968if test -n "$STRIP"; then
4969 echo "$as_me:$LINENO: result: $STRIP" >&5
4970echo "${ECHO_T}$STRIP" >&6
4971else
4972 echo "$as_me:$LINENO: result: no" >&5
4973echo "${ECHO_T}no" >&6
4974fi
4975
4976fi
4977if test -z "$ac_cv_prog_STRIP"; then
4978 ac_ct_STRIP=$STRIP
4979 # Extract the first word of "strip", so it can be a program name with args.
4980set dummy strip; ac_word=$2
4981echo "$as_me:$LINENO: checking for $ac_word" >&5
4982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4983if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4984 echo $ECHO_N "(cached) $ECHO_C" >&6
4985else
4986 if test -n "$ac_ct_STRIP"; then
4987 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4988else
4989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990for as_dir in $PATH
4991do
4992 IFS=$as_save_IFS
4993 test -z "$as_dir" && as_dir=.
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4996 ac_cv_prog_ac_ct_STRIP="strip"
4997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4998 break 2
4999 fi
5000done
5001done
5002
5003 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5004fi
5005fi
5006ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5007if test -n "$ac_ct_STRIP"; then
5008 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5009echo "${ECHO_T}$ac_ct_STRIP" >&6
5010else
5011 echo "$as_me:$LINENO: result: no" >&5
5012echo "${ECHO_T}no" >&6
5013fi
5014
5015 STRIP=$ac_ct_STRIP
5016else
5017 STRIP="$ac_cv_prog_STRIP"
5018fi
5019
5020
5021enable_dlopen=no
5022enable_win32_dll=no
5023
5024# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5025if test "${enable_libtool_lock+set}" = set; then
5026 enableval="$enable_libtool_lock"
5027
5028fi;
5029test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5030
5031# Some flags need to be propagated to the compiler or linker for good
5032# libtool support.
5033case "$host" in
5034*-*-irix6*)
5035 # Find out which ABI we are using.
5036 echo '#line 5036 "configure"' > conftest.$ac_ext
5037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5038 (eval $ac_compile) 2>&5
5039 ac_status=$?
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); }; then
5042 case "`/usr/bin/file conftest.$ac_objext`" in
5043 *32-bit*)
5044 LD="${LD-ld} -32"
5045 ;;
5046 *N32*)
5047 LD="${LD-ld} -n32"
5048 ;;
5049 *64-bit*)
5050 LD="${LD-ld} -64"
5051 ;;
5052 esac
5053 fi
5054 rm -rf conftest*
5055 ;;
5056
5057*-*-sco3.2v5*)
5058 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5059 SAVE_CFLAGS="$CFLAGS"
5060 CFLAGS="$CFLAGS -belf"
5061 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5062echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5063if test "${lt_cv_cc_needs_belf+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5065else
5066
5067
5068 ac_ext=c 3227ac_ext=c
5069ac_cpp='$CPP $CPPFLAGS' 3228ac_cpp='$CPP $CPPFLAGS'
5070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5072ac_compiler_gnu=$ac_cv_c_compiler_gnu 3231ac_compiler_gnu=$ac_cv_c_compiler_gnu
5073 3232
3233
3234LINKER="$CXX"
3235if test x$GCC = xyes && test x$GXX = xyes; then
3236 echo "$as_me:$LINENO: checking for main in -lsupc++" >&5
3237echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6
3238if test "${ac_cv_lib_supcpp_main+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
3240else
3241 ac_check_lib_save_LIBS=$LIBS
3242LIBS="-lsupc++ $LIBS"
5074 cat >conftest.$ac_ext <<_ACEOF 3243cat >conftest.$ac_ext <<_ACEOF
5075/* confdefs.h. */ 3244/* confdefs.h. */
5076_ACEOF 3245_ACEOF
5077cat confdefs.h >>conftest.$ac_ext 3246cat confdefs.h >>conftest.$ac_ext
5078cat >>conftest.$ac_ext <<_ACEOF 3247cat >>conftest.$ac_ext <<_ACEOF
5079/* end confdefs.h. */ 3248/* end confdefs.h. */
5080 3249
3250
5081int 3251int
5082main () 3252main ()
5083{ 3253{
5084 3254main ();
5085 ; 3255 ;
5086 return 0; 3256 return 0;
5087} 3257}
5088_ACEOF 3258_ACEOF
5089rm -f conftest.$ac_objext conftest$ac_exeext 3259rm -f conftest.$ac_objext conftest$ac_exeext
5105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106 (eval $ac_try) 2>&5 3276 (eval $ac_try) 2>&5
5107 ac_status=$? 3277 ac_status=$?
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); }; }; then 3279 (exit $ac_status); }; }; then
5110 lt_cv_cc_needs_belf=yes 3280 ac_cv_lib_supcpp_main=yes
5111else 3281else
5112 echo "$as_me: failed program was:" >&5 3282 echo "$as_me: failed program was:" >&5
5113sed 's/^/| /' conftest.$ac_ext >&5 3283sed 's/^/| /' conftest.$ac_ext >&5
5114 3284
5115lt_cv_cc_needs_belf=no 3285ac_cv_lib_supcpp_main=no
5116fi 3286fi
5117rm -f conftest.err conftest.$ac_objext \ 3287rm -f conftest.err conftest.$ac_objext \
5118 conftest$ac_exeext conftest.$ac_ext 3288 conftest$ac_exeext conftest.$ac_ext
3289LIBS=$ac_check_lib_save_LIBS
3290fi
3291echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5
3292echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6
3293if test $ac_cv_lib_supcpp_main = yes; then
3294
3295 LINKER="$CC"
3296 LIBS="$LIBS -lsupc++"
3297
3298fi
3299
3300fi
3301LINKER=$LINKER
3302
3303
5119 ac_ext=cc 3304ac_ext=cc
5120ac_cpp='$CXXCPP $CPPFLAGS' 3305ac_cpp='$CXXCPP $CPPFLAGS'
5121ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3306ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5122ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3307ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5123ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3308ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5124 3309
3310if test -z "$orig_CXXFLAGS"; then
3311 if test x$GCC = xyes && test "x$GXX" = xyes; then
3312 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs"
3313
3314cat >conftest.$ac_ext <<_ACEOF
3315int i;
3316_ACEOF
3317rm -f conftest.$ac_objext
3318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3319 (eval $ac_compile) 2>conftest.er1
3320 ac_status=$?
3321 grep -v '^ *+' conftest.er1 >conftest.err
3322 rm -f conftest.er1
3323 cat conftest.err >&5
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); } &&
3326 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3328 (eval $ac_try) 2>&5
3329 ac_status=$?
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); }; } &&
3332 { ac_try='test -s conftest.$ac_objext'
3333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3334 (eval $ac_try) 2>&5
3335 ac_status=$?
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); }; }; then
3338 :
3339else
3340 echo "$as_me: failed program was:" >&5
3341sed 's/^/| /' conftest.$ac_ext >&5
3342
3343CXXFLAGS="-g -O3"
5125fi 3344fi
5126echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 3345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5127echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 3346 else
5128 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 3347 CXXFLAGS="-O"
5129 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5130 CFLAGS="$SAVE_CFLAGS"
5131 fi 3348 fi
5132 ;; 3349 CFLAGS="$CXXFLAGS"
3350fi
5133 3351
5134 3352
3353cat >>confdefs.h <<\_ACEOF
3354#define _GNU_SOURCE 1
3355_ACEOF
3356
3357
3358case $host in
3359 *-*-solaris* )
3360
3361cat >>confdefs.h <<\_ACEOF
3362#define _XOPEN_SOURCE_EXTENDED 1
3363_ACEOF
3364
3365
3366cat >>confdefs.h <<\_ACEOF
3367#define _XOPEN_SOURCE 2
3368_ACEOF
3369
3370
3371cat >>confdefs.h <<\_ACEOF
3372#define __EXTENSIONS__ 1
3373_ACEOF
3374
3375 ;;
5135esac 3376esac
5136 3377
5137# Sed substitution that helps us do robust quoting. It backslashifies
5138# metacharacters that are still active within double-quoted strings.
5139Xsed='sed -e s/^X//'
5140sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5141 3378
5142# Same as above, but do not quote variable references.
5143double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5144
5145# Sed substitution to delay expansion of an escaped shell variable in a
5146# double_quote_subst'ed string.
5147delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5148
5149# Constants:
5150rm="rm -f"
5151
5152# Global variables:
5153default_ofile=libtool
5154can_build_shared=yes
5155
5156# All known linkers require a `.a' archive for static linking (except M$VC,
5157# which needs '.lib').
5158libext=a
5159ltmain="$ac_aux_dir/ltmain.sh"
5160ofile="$default_ofile"
5161with_gnu_ld="$lt_cv_prog_gnu_ld"
5162need_locks="$enable_libtool_lock"
5163
5164old_CC="$CC"
5165old_CFLAGS="$CFLAGS"
5166
5167# Set sane defaults for various variables
5168test -z "$AR" && AR=ar
5169test -z "$AR_FLAGS" && AR_FLAGS=cru
5170test -z "$AS" && AS=as
5171test -z "$CC" && CC=cc
5172test -z "$DLLTOOL" && DLLTOOL=dlltool
5173test -z "$LD" && LD=ld
5174test -z "$LN_S" && LN_S="ln -s"
5175test -z "$MAGIC_CMD" && MAGIC_CMD=file
5176test -z "$NM" && NM=nm
5177test -z "$OBJDUMP" && OBJDUMP=objdump
5178test -z "$RANLIB" && RANLIB=:
5179test -z "$STRIP" && STRIP=:
5180test -z "$ac_objext" && ac_objext=o
5181
5182if test x"$host" != x"$build"; then
5183 ac_tool_prefix=${host_alias}-
5184else
5185 ac_tool_prefix=
5186fi
5187
5188# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5189case "$host_os" in
5190linux-gnu*) ;;
5191linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5192esac
5193
5194case "$host_os" in
5195aix3*)
5196 # AIX sometimes has problems with the GCC collect2 program. For some
5197 # reason, if we set the COLLECT_NAMES environment variable, the problems
5198 # vanish in a puff of smoke.
5199 if test "X${COLLECT_NAMES+set}" != Xset; then
5200 COLLECT_NAMES=
5201 export COLLECT_NAMES
5202 fi
5203 ;;
5204esac
5205
5206# Determine commands to create old-style static archives.
5207old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5208old_postinstall_cmds='chmod 644 $oldlib'
5209old_postuninstall_cmds=
5210
5211if test -n "$RANLIB"; then
5212 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5213 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5214fi
5215
5216# Allow CC to be a program name with arguments.
5217set dummy $CC
5218compiler="$2"
5219
5220## FIXME: this should be a separate macro
5221##
5222echo "$as_me:$LINENO: checking for objdir" >&5 3379echo "$as_me:$LINENO: checking for setlocale" >&5
5223echo $ECHO_N "checking for objdir... $ECHO_C" >&6 3380echo $ECHO_N "checking for setlocale... $ECHO_C" >&6
5224rm -f .libs 2>/dev/null
5225mkdir .libs 2>/dev/null
5226if test -d .libs; then
5227 objdir=.libs
5228else
5229 # MS-DOS does not allow filenames that begin with a dot.
5230 objdir=_libs
5231fi
5232rmdir .libs 2>/dev/null
5233echo "$as_me:$LINENO: result: $objdir" >&5
5234echo "${ECHO_T}$objdir" >&6
5235##
5236## END FIXME
5237
5238
5239## FIXME: this should be a separate macro
5240##
5241
5242# Check whether --with-pic or --without-pic was given.
5243if test "${with_pic+set}" = set; then
5244 withval="$with_pic"
5245 pic_mode="$withval"
5246else
5247 pic_mode=default
5248fi;
5249test -z "$pic_mode" && pic_mode=default
5250
5251# We assume here that the value for lt_cv_prog_cc_pic will not be cached
5252# in isolation, and that seeing it set (from the cache) indicates that
5253# the associated values are set (in the cache) correctly too.
5254echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5255echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5256if test "${lt_cv_prog_cc_pic+set}" = set; then 3381if test "${ac_cv_func_setlocale+set}" = set; then
5257 echo $ECHO_N "(cached) $ECHO_C" >&6 3382 echo $ECHO_N "(cached) $ECHO_C" >&6
5258else 3383else
5259 lt_cv_prog_cc_pic=
5260 lt_cv_prog_cc_shlib=
5261 lt_cv_prog_cc_wl=
5262 lt_cv_prog_cc_static=
5263 lt_cv_prog_cc_no_builtin=
5264 lt_cv_prog_cc_can_build_shared=$can_build_shared
5265
5266 if test "$GCC" = yes; then
5267 lt_cv_prog_cc_wl='-Wl,'
5268 lt_cv_prog_cc_static='-static'
5269
5270 case "$host_os" in
5271 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
5272 # PIC is the default for these OSes.
5273 ;;
5274 aix*)
5275 # Below there is a dirty hack to force normal static linking with -ldl
5276 # The problem is because libdl dynamically linked with both libc and
5277 # libC (AIX C++ library), which obviously doesn't included in libraries
5278 # list by gcc. This cause undefined symbols with -static flags.
5279 # This hack allows C programs to be linked with "-static -ldl", but
5280 # we not sure about C++ programs.
5281 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5282 ;;
5283 cygwin* | mingw* | pw32* | os2*)
5284 # This hack is so that the source file can tell whether it is being
5285 # built for inclusion in a dll (and should export symbols for example).
5286 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5287 ;;
5288 amigaos*)
5289 # FIXME: we need at least 68020 code to build shared libraries, but
5290 # adding the `-m68020' flag to GCC prevents building anything better,
5291 # like `-m68040'.
5292 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5293 ;;
5294 sysv4*MP*)
5295 if test -d /usr/nec; then
5296 lt_cv_prog_cc_pic=-Kconform_pic
5297 fi
5298 ;;
5299 *)
5300 lt_cv_prog_cc_pic='-fPIC'
5301 ;;
5302 esac
5303 else
5304 # PORTME Check for PIC flags for the system compiler.
5305 case "$host_os" in
5306 aix3* | aix4*)
5307 # All AIX code is PIC.
5308 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5309 ;;
5310
5311 hpux9* | hpux10* | hpux11*)
5312 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5313 lt_cv_prog_cc_wl='-Wl,'
5314 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5315 lt_cv_prog_cc_pic='+Z'
5316 ;;
5317
5318 irix5* | irix6*)
5319 lt_cv_prog_cc_wl='-Wl,'
5320 lt_cv_prog_cc_static='-non_shared'
5321 # PIC (with -KPIC) is the default.
5322 ;;
5323
5324 cygwin* | mingw* | pw32* | os2*)
5325 # This hack is so that the source file can tell whether it is being
5326 # built for inclusion in a dll (and should export symbols for example).
5327 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5328 ;;
5329
5330 newsos6)
5331 lt_cv_prog_cc_pic='-KPIC'
5332 lt_cv_prog_cc_static='-Bstatic'
5333 ;;
5334
5335 osf3* | osf4* | osf5*)
5336 # All OSF/1 code is PIC.
5337 lt_cv_prog_cc_wl='-Wl,'
5338 lt_cv_prog_cc_static='-non_shared'
5339 ;;
5340
5341 sco3.2v5*)
5342 lt_cv_prog_cc_pic='-Kpic'
5343 lt_cv_prog_cc_static='-dn'
5344 lt_cv_prog_cc_shlib='-belf'
5345 ;;
5346
5347 solaris*)
5348 lt_cv_prog_cc_pic='-KPIC'
5349 lt_cv_prog_cc_static='-Bstatic'
5350 lt_cv_prog_cc_wl='-Wl,'
5351 ;;
5352
5353 sunos4*)
5354 lt_cv_prog_cc_pic='-PIC'
5355 lt_cv_prog_cc_static='-Bstatic'
5356 lt_cv_prog_cc_wl='-Qoption ld '
5357 ;;
5358
5359 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5360 lt_cv_prog_cc_pic='-KPIC'
5361 lt_cv_prog_cc_static='-Bstatic'
5362 if test "x$host_vendor" = xsni; then
5363 lt_cv_prog_cc_wl='-LD'
5364 else
5365 lt_cv_prog_cc_wl='-Wl,'
5366 fi
5367 ;;
5368
5369 uts4*)
5370 lt_cv_prog_cc_pic='-pic'
5371 lt_cv_prog_cc_static='-Bstatic'
5372 ;;
5373
5374 sysv4*MP*)
5375 if test -d /usr/nec ;then
5376 lt_cv_prog_cc_pic='-Kconform_pic'
5377 lt_cv_prog_cc_static='-Bstatic'
5378 fi
5379 ;;
5380
5381 *)
5382 lt_cv_prog_cc_can_build_shared=no
5383 ;;
5384 esac
5385 fi
5386
5387fi
5388
5389if test -z "$lt_cv_prog_cc_pic"; then
5390 echo "$as_me:$LINENO: result: none" >&5
5391echo "${ECHO_T}none" >&6
5392else
5393 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5394echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5395
5396 # Check to make sure the pic_flag actually works.
5397 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5398echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5399 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5400 echo $ECHO_N "(cached) $ECHO_C" >&6
5401else
5402 save_CFLAGS="$CFLAGS"
5403 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5404 cat >conftest.$ac_ext <<_ACEOF 3384 cat >conftest.$ac_ext <<_ACEOF
5405/* confdefs.h. */ 3385/* confdefs.h. */
5406_ACEOF 3386_ACEOF
5407cat confdefs.h >>conftest.$ac_ext 3387cat confdefs.h >>conftest.$ac_ext
5408cat >>conftest.$ac_ext <<_ACEOF 3388cat >>conftest.$ac_ext <<_ACEOF
5409/* end confdefs.h. */ 3389/* end confdefs.h. */
5410
5411int
5412main ()
5413{
5414
5415 ;
5416 return 0;
5417}
5418_ACEOF
5419rm -f conftest.$ac_objext
5420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5421 (eval $ac_compile) 2>conftest.er1
5422 ac_status=$?
5423 grep -v '^ *+' conftest.er1 >conftest.err
5424 rm -f conftest.er1
5425 cat conftest.err >&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); } &&
5428 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5430 (eval $ac_try) 2>&5
5431 ac_status=$?
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); }; } &&
5434 { ac_try='test -s conftest.$ac_objext'
5435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436 (eval $ac_try) 2>&5
5437 ac_status=$?
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); }; }; then
5440 case "$host_os" in
5441 hpux9* | hpux10* | hpux11*)
5442 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5443 # they create non-PIC objects. So, if there were any warnings, we
5444 # assume that PIC is not supported.
5445 if test -s conftest.err; then
5446 lt_cv_prog_cc_pic_works=no
5447 else
5448 lt_cv_prog_cc_pic_works=yes
5449 fi
5450 ;;
5451 *)
5452 lt_cv_prog_cc_pic_works=yes
5453 ;;
5454 esac
5455
5456else
5457 echo "$as_me: failed program was:" >&5
5458sed 's/^/| /' conftest.$ac_ext >&5
5459
5460 lt_cv_prog_cc_pic_works=no
5461
5462fi
5463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5464 CFLAGS="$save_CFLAGS"
5465
5466fi
5467
5468
5469 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5470 lt_cv_prog_cc_pic=
5471 lt_cv_prog_cc_can_build_shared=no
5472 else
5473 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5474 fi
5475
5476 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5477echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5478fi
5479##
5480## END FIXME
5481
5482# Check for any special shared library compilation flags.
5483if test -n "$lt_cv_prog_cc_shlib"; then
5484 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5485echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5486 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5487 else
5488 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5489echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5490 lt_cv_prog_cc_can_build_shared=no
5491 fi
5492fi
5493
5494## FIXME: this should be a separate macro
5495##
5496echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5497echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5498if test "${lt_cv_prog_cc_static_works+set}" = set; then
5499 echo $ECHO_N "(cached) $ECHO_C" >&6
5500else
5501 lt_cv_prog_cc_static_works=no
5502 save_LDFLAGS="$LDFLAGS"
5503 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5504 cat >conftest.$ac_ext <<_ACEOF
5505/* confdefs.h. */
5506_ACEOF
5507cat confdefs.h >>conftest.$ac_ext
5508cat >>conftest.$ac_ext <<_ACEOF
5509/* end confdefs.h. */
5510
5511int
5512main ()
5513{
5514
5515 ;
5516 return 0;
5517}
5518_ACEOF
5519rm -f conftest.$ac_objext conftest$ac_exeext
5520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5521 (eval $ac_link) 2>conftest.er1
5522 ac_status=$?
5523 grep -v '^ *+' conftest.er1 >conftest.err
5524 rm -f conftest.er1
5525 cat conftest.err >&5
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); } &&
5528 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5530 (eval $ac_try) 2>&5
5531 ac_status=$?
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); }; } &&
5534 { ac_try='test -s conftest$ac_exeext'
5535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5536 (eval $ac_try) 2>&5
5537 ac_status=$?
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); }; }; then
5540 lt_cv_prog_cc_static_works=yes
5541else
5542 echo "$as_me: failed program was:" >&5
5543sed 's/^/| /' conftest.$ac_ext >&5
5544
5545fi
5546rm -f conftest.err conftest.$ac_objext \
5547 conftest$ac_exeext conftest.$ac_ext
5548 LDFLAGS="$save_LDFLAGS"
5549
5550fi
5551
5552
5553# Belt *and* braces to stop my trousers falling down:
5554test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5555echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5556echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5557
5558pic_flag="$lt_cv_prog_cc_pic"
5559special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5560wl="$lt_cv_prog_cc_wl"
5561link_static_flag="$lt_cv_prog_cc_static"
5562no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5563can_build_shared="$lt_cv_prog_cc_can_build_shared"
5564##
5565## END FIXME
5566
5567
5568## FIXME: this should be a separate macro
5569##
5570# Check to see if options -o and -c are simultaneously supported by compiler
5571echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5572echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5573$rm -r conftest 2>/dev/null
5574mkdir conftest
5575cd conftest
5576echo "int some_variable = 0;" > conftest.$ac_ext
5577mkdir out
5578# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5579# that will create temporary files in the current directory regardless of
5580# the output directory. Thus, making CWD read-only will cause this test
5581# to fail, enabling locking or at least warning the user not to do parallel
5582# builds.
5583chmod -w .
5584save_CFLAGS="$CFLAGS"
5585CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5586compiler_c_o=no
5587if { (eval echo configure:5587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5588 # The compiler can only warn and ignore the option if not recognized
5589 # So say no if there are warnings
5590 if test -s out/conftest.err; then
5591 compiler_c_o=no
5592 else
5593 compiler_c_o=yes
5594 fi
5595else
5596 # Append any errors to the config.log.
5597 cat out/conftest.err 1>&5
5598 compiler_c_o=no
5599fi
5600echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5601echo "${ECHO_T}$compiler_c_o" >&6
5602CFLAGS="$save_CFLAGS"
5603chmod u+w .
5604$rm conftest* out/*
5605rmdir out
5606cd ..
5607rmdir conftest
5608$rm -r conftest 2>/dev/null
5609
5610if test x"$compiler_c_o" = x"yes"; then
5611 # Check to see if we can write to a .lo
5612 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5613echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5614 compiler_o_lo=no
5615 save_CFLAGS="$CFLAGS"
5616 CFLAGS="$CFLAGS -c -o conftest.lo"
5617 cat >conftest.$ac_ext <<_ACEOF
5618/* confdefs.h. */
5619_ACEOF
5620cat confdefs.h >>conftest.$ac_ext
5621cat >>conftest.$ac_ext <<_ACEOF
5622/* end confdefs.h. */
5623
5624int
5625main ()
5626{
5627int some_variable = 0;
5628 ;
5629 return 0;
5630}
5631_ACEOF
5632rm -f conftest.$ac_objext
5633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5634 (eval $ac_compile) 2>conftest.er1
5635 ac_status=$?
5636 grep -v '^ *+' conftest.er1 >conftest.err
5637 rm -f conftest.er1
5638 cat conftest.err >&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); } &&
5641 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643 (eval $ac_try) 2>&5
5644 ac_status=$?
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); }; } &&
5647 { ac_try='test -s conftest.$ac_objext'
5648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5649 (eval $ac_try) 2>&5
5650 ac_status=$?
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); }; }; then
5653 # The compiler can only warn and ignore the option if not recognized
5654 # So say no if there are warnings
5655 if test -s conftest.err; then
5656 compiler_o_lo=no
5657 else
5658 compiler_o_lo=yes
5659 fi
5660
5661else
5662 echo "$as_me: failed program was:" >&5
5663sed 's/^/| /' conftest.$ac_ext >&5
5664
5665fi
5666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5667 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5668echo "${ECHO_T}$compiler_c_o" >&6
5669 CFLAGS="$save_CFLAGS"
5670else
5671 compiler_o_lo=no
5672fi
5673##
5674## END FIXME
5675
5676## FIXME: this should be a separate macro
5677##
5678# Check to see if we can do hard links to lock some files if needed
5679hard_links="nottested"
5680if test "$compiler_c_o" = no && test "$need_locks" != no; then
5681 # do not overwrite the value of need_locks provided by the user
5682 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5683echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5684 hard_links=yes
5685 $rm conftest*
5686 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5687 touch conftest.a
5688 ln conftest.a conftest.b 2>&5 || hard_links=no
5689 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5690 echo "$as_me:$LINENO: result: $hard_links" >&5
5691echo "${ECHO_T}$hard_links" >&6
5692 if test "$hard_links" = no; then
5693 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5694echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5695 need_locks=warn
5696 fi
5697else
5698 need_locks=no
5699fi
5700##
5701## END FIXME
5702
5703## FIXME: this should be a separate macro
5704##
5705if test "$GCC" = yes; then
5706 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5707 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5708echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5709 echo "int some_variable = 0;" > conftest.$ac_ext
5710 save_CFLAGS="$CFLAGS"
5711 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5712 compiler_rtti_exceptions=no
5713 cat >conftest.$ac_ext <<_ACEOF
5714/* confdefs.h. */
5715_ACEOF
5716cat confdefs.h >>conftest.$ac_ext
5717cat >>conftest.$ac_ext <<_ACEOF
5718/* end confdefs.h. */
5719
5720int
5721main ()
5722{
5723int some_variable = 0;
5724 ;
5725 return 0;
5726}
5727_ACEOF
5728rm -f conftest.$ac_objext
5729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5730 (eval $ac_compile) 2>conftest.er1
5731 ac_status=$?
5732 grep -v '^ *+' conftest.er1 >conftest.err
5733 rm -f conftest.er1
5734 cat conftest.err >&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } &&
5737 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739 (eval $ac_try) 2>&5
5740 ac_status=$?
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; } &&
5743 { ac_try='test -s conftest.$ac_objext'
5744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745 (eval $ac_try) 2>&5
5746 ac_status=$?
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }; }; then
5749 # The compiler can only warn and ignore the option if not recognized
5750 # So say no if there are warnings
5751 if test -s conftest.err; then
5752 compiler_rtti_exceptions=no
5753 else
5754 compiler_rtti_exceptions=yes
5755 fi
5756
5757else
5758 echo "$as_me: failed program was:" >&5
5759sed 's/^/| /' conftest.$ac_ext >&5
5760
5761fi
5762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5763 CFLAGS="$save_CFLAGS"
5764 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5765echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5766
5767 if test "$compiler_rtti_exceptions" = "yes"; then
5768 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5769 else
5770 no_builtin_flag=' -fno-builtin'
5771 fi
5772fi
5773##
5774## END FIXME
5775
5776## FIXME: this should be a separate macro
5777##
5778# See if the linker supports building shared libraries.
5779echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5780echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5781
5782allow_undefined_flag=
5783no_undefined_flag=
5784need_lib_prefix=unknown
5785need_version=unknown
5786# when you set need_version to no, make sure it does not cause -set_version
5787# flags to be left without arguments
5788archive_cmds=
5789archive_expsym_cmds=
5790old_archive_from_new_cmds=
5791old_archive_from_expsyms_cmds=
5792export_dynamic_flag_spec=
5793whole_archive_flag_spec=
5794thread_safe_flag_spec=
5795hardcode_into_libs=no
5796hardcode_libdir_flag_spec=
5797hardcode_libdir_separator=
5798hardcode_direct=no
5799hardcode_minus_L=no
5800hardcode_shlibpath_var=unsupported
5801runpath_var=
5802link_all_deplibs=unknown
5803always_export_symbols=no
5804export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5805# include_expsyms should be a list of space-separated symbols to be *always*
5806# included in the symbol list
5807include_expsyms=
5808# exclude_expsyms can be an egrep regular expression of symbols to exclude
5809# it will be wrapped by ` (' and `)$', so one must not match beginning or
5810# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5811# as well as any symbol that contains `d'.
5812exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5813# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5814# platforms (ab)use it in PIC code, but their linkers get confused if
5815# the symbol is explicitly referenced. Since portable code cannot
5816# rely on this symbol name, it's probably fine to never include it in
5817# preloaded symbol tables.
5818extract_expsyms_cmds=
5819
5820case "$host_os" in
5821cygwin* | mingw* | pw32* )
5822 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5823 # When not using gcc, we currently assume that we are using
5824 # Microsoft Visual C++.
5825 if test "$GCC" != yes; then
5826 with_gnu_ld=no
5827 fi
5828 ;;
5829
5830esac
5831
5832ld_shlibs=yes
5833if test "$with_gnu_ld" = yes; then
5834 # If archive_cmds runs LD, not CC, wlarc should be empty
5835 wlarc='${wl}'
5836
5837 # See if GNU ld supports shared libraries.
5838 case "$host_os" in
5839 aix3* | aix4*)
5840 # On AIX, the GNU linker is very broken
5841 ld_shlibs=no
5842 cat <<EOF 1>&2
5843
5844*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5845*** to be unable to reliably create shared libraries on AIX.
5846*** Therefore, libtool is disabling shared libraries support. If you
5847*** really care for shared libraries, you may want to modify your PATH
5848*** so that a non-GNU linker is found, and then restart.
5849
5850EOF
5851 ;;
5852
5853 amigaos*)
5854 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5855 hardcode_libdir_flag_spec='-L$libdir'
5856 hardcode_minus_L=yes
5857
5858 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5859 # that the semantics of dynamic libraries on AmigaOS, at least up
5860 # to version 4, is to share data among multiple programs linked
5861 # with the same dynamic library. Since this doesn't match the
5862 # behavior of shared libraries on other platforms, we can use
5863 # them.
5864 ld_shlibs=no
5865 ;;
5866
5867 beos*)
5868 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5869 allow_undefined_flag=unsupported
5870 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5871 # support --undefined. This deserves some investigation. FIXME
5872 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5873 else
5874 ld_shlibs=no
5875 fi
5876 ;;
5877
5878 cygwin* | mingw* | pw32*)
5879 # hardcode_libdir_flag_spec is actually meaningless, as there is
5880 # no search path for DLLs.
5881 hardcode_libdir_flag_spec='-L$libdir'
5882 allow_undefined_flag=unsupported
5883 always_export_symbols=yes
5884
5885 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5886 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5887 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5888 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5889 else $CC -o impgen impgen.c ; fi)~
5890 $output_objdir/impgen $dir/$soname > $output_objdir/$soname-def'
5891
5892 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5893
5894 # cygwin and mingw dlls have different entry points and sets of symbols
5895 # to exclude.
5896 # FIXME: what about values for MSVC?
5897 dll_entry=__cygwin_dll_entry@12
5898 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5899 case "$host_os" in
5900 mingw*)
5901 # mingw values
5902 dll_entry=_DllMainCRTStartup@12
5903 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5904 ;;
5905 esac
5906
5907 # mingw and cygwin differ, and it's simplest to just exclude the union
5908 # of the two symbol sets.
5909 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5910
5911 # recent cygwin and mingw systems supply a stub DllMain which the user
5912 # can override, but on older systems we have to supply one (in ltdll.c)
5913 if test "x$lt_cv_need_dllmain" = "xyes"; then
5914 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5915 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < [$]0 > $output_objdir/$soname-ltdll.c~
5916 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5917 else
5918 ltdll_obj=
5919 ltdll_cmds=
5920 fi
5921
5922 # Extract the symbol export list from an `--export-all' def file,
5923 # then regenerate the def file from the symbol export list, so that
5924 # the compiled dll only exports the symbol export list.
5925 # Be careful not to strip the DATA tag left be newer dlltools.
5926 export_symbols_cmds="$ltdll_cmds"'
5927 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5928 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5929
5930 # If DATA tags from a recent dlltool are present, honour them!
5931 archive_expsym_cmds='echo EXPORTS > $output_objdir/$soname-def~
5932 _lt_hint=1;
5933 cat $export_symbols | while read symbol; do
5934 set dummy \$symbol;
5935 case \$# in
5936 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5937 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5938 esac;
5939 _lt_hint=`expr 1 + \$_lt_hint`;
5940 done~
5941 '"$ltdll_cmds"'
5942 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5943 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5944 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5945 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5946 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5947 ;;
5948
5949 netbsd*)
5950 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5951 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5952 wlarc=
5953 else
5954 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5955 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5956 fi
5957 ;;
5958
5959 solaris* | sysv5*)
5960 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5961 ld_shlibs=no
5962 cat <<EOF 1>&2
5963
5964*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5965*** create shared libraries on Solaris systems. Therefore, libtool
5966*** is disabling shared libraries support. We urge you to upgrade GNU
5967*** binutils to release 2.9.1 or newer. Another option is to modify
5968*** your PATH or compiler configuration so that the native linker is
5969*** used, and then restart.
5970
5971EOF
5972 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5973 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5974 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5975 else
5976 ld_shlibs=no
5977 fi
5978 ;;
5979
5980 sunos4*)
5981 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5982 wlarc=
5983 hardcode_direct=yes
5984 hardcode_shlibpath_var=no
5985 ;;
5986
5987 *)
5988 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5989 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5990 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5991 else
5992 ld_shlibs=no
5993 fi
5994 ;;
5995 esac
5996
5997 if test "$ld_shlibs" = yes; then
5998 runpath_var=LD_RUN_PATH
5999 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6000 export_dynamic_flag_spec='${wl}--export-dynamic'
6001 case $host_os in
6002 cygwin* | mingw* | pw32*)
6003 # dlltool doesn't understand --whole-archive et. al.
6004 whole_archive_flag_spec=
6005 ;;
6006 *)
6007 # ancient GNU ld didn't support --whole-archive et. al.
6008 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6009 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6010 else
6011 whole_archive_flag_spec=
6012 fi
6013 ;;
6014 esac
6015 fi
6016else
6017 # PORTME fill in a description of your system's linker (not GNU ld)
6018 case "$host_os" in
6019 aix3*)
6020 allow_undefined_flag=unsupported
6021 always_export_symbols=yes
6022 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6023 # Note: this linker hardcodes the directories in LIBPATH if there
6024 # are no directories specified by -L.
6025 hardcode_minus_L=yes
6026 if test "$GCC" = yes && test -z "$link_static_flag"; then
6027 # Neither direct hardcoding nor static linking is supported with a
6028 # broken collect2.
6029 hardcode_direct=unsupported
6030 fi
6031 ;;
6032
6033 aix4*)
6034 hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib'
6035 hardcode_libdir_separator=':'
6036 if test "$GCC" = yes; then
6037 collect2name=`${CC} -print-prog-name=collect2`
6038 if test -f "$collect2name" && \
6039 strings "$collect2name" | grep resolve_lib_name >/dev/null
6040 then
6041 # We have reworked collect2
6042 hardcode_direct=yes
6043 else
6044 # We have old collect2
6045 hardcode_direct=unsupported
6046 # It fails to find uninstalled libraries when the uninstalled
6047 # path is not listed in the libpath. Setting hardcode_minus_L
6048 # to unsupported forces relinking
6049 hardcode_minus_L=yes
6050 hardcode_libdir_flag_spec='-L$libdir'
6051 hardcode_libdir_separator=
6052 fi
6053 shared_flag='-shared'
6054 else
6055 shared_flag='${wl}-bM:SRE'
6056 hardcode_direct=yes
6057 fi
6058 allow_undefined_flag=' ${wl}-berok'
6059 archive_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}'
6060 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}'
6061 case "$host_os" in aix4.[01]|aix4.[01].*)
6062 # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on
6063 always_export_symbols=yes ;;
6064 esac
6065
6066 # We don't want to build shared libraries on unknown CPU types.
6067 case $host_cpu in
6068 powerpc | rs6000) ;;
6069 *) ld_shlibs=no ;;
6070 esac
6071 ;;
6072
6073 amigaos*)
6074 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6075 hardcode_libdir_flag_spec='-L$libdir'
6076 hardcode_minus_L=yes
6077 # see comment about different semantics on the GNU ld section
6078 ld_shlibs=no
6079 ;;
6080
6081 cygwin* | mingw* | pw32*)
6082 # When not using gcc, we currently assume that we are using
6083 # Microsoft Visual C++.
6084 # hardcode_libdir_flag_spec is actually meaningless, as there is
6085 # no search path for DLLs.
6086 hardcode_libdir_flag_spec=' '
6087 allow_undefined_flag=unsupported
6088 # Tell ltmain to make .lib files, not .a files.
6089 libext=lib
6090 # FIXME: Setting linknames here is a bad hack.
6091 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6092 # The linker will automatically build a .lib file if we build a DLL.
6093 old_archive_from_new_cmds='true'
6094 # FIXME: Should let the user specify the lib program.
6095 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6096 fix_srcfile_path='`cygpath -w "$srcfile"`'
6097 ;;
6098
6099 darwin* | rhapsody*)
6100 allow_undefined_flag='-undefined warning'
6101 archive_cmds='$CC `if test "$module" = "yes"; then echo -bundle; else
6102 echo -dynamiclib; fi` -o $lib $libobjs $deplibs $linkopts'
6103 archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6104 ## What we need is to hardcode the path to the library, not the search path
6105 #hardcode_direct=yes
6106 #hardcode_libdir_flag_spec='-install_name $libdir/$lib'
6107 hardcode_shlibpath_var=no
6108 whole_archive_flag_spec='-all_load'
6109 ;;
6110
6111 freebsd1*)
6112 ld_shlibs=no
6113 ;;
6114
6115 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6116 # support. Future versions do this automatically, but an explicit c++rt0.o
6117 # does not break anything, and helps significantly (at the cost of a little
6118 # extra space).
6119 freebsd2.2*)
6120 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6121 hardcode_libdir_flag_spec='-R$libdir'
6122 hardcode_direct=yes
6123 hardcode_shlibpath_var=no
6124 ;;
6125
6126 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6127 freebsd2*)
6128 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6129 hardcode_direct=yes
6130 hardcode_minus_L=yes
6131 hardcode_shlibpath_var=no
6132 ;;
6133
6134 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6135 freebsd*)
6136 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6137 hardcode_libdir_flag_spec='-R$libdir'
6138 hardcode_direct=yes
6139 hardcode_shlibpath_var=no
6140 ;;
6141
6142 hpux9* | hpux10* | hpux11*)
6143 case "$host_os" in
6144 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
6145 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6146 esac
6147 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6148 hardcode_libdir_separator=:
6149 hardcode_direct=yes
6150 hardcode_minus_L=yes # Not in the search PATH, but as the default
6151 # location of the library.
6152 export_dynamic_flag_spec='${wl}-E'
6153 ;;
6154
6155 irix5* | irix6*)
6156 if test "$GCC" = yes; then
6157 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6158 else
6159 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6160 fi
6161 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6162 hardcode_libdir_separator=:
6163 link_all_deplibs=yes
6164 ;;
6165
6166 netbsd*)
6167 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6168 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6169 else
6170 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6171 fi
6172 hardcode_libdir_flag_spec='-R$libdir'
6173 hardcode_direct=yes
6174 hardcode_shlibpath_var=no
6175 ;;
6176
6177 newsos6)
6178 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
6179 hardcode_direct=yes
6180 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6181 hardcode_libdir_separator=:
6182 hardcode_shlibpath_var=no
6183 ;;
6184
6185 openbsd*)
6186 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6187 hardcode_libdir_flag_spec='-R$libdir'
6188 hardcode_direct=yes
6189 hardcode_shlibpath_var=no
6190 ;;
6191
6192 os2*)
6193 hardcode_libdir_flag_spec='-L$libdir'
6194 hardcode_minus_L=yes
6195 allow_undefined_flag=unsupported
6196 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6197 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6198 ;;
6199
6200 osf3*)
6201 if test "$GCC" = yes; then
6202 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6203 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6204 else
6205 allow_undefined_flag=' -expect_unresolved \*'
6206 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6207 fi
6208 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6209 hardcode_libdir_separator=:
6210 ;;
6211
6212 osf4* | osf5*) # as osf3* with the addition of -msym flag
6213 if test "$GCC" = yes; then
6214 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6215 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6216 else
6217 allow_undefined_flag=' -expect_unresolved \*'
6218 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6219 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6220 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6221 fi
6222#Both c and cxx compiler support -rpath directly
6223 hardcode_libdir_flag_spec='-rpath $libdir'
6224 hardcode_libdir_separator=:
6225 ;;
6226
6227 sco3.2v5*)
6228 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6229 hardcode_shlibpath_var=no
6230 runpath_var=LD_RUN_PATH
6231 hardcode_runpath_var=yes
6232 ;;
6233
6234 solaris*)
6235 no_undefined_flag=' -z text'
6236 # $CC -shared without GNU ld will not create a library from C++
6237 # object files and a static libstdc++, better avoid it by now
6238 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6239 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6240 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6241 hardcode_libdir_flag_spec='-R$libdir'
6242 hardcode_shlibpath_var=no
6243 case "$host_os" in
6244 solaris2.[0-5] | solaris2.[0-5].*) ;;
6245 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6246 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6247 esac
6248 link_all_deplibs=yes
6249 ;;
6250
6251 sunos4*)
6252 if test "x$host_vendor" = xsequent; then
6253 # Use $CC to link under sequent, because it throws in some extra .o
6254 # files that make .init and .fini sections work.
6255 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6256 else
6257 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6258 fi
6259 hardcode_libdir_flag_spec='-L$libdir'
6260 hardcode_direct=yes
6261 hardcode_minus_L=yes
6262 hardcode_shlibpath_var=no
6263 ;;
6264
6265 sysv4)
6266 if test "x$host_vendor" = xsno; then
6267 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
6268 hardcode_direct=yes # is this really true???
6269 else
6270 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6271 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6272 fi
6273 runpath_var='LD_RUN_PATH'
6274 hardcode_shlibpath_var=no
6275 ;;
6276
6277 sysv4.3*)
6278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6279 hardcode_shlibpath_var=no
6280 export_dynamic_flag_spec='-Bexport'
6281 ;;
6282
6283 sysv5*)
6284 no_undefined_flag=' -z text'
6285 # $CC -shared without GNU ld will not create a library from C++
6286 # object files and a static libstdc++, better avoid it by now
6287 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6288 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6289 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6290 hardcode_libdir_flag_spec=
6291 hardcode_shlibpath_var=no
6292 runpath_var='LD_RUN_PATH'
6293 ;;
6294
6295 uts4*)
6296 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6297 hardcode_libdir_flag_spec='-L$libdir'
6298 hardcode_shlibpath_var=no
6299 ;;
6300
6301 dgux*)
6302 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6303 hardcode_libdir_flag_spec='-L$libdir'
6304 hardcode_shlibpath_var=no
6305 ;;
6306
6307 sysv4*MP*)
6308 if test -d /usr/nec; then
6309 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6310 hardcode_shlibpath_var=no
6311 runpath_var=LD_RUN_PATH
6312 hardcode_runpath_var=yes
6313 ld_shlibs=yes
6314 fi
6315 ;;
6316
6317 sysv4.2uw2*)
6318 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6319 hardcode_direct=yes
6320 hardcode_minus_L=no
6321 hardcode_shlibpath_var=no
6322 hardcode_runpath_var=yes
6323 runpath_var=LD_RUN_PATH
6324 ;;
6325
6326 unixware7*)
6327 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6328 runpath_var='LD_RUN_PATH'
6329 hardcode_shlibpath_var=no
6330 ;;
6331
6332 *)
6333 ld_shlibs=no
6334 ;;
6335 esac
6336fi
6337echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6338echo "${ECHO_T}$ld_shlibs" >&6
6339test "$ld_shlibs" = no && can_build_shared=no
6340##
6341## END FIXME
6342
6343## FIXME: this should be a separate macro
6344##
6345# Check hardcoding attributes.
6346echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6347echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6348hardcode_action=
6349if test -n "$hardcode_libdir_flag_spec" || \
6350 test -n "$runpath_var"; then
6351
6352 # We can hardcode non-existant directories.
6353 if test "$hardcode_direct" != no &&
6354 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6355 # have to relink, otherwise we might link with an installed library
6356 # when we should be linking with a yet-to-be-installed one
6357 ## test "$hardcode_shlibpath_var" != no &&
6358 test "$hardcode_minus_L" != no; then
6359 # Linking always hardcodes the temporary library directory.
6360 hardcode_action=relink
6361 else
6362 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6363 hardcode_action=immediate
6364 fi
6365else
6366 # We cannot hardcode anything, or else we can only hardcode existing
6367 # directories.
6368 hardcode_action=unsupported
6369fi
6370echo "$as_me:$LINENO: result: $hardcode_action" >&5
6371echo "${ECHO_T}$hardcode_action" >&6
6372##
6373## END FIXME
6374
6375## FIXME: this should be a separate macro
6376##
6377striplib=
6378old_striplib=
6379echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6380echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6381if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6382 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6383 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6384 echo "$as_me:$LINENO: result: yes" >&5
6385echo "${ECHO_T}yes" >&6
6386else
6387 echo "$as_me:$LINENO: result: no" >&5
6388echo "${ECHO_T}no" >&6
6389fi
6390##
6391## END FIXME
6392
6393reload_cmds='$LD$reload_flag -o $output$reload_objs'
6394test -z "$deplibs_check_method" && deplibs_check_method=unknown
6395
6396## FIXME: this should be a separate macro
6397##
6398# PORTME Fill in your ld.so characteristics
6399echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6400echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6401library_names_spec=
6402libname_spec='lib$name'
6403soname_spec=
6404postinstall_cmds=
6405postuninstall_cmds=
6406finish_cmds=
6407finish_eval=
6408shlibpath_var=
6409shlibpath_overrides_runpath=unknown
6410version_type=none
6411dynamic_linker="$host_os ld.so"
6412sys_lib_dlsearch_path_spec="/lib /usr/lib"
6413sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6414
6415case "$host_os" in
6416aix3*)
6417 version_type=linux
6418 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6419 shlibpath_var=LIBPATH
6420
6421 # AIX has no versioning support, so we append a major version to the name.
6422 soname_spec='${libname}${release}.so$major'
6423 ;;
6424
6425aix4*)
6426 version_type=linux
6427 # AIX has no versioning support, so currently we can not hardcode correct
6428 # soname into executable. Probably we can add versioning support to
6429 # collect2, so additional links can be useful in future.
6430 # We preserve .a as extension for shared libraries though AIX4.2
6431 # and later linker supports .so
6432 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.a'
6433 shlibpath_var=LIBPATH
6434 ;;
6435
6436amigaos*)
6437 library_names_spec='$libname.ixlibrary $libname.a'
6438 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6439 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
6440 ;;
6441
6442beos*)
6443 library_names_spec='${libname}.so'
6444 dynamic_linker="$host_os ld.so"
6445 shlibpath_var=LIBRARY_PATH
6446 ;;
6447
6448bsdi4*)
6449 version_type=linux
6450 need_version=no
6451 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6452 soname_spec='${libname}${release}.so$major'
6453 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6454 shlibpath_var=LD_LIBRARY_PATH
6455 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6456 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6457 export_dynamic_flag_spec=-rdynamic
6458 # the default ld.so.conf also contains /usr/contrib/lib and
6459 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6460 # libtool to hard-code these into programs
6461 ;;
6462
6463cygwin* | mingw* | pw32*)
6464 version_type=windows
6465 need_version=no
6466 need_lib_prefix=no
6467 if test "$GCC" = yes; then
6468 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6469 else
6470 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6471 fi
6472 dynamic_linker='Win32 ld.exe'
6473 # FIXME: first we should search . and the directory the executable is in
6474 shlibpath_var=PATH
6475 ;;
6476
6477darwin* | rhapsody*)
6478 need_lib_prefix=no
6479 need_version=no
6480 library_names_spec='${libname}.`if test "$module" = "yes"; then echo so; else echo dylib; fi`'
6481 shlibpath_overrides_runpath=yes
6482 shlibpath_var=DYLD_LIBRARY_PATH
6483 postinstall_cmds='chmod +x $lib'
6484 ;;
6485
6486freebsd1*)
6487 dynamic_linker=no
6488 ;;
6489
6490freebsd*)
6491 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6492 version_type=freebsd-$objformat
6493 case "$version_type" in
6494 freebsd-elf*)
6495 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6496 need_version=no
6497 need_lib_prefix=no
6498 ;;
6499 freebsd-*)
6500 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6501 need_version=yes
6502 ;;
6503 esac
6504 shlibpath_var=LD_LIBRARY_PATH
6505 case "$host_os" in
6506 freebsd2*)
6507 shlibpath_overrides_runpath=yes
6508 ;;
6509 *)
6510 shlibpath_overrides_runpath=no
6511 hardcode_into_libs=yes
6512 ;;
6513 esac
6514 ;;
6515
6516gnu*)
6517 version_type=linux
6518 need_lib_prefix=no
6519 need_version=no
6520 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6521 soname_spec='${libname}${release}.so$major'
6522 shlibpath_var=LD_LIBRARY_PATH
6523 hardcode_into_libs=yes
6524 ;;
6525
6526hpux9* | hpux10* | hpux11*)
6527 # Give a soname corresponding to the major version so that dld.sl refuses to
6528 # link against other versions.
6529 dynamic_linker="$host_os dld.sl"
6530 version_type=sunos
6531 need_lib_prefix=no
6532 need_version=no
6533 shlibpath_var=SHLIB_PATH
6534 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6535 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6536 soname_spec='${libname}${release}.sl$major'
6537 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6538 postinstall_cmds='chmod 555 $lib'
6539 ;;
6540
6541irix5* | irix6*)
6542 version_type=irix
6543 need_lib_prefix=no
6544 need_version=no
6545 soname_spec='${libname}${release}.so$major'
6546 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6547 case "$host_os" in
6548 irix5*)
6549 libsuff= shlibsuff=
6550 ;;
6551 *)
6552 case "$LD" in # libtool.m4 will add one of these switches to LD
6553 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6554 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6555 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6556 *) libsuff= shlibsuff= libmagic=never-match;;
6557 esac
6558 ;;
6559 esac
6560 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6561 shlibpath_overrides_runpath=no
6562 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6563 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6564 ;;
6565
6566# No shared lib support for Linux oldld, aout, or coff.
6567linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6568 dynamic_linker=no
6569 ;;
6570
6571# This must be Linux ELF.
6572linux-gnu*)
6573 version_type=linux
6574 need_lib_prefix=no
6575 need_version=no
6576 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6577 soname_spec='${libname}${release}.so$major'
6578 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6579 shlibpath_var=LD_LIBRARY_PATH
6580 shlibpath_overrides_runpath=no
6581 # This implies no fast_install, which is unacceptable.
6582 # Some rework will be needed to allow for fast_install
6583 # before this can be enabled.
6584 hardcode_into_libs=yes
6585
6586 # We used to test for /lib/ld.so.1 and disable shared libraries on
6587 # powerpc, because MkLinux only supported shared libraries with the
6588 # GNU dynamic linker. Since this was broken with cross compilers,
6589 # most powerpc-linux boxes support dynamic linking these days and
6590 # people can always --disable-shared, the test was removed, and we
6591 # assume the GNU/Linux dynamic linker is in use.
6592 dynamic_linker='GNU/Linux ld.so'
6593 ;;
6594
6595netbsd*)
6596 version_type=sunos
6597 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6598 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6599 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6600 dynamic_linker='NetBSD (a.out) ld.so'
6601 else
6602 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6603 soname_spec='${libname}${release}.so$major'
6604 dynamic_linker='NetBSD ld.elf_so'
6605 fi
6606 shlibpath_var=LD_LIBRARY_PATH
6607 shlibpath_overrides_runpath=yes
6608 hardcode_into_libs=yes
6609 ;;
6610
6611newsos6)
6612 version_type=linux
6613 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6614 shlibpath_var=LD_LIBRARY_PATH
6615 shlibpath_overrides_runpath=yes
6616 ;;
6617
6618openbsd*)
6619 version_type=sunos
6620 if test "$with_gnu_ld" = yes; then
6621 need_lib_prefix=no
6622 need_version=no
6623 fi
6624 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6625 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6626 shlibpath_var=LD_LIBRARY_PATH
6627 ;;
6628
6629os2*)
6630 libname_spec='$name'
6631 need_lib_prefix=no
6632 library_names_spec='$libname.dll $libname.a'
6633 dynamic_linker='OS/2 ld.exe'
6634 shlibpath_var=LIBPATH
6635 ;;
6636
6637osf3* | osf4* | osf5*)
6638 version_type=osf
6639 need_version=no
6640 soname_spec='${libname}${release}.so'
6641 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6642 shlibpath_var=LD_LIBRARY_PATH
6643 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6644 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6645 ;;
6646
6647sco3.2v5*)
6648 version_type=osf
6649 soname_spec='${libname}${release}.so$major'
6650 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6651 shlibpath_var=LD_LIBRARY_PATH
6652 ;;
6653
6654solaris*)
6655 version_type=linux
6656 need_lib_prefix=no
6657 need_version=no
6658 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6659 soname_spec='${libname}${release}.so$major'
6660 shlibpath_var=LD_LIBRARY_PATH
6661 shlibpath_overrides_runpath=yes
6662 hardcode_into_libs=yes
6663 # ldd complains unless libraries are executable
6664 postinstall_cmds='chmod +x $lib'
6665 ;;
6666
6667sunos4*)
6668 version_type=sunos
6669 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6670 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6671 shlibpath_var=LD_LIBRARY_PATH
6672 shlibpath_overrides_runpath=yes
6673 if test "$with_gnu_ld" = yes; then
6674 need_lib_prefix=no
6675 fi
6676 need_version=yes
6677 ;;
6678
6679sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6680 version_type=linux
6681 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6682 soname_spec='${libname}${release}.so$major'
6683 shlibpath_var=LD_LIBRARY_PATH
6684 case "$host_vendor" in
6685 sni)
6686 shlibpath_overrides_runpath=no
6687 ;;
6688 motorola)
6689 need_lib_prefix=no
6690 need_version=no
6691 shlibpath_overrides_runpath=no
6692 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6693 ;;
6694 esac
6695 ;;
6696
6697uts4*)
6698 version_type=linux
6699 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6700 soname_spec='${libname}${release}.so$major'
6701 shlibpath_var=LD_LIBRARY_PATH
6702 ;;
6703
6704dgux*)
6705 version_type=linux
6706 need_lib_prefix=no
6707 need_version=no
6708 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6709 soname_spec='${libname}${release}.so$major'
6710 shlibpath_var=LD_LIBRARY_PATH
6711 ;;
6712
6713sysv4*MP*)
6714 if test -d /usr/nec ;then
6715 version_type=linux
6716 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6717 soname_spec='$libname.so.$major'
6718 shlibpath_var=LD_LIBRARY_PATH
6719 fi
6720 ;;
6721
6722*)
6723 dynamic_linker=no
6724 ;;
6725esac
6726echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6727echo "${ECHO_T}$dynamic_linker" >&6
6728test "$dynamic_linker" = no && can_build_shared=no
6729##
6730## END FIXME
6731
6732## FIXME: this should be a separate macro
6733##
6734# Report the final consequences.
6735echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6736echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6737echo "$as_me:$LINENO: result: $can_build_shared" >&5
6738echo "${ECHO_T}$can_build_shared" >&6
6739##
6740## END FIXME
6741
6742if test "$hardcode_action" = relink; then
6743 # Fast installation is not supported
6744 enable_fast_install=no
6745elif test "$shlibpath_overrides_runpath" = yes ||
6746 test "$enable_shared" = no; then
6747 # Fast installation is not necessary
6748 enable_fast_install=needless
6749fi
6750
6751variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6752if test "$GCC" = yes; then
6753 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6754fi
6755
6756if test "x$enable_dlopen" != xyes; then
6757 enable_dlopen=unknown
6758 enable_dlopen_self=unknown
6759 enable_dlopen_self_static=unknown
6760else
6761 lt_cv_dlopen=no
6762 lt_cv_dlopen_libs=
6763
6764 case "$host_os" in
6765 beos*)
6766 lt_cv_dlopen="load_add_on"
6767 lt_cv_dlopen_libs=
6768 lt_cv_dlopen_self=yes
6769 ;;
6770
6771 cygwin* | mingw* | pw32*)
6772 lt_cv_dlopen="LoadLibrary"
6773 lt_cv_dlopen_libs=
6774 ;;
6775
6776 *)
6777 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6778echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6779if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6781else
6782 ac_check_lib_save_LIBS=$LIBS
6783LIBS="-ldl $LIBS"
6784cat >conftest.$ac_ext <<_ACEOF
6785/* confdefs.h. */
6786_ACEOF
6787cat confdefs.h >>conftest.$ac_ext
6788cat >>conftest.$ac_ext <<_ACEOF
6789/* end confdefs.h. */
6790
6791/* Override any gcc2 internal prototype to avoid an error. */
6792#ifdef __cplusplus
6793extern "C"
6794#endif
6795/* We use char because int might match the return type of a gcc2
6796 builtin and then its argument prototype would still apply. */
6797char dlopen ();
6798int
6799main ()
6800{
6801dlopen ();
6802 ;
6803 return 0;
6804}
6805_ACEOF
6806rm -f conftest.$ac_objext conftest$ac_exeext
6807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6808 (eval $ac_link) 2>conftest.er1
6809 ac_status=$?
6810 grep -v '^ *+' conftest.er1 >conftest.err
6811 rm -f conftest.er1
6812 cat conftest.err >&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); } &&
6815 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6817 (eval $ac_try) 2>&5
6818 ac_status=$?
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); }; } &&
6821 { ac_try='test -s conftest$ac_exeext'
6822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6823 (eval $ac_try) 2>&5
6824 ac_status=$?
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); }; }; then
6827 ac_cv_lib_dl_dlopen=yes
6828else
6829 echo "$as_me: failed program was:" >&5
6830sed 's/^/| /' conftest.$ac_ext >&5
6831
6832ac_cv_lib_dl_dlopen=no
6833fi
6834rm -f conftest.err conftest.$ac_objext \
6835 conftest$ac_exeext conftest.$ac_ext
6836LIBS=$ac_check_lib_save_LIBS
6837fi
6838echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6839echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6840if test $ac_cv_lib_dl_dlopen = yes; then
6841 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6842else
6843 echo "$as_me:$LINENO: checking for dlopen" >&5
6844echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6845if test "${ac_cv_func_dlopen+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6847else
6848 cat >conftest.$ac_ext <<_ACEOF
6849/* confdefs.h. */
6850_ACEOF
6851cat confdefs.h >>conftest.$ac_ext
6852cat >>conftest.$ac_ext <<_ACEOF
6853/* end confdefs.h. */
6854/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 3390/* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale.
6855 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6856#define dlopen innocuous_dlopen 3392#define setlocale innocuous_setlocale
6857 3393
6858/* System header to define __stub macros and hopefully few prototypes, 3394/* System header to define __stub macros and hopefully few prototypes,
6859 which can conflict with char dlopen (); below. 3395 which can conflict with char setlocale (); below.
6860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6861 <limits.h> exists even on freestanding compilers. */ 3397 <limits.h> exists even on freestanding compilers. */
6862 3398
6863#ifdef __STDC__ 3399#ifdef __STDC__
6864# include <limits.h> 3400# include <limits.h>
6865#else 3401#else
6866# include <assert.h> 3402# include <assert.h>
6867#endif 3403#endif
6868 3404
6869#undef dlopen 3405#undef setlocale
6870 3406
6871/* Override any gcc2 internal prototype to avoid an error. */ 3407/* Override any gcc2 internal prototype to avoid an error. */
6872#ifdef __cplusplus 3408#ifdef __cplusplus
6873extern "C" 3409extern "C"
6874{ 3410{
6875#endif 3411#endif
6876/* We use char because int might match the return type of a gcc2 3412/* We use char because int might match the return type of a gcc2
6877 builtin and then its argument prototype would still apply. */ 3413 builtin and then its argument prototype would still apply. */
6878char dlopen (); 3414char setlocale ();
6879/* The GNU C library defines this for functions which it implements 3415/* The GNU C library defines this for functions which it implements
6880 to always fail with ENOSYS. Some functions are actually named 3416 to always fail with ENOSYS. Some functions are actually named
6881 something starting with __ and the normal name is an alias. */ 3417 something starting with __ and the normal name is an alias. */
6882#if defined (__stub_dlopen) || defined (__stub___dlopen) 3418#if defined (__stub_setlocale) || defined (__stub___setlocale)
6883choke me 3419choke me
6884#else 3420#else
6885char (*f) () = dlopen; 3421char (*f) () = setlocale;
6886#endif 3422#endif
6887#ifdef __cplusplus 3423#ifdef __cplusplus
6888} 3424}
6889#endif 3425#endif
6890 3426
6891int 3427int
6892main () 3428main ()
6893{ 3429{
6894return f != dlopen; 3430return f != setlocale;
6895 ; 3431 ;
6896 return 0; 3432 return 0;
6897} 3433}
6898_ACEOF 3434_ACEOF
6899rm -f conftest.$ac_objext conftest$ac_exeext 3435rm -f conftest.$ac_objext conftest$ac_exeext
6915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6916 (eval $ac_try) 2>&5 3452 (eval $ac_try) 2>&5
6917 ac_status=$? 3453 ac_status=$?
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); }; }; then 3455 (exit $ac_status); }; }; then
6920 ac_cv_func_dlopen=yes 3456 ac_cv_func_setlocale=yes
6921else 3457else
6922 echo "$as_me: failed program was:" >&5 3458 echo "$as_me: failed program was:" >&5
6923sed 's/^/| /' conftest.$ac_ext >&5 3459sed 's/^/| /' conftest.$ac_ext >&5
6924 3460
6925ac_cv_func_dlopen=no 3461ac_cv_func_setlocale=no
6926fi 3462fi
6927rm -f conftest.err conftest.$ac_objext \ 3463rm -f conftest.err conftest.$ac_objext \
6928 conftest$ac_exeext conftest.$ac_ext 3464 conftest$ac_exeext conftest.$ac_ext
6929fi 3465fi
6930echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 3466echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5
6931echo "${ECHO_T}$ac_cv_func_dlopen" >&6 3467echo "${ECHO_T}$ac_cv_func_setlocale" >&6
6932if test $ac_cv_func_dlopen = yes; then 3468if test $ac_cv_func_setlocale = yes; then
6933 lt_cv_dlopen="dlopen" 3469 :
6934else 3470else
6935 echo "$as_me:$LINENO: checking for shl_load" >&5 3471 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
6936echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 3472echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
6937if test "${ac_cv_func_shl_load+set}" = set; then 3473if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6 3474 echo $ECHO_N "(cached) $ECHO_C" >&6
6939else 3475else
3476 ac_check_lib_save_LIBS=$LIBS
3477LIBS="-lxpg4 $LIBS"
6940 cat >conftest.$ac_ext <<_ACEOF 3478cat >conftest.$ac_ext <<_ACEOF
6941/* confdefs.h. */ 3479/* confdefs.h. */
6942_ACEOF 3480_ACEOF
6943cat confdefs.h >>conftest.$ac_ext 3481cat confdefs.h >>conftest.$ac_ext
6944cat >>conftest.$ac_ext <<_ACEOF 3482cat >>conftest.$ac_ext <<_ACEOF
6945/* end confdefs.h. */ 3483/* end confdefs.h. */
3484
3485/* Override any gcc2 internal prototype to avoid an error. */
3486#ifdef __cplusplus
3487extern "C"
3488#endif
3489/* We use char because int might match the return type of a gcc2
3490 builtin and then its argument prototype would still apply. */
3491char setlocale ();
3492int
3493main ()
3494{
3495setlocale ();
3496 ;
3497 return 0;
3498}
3499_ACEOF
3500rm -f conftest.$ac_objext conftest$ac_exeext
3501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3502 (eval $ac_link) 2>conftest.er1
3503 ac_status=$?
3504 grep -v '^ *+' conftest.er1 >conftest.err
3505 rm -f conftest.er1
3506 cat conftest.err >&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); } &&
3509 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3511 (eval $ac_try) 2>&5
3512 ac_status=$?
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); }; } &&
3515 { ac_try='test -s conftest$ac_exeext'
3516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517 (eval $ac_try) 2>&5
3518 ac_status=$?
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }; }; then
3521 ac_cv_lib_xpg4_setlocale=yes
3522else
3523 echo "$as_me: failed program was:" >&5
3524sed 's/^/| /' conftest.$ac_ext >&5
3525
3526ac_cv_lib_xpg4_setlocale=no
3527fi
3528rm -f conftest.err conftest.$ac_objext \
3529 conftest$ac_exeext conftest.$ac_ext
3530LIBS=$ac_check_lib_save_LIBS
3531fi
3532echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
3533echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
3534if test $ac_cv_lib_xpg4_setlocale = yes; then
3535 LIBS="$LIBS -lxpg4"
3536fi
3537
3538fi
3539
3540
3541echo "$as_me:$LINENO: checking for gethostbyname" >&5
3542echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3543if test "${ac_cv_func_gethostbyname+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3545else
3546 cat >conftest.$ac_ext <<_ACEOF
3547/* confdefs.h. */
3548_ACEOF
3549cat confdefs.h >>conftest.$ac_ext
3550cat >>conftest.$ac_ext <<_ACEOF
3551/* end confdefs.h. */
6946/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 3552/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6947 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6948#define shl_load innocuous_shl_load 3554#define gethostbyname innocuous_gethostbyname
6949 3555
6950/* System header to define __stub macros and hopefully few prototypes, 3556/* System header to define __stub macros and hopefully few prototypes,
6951 which can conflict with char shl_load (); below. 3557 which can conflict with char gethostbyname (); below.
6952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6953 <limits.h> exists even on freestanding compilers. */ 3559 <limits.h> exists even on freestanding compilers. */
6954 3560
6955#ifdef __STDC__ 3561#ifdef __STDC__
6956# include <limits.h> 3562# include <limits.h>
6957#else 3563#else
6958# include <assert.h> 3564# include <assert.h>
6959#endif 3565#endif
6960 3566
6961#undef shl_load 3567#undef gethostbyname
6962 3568
6963/* Override any gcc2 internal prototype to avoid an error. */ 3569/* Override any gcc2 internal prototype to avoid an error. */
6964#ifdef __cplusplus 3570#ifdef __cplusplus
6965extern "C" 3571extern "C"
6966{ 3572{
6967#endif 3573#endif
6968/* We use char because int might match the return type of a gcc2 3574/* We use char because int might match the return type of a gcc2
6969 builtin and then its argument prototype would still apply. */ 3575 builtin and then its argument prototype would still apply. */
6970char shl_load (); 3576char gethostbyname ();
6971/* The GNU C library defines this for functions which it implements 3577/* The GNU C library defines this for functions which it implements
6972 to always fail with ENOSYS. Some functions are actually named 3578 to always fail with ENOSYS. Some functions are actually named
6973 something starting with __ and the normal name is an alias. */ 3579 something starting with __ and the normal name is an alias. */
6974#if defined (__stub_shl_load) || defined (__stub___shl_load) 3580#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6975choke me 3581choke me
6976#else 3582#else
6977char (*f) () = shl_load; 3583char (*f) () = gethostbyname;
6978#endif 3584#endif
6979#ifdef __cplusplus 3585#ifdef __cplusplus
6980} 3586}
6981#endif 3587#endif
6982 3588
6983int 3589int
6984main () 3590main ()
6985{ 3591{
6986return f != shl_load; 3592return f != gethostbyname;
6987 ; 3593 ;
6988 return 0; 3594 return 0;
6989} 3595}
6990_ACEOF 3596_ACEOF
6991rm -f conftest.$ac_objext conftest$ac_exeext 3597rm -f conftest.$ac_objext conftest$ac_exeext
7007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7008 (eval $ac_try) 2>&5 3614 (eval $ac_try) 2>&5
7009 ac_status=$? 3615 ac_status=$?
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); }; }; then 3617 (exit $ac_status); }; }; then
7012 ac_cv_func_shl_load=yes 3618 ac_cv_func_gethostbyname=yes
7013else 3619else
7014 echo "$as_me: failed program was:" >&5 3620 echo "$as_me: failed program was:" >&5
7015sed 's/^/| /' conftest.$ac_ext >&5 3621sed 's/^/| /' conftest.$ac_ext >&5
7016 3622
7017ac_cv_func_shl_load=no 3623ac_cv_func_gethostbyname=no
7018fi 3624fi
7019rm -f conftest.err conftest.$ac_objext \ 3625rm -f conftest.err conftest.$ac_objext \
7020 conftest$ac_exeext conftest.$ac_ext 3626 conftest$ac_exeext conftest.$ac_ext
7021fi 3627fi
7022echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 3628echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7023echo "${ECHO_T}$ac_cv_func_shl_load" >&6 3629echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7024if test $ac_cv_func_shl_load = yes; then 3630if test $ac_cv_func_gethostbyname = yes; then
7025 lt_cv_dlopen="shl_load" 3631 :
7026else 3632else
7027 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 3633 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7028echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 3634echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7029if test "${ac_cv_lib_svld_dlopen+set}" = set; then 3635if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6 3636 echo $ECHO_N "(cached) $ECHO_C" >&6
7031else 3637else
7032 ac_check_lib_save_LIBS=$LIBS 3638 ac_check_lib_save_LIBS=$LIBS
7033LIBS="-lsvld $LIBS" 3639LIBS="-lnsl $LIBS"
7034cat >conftest.$ac_ext <<_ACEOF 3640cat >conftest.$ac_ext <<_ACEOF
7035/* confdefs.h. */ 3641/* confdefs.h. */
7036_ACEOF 3642_ACEOF
7037cat confdefs.h >>conftest.$ac_ext 3643cat confdefs.h >>conftest.$ac_ext
7038cat >>conftest.$ac_ext <<_ACEOF 3644cat >>conftest.$ac_ext <<_ACEOF
7042#ifdef __cplusplus 3648#ifdef __cplusplus
7043extern "C" 3649extern "C"
7044#endif 3650#endif
7045/* We use char because int might match the return type of a gcc2 3651/* We use char because int might match the return type of a gcc2
7046 builtin and then its argument prototype would still apply. */ 3652 builtin and then its argument prototype would still apply. */
7047char dlopen (); 3653char gethostbyname ();
7048int 3654int
7049main () 3655main ()
7050{ 3656{
7051dlopen (); 3657gethostbyname ();
7052 ; 3658 ;
7053 return 0; 3659 return 0;
7054} 3660}
7055_ACEOF 3661_ACEOF
7056rm -f conftest.$ac_objext conftest$ac_exeext 3662rm -f conftest.$ac_objext conftest$ac_exeext
7072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7073 (eval $ac_try) 2>&5 3679 (eval $ac_try) 2>&5
7074 ac_status=$? 3680 ac_status=$?
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); }; }; then 3682 (exit $ac_status); }; }; then
7077 ac_cv_lib_svld_dlopen=yes 3683 ac_cv_lib_nsl_gethostbyname=yes
7078else 3684else
7079 echo "$as_me: failed program was:" >&5 3685 echo "$as_me: failed program was:" >&5
7080sed 's/^/| /' conftest.$ac_ext >&5 3686sed 's/^/| /' conftest.$ac_ext >&5
7081 3687
7082ac_cv_lib_svld_dlopen=no 3688ac_cv_lib_nsl_gethostbyname=no
7083fi 3689fi
7084rm -f conftest.err conftest.$ac_objext \ 3690rm -f conftest.err conftest.$ac_objext \
7085 conftest$ac_exeext conftest.$ac_ext 3691 conftest$ac_exeext conftest.$ac_ext
7086LIBS=$ac_check_lib_save_LIBS 3692LIBS=$ac_check_lib_save_LIBS
7087fi 3693fi
7088echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 3694echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7089echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 3695echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7090if test $ac_cv_lib_svld_dlopen = yes; then 3696if test $ac_cv_lib_nsl_gethostbyname = yes; then
7091 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 3697 LIBS="$LIBS -lnsl"
7092else 3698fi
3699
3700fi
3701
7093 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 3702echo "$as_me:$LINENO: checking for socket" >&5
7094echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 3703echo $ECHO_N "checking for socket... $ECHO_C" >&6
7095if test "${ac_cv_lib_dld_shl_load+set}" = set; then 3704if test "${ac_cv_func_socket+set}" = set; then
7096 echo $ECHO_N "(cached) $ECHO_C" >&6 3705 echo $ECHO_N "(cached) $ECHO_C" >&6
7097else 3706else
3707 cat >conftest.$ac_ext <<_ACEOF
3708/* confdefs.h. */
3709_ACEOF
3710cat confdefs.h >>conftest.$ac_ext
3711cat >>conftest.$ac_ext <<_ACEOF
3712/* end confdefs.h. */
3713/* Define socket to an innocuous variant, in case <limits.h> declares socket.
3714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3715#define socket innocuous_socket
3716
3717/* System header to define __stub macros and hopefully few prototypes,
3718 which can conflict with char socket (); below.
3719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3720 <limits.h> exists even on freestanding compilers. */
3721
3722#ifdef __STDC__
3723# include <limits.h>
3724#else
3725# include <assert.h>
3726#endif
3727
3728#undef socket
3729
3730/* Override any gcc2 internal prototype to avoid an error. */
3731#ifdef __cplusplus
3732extern "C"
3733{
3734#endif
3735/* We use char because int might match the return type of a gcc2
3736 builtin and then its argument prototype would still apply. */
3737char socket ();
3738/* The GNU C library defines this for functions which it implements
3739 to always fail with ENOSYS. Some functions are actually named
3740 something starting with __ and the normal name is an alias. */
3741#if defined (__stub_socket) || defined (__stub___socket)
3742choke me
3743#else
3744char (*f) () = socket;
3745#endif
3746#ifdef __cplusplus
3747}
3748#endif
3749
3750int
3751main ()
3752{
3753return f != socket;
3754 ;
3755 return 0;
3756}
3757_ACEOF
3758rm -f conftest.$ac_objext conftest$ac_exeext
3759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3760 (eval $ac_link) 2>conftest.er1
3761 ac_status=$?
3762 grep -v '^ *+' conftest.er1 >conftest.err
3763 rm -f conftest.er1
3764 cat conftest.err >&5
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); } &&
3767 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3769 (eval $ac_try) 2>&5
3770 ac_status=$?
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); }; } &&
3773 { ac_try='test -s conftest$ac_exeext'
3774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3775 (eval $ac_try) 2>&5
3776 ac_status=$?
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); }; }; then
3779 ac_cv_func_socket=yes
3780else
3781 echo "$as_me: failed program was:" >&5
3782sed 's/^/| /' conftest.$ac_ext >&5
3783
3784ac_cv_func_socket=no
3785fi
3786rm -f conftest.err conftest.$ac_objext \
3787 conftest$ac_exeext conftest.$ac_ext
3788fi
3789echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3790echo "${ECHO_T}$ac_cv_func_socket" >&6
3791if test $ac_cv_func_socket = yes; then
3792 :
3793else
3794 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3795echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3796if test "${ac_cv_lib_socket_socket+set}" = set; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3798else
7098 ac_check_lib_save_LIBS=$LIBS 3799 ac_check_lib_save_LIBS=$LIBS
7099LIBS="-ldld $LIBS" 3800LIBS="-lsocket $LIBS"
7100cat >conftest.$ac_ext <<_ACEOF 3801cat >conftest.$ac_ext <<_ACEOF
7101/* confdefs.h. */ 3802/* confdefs.h. */
7102_ACEOF 3803_ACEOF
7103cat confdefs.h >>conftest.$ac_ext 3804cat confdefs.h >>conftest.$ac_ext
7104cat >>conftest.$ac_ext <<_ACEOF 3805cat >>conftest.$ac_ext <<_ACEOF
7108#ifdef __cplusplus 3809#ifdef __cplusplus
7109extern "C" 3810extern "C"
7110#endif 3811#endif
7111/* We use char because int might match the return type of a gcc2 3812/* We use char because int might match the return type of a gcc2
7112 builtin and then its argument prototype would still apply. */ 3813 builtin and then its argument prototype would still apply. */
7113char shl_load (); 3814char socket ();
7114int 3815int
7115main () 3816main ()
7116{ 3817{
7117shl_load (); 3818socket ();
7118 ; 3819 ;
7119 return 0; 3820 return 0;
7120} 3821}
7121_ACEOF 3822_ACEOF
7122rm -f conftest.$ac_objext conftest$ac_exeext 3823rm -f conftest.$ac_objext conftest$ac_exeext
7138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7139 (eval $ac_try) 2>&5 3840 (eval $ac_try) 2>&5
7140 ac_status=$? 3841 ac_status=$?
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); }; }; then 3843 (exit $ac_status); }; }; then
7143 ac_cv_lib_dld_shl_load=yes 3844 ac_cv_lib_socket_socket=yes
7144else 3845else
7145 echo "$as_me: failed program was:" >&5 3846 echo "$as_me: failed program was:" >&5
7146sed 's/^/| /' conftest.$ac_ext >&5 3847sed 's/^/| /' conftest.$ac_ext >&5
7147 3848
7148ac_cv_lib_dld_shl_load=no 3849ac_cv_lib_socket_socket=no
7149fi 3850fi
7150rm -f conftest.err conftest.$ac_objext \ 3851rm -f conftest.err conftest.$ac_objext \
7151 conftest$ac_exeext conftest.$ac_ext 3852 conftest$ac_exeext conftest.$ac_ext
7152LIBS=$ac_check_lib_save_LIBS 3853LIBS=$ac_check_lib_save_LIBS
7153fi 3854fi
7154echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 3855echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7155echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 3856echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7156if test $ac_cv_lib_dld_shl_load = yes; then 3857if test $ac_cv_lib_socket_socket = yes; then
7157 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 3858 LIBS="$LIBS -lsocket"
7158fi 3859fi
7159 3860
7160
7161fi 3861fi
7162 3862
7163 3863
7164fi 3864echo "$as_me:$LINENO: checking for sched_yield" >&5
7165 3865echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
7166
7167fi
7168
7169
7170fi
7171
7172 ;;
7173 esac
7174
7175 if test "x$lt_cv_dlopen" != xno; then
7176 enable_dlopen=yes
7177 else
7178 enable_dlopen=no
7179 fi
7180
7181 case "$lt_cv_dlopen" in
7182 dlopen)
7183 save_CPPFLAGS="$CPP_FLAGS"
7184 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7185
7186 save_LDFLAGS="$LDFLAGS"
7187 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7188
7189 save_LIBS="$LIBS"
7190 LIBS="$lt_cv_dlopen_libs $LIBS"
7191
7192 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7193echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7194if test "${lt_cv_dlopen_self+set}" = set; then 3866if test "${ac_cv_func_sched_yield+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6 3867 echo $ECHO_N "(cached) $ECHO_C" >&6
7196else 3868else
7197 if test "$cross_compiling" = yes; then :
7198 lt_cv_dlopen_self=cross
7199else
7200 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7201 lt_status=$lt_dlunknown
7202 cat > conftest.$ac_ext <<EOF 3869 cat >conftest.$ac_ext <<_ACEOF
7203#line 7203 "configure" 3870/* confdefs.h. */
7204#include "confdefs.h" 3871_ACEOF
3872cat confdefs.h >>conftest.$ac_ext
3873cat >>conftest.$ac_ext <<_ACEOF
3874/* end confdefs.h. */
3875/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
3876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3877#define sched_yield innocuous_sched_yield
7205 3878
7206#if HAVE_DLFCN_H 3879/* System header to define __stub macros and hopefully few prototypes,
7207#include <dlfcn.h> 3880 which can conflict with char sched_yield (); below.
3881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3882 <limits.h> exists even on freestanding compilers. */
3883
3884#ifdef __STDC__
3885# include <limits.h>
3886#else
3887# include <assert.h>
7208#endif 3888#endif
7209 3889
7210#include <stdio.h> 3890#undef sched_yield
7211 3891
7212#ifdef RTLD_GLOBAL 3892/* Override any gcc2 internal prototype to avoid an error. */
7213# define LT_DLGLOBAL RTLD_GLOBAL 3893#ifdef __cplusplus
3894extern "C"
3895{
3896#endif
3897/* We use char because int might match the return type of a gcc2
3898 builtin and then its argument prototype would still apply. */
3899char sched_yield ();
3900/* The GNU C library defines this for functions which it implements
3901 to always fail with ENOSYS. Some functions are actually named
3902 something starting with __ and the normal name is an alias. */
3903#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
3904choke me
7214#else 3905#else
7215# ifdef DL_GLOBAL 3906char (*f) () = sched_yield;
7216# define LT_DLGLOBAL DL_GLOBAL
7217# else
7218# define LT_DLGLOBAL 0
7219# endif
7220#endif 3907#endif
7221 3908#ifdef __cplusplus
7222/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 3909}
7223 find out it does not work in some platform. */
7224#ifndef LT_DLLAZY_OR_NOW
7225# ifdef RTLD_LAZY
7226# define LT_DLLAZY_OR_NOW RTLD_LAZY
7227# else
7228# ifdef DL_LAZY
7229# define LT_DLLAZY_OR_NOW DL_LAZY
7230# else
7231# ifdef RTLD_NOW
7232# define LT_DLLAZY_OR_NOW RTLD_NOW
7233# else
7234# ifdef DL_NOW
7235# define LT_DLLAZY_OR_NOW DL_NOW
7236# else
7237# define LT_DLLAZY_OR_NOW 0
7238# endif
7239# endif
7240# endif
7241# endif
7242#endif 3910#endif
7243 3911
7244#ifdef __cplusplus 3912int
7245extern "C" void exit (int);
7246#endif
7247
7248fnord() { int i=42;}
7249main () 3913main ()
7250{ 3914{
7251 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 3915return f != sched_yield;
7252 int status = $lt_dlunknown; 3916 ;
7253 3917 return 0;
7254 if (self)
7255 {
7256 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7257 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7258 /* dlclose (self); */
7259 }
7260
7261 exit (status);
7262} 3918}
7263EOF 3919_ACEOF
3920rm -f conftest.$ac_objext conftest$ac_exeext
7264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3922 (eval $ac_link) 2>conftest.er1
3923 ac_status=$?
3924 grep -v '^ *+' conftest.er1 >conftest.err
3925 rm -f conftest.er1
3926 cat conftest.err >&5
3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); } &&
3929 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7265 (eval $ac_link) 2>&5 3931 (eval $ac_try) 2>&5
7266 ac_status=$?
7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7269 (./conftest; exit; ) 2>/dev/null
7270 lt_status=$? 3932 ac_status=$?
7271 case x$lt_status in 3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 3934 (exit $ac_status); }; } &&
7273 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 3935 { ac_try='test -s conftest$ac_exeext'
7274 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 3936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7275 esac 3937 (eval $ac_try) 2>&5
7276 else : 3938 ac_status=$?
7277 # compilation failed 3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 lt_cv_dlopen_self=no 3940 (exit $ac_status); }; }; then
7279 fi 3941 ac_cv_func_sched_yield=yes
7280fi 3942else
7281rm -fr conftest* 3943 echo "$as_me: failed program was:" >&5
3944sed 's/^/| /' conftest.$ac_ext >&5
7282 3945
7283 3946ac_cv_func_sched_yield=no
7284fi 3947fi
3948rm -f conftest.err conftest.$ac_objext \
3949 conftest$ac_exeext conftest.$ac_ext
3950fi
7285echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 3951echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
7286echo "${ECHO_T}$lt_cv_dlopen_self" >&6 3952echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
7287 3953if test $ac_cv_func_sched_yield = yes; then
7288 if test "x$lt_cv_dlopen_self" = xyes; then 3954 :
7289 LDFLAGS="$LDFLAGS $link_static_flag" 3955else
7290 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 3956 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
7291echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 3957echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
7292if test "${lt_cv_dlopen_self_static+set}" = set; then 3958if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6 3959 echo $ECHO_N "(cached) $ECHO_C" >&6
7294else 3960else
7295 if test "$cross_compiling" = yes; then : 3961 ac_check_lib_save_LIBS=$LIBS
7296 lt_cv_dlopen_self_static=cross 3962LIBS="-lrt $LIBS"
7297else
7298 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7299 lt_status=$lt_dlunknown
7300 cat > conftest.$ac_ext <<EOF 3963cat >conftest.$ac_ext <<_ACEOF
7301#line 7301 "configure" 3964/* confdefs.h. */
7302#include "confdefs.h" 3965_ACEOF
3966cat confdefs.h >>conftest.$ac_ext
3967cat >>conftest.$ac_ext <<_ACEOF
3968/* end confdefs.h. */
7303 3969
7304#if HAVE_DLFCN_H 3970/* Override any gcc2 internal prototype to avoid an error. */
7305#include <dlfcn.h> 3971#ifdef __cplusplus
3972extern "C"
7306#endif 3973#endif
7307 3974/* We use char because int might match the return type of a gcc2
7308#include <stdio.h> 3975 builtin and then its argument prototype would still apply. */
7309 3976char sched_yield ();
7310#ifdef RTLD_GLOBAL 3977int
7311# define LT_DLGLOBAL RTLD_GLOBAL
7312#else
7313# ifdef DL_GLOBAL
7314# define LT_DLGLOBAL DL_GLOBAL
7315# else
7316# define LT_DLGLOBAL 0
7317# endif
7318#endif
7319
7320/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7321 find out it does not work in some platform. */
7322#ifndef LT_DLLAZY_OR_NOW
7323# ifdef RTLD_LAZY
7324# define LT_DLLAZY_OR_NOW RTLD_LAZY
7325# else
7326# ifdef DL_LAZY
7327# define LT_DLLAZY_OR_NOW DL_LAZY
7328# else
7329# ifdef RTLD_NOW
7330# define LT_DLLAZY_OR_NOW RTLD_NOW
7331# else
7332# ifdef DL_NOW
7333# define LT_DLLAZY_OR_NOW DL_NOW
7334# else
7335# define LT_DLLAZY_OR_NOW 0
7336# endif
7337# endif
7338# endif
7339# endif
7340#endif
7341
7342#ifdef __cplusplus
7343extern "C" void exit (int);
7344#endif
7345
7346fnord() { int i=42;}
7347main () 3978main ()
7348{ 3979{
7349 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 3980sched_yield ();
7350 int status = $lt_dlunknown; 3981 ;
7351 3982 return 0;
7352 if (self)
7353 {
7354 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7355 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7356 /* dlclose (self); */
7357 }
7358
7359 exit (status);
7360} 3983}
7361EOF 3984_ACEOF
3985rm -f conftest.$ac_objext conftest$ac_exeext
7362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7363 (eval $ac_link) 2>&5 3987 (eval $ac_link) 2>conftest.er1
7364 ac_status=$?
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7367 (./conftest; exit; ) 2>/dev/null
7368 lt_status=$? 3988 ac_status=$?
7369 case x$lt_status in 3989 grep -v '^ *+' conftest.er1 >conftest.err
7370 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7371 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7372 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7373 esac
7374 else :
7375 # compilation failed
7376 lt_cv_dlopen_self_static=no
7377 fi
7378fi
7379rm -fr conftest* 3990 rm -f conftest.er1
7380 3991 cat conftest.err >&5
7381 3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382fi 3993 (exit $ac_status); } &&
7383echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 3994 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7384echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7385 fi
7386
7387 CPPFLAGS="$save_CPPFLAGS"
7388 LDFLAGS="$save_LDFLAGS"
7389 LIBS="$save_LIBS"
7390 ;;
7391 esac
7392
7393 case "$lt_cv_dlopen_self" in
7394 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7395 *) enable_dlopen_self=unknown ;;
7396 esac
7397
7398 case "$lt_cv_dlopen_self_static" in
7399 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7400 *) enable_dlopen_self_static=unknown ;;
7401 esac
7402fi
7403
7404
7405## FIXME: this should be a separate macro
7406##
7407if test "$enable_shared" = yes && test "$GCC" = yes; then
7408 case "$archive_cmds" in
7409 *'~'*)
7410 # FIXME: we may have to deal with multi-command sequences.
7411 ;;
7412 '$CC '*)
7413 # Test whether the compiler implicitly links with -lc since on some
7414 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7415 # to ld, don't add -lc before -lgcc.
7416 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7417echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7418 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7419 echo $ECHO_N "(cached) $ECHO_C" >&6
7420else
7421 $rm conftest*
7422 echo 'static int dummy;' > conftest.$ac_ext
7423
7424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7425 (eval $ac_compile) 2>&5 3996 (eval $ac_try) 2>&5
7426 ac_status=$? 3997 ac_status=$?
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); }; } &&
4000 { ac_try='test -s conftest$ac_exeext'
4001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002 (eval $ac_try) 2>&5
4003 ac_status=$?
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); }; then 4005 (exit $ac_status); }; }; then
7429 soname=conftest 4006 ac_cv_lib_rt_sched_yield=yes
7430 lib=conftest 4007else
7431 libobjs=conftest.$ac_objext 4008 echo "$as_me: failed program was:" >&5
7432 deplibs= 4009sed 's/^/| /' conftest.$ac_ext >&5
7433 wl=$lt_cv_prog_cc_wl 4010
7434 compiler_flags=-v 4011ac_cv_lib_rt_sched_yield=no
7435 linker_flags=-v 4012fi
7436 verstring= 4013rm -f conftest.err conftest.$ac_objext \
7437 output_objdir=. 4014 conftest$ac_exeext conftest.$ac_ext
7438 libname=conftest 4015LIBS=$ac_check_lib_save_LIBS
7439 save_allow_undefined_flag=$allow_undefined_flag 4016fi
7440 allow_undefined_flag= 4017echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
7441 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 4018echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
7442 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 4019if test $ac_cv_lib_rt_sched_yield = yes; then
4020 LIBS="$LIBS -lrt"
4021fi
4022
4023fi
4024
4025
4026echo "$as_me:$LINENO: checking for sched_yield support" >&5
4027echo $ECHO_N "checking for sched_yield support... $ECHO_C" >&6
4028cat >conftest.$ac_ext <<_ACEOF
4029/* confdefs.h. */
4030_ACEOF
4031cat confdefs.h >>conftest.$ac_ext
4032cat >>conftest.$ac_ext <<_ACEOF
4033/* end confdefs.h. */
4034#include <sched.h>
4035int
4036main ()
4037{
4038sched_yield ()
4039 ;
4040 return 0;
4041}
4042_ACEOF
4043rm -f conftest.$ac_objext conftest$ac_exeext
4044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4045 (eval $ac_link) 2>conftest.er1
7443 ac_status=$? 4046 ac_status=$?
4047 grep -v '^ *+' conftest.er1 >conftest.err
4048 rm -f conftest.er1
4049 cat conftest.err >&5
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); } 4051 (exit $ac_status); } &&
7446 then 4052 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7447 lt_cv_archive_cmds_need_lc=no 4053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7448 else 4054 (eval $ac_try) 2>&5
7449 lt_cv_archive_cmds_need_lc=yes 4055 ac_status=$?
7450 fi 4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 allow_undefined_flag=$save_allow_undefined_flag 4057 (exit $ac_status); }; } &&
7452 else 4058 { ac_try='test -s conftest$ac_exeext'
7453 cat conftest.err 1>&5 4059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454 fi 4060 (eval $ac_try) 2>&5
7455fi 4061 ac_status=$?
4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); }; }; then
4064 echo "$as_me:$LINENO: result: yes" >&5
4065echo "${ECHO_T}yes" >&6
7456 4066
7457 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5 4067cat >>confdefs.h <<\_ACEOF
7458echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6 4068#define HAVE_SCHED_YIELD 1
7459 ;; 4069_ACEOF
7460 esac
7461fi
7462need_lc=${lt_cv_archive_cmds_need_lc-yes}
7463##
7464## END FIXME
7465 4070
7466## FIXME: this should be a separate macro
7467##
7468# The second clause should only fire when bootstrapping the
7469# libtool distribution, otherwise you forgot to ship ltmain.sh
7470# with your package, and you will get complaints that there are
7471# no rules to generate ltmain.sh.
7472if test -f "$ltmain"; then
7473 :
7474else 4071else
7475 # If there is no Makefile yet, we rely on a make rule to execute 4072 echo "$as_me: failed program was:" >&5
7476 # `config.status --recheck' to rerun these tests and create the 4073sed 's/^/| /' conftest.$ac_ext >&5
7477 # libtool script then.
7478 test -f Makefile && make "$ltmain"
7479fi
7480 4074
7481if test -f "$ltmain"; then 4075echo "$as_me:$LINENO: result: no" >&5
7482 trap "$rm \"${ofile}T\"; exit 1" 1 2 15 4076echo "${ECHO_T}no" >&6
7483 $rm -f "${ofile}T"
7484
7485 echo creating $ofile
7486
7487 # Now quote all the things that may contain metacharacters while being
7488 # careful not to overquote the AC_SUBSTed values. We take copies of the
7489 # variables and quote the copies for generation of the libtool script.
7490 for var in echo old_CC old_CFLAGS \
7491 AR AR_FLAGS CC LD LN_S NM SHELL \
7492 reload_flag reload_cmds wl \
7493 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7494 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7495 library_names_spec soname_spec \
7496 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7497 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7498 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7499 old_striplib striplib file_magic_cmd export_symbols_cmds \
7500 deplibs_check_method allow_undefined_flag no_undefined_flag \
7501 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7502 hardcode_libdir_flag_spec hardcode_libdir_separator \
7503 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7504 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7505
7506 case "$var" in
7507 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7508 old_postinstall_cmds | old_postuninstall_cmds | \
7509 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7510 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7511 postinstall_cmds | postuninstall_cmds | \
7512 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7513 # Double-quote double-evaled strings.
7514 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7515 ;;
7516 *)
7517 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7518 ;;
7519 esac
7520 done
7521
7522 cat <<__EOF__ > "${ofile}T"
7523#! $SHELL
7524
7525# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7526# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7527# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7528#
7529# Copyright (C) 1996-2000 Free Software Foundation, Inc.
7530# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7531#
7532# This program is free software; you can redistribute it and/or modify
7533# it under the terms of the GNU General Public License as published by
7534# the Free Software Foundation; either version 2 of the License, or
7535# (at your option) any later version.
7536#
7537# This program is distributed in the hope that it will be useful, but
7538# WITHOUT ANY WARRANTY; without even the implied warranty of
7539# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7540# General Public License for more details.
7541#
7542# You should have received a copy of the GNU General Public License
7543# along with this program; if not, write to the Free Software
7544# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7545#
7546# As a special exception to the GNU General Public License, if you
7547# distribute this file as part of a program that contains a
7548# configuration script generated by Autoconf, you may include it under
7549# the same distribution terms that you use for the rest of that program.
7550
7551# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7552Xsed="sed -e s/^X//"
7553
7554# The HP-UX ksh and POSIX shell print the target directory to stdout
7555# if CDPATH is set.
7556if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7557
7558# ### BEGIN LIBTOOL CONFIG
7559
7560# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7561
7562# Shell to use when invoking shell scripts.
7563SHELL=$lt_SHELL
7564
7565# Whether or not to build shared libraries.
7566build_libtool_libs=$enable_shared
7567
7568# Whether or not to add -lc for building shared libraries.
7569build_libtool_need_lc=$need_lc
7570
7571# Whether or not to build static libraries.
7572build_old_libs=$enable_static
7573
7574# Whether or not to optimize for fast installation.
7575fast_install=$enable_fast_install
7576
7577# The host system.
7578host_alias=$host_alias
7579host=$host
7580
7581# An echo program that does not interpret backslashes.
7582echo=$lt_echo
7583
7584# The archiver.
7585AR=$lt_AR
7586AR_FLAGS=$lt_AR_FLAGS
7587
7588# The default C compiler.
7589CC=$lt_CC
7590
7591# Is the compiler the GNU C compiler?
7592with_gcc=$GCC
7593
7594# The linker used to build libraries.
7595LD=$lt_LD
7596
7597# Whether we need hard or soft links.
7598LN_S=$lt_LN_S
7599
7600# A BSD-compatible nm program.
7601NM=$lt_NM
7602
7603# A symbol stripping program
7604STRIP=$STRIP
7605
7606# Used to examine libraries when file_magic_cmd begins "file"
7607MAGIC_CMD=$MAGIC_CMD
7608
7609# Used on cygwin: DLL creation program.
7610DLLTOOL="$DLLTOOL"
7611
7612# Used on cygwin: object dumper.
7613OBJDUMP="$OBJDUMP"
7614
7615# Used on cygwin: assembler.
7616AS="$AS"
7617
7618# The name of the directory that contains temporary libtool files.
7619objdir=$objdir
7620
7621# How to create reloadable object files.
7622reload_flag=$lt_reload_flag
7623reload_cmds=$lt_reload_cmds
7624
7625# How to pass a linker flag through the compiler.
7626wl=$lt_wl
7627
7628# Object file suffix (normally "o").
7629objext="$ac_objext"
7630
7631# Old archive suffix (normally "a").
7632libext="$libext"
7633
7634# Executable file suffix (normally "").
7635exeext="$exeext"
7636
7637# Additional compiler flags for building library objects.
7638pic_flag=$lt_pic_flag
7639pic_mode=$pic_mode
7640
7641# Does compiler simultaneously support -c and -o options?
7642compiler_c_o=$lt_compiler_c_o
7643
7644# Can we write directly to a .lo ?
7645compiler_o_lo=$lt_compiler_o_lo
7646
7647# Must we lock files when doing compilation ?
7648need_locks=$lt_need_locks
7649
7650# Do we need the lib prefix for modules?
7651need_lib_prefix=$need_lib_prefix
7652
7653# Do we need a version for libraries?
7654need_version=$need_version
7655
7656# Whether dlopen is supported.
7657dlopen_support=$enable_dlopen
7658
7659# Whether dlopen of programs is supported.
7660dlopen_self=$enable_dlopen_self
7661
7662# Whether dlopen of statically linked programs is supported.
7663dlopen_self_static=$enable_dlopen_self_static
7664
7665# Compiler flag to prevent dynamic linking.
7666link_static_flag=$lt_link_static_flag
7667
7668# Compiler flag to turn off builtin functions.
7669no_builtin_flag=$lt_no_builtin_flag
7670
7671# Compiler flag to allow reflexive dlopens.
7672export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7673
7674# Compiler flag to generate shared objects directly from archives.
7675whole_archive_flag_spec=$lt_whole_archive_flag_spec
7676
7677# Compiler flag to generate thread-safe objects.
7678thread_safe_flag_spec=$lt_thread_safe_flag_spec
7679
7680# Library versioning type.
7681version_type=$version_type
7682
7683# Format of library name prefix.
7684libname_spec=$lt_libname_spec
7685
7686# List of archive names. First name is the real one, the rest are links.
7687# The last name is the one that the linker finds with -lNAME.
7688library_names_spec=$lt_library_names_spec
7689
7690# The coded name of the library, if different from the real name.
7691soname_spec=$lt_soname_spec
7692
7693# Commands used to build and install an old-style archive.
7694RANLIB=$lt_RANLIB
7695old_archive_cmds=$lt_old_archive_cmds
7696old_postinstall_cmds=$lt_old_postinstall_cmds
7697old_postuninstall_cmds=$lt_old_postuninstall_cmds
7698
7699# Create an old-style archive from a shared archive.
7700old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7701
7702# Create a temporary old-style archive to link instead of a shared archive.
7703old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7704
7705# Commands used to build and install a shared archive.
7706archive_cmds=$lt_archive_cmds
7707archive_expsym_cmds=$lt_archive_expsym_cmds
7708postinstall_cmds=$lt_postinstall_cmds
7709postuninstall_cmds=$lt_postuninstall_cmds
7710
7711# Commands to strip libraries.
7712old_striplib=$lt_old_striplib
7713striplib=$lt_striplib
7714
7715# Method to check whether dependent libraries are shared objects.
7716deplibs_check_method=$lt_deplibs_check_method
7717
7718# Command to use when deplibs_check_method == file_magic.
7719file_magic_cmd=$lt_file_magic_cmd
7720
7721# Flag that allows shared libraries with undefined symbols to be built.
7722allow_undefined_flag=$lt_allow_undefined_flag
7723
7724# Flag that forces no undefined symbols.
7725no_undefined_flag=$lt_no_undefined_flag
7726
7727# Commands used to finish a libtool library installation in a directory.
7728finish_cmds=$lt_finish_cmds
7729
7730# Same as above, but a single script fragment to be evaled but not shown.
7731finish_eval=$lt_finish_eval
7732
7733# Take the output of nm and produce a listing of raw symbols and C names.
7734global_symbol_pipe=$lt_global_symbol_pipe
7735
7736# Transform the output of nm in a proper C declaration
7737global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7738
7739# This is the shared library runtime path variable.
7740runpath_var=$runpath_var
7741
7742# This is the shared library path variable.
7743shlibpath_var=$shlibpath_var
7744
7745# Is shlibpath searched before the hard-coded library search path?
7746shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7747
7748# How to hardcode a shared library path into an executable.
7749hardcode_action=$hardcode_action
7750
7751# Whether we should hardcode library paths into libraries.
7752hardcode_into_libs=$hardcode_into_libs
7753
7754# Flag to hardcode \$libdir into a binary during linking.
7755# This must work even if \$libdir does not exist.
7756hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7757
7758# Whether we need a single -rpath flag with a separated argument.
7759hardcode_libdir_separator=$lt_hardcode_libdir_separator
7760
7761# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7762# resulting binary.
7763hardcode_direct=$hardcode_direct
7764
7765# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7766# resulting binary.
7767hardcode_minus_L=$hardcode_minus_L
7768
7769# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7770# the resulting binary.
7771hardcode_shlibpath_var=$hardcode_shlibpath_var
7772
7773# Variables whose values should be saved in libtool wrapper scripts and
7774# restored at relink time.
7775variables_saved_for_relink="$variables_saved_for_relink"
7776
7777# Whether libtool must link a program against all its dependency libraries.
7778link_all_deplibs=$link_all_deplibs
7779
7780# Compile-time system search path for libraries
7781sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7782
7783# Run-time system search path for libraries
7784sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7785
7786# Fix the shell variable \$srcfile for the compiler.
7787fix_srcfile_path="$fix_srcfile_path"
7788
7789# Set to yes if exported symbols are required.
7790always_export_symbols=$always_export_symbols
7791
7792# The commands to list exported symbols.
7793export_symbols_cmds=$lt_export_symbols_cmds
7794
7795# The commands to extract the exported symbol list from a shared archive.
7796extract_expsyms_cmds=$lt_extract_expsyms_cmds
7797
7798# Symbols that should not be listed in the preloaded symbols.
7799exclude_expsyms=$lt_exclude_expsyms
7800
7801# Symbols that must always be exported.
7802include_expsyms=$lt_include_expsyms
7803
7804# ### END LIBTOOL CONFIG
7805
7806__EOF__
7807
7808 case "$host_os" in
7809 aix3*)
7810 cat <<\EOF >> "${ofile}T"
7811
7812# AIX sometimes has problems with the GCC collect2 program. For some
7813# reason, if we set the COLLECT_NAMES environment variable, the problems
7814# vanish in a puff of smoke.
7815if test "X${COLLECT_NAMES+set}" != Xset; then
7816 COLLECT_NAMES=
7817 export COLLECT_NAMES
7818fi 4077fi
7819EOF 4078rm -f conftest.err conftest.$ac_objext \
7820 ;; 4079 conftest$ac_exeext conftest.$ac_ext
7821 esac
7822
7823 case "$host_os" in
7824 cygwin* | mingw* | pw32* | os2*)
7825 cat <<'EOF' >> "${ofile}T"
7826 # This is a source program that is used to create dlls on Windows
7827 # Don't remove nor modify the starting and closing comments
7828# /* ltdll.c starts here */
7829# #define WIN32_LEAN_AND_MEAN
7830# #include <windows.h>
7831# #undef WIN32_LEAN_AND_MEAN
7832# #include <stdio.h>
7833#
7834# #ifndef __CYGWIN__
7835# # ifdef __CYGWIN32__
7836# # define __CYGWIN__ __CYGWIN32__
7837# # endif
7838# #endif
7839#
7840# #ifdef __cplusplus
7841# extern "C" {
7842# #endif
7843# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7844# #ifdef __cplusplus
7845# }
7846# #endif
7847#
7848# #ifdef __CYGWIN__
7849# #include <cygwin/cygwin_dll.h>
7850# DECLARE_CYGWIN_DLL( DllMain );
7851# #endif
7852# HINSTANCE __hDllInstance_base;
7853#
7854# BOOL APIENTRY
7855# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7856# {
7857# __hDllInstance_base = hInst;
7858# return TRUE;
7859# }
7860# /* ltdll.c ends here */
7861 # This is a source program that is used to create import libraries
7862 # on Windows for dlls which lack them. Don't remove nor modify the
7863 # starting and closing comments
7864# /* impgen.c starts here */
7865# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7866#
7867# This file is part of GNU libtool.
7868#
7869# This program is free software; you can redistribute it and/or modify
7870# it under the terms of the GNU General Public License as published by
7871# the Free Software Foundation; either version 2 of the License, or
7872# (at your option) any later version.
7873#
7874# This program is distributed in the hope that it will be useful,
7875# but WITHOUT ANY WARRANTY; without even the implied warranty of
7876# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7877# GNU General Public License for more details.
7878#
7879# You should have received a copy of the GNU General Public License
7880# along with this program; if not, write to the Free Software
7881# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7882# */
7883#
7884# #include <stdio.h> /* for printf() */
7885# #include <unistd.h> /* for open(), lseek(), read() */
7886# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7887# #include <string.h> /* for strdup() */
7888#
7889# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7890# #ifndef O_BINARY
7891# #define O_BINARY 0
7892# #endif
7893#
7894# static unsigned int
7895# pe_get16 (fd, offset)
7896# int fd;
7897# int offset;
7898# {
7899# unsigned char b[2];
7900# lseek (fd, offset, SEEK_SET);
7901# read (fd, b, 2);
7902# return b[0] + (b[1]<<8);
7903# }
7904#
7905# static unsigned int
7906# pe_get32 (fd, offset)
7907# int fd;
7908# int offset;
7909# {
7910# unsigned char b[4];
7911# lseek (fd, offset, SEEK_SET);
7912# read (fd, b, 4);
7913# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7914# }
7915#
7916# static unsigned int
7917# pe_as32 (ptr)
7918# void *ptr;
7919# {
7920# unsigned char *b = ptr;
7921# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7922# }
7923#
7924# int
7925# main (argc, argv)
7926# int argc;
7927# char *argv[];
7928# {
7929# int dll;
7930# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7931# unsigned long export_rva, export_size, nsections, secptr, expptr;
7932# unsigned long name_rvas, nexp;
7933# unsigned char *expdata, *erva;
7934# char *filename, *dll_name;
7935#
7936# filename = argv[1];
7937#
7938# dll = open(filename, O_RDONLY|O_BINARY);
7939# if (!dll)
7940# return 1;
7941#
7942# dll_name = filename;
7943#
7944# for (i=0; filename[i]; i++)
7945# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7946# dll_name = filename + i +1;
7947#
7948# pe_header_offset = pe_get32 (dll, 0x3c);
7949# opthdr_ofs = pe_header_offset + 4 + 20;
7950# num_entries = pe_get32 (dll, opthdr_ofs + 92);
7951#
7952# if (num_entries < 1) /* no exports */
7953# return 1;
7954#
7955# export_rva = pe_get32 (dll, opthdr_ofs + 96);
7956# export_size = pe_get32 (dll, opthdr_ofs + 100);
7957# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7958# secptr = (pe_header_offset + 4 + 20 +
7959# pe_get16 (dll, pe_header_offset + 4 + 16));
7960#
7961# expptr = 0;
7962# for (i = 0; i < nsections; i++)
7963# {
7964# char sname[8];
7965# unsigned long secptr1 = secptr + 40 * i;
7966# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7967# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7968# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7969# lseek(dll, secptr1, SEEK_SET);
7970# read(dll, sname, 8);
7971# if (vaddr <= export_rva && vaddr+vsize > export_rva)
7972# {
7973# expptr = fptr + (export_rva - vaddr);
7974# if (export_rva + export_size > vaddr + vsize)
7975# export_size = vsize - (export_rva - vaddr);
7976# break;
7977# }
7978# }
7979#
7980# expdata = (unsigned char*)malloc(export_size);
7981# lseek (dll, expptr, SEEK_SET);
7982# read (dll, expdata, export_size);
7983# erva = expdata - export_rva;
7984#
7985# nexp = pe_as32 (expdata+24);
7986# name_rvas = pe_as32 (expdata+32);
7987#
7988# printf ("EXPORTS\n");
7989# for (i = 0; i<nexp; i++)
7990# {
7991# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7992# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7993# }
7994#
7995# return 0;
7996# }
7997# /* impgen.c ends here */
7998
7999EOF
8000 ;;
8001 esac
8002
8003 # We use sed instead of cat because bash on DJGPP gets confused if
8004 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8005 # text mode, it properly converts lines to CR/LF. This bash problem
8006 # is reportedly fixed, but why not run on old versions too?
8007 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8008
8009 mv -f "${ofile}T" "$ofile" || \
8010 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8011 chmod +x "$ofile"
8012fi
8013##
8014## END FIXME
8015
8016
8017
8018
8019
8020# This can be used to rebuild libtool when needed
8021LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8022
8023# Always use our own libtool.
8024LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8025
8026# Prevent multiple expansion
8027 4080
8028 4081
8029MALLOC_TYPE=S 4082MALLOC_TYPE=S
8030support_addstrings=no 4083
8031support_frills=no 4084support_frills=yes
8032support_linespace=no
8033support_inheritpixmap=no 4085support_inheritpixmap=yes
8034support_tinting=no 4086support_tinting=yes
4087support_fading=yes
8035support_keepscrolling=no 4088support_keepscrolling=yes
8036support_selectionscrolling=no 4089support_selectionscrolling=yes
8037support_menubar=no
8038support_mousewheel=no 4090support_mousewheel=yes
8039support_mouseslipwheel=no 4091support_mouseslipwheel=yes
8040support_utmp=no 4092support_utmp=yes
8041support_wtmp=no 4093support_wtmp=yes
8042support_lastlog=no 4094support_lastlog=yes
8043support_cursor_blink=no
8044support_text_blink=no 4095support_text_blink=yes
8045support_pointer_blank=no 4096support_pointer_blank=yes
8046support_scroll_rxvt=no 4097support_scroll_rxvt=yes
8047support_scroll_next=no 4098support_scroll_next=yes
8048support_scroll_xterm=no 4099support_scroll_xterm=yes
8049support_scroll_plain=no 4100support_scroll_plain=yes
8050support_xim=no 4101support_xim=yes
8051support_xpm=no 4102support_xpm=yes
8052support_xft=no 4103support_xft=yes
8053support_unicode3=no 4104support_unicode3=no
8054support_combining=no 4105support_combining=yes
4106support_8bitctrls=no
4107support_iso14755=yes
4108support_styles=yes
4109support_perl=yes
8055codesets= 4110codesets=all
8056 4111
8057 4112
8058if test "x$enable_shared" = xyes; then 4113if test "x$enable_shared" = xyes; then
8059 4114
8060cat >>confdefs.h <<\_ACEOF 4115cat >>confdefs.h <<\_ACEOF
8066 4121
8067 4122
8068# Check whether --enable-everything or --disable-everything was given. 4123# Check whether --enable-everything or --disable-everything was given.
8069if test "${enable_everything+set}" = set; then 4124if test "${enable_everything+set}" = set; then
8070 enableval="$enable_everything" 4125 enableval="$enable_everything"
4126
4127 if test x$enableval = xno; then
4128 support_24bit=no
4129 support_frills=no
4130 support_inheritpixmap=no
4131 support_tinting=no
4132 support_fading=no
4133 support_keepscrolling=no
4134 support_selectionscrolling=no
4135 support_lastlog=no
4136 support_mousewheel=no
4137 support_mouseslipwheel=no
4138 support_text_blink=no
4139 support_pointer_blank=no
4140 support_scroll_rxvt=no
4141 support_scroll_next=no
4142 support_scroll_xterm=no
4143 support_scroll_plain=no
4144 support_utmp=no
4145 support_wtmp=no
4146 support_xim=no
4147 support_xpm=no
4148 support_xft=no
4149 support_unicode3=no
4150 support_combining=no
4151 support_8bitctrls=no
4152 support_iso14755=no
4153 support_styles=no
4154 support_perl=no
4155 codesets=
4156 fi
8071 if test x$enableval = xyes; then 4157 if test x$enableval = xyes; then
8072 support_24bit=yes 4158 support_24bit=yes
8073 support_frills=yes 4159 support_frills=yes
8074 support_linespace=yes
8075 support_inheritpixmap=yes 4160 support_inheritpixmap=yes
8076 support_tinting=yes 4161 support_tinting=yes
4162 support_fading=yes
8077 support_keepscrolling=yes 4163 support_keepscrolling=yes
8078 support_selectionscrolling=yes 4164 support_selectionscrolling=yes
8079 support_lastlog=yes 4165 support_lastlog=yes
8080 support_menubar=yes
8081 support_mousewheel=yes 4166 support_mousewheel=yes
8082 support_mouseslipwheel=yes 4167 support_mouseslipwheel=yes
8083 support_cursor_blink=yes
8084 support_text_blink=yes 4168 support_text_blink=yes
8085 support_pointer_blank=yes 4169 support_pointer_blank=yes
8086 support_scroll_rxvt=yes 4170 support_scroll_rxvt=yes
8087 support_scroll_next=yes 4171 support_scroll_next=yes
8088 support_scroll_xterm=yes 4172 support_scroll_xterm=yes
8089 support_scroll_plain=yes 4173 support_scroll_plain=yes
8090 support_utmp=yes 4174 support_utmp=yes
8091 support_wtmp=yes 4175 support_wtmp=yes
8092 support_xim=yes 4176 support_xim=yes
8093 support_xpm=yes 4177 support_xpm=yes
8094 support_xft=yes 4178 support_xft=yes
8095 support_unicode3=yes 4179 support_unicode3=yes
8096 support_combining=yes 4180 support_combining=yes
4181 #support_8bitctrls=yes
4182 support_iso14755=yes
4183 support_styles=yes
4184 support_perl=yes
8097 codesets=all 4185 codesets=all
8098 fi 4186 fi
4187
8099fi; 4188fi;
8100 4189
8101# Check whether --enable-unicode3 or --disable-unicode3 was given. 4190# Check whether --enable-unicode3 or --disable-unicode3 was given.
8102if test "${enable_unicode3+set}" = set; then 4191if test "${enable_unicode3+set}" = set; then
8103 enableval="$enable_unicode3" 4192 enableval="$enable_unicode3"
8104 if test x$enableval = xyes -o x$enableval = xno; then 4193 if test x$enableval = xyes -o x$enableval = xno; then
8105 support_unicode3=yes 4194 support_unicode3=$enableval
8106 fi 4195 fi
8107fi; 4196fi;
8108 4197
8109# Check whether --enable-combining or --disable-combining was given. 4198# Check whether --enable-combining or --disable-combining was given.
8110if test "${enable_combining+set}" = set; then 4199if test "${enable_combining+set}" = set; then
8111 enableval="$enable_combining" 4200 enableval="$enable_combining"
8112 if test x$enableval = xyes -o x$enableval = xno; then 4201 if test x$enableval = xyes -o x$enableval = xno; then
8113 support_combining=yes 4202 support_combining=$enableval
8114 fi 4203 fi
8115fi; 4204fi;
8116 4205
8117# Check whether --enable-xft or --disable-xft was given. 4206# Check whether --enable-xft or --disable-xft was given.
8118if test "${enable_xft+set}" = set; then 4207if test "${enable_xft+set}" = set; then
8119 enableval="$enable_xft" 4208 enableval="$enable_xft"
8120 if test x$enableval = xyes -o x$enableval = xno; then 4209 if test x$enableval = xyes -o x$enableval = xno; then
8121 support_xft=yes 4210 support_xft=$enableval
4211 fi
4212fi;
4213
4214# Check whether --enable-font-styles or --disable-font-styles was given.
4215if test "${enable_font_styles+set}" = set; then
4216 enableval="$enable_font_styles"
4217 if test x$enableval = xyes -o x$enableval = xno; then
4218 support_styles=$enableval
8122 fi 4219 fi
8123fi; 4220fi;
8124 4221
8125# Check whether --enable-utmp or --disable-utmp was given. 4222# Check whether --enable-utmp or --disable-utmp was given.
8126if test "${enable_utmp+set}" = set; then 4223if test "${enable_utmp+set}" = set; then
8168 if test x$enableval = xyes -o x$enableval = xno; then 4265 if test x$enableval = xyes -o x$enableval = xno; then
8169 support_tinting=$enableval 4266 support_tinting=$enableval
8170 fi 4267 fi
8171fi; 4268fi;
8172 4269
8173# Check whether --enable-menubar or --disable-menubar was given. 4270# Check whether --enable-fading or --disable-fading was given.
8174if test "${enable_menubar+set}" = set; then 4271if test "${enable_fading+set}" = set; then
8175 enableval="$enable_menubar" 4272 enableval="$enable_fading"
8176 if test x$enableval = xyes -o x$enableval = xno; then 4273 if test x$enableval = xyes -o x$enableval = xno; then
8177 support_menubar=$enableval 4274 support_fading=$enableval
8178 fi 4275 fi
8179fi; 4276fi;
8180 4277
8181# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given. 4278# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
8182if test "${enable_rxvt_scroll+set}" = set; then 4279if test "${enable_rxvt_scroll+set}" = set; then
8200 if test x$enableval = xyes -o x$enableval = xno; then 4297 if test x$enableval = xyes -o x$enableval = xno; then
8201 support_scroll_xterm=$enableval 4298 support_scroll_xterm=$enableval
8202 fi 4299 fi
8203fi; 4300fi;
8204 4301
4302# Check whether --enable-perl or --disable-perl was given.
4303if test "${enable_perl+set}" = set; then
4304 enableval="$enable_perl"
4305 if test x$enableval = xyes -o x$enableval = xno; then
4306 support_perl=$enableval
4307 fi
4308fi;
4309
8205# Check whether --enable-plain-scroll or --disable-plain-scroll was given. 4310# Check whether --enable-plain-scroll or --disable-plain-scroll was given.
8206if test "${enable_plain_scroll+set}" = set; then 4311if test "${enable_plain_scroll+set}" = set; then
8207 enableval="$enable_plain_scroll" 4312 enableval="$enable_plain_scroll"
8208 if test x$enableval = xyes -o x$enableval = xno; then 4313 if test x$enableval = xyes -o x$enableval = xno; then
8209 support_scroll_plain=$enableval 4314 support_scroll_plain=$enableval
8210 fi 4315 fi
8211fi; 4316fi;
8212 4317
8213# Check whether --enable-half-shadow or --disable-half-shadow was given.
8214if test "${enable_half_shadow+set}" = set; then
8215 enableval="$enable_half_shadow"
8216 if test x$enableval = xyes; then
8217
8218cat >>confdefs.h <<\_ACEOF
8219#define HALFSHADOW 1
8220_ACEOF
8221
8222 fi
8223fi;
8224 4318
8225 4319
8226# Check whether --with-codesets or --without-codesets was given. 4320# Check whether --with-codesets or --without-codesets was given.
8227if test "${with_codesets+set}" = set; then 4321if test "${with_codesets+set}" = set; then
8228 withval="$with_codesets" 4322 withval="$with_codesets"
8283_ACEOF 4377_ACEOF
8284 4378
8285 fi 4379 fi
8286fi; 4380fi;
8287 4381
8288# Check whether --enable-xgetdefault or --disable-xgetdefault was given. 4382# Check whether --enable-8bitctrls or --disable-8bitctrls was given.
8289if test "${enable_xgetdefault+set}" = set; then 4383if test "${enable_8bitctrls+set}" = set; then
8290 enableval="$enable_xgetdefault" 4384 enableval="$enable_8bitctrls"
8291 if test x$enableval = xyes; then 4385 if test x$enableval = xyes -o x$enableval = xno; then
8292 4386 support_8bitctrls=$enableval
8293cat >>confdefs.h <<\_ACEOF
8294#define USE_XGETDEFAULT 1
8295_ACEOF
8296
8297 fi 4387 fi
8298fi; 4388fi;
8299 4389
8300RESFALLBACK=Rxvt 4390RESFALLBACK=Rxvt
8301# Check whether --enable-fallback or --disable-fallback was given. 4391# Check whether --enable-fallback or --disable-fallback was given.
8348if test "${with_name+set}" = set; then 4438if test "${with_name+set}" = set; then
8349 withval="$with_name" 4439 withval="$with_name"
8350 RXVTNAME="$withval" 4440 RXVTNAME="$withval"
8351fi; 4441fi;
8352 4442
4443cat >>confdefs.h <<_ACEOF
4444#define RXVTNAME "$RXVTNAME"
4445_ACEOF
4446
4447
8353RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` 4448RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
8354 4449
8355
8356# Check whether --enable-strings or --disable-strings was given.
8357if test "${enable_strings+set}" = set; then
8358 enableval="$enable_strings"
8359 if test x$enableval = xyes -o x$enableval = xno; then
8360 support_addstrings=$enableval
8361 fi
8362fi;
8363 4450
8364# Check whether --enable-swapscreen or --disable-swapscreen was given. 4451# Check whether --enable-swapscreen or --disable-swapscreen was given.
8365if test "${enable_swapscreen+set}" = set; then 4452if test "${enable_swapscreen+set}" = set; then
8366 enableval="$enable_swapscreen" 4453 enableval="$enable_swapscreen"
8367 if test x$enableval = xno; then 4454 if test x$enableval = xno; then
8368 4455
8369cat >>confdefs.h <<\_ACEOF 4456cat >>confdefs.h <<\_ACEOF
8370#define NO_SECONDARY_SCREEN 1 4457#define NO_SECONDARY_SCREEN 1
8371_ACEOF 4458_ACEOF
8372 4459
4460 fi
4461fi;
4462
4463# Check whether --enable-iso14755 or --disable-iso14755 was given.
4464if test "${enable_iso14755+set}" = set; then
4465 enableval="$enable_iso14755"
4466 if test x$enableval = xyes -o x$enableval = xno; then
4467 support_iso14755=$enableval
8373 fi 4468 fi
8374fi; 4469fi;
8375 4470
8376# Check whether --enable-frills or --disable-frills was given. 4471# Check whether --enable-frills or --disable-frills was given.
8377if test "${enable_frills+set}" = set; then 4472if test "${enable_frills+set}" = set; then
8378 enableval="$enable_frills" 4473 enableval="$enable_frills"
8379 if test x$enableval = xyes -o x$enableval = xno; then 4474 if test x$enableval = xyes -o x$enableval = xno; then
8380 support_frills=$enableval 4475 support_frills=$enableval
8381 fi
8382fi;
8383
8384# Check whether --enable-linespace or --disable-linespace was given.
8385if test "${enable_linespace+set}" = set; then
8386 enableval="$enable_linespace"
8387 if test x$enableval = xyes -o x$enableval = xno; then
8388 support_linespace=$enableval
8389 fi 4476 fi
8390fi; 4477fi;
8391 4478
8392# Check whether --enable-24bit or --disable-24bit was given. 4479# Check whether --enable-24bit or --disable-24bit was given.
8393if test "${enable_24bit+set}" = set; then 4480if test "${enable_24bit+set}" = set; then
8461_ACEOF 4548_ACEOF
8462 4549
8463 fi 4550 fi
8464fi; 4551fi;
8465 4552
8466# Check whether --enable-256-color or --disable-256-color was given.
8467if test "${enable_256_color+set}" = set; then
8468 enableval="$enable_256_color"
8469 if test x$enableval = xyes; then
8470
8471cat >>confdefs.h <<\_ACEOF
8472#define TTY_256COLOR 1
8473_ACEOF
8474
8475 fi
8476fi;
8477
8478# Check whether --enable-cursor-blink or --disable-cursor-blink was given.
8479if test "${enable_cursor_blink+set}" = set; then
8480 enableval="$enable_cursor_blink"
8481 if test x$enableval = xyes -o x$enableval = xno; then
8482 support_cursor_blink=$enableval
8483 fi
8484fi;
8485
8486# Check whether --enable-text-blink or --disable-text-blink was given. 4553# Check whether --enable-text-blink or --disable-text-blink was given.
8487if test "${enable_text_blink+set}" = set; then 4554if test "${enable_text_blink+set}" = set; then
8488 enableval="$enable_text_blink" 4555 enableval="$enable_text_blink"
8489 if test x$enableval = xyes -o x$enableval = xno; then 4556 if test x$enableval = xyes -o x$enableval = xno; then
8490 support_text_blink=$enableval 4557 support_text_blink=$enableval
8523_ACEOF 4590_ACEOF
8524 terminfo="$withval" 4591 terminfo="$withval"
8525 fi 4592 fi
8526fi; 4593fi;
8527 4594
8528
8529
8530cat >>confdefs.h <<\_ACEOF
8531#define PROTOTYPES 1
8532_ACEOF
8533
8534
8535if test -z "$CFLAGS"; then
8536 if test -z "$CCOPTS"; then
8537 CCOPTS='-O'
8538 fi
8539 CFLAGS="$CCOPTS"
8540fi
8541 4595
8542# Extract the first word of "mv", so it can be a program name with args. 4596# Extract the first word of "mv", so it can be a program name with args.
8543set dummy mv; ac_word=$2 4597set dummy mv; ac_word=$2
8544echo "$as_me:$LINENO: checking for $ac_word" >&5 4598echo "$as_me:$LINENO: checking for $ac_word" >&5
8545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8817else 4871else
8818 echo "$as_me:$LINENO: result: no" >&5 4872 echo "$as_me:$LINENO: result: no" >&5
8819echo "${ECHO_T}no" >&6 4873echo "${ECHO_T}no" >&6
8820fi 4874fi
8821 4875
8822# Extract the first word of "tbl", so it can be a program name with args. 4876# Extract the first word of "tic", so it can be a program name with args.
8823set dummy tbl; ac_word=$2 4877set dummy tic; ac_word=$2
8824echo "$as_me:$LINENO: checking for $ac_word" >&5 4878echo "$as_me:$LINENO: checking for $ac_word" >&5
8825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8826if test "${ac_cv_path_TBL+set}" = set; then 4880if test "${ac_cv_path_TIC+set}" = set; then
8827 echo $ECHO_N "(cached) $ECHO_C" >&6 4881 echo $ECHO_N "(cached) $ECHO_C" >&6
8828else 4882else
8829 case $TBL in 4883 case $TIC in
8830 [\\/]* | ?:[\\/]*) 4884 [\\/]* | ?:[\\/]*)
8831 ac_cv_path_TBL="$TBL" # Let the user override the test with a path. 4885 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
8832 ;; 4886 ;;
8833 *) 4887 *)
8834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8835for as_dir in $PATH 4889for as_dir in $PATH
8836do 4890do
8837 IFS=$as_save_IFS 4891 IFS=$as_save_IFS
8838 test -z "$as_dir" && as_dir=. 4892 test -z "$as_dir" && as_dir=.
8839 for ac_exec_ext in '' $ac_executable_extensions; do 4893 for ac_exec_ext in '' $ac_executable_extensions; do
8840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8841 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext" 4895 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
8842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8843 break 2 4897 break 2
8844 fi 4898 fi
8845done 4899done
8846done 4900done
8847 4901
8848 ;; 4902 ;;
8849esac 4903esac
8850fi 4904fi
8851TBL=$ac_cv_path_TBL 4905TIC=$ac_cv_path_TIC
8852 4906
8853if test -n "$TBL"; then 4907if test -n "$TIC"; then
8854 echo "$as_me:$LINENO: result: $TBL" >&5 4908 echo "$as_me:$LINENO: result: $TIC" >&5
8855echo "${ECHO_T}$TBL" >&6 4909echo "${ECHO_T}$TIC" >&6
8856else 4910else
8857 echo "$as_me:$LINENO: result: no" >&5 4911 echo "$as_me:$LINENO: result: no" >&5
8858echo "${ECHO_T}no" >&6 4912echo "${ECHO_T}no" >&6
8859fi 4913fi
8860 4914
8861 4915
4916
4917
4918ac_ext=cc
4919ac_cpp='$CXXCPP $CPPFLAGS'
4920ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4921ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4922ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4923echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4924echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4925if test -z "$CXXCPP"; then
4926 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4927 echo $ECHO_N "(cached) $ECHO_C" >&6
4928else
4929 # Double quotes because CXXCPP needs to be expanded
4930 for CXXCPP in "$CXX -E" "/lib/cpp"
4931 do
4932 ac_preproc_ok=false
4933for ac_cxx_preproc_warn_flag in '' yes
4934do
4935 # Use a header file that comes with gcc, so configuring glibc
4936 # with a fresh cross-compiler works.
4937 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4938 # <limits.h> exists even on freestanding compilers.
4939 # On the NeXT, cc -E runs the code through the compiler's parser,
4940 # not just through cpp. "Syntax error" is here to catch this case.
4941 cat >conftest.$ac_ext <<_ACEOF
4942/* confdefs.h. */
4943_ACEOF
4944cat confdefs.h >>conftest.$ac_ext
4945cat >>conftest.$ac_ext <<_ACEOF
4946/* end confdefs.h. */
4947#ifdef __STDC__
4948# include <limits.h>
4949#else
4950# include <assert.h>
4951#endif
4952 Syntax error
4953_ACEOF
4954if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4956 ac_status=$?
4957 grep -v '^ *+' conftest.er1 >conftest.err
4958 rm -f conftest.er1
4959 cat conftest.err >&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); } >/dev/null; then
4962 if test -s conftest.err; then
4963 ac_cpp_err=$ac_cxx_preproc_warn_flag
4964 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4965 else
4966 ac_cpp_err=
4967 fi
4968else
4969 ac_cpp_err=yes
4970fi
4971if test -z "$ac_cpp_err"; then
4972 :
4973else
4974 echo "$as_me: failed program was:" >&5
4975sed 's/^/| /' conftest.$ac_ext >&5
4976
4977 # Broken: fails on valid input.
4978continue
4979fi
4980rm -f conftest.err conftest.$ac_ext
4981
4982 # OK, works on sane cases. Now check whether non-existent headers
4983 # can be detected and how.
4984 cat >conftest.$ac_ext <<_ACEOF
4985/* confdefs.h. */
4986_ACEOF
4987cat confdefs.h >>conftest.$ac_ext
4988cat >>conftest.$ac_ext <<_ACEOF
4989/* end confdefs.h. */
4990#include <ac_nonexistent.h>
4991_ACEOF
4992if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4993 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4994 ac_status=$?
4995 grep -v '^ *+' conftest.er1 >conftest.err
4996 rm -f conftest.er1
4997 cat conftest.err >&5
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); } >/dev/null; then
5000 if test -s conftest.err; then
5001 ac_cpp_err=$ac_cxx_preproc_warn_flag
5002 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5003 else
5004 ac_cpp_err=
5005 fi
5006else
5007 ac_cpp_err=yes
5008fi
5009if test -z "$ac_cpp_err"; then
5010 # Broken: success on invalid input.
5011continue
5012else
5013 echo "$as_me: failed program was:" >&5
5014sed 's/^/| /' conftest.$ac_ext >&5
5015
5016 # Passes both tests.
5017ac_preproc_ok=:
5018break
5019fi
5020rm -f conftest.err conftest.$ac_ext
5021
5022done
5023# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5024rm -f conftest.err conftest.$ac_ext
5025if $ac_preproc_ok; then
5026 break
5027fi
5028
5029 done
5030 ac_cv_prog_CXXCPP=$CXXCPP
5031
5032fi
5033 CXXCPP=$ac_cv_prog_CXXCPP
5034else
5035 ac_cv_prog_CXXCPP=$CXXCPP
5036fi
5037echo "$as_me:$LINENO: result: $CXXCPP" >&5
5038echo "${ECHO_T}$CXXCPP" >&6
5039ac_preproc_ok=false
5040for ac_cxx_preproc_warn_flag in '' yes
5041do
5042 # Use a header file that comes with gcc, so configuring glibc
5043 # with a fresh cross-compiler works.
5044 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5045 # <limits.h> exists even on freestanding compilers.
5046 # On the NeXT, cc -E runs the code through the compiler's parser,
5047 # not just through cpp. "Syntax error" is here to catch this case.
5048 cat >conftest.$ac_ext <<_ACEOF
5049/* confdefs.h. */
5050_ACEOF
5051cat confdefs.h >>conftest.$ac_ext
5052cat >>conftest.$ac_ext <<_ACEOF
5053/* end confdefs.h. */
5054#ifdef __STDC__
5055# include <limits.h>
5056#else
5057# include <assert.h>
5058#endif
5059 Syntax error
5060_ACEOF
5061if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5063 ac_status=$?
5064 grep -v '^ *+' conftest.er1 >conftest.err
5065 rm -f conftest.er1
5066 cat conftest.err >&5
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); } >/dev/null; then
5069 if test -s conftest.err; then
5070 ac_cpp_err=$ac_cxx_preproc_warn_flag
5071 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5072 else
5073 ac_cpp_err=
5074 fi
5075else
5076 ac_cpp_err=yes
5077fi
5078if test -z "$ac_cpp_err"; then
5079 :
5080else
5081 echo "$as_me: failed program was:" >&5
5082sed 's/^/| /' conftest.$ac_ext >&5
5083
5084 # Broken: fails on valid input.
5085continue
5086fi
5087rm -f conftest.err conftest.$ac_ext
5088
5089 # OK, works on sane cases. Now check whether non-existent headers
5090 # can be detected and how.
5091 cat >conftest.$ac_ext <<_ACEOF
5092/* confdefs.h. */
5093_ACEOF
5094cat confdefs.h >>conftest.$ac_ext
5095cat >>conftest.$ac_ext <<_ACEOF
5096/* end confdefs.h. */
5097#include <ac_nonexistent.h>
5098_ACEOF
5099if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5101 ac_status=$?
5102 grep -v '^ *+' conftest.er1 >conftest.err
5103 rm -f conftest.er1
5104 cat conftest.err >&5
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); } >/dev/null; then
5107 if test -s conftest.err; then
5108 ac_cpp_err=$ac_cxx_preproc_warn_flag
5109 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5110 else
5111 ac_cpp_err=
5112 fi
5113else
5114 ac_cpp_err=yes
5115fi
5116if test -z "$ac_cpp_err"; then
5117 # Broken: success on invalid input.
5118continue
5119else
5120 echo "$as_me: failed program was:" >&5
5121sed 's/^/| /' conftest.$ac_ext >&5
5122
5123 # Passes both tests.
5124ac_preproc_ok=:
5125break
5126fi
5127rm -f conftest.err conftest.$ac_ext
5128
5129done
5130# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5131rm -f conftest.err conftest.$ac_ext
5132if $ac_preproc_ok; then
5133 :
5134else
5135 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5136See \`config.log' for more details." >&5
5137echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5138See \`config.log' for more details." >&2;}
5139 { (exit 1); exit 1; }; }
5140fi
5141
5142ac_ext=cc
5143ac_cpp='$CXXCPP $CPPFLAGS'
5144ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5145ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5146ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8862 5147
8863 5148
8864 5149
8865if test "x$ac_path_x_has_been_run" != xyes; then 5150if test "x$ac_path_x_has_been_run" != xyes; then
8866 echo "$as_me:$LINENO: checking for X" >&5 5151 echo "$as_me:$LINENO: checking for X" >&5
8965/* confdefs.h. */ 5250/* confdefs.h. */
8966_ACEOF 5251_ACEOF
8967cat confdefs.h >>conftest.$ac_ext 5252cat confdefs.h >>conftest.$ac_ext
8968cat >>conftest.$ac_ext <<_ACEOF 5253cat >>conftest.$ac_ext <<_ACEOF
8969/* end confdefs.h. */ 5254/* end confdefs.h. */
8970#include <X11/Intrinsic.h> 5255#include <X11/Xlib.h>
8971_ACEOF 5256_ACEOF
8972if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5257if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8973 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8974 ac_status=$? 5259 ac_status=$?
8975 grep -v '^ *+' conftest.er1 >conftest.err 5260 grep -v '^ *+' conftest.er1 >conftest.err
8992else 5277else
8993 echo "$as_me: failed program was:" >&5 5278 echo "$as_me: failed program was:" >&5
8994sed 's/^/| /' conftest.$ac_ext >&5 5279sed 's/^/| /' conftest.$ac_ext >&5
8995 5280
8996 for ac_dir in $ac_x_header_dirs; do 5281 for ac_dir in $ac_x_header_dirs; do
8997 if test -r "$ac_dir/X11/Intrinsic.h"; then 5282 if test -r "$ac_dir/X11/Xlib.h"; then
8998 ac_x_includes=$ac_dir 5283 ac_x_includes=$ac_dir
8999 break 5284 break
9000 fi 5285 fi
9001done 5286done
9002fi 5287fi
9006if test "$ac_x_libraries" = no; then 5291if test "$ac_x_libraries" = no; then
9007 # Check for the libraries. 5292 # Check for the libraries.
9008 # See if we find them without any special options. 5293 # See if we find them without any special options.
9009 # Don't add to $LIBS permanently. 5294 # Don't add to $LIBS permanently.
9010 ac_save_LIBS=$LIBS 5295 ac_save_LIBS=$LIBS
9011 LIBS="-lXt $LIBS" 5296 LIBS="-lX11 $LIBS"
9012 cat >conftest.$ac_ext <<_ACEOF 5297 cat >conftest.$ac_ext <<_ACEOF
9013/* confdefs.h. */ 5298/* confdefs.h. */
9014_ACEOF 5299_ACEOF
9015cat confdefs.h >>conftest.$ac_ext 5300cat confdefs.h >>conftest.$ac_ext
9016cat >>conftest.$ac_ext <<_ACEOF 5301cat >>conftest.$ac_ext <<_ACEOF
9017/* end confdefs.h. */ 5302/* end confdefs.h. */
9018#include <X11/Intrinsic.h> 5303#include <X11/Xlib.h>
9019int 5304int
9020main () 5305main ()
9021{ 5306{
9022XtMalloc (0) 5307XrmInitialize ()
9023 ; 5308 ;
9024 return 0; 5309 return 0;
9025} 5310}
9026_ACEOF 5311_ACEOF
9027rm -f conftest.$ac_objext conftest$ac_exeext 5312rm -f conftest.$ac_objext conftest$ac_exeext
9055LIBS=$ac_save_LIBS 5340LIBS=$ac_save_LIBS
9056for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 5341for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9057do 5342do
9058 # Don't even attempt the hair of trying to link an X program! 5343 # Don't even attempt the hair of trying to link an X program!
9059 for ac_extension in a so sl; do 5344 for ac_extension in a so sl; do
9060 if test -r $ac_dir/libXt.$ac_extension; then 5345 if test -r $ac_dir/libX11.$ac_extension; then
9061 ac_x_libraries=$ac_dir 5346 ac_x_libraries=$ac_dir
9062 break 2 5347 break 2
9063 fi 5348 fi
9064 done 5349 done
9065done 5350done
10667#define HAVE_SYS_WAIT_H 1 6952#define HAVE_SYS_WAIT_H 1
10668_ACEOF 6953_ACEOF
10669 6954
10670fi 6955fi
10671 6956
6957echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6958echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6959if test "${ac_cv_header_stdc+set}" = set; then
6960 echo $ECHO_N "(cached) $ECHO_C" >&6
6961else
6962 cat >conftest.$ac_ext <<_ACEOF
6963/* confdefs.h. */
6964_ACEOF
6965cat confdefs.h >>conftest.$ac_ext
6966cat >>conftest.$ac_ext <<_ACEOF
6967/* end confdefs.h. */
6968#include <stdlib.h>
6969#include <stdarg.h>
6970#include <string.h>
6971#include <float.h>
6972
6973int
6974main ()
6975{
6976
6977 ;
6978 return 0;
6979}
6980_ACEOF
6981rm -f conftest.$ac_objext
6982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6983 (eval $ac_compile) 2>conftest.er1
6984 ac_status=$?
6985 grep -v '^ *+' conftest.er1 >conftest.err
6986 rm -f conftest.er1
6987 cat conftest.err >&5
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); } &&
6990 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6992 (eval $ac_try) 2>&5
6993 ac_status=$?
6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); }; } &&
6996 { ac_try='test -s conftest.$ac_objext'
6997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6998 (eval $ac_try) 2>&5
6999 ac_status=$?
7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); }; }; then
7002 ac_cv_header_stdc=yes
7003else
7004 echo "$as_me: failed program was:" >&5
7005sed 's/^/| /' conftest.$ac_ext >&5
7006
7007ac_cv_header_stdc=no
7008fi
7009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7010
7011if test $ac_cv_header_stdc = yes; then
7012 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7013 cat >conftest.$ac_ext <<_ACEOF
7014/* confdefs.h. */
7015_ACEOF
7016cat confdefs.h >>conftest.$ac_ext
7017cat >>conftest.$ac_ext <<_ACEOF
7018/* end confdefs.h. */
7019#include <string.h>
7020
7021_ACEOF
7022if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7023 $EGREP "memchr" >/dev/null 2>&1; then
7024 :
7025else
7026 ac_cv_header_stdc=no
7027fi
7028rm -f conftest*
7029
7030fi
7031
7032if test $ac_cv_header_stdc = yes; then
7033 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7034 cat >conftest.$ac_ext <<_ACEOF
7035/* confdefs.h. */
7036_ACEOF
7037cat confdefs.h >>conftest.$ac_ext
7038cat >>conftest.$ac_ext <<_ACEOF
7039/* end confdefs.h. */
7040#include <stdlib.h>
7041
7042_ACEOF
7043if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7044 $EGREP "free" >/dev/null 2>&1; then
7045 :
7046else
7047 ac_cv_header_stdc=no
7048fi
7049rm -f conftest*
7050
7051fi
7052
7053if test $ac_cv_header_stdc = yes; then
7054 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7055 if test "$cross_compiling" = yes; then
7056 :
7057else
7058 cat >conftest.$ac_ext <<_ACEOF
7059/* confdefs.h. */
7060_ACEOF
7061cat confdefs.h >>conftest.$ac_ext
7062cat >>conftest.$ac_ext <<_ACEOF
7063/* end confdefs.h. */
7064#include <ctype.h>
7065#if ((' ' & 0x0FF) == 0x020)
7066# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7067# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7068#else
7069# define ISLOWER(c) \
7070 (('a' <= (c) && (c) <= 'i') \
7071 || ('j' <= (c) && (c) <= 'r') \
7072 || ('s' <= (c) && (c) <= 'z'))
7073# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7074#endif
7075
7076#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7077int
7078main ()
7079{
7080 int i;
7081 for (i = 0; i < 256; i++)
7082 if (XOR (islower (i), ISLOWER (i))
7083 || toupper (i) != TOUPPER (i))
7084 exit(2);
7085 exit (0);
7086}
7087_ACEOF
7088rm -f conftest$ac_exeext
7089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7090 (eval $ac_link) 2>&5
7091 ac_status=$?
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7095 (eval $ac_try) 2>&5
7096 ac_status=$?
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); }; }; then
7099 :
7100else
7101 echo "$as_me: program exited with status $ac_status" >&5
7102echo "$as_me: failed program was:" >&5
7103sed 's/^/| /' conftest.$ac_ext >&5
7104
7105( exit $ac_status )
7106ac_cv_header_stdc=no
7107fi
7108rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7109fi
7110fi
7111fi
7112echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7113echo "${ECHO_T}$ac_cv_header_stdc" >&6
7114if test $ac_cv_header_stdc = yes; then
7115
7116cat >>confdefs.h <<\_ACEOF
7117#define STDC_HEADERS 1
7118_ACEOF
7119
7120fi
7121
7122# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7133 inttypes.h stdint.h unistd.h
7134do
7135as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7136echo "$as_me:$LINENO: checking for $ac_header" >&5
7137echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7138if eval "test \"\${$as_ac_Header+set}\" = set"; then
7139 echo $ECHO_N "(cached) $ECHO_C" >&6
7140else
7141 cat >conftest.$ac_ext <<_ACEOF
7142/* confdefs.h. */
7143_ACEOF
7144cat confdefs.h >>conftest.$ac_ext
7145cat >>conftest.$ac_ext <<_ACEOF
7146/* end confdefs.h. */
7147$ac_includes_default
7148
7149#include <$ac_header>
7150_ACEOF
7151rm -f conftest.$ac_objext
7152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7153 (eval $ac_compile) 2>conftest.er1
7154 ac_status=$?
7155 grep -v '^ *+' conftest.er1 >conftest.err
7156 rm -f conftest.er1
7157 cat conftest.err >&5
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); } &&
7160 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7162 (eval $ac_try) 2>&5
7163 ac_status=$?
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); }; } &&
7166 { ac_try='test -s conftest.$ac_objext'
7167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7168 (eval $ac_try) 2>&5
7169 ac_status=$?
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); }; }; then
7172 eval "$as_ac_Header=yes"
7173else
7174 echo "$as_me: failed program was:" >&5
7175sed 's/^/| /' conftest.$ac_ext >&5
7176
7177eval "$as_ac_Header=no"
7178fi
7179rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7180fi
7181echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7182echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7183if test `eval echo '${'$as_ac_Header'}'` = yes; then
7184 cat >>confdefs.h <<_ACEOF
7185#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7186_ACEOF
7187
7188fi
7189
7190done
7191
7192
7193
7194
7195
7196
7197
7198
7199
10672 7200
10673 7201
10674 7202
10675 7203
10676 7204
10702 sys/byteorder.h \ 7230 sys/byteorder.h \
10703 sys/ioctl.h \ 7231 sys/ioctl.h \
10704 sys/select.h \ 7232 sys/select.h \
10705 sys/sockio.h \ 7233 sys/sockio.h \
10706 sys/strredir.h \ 7234 sys/strredir.h \
7235 sys/stropts.h \
10707 sys/time.h \ 7236 sys/time.h \
10708 utmp.h \ 7237 utmp.h \
10709 utmpx.h \ 7238 utmpx.h \
10710 stdint.h \ 7239 stdint.h \
7240 pty.h \
7241 util.h \
7242 libutil.h \
7243 wchar.h \
7244 cwchar \
7245 clocale \
10711 7246
10712do 7247do
10713as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7248as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10714if eval "test \"\${$as_ac_Header+set}\" = set"; then 7249if eval "test \"\${$as_ac_Header+set}\" = set"; then
10715 echo "$as_me:$LINENO: checking for $ac_header" >&5 7250 echo "$as_me:$LINENO: checking for $ac_header" >&5
11499_ACEOF 8034_ACEOF
11500 8035
11501fi 8036fi
11502 8037
11503 8038
11504
11505echo "$as_me:$LINENO: checking for char" >&5
11506echo $ECHO_N "checking for char... $ECHO_C" >&6
11507if test "${ac_cv_type_char+set}" = set; then
11508 echo $ECHO_N "(cached) $ECHO_C" >&6
11509else
11510 cat >conftest.$ac_ext <<_ACEOF
11511/* confdefs.h. */
11512_ACEOF
11513cat confdefs.h >>conftest.$ac_ext
11514cat >>conftest.$ac_ext <<_ACEOF
11515/* end confdefs.h. */
11516$ac_includes_default
11517int
11518main ()
11519{
11520if ((char *) 0)
11521 return 0;
11522if (sizeof (char))
11523 return 0;
11524 ;
11525 return 0;
11526}
11527_ACEOF
11528rm -f conftest.$ac_objext
11529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11530 (eval $ac_compile) 2>conftest.er1
11531 ac_status=$?
11532 grep -v '^ *+' conftest.er1 >conftest.err
11533 rm -f conftest.er1
11534 cat conftest.err >&5
11535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 (exit $ac_status); } &&
11537 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11539 (eval $ac_try) 2>&5
11540 ac_status=$?
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); }; } &&
11543 { ac_try='test -s conftest.$ac_objext'
11544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11545 (eval $ac_try) 2>&5
11546 ac_status=$?
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); }; }; then
11549 ac_cv_type_char=yes
11550else
11551 echo "$as_me: failed program was:" >&5
11552sed 's/^/| /' conftest.$ac_ext >&5
11553
11554ac_cv_type_char=no
11555fi
11556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11557fi
11558echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11559echo "${ECHO_T}$ac_cv_type_char" >&6
11560
11561echo "$as_me:$LINENO: checking size of char" >&5
11562echo $ECHO_N "checking size of char... $ECHO_C" >&6
11563if test "${ac_cv_sizeof_char+set}" = set; then
11564 echo $ECHO_N "(cached) $ECHO_C" >&6
11565else
11566 if test "$ac_cv_type_char" = yes; then
11567 # The cast to unsigned long works around a bug in the HP C Compiler
11568 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11569 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11570 # This bug is HP SR number 8606223364.
11571 if test "$cross_compiling" = yes; then
11572 # Depending upon the size, compute the lo and hi bounds.
11573cat >conftest.$ac_ext <<_ACEOF
11574/* confdefs.h. */
11575_ACEOF
11576cat confdefs.h >>conftest.$ac_ext
11577cat >>conftest.$ac_ext <<_ACEOF
11578/* end confdefs.h. */
11579$ac_includes_default
11580int
11581main ()
11582{
11583static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11584test_array [0] = 0
11585
11586 ;
11587 return 0;
11588}
11589_ACEOF
11590rm -f conftest.$ac_objext
11591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11592 (eval $ac_compile) 2>conftest.er1
11593 ac_status=$?
11594 grep -v '^ *+' conftest.er1 >conftest.err
11595 rm -f conftest.er1
11596 cat conftest.err >&5
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); } &&
11599 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11601 (eval $ac_try) 2>&5
11602 ac_status=$?
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); }; } &&
11605 { ac_try='test -s conftest.$ac_objext'
11606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11607 (eval $ac_try) 2>&5
11608 ac_status=$?
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); }; }; then
11611 ac_lo=0 ac_mid=0
11612 while :; do
11613 cat >conftest.$ac_ext <<_ACEOF
11614/* confdefs.h. */
11615_ACEOF
11616cat confdefs.h >>conftest.$ac_ext
11617cat >>conftest.$ac_ext <<_ACEOF
11618/* end confdefs.h. */
11619$ac_includes_default
11620int
11621main ()
11622{
11623static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11624test_array [0] = 0
11625
11626 ;
11627 return 0;
11628}
11629_ACEOF
11630rm -f conftest.$ac_objext
11631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11632 (eval $ac_compile) 2>conftest.er1
11633 ac_status=$?
11634 grep -v '^ *+' conftest.er1 >conftest.err
11635 rm -f conftest.er1
11636 cat conftest.err >&5
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); } &&
11639 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11641 (eval $ac_try) 2>&5
11642 ac_status=$?
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); }; } &&
11645 { ac_try='test -s conftest.$ac_objext'
11646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11647 (eval $ac_try) 2>&5
11648 ac_status=$?
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); }; }; then
11651 ac_hi=$ac_mid; break
11652else
11653 echo "$as_me: failed program was:" >&5
11654sed 's/^/| /' conftest.$ac_ext >&5
11655
11656ac_lo=`expr $ac_mid + 1`
11657 if test $ac_lo -le $ac_mid; then
11658 ac_lo= ac_hi=
11659 break
11660 fi
11661 ac_mid=`expr 2 '*' $ac_mid + 1`
11662fi
11663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11664 done
11665else
11666 echo "$as_me: failed program was:" >&5
11667sed 's/^/| /' conftest.$ac_ext >&5
11668
11669cat >conftest.$ac_ext <<_ACEOF
11670/* confdefs.h. */
11671_ACEOF
11672cat confdefs.h >>conftest.$ac_ext
11673cat >>conftest.$ac_ext <<_ACEOF
11674/* end confdefs.h. */
11675$ac_includes_default
11676int
11677main ()
11678{
11679static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
11680test_array [0] = 0
11681
11682 ;
11683 return 0;
11684}
11685_ACEOF
11686rm -f conftest.$ac_objext
11687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11688 (eval $ac_compile) 2>conftest.er1
11689 ac_status=$?
11690 grep -v '^ *+' conftest.er1 >conftest.err
11691 rm -f conftest.er1
11692 cat conftest.err >&5
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); } &&
11695 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11697 (eval $ac_try) 2>&5
11698 ac_status=$?
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); }; } &&
11701 { ac_try='test -s conftest.$ac_objext'
11702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11703 (eval $ac_try) 2>&5
11704 ac_status=$?
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); }; }; then
11707 ac_hi=-1 ac_mid=-1
11708 while :; do
11709 cat >conftest.$ac_ext <<_ACEOF
11710/* confdefs.h. */
11711_ACEOF
11712cat confdefs.h >>conftest.$ac_ext
11713cat >>conftest.$ac_ext <<_ACEOF
11714/* end confdefs.h. */
11715$ac_includes_default
11716int
11717main ()
11718{
11719static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11720test_array [0] = 0
11721
11722 ;
11723 return 0;
11724}
11725_ACEOF
11726rm -f conftest.$ac_objext
11727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11728 (eval $ac_compile) 2>conftest.er1
11729 ac_status=$?
11730 grep -v '^ *+' conftest.er1 >conftest.err
11731 rm -f conftest.er1
11732 cat conftest.err >&5
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); } &&
11735 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11737 (eval $ac_try) 2>&5
11738 ac_status=$?
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; } &&
11741 { ac_try='test -s conftest.$ac_objext'
11742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11743 (eval $ac_try) 2>&5
11744 ac_status=$?
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); }; }; then
11747 ac_lo=$ac_mid; break
11748else
11749 echo "$as_me: failed program was:" >&5
11750sed 's/^/| /' conftest.$ac_ext >&5
11751
11752ac_hi=`expr '(' $ac_mid ')' - 1`
11753 if test $ac_mid -le $ac_hi; then
11754 ac_lo= ac_hi=
11755 break
11756 fi
11757 ac_mid=`expr 2 '*' $ac_mid`
11758fi
11759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11760 done
11761else
11762 echo "$as_me: failed program was:" >&5
11763sed 's/^/| /' conftest.$ac_ext >&5
11764
11765ac_lo= ac_hi=
11766fi
11767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11768fi
11769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11770# Binary search between lo and hi bounds.
11771while test "x$ac_lo" != "x$ac_hi"; do
11772 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11773 cat >conftest.$ac_ext <<_ACEOF
11774/* confdefs.h. */
11775_ACEOF
11776cat confdefs.h >>conftest.$ac_ext
11777cat >>conftest.$ac_ext <<_ACEOF
11778/* end confdefs.h. */
11779$ac_includes_default
11780int
11781main ()
11782{
11783static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11784test_array [0] = 0
11785
11786 ;
11787 return 0;
11788}
11789_ACEOF
11790rm -f conftest.$ac_objext
11791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11792 (eval $ac_compile) 2>conftest.er1
11793 ac_status=$?
11794 grep -v '^ *+' conftest.er1 >conftest.err
11795 rm -f conftest.er1
11796 cat conftest.err >&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); } &&
11799 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801 (eval $ac_try) 2>&5
11802 ac_status=$?
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); }; } &&
11805 { ac_try='test -s conftest.$ac_objext'
11806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11807 (eval $ac_try) 2>&5
11808 ac_status=$?
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); }; }; then
11811 ac_hi=$ac_mid
11812else
11813 echo "$as_me: failed program was:" >&5
11814sed 's/^/| /' conftest.$ac_ext >&5
11815
11816ac_lo=`expr '(' $ac_mid ')' + 1`
11817fi
11818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11819done
11820case $ac_lo in
11821?*) ac_cv_sizeof_char=$ac_lo;;
11822'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11823See \`config.log' for more details." >&5
11824echo "$as_me: error: cannot compute sizeof (char), 77
11825See \`config.log' for more details." >&2;}
11826 { (exit 1); exit 1; }; } ;;
11827esac
11828else
11829 if test "$cross_compiling" = yes; then
11830 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
11831echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
11832 { (exit 1); exit 1; }; }
11833else
11834 cat >conftest.$ac_ext <<_ACEOF
11835/* confdefs.h. */
11836_ACEOF
11837cat confdefs.h >>conftest.$ac_ext
11838cat >>conftest.$ac_ext <<_ACEOF
11839/* end confdefs.h. */
11840$ac_includes_default
11841long longval () { return (long) (sizeof (char)); }
11842unsigned long ulongval () { return (long) (sizeof (char)); }
11843#include <stdio.h>
11844#include <stdlib.h>
11845int
11846main ()
11847{
11848
11849 FILE *f = fopen ("conftest.val", "w");
11850 if (! f)
11851 exit (1);
11852 if (((long) (sizeof (char))) < 0)
11853 {
11854 long i = longval ();
11855 if (i != ((long) (sizeof (char))))
11856 exit (1);
11857 fprintf (f, "%ld\n", i);
11858 }
11859 else
11860 {
11861 unsigned long i = ulongval ();
11862 if (i != ((long) (sizeof (char))))
11863 exit (1);
11864 fprintf (f, "%lu\n", i);
11865 }
11866 exit (ferror (f) || fclose (f) != 0);
11867
11868 ;
11869 return 0;
11870}
11871_ACEOF
11872rm -f conftest$ac_exeext
11873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11874 (eval $ac_link) 2>&5
11875 ac_status=$?
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11879 (eval $ac_try) 2>&5
11880 ac_status=$?
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); }; }; then
11883 ac_cv_sizeof_char=`cat conftest.val`
11884else
11885 echo "$as_me: program exited with status $ac_status" >&5
11886echo "$as_me: failed program was:" >&5
11887sed 's/^/| /' conftest.$ac_ext >&5
11888
11889( exit $ac_status )
11890{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11891See \`config.log' for more details." >&5
11892echo "$as_me: error: cannot compute sizeof (char), 77
11893See \`config.log' for more details." >&2;}
11894 { (exit 1); exit 1; }; }
11895fi
11896rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11897fi
11898fi
11899rm -f conftest.val
11900else
11901 ac_cv_sizeof_char=0
11902fi
11903fi
11904echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
11905echo "${ECHO_T}$ac_cv_sizeof_char" >&6
11906cat >>confdefs.h <<_ACEOF
11907#define SIZEOF_CHAR $ac_cv_sizeof_char
11908_ACEOF
11909
11910
11911echo "$as_me:$LINENO: checking for short" >&5 8039echo "$as_me:$LINENO: checking for short" >&5
11912echo $ECHO_N "checking for short... $ECHO_C" >&6 8040echo $ECHO_N "checking for short... $ECHO_C" >&6
11913if test "${ac_cv_type_short+set}" = set; then 8041if test "${ac_cv_type_short+set}" = set; then
11914 echo $ECHO_N "(cached) $ECHO_C" >&6 8042 echo $ECHO_N "(cached) $ECHO_C" >&6
11915else 8043else
12718cat >>confdefs.h <<_ACEOF 8846cat >>confdefs.h <<_ACEOF
12719#define SIZEOF_INT $ac_cv_sizeof_int 8847#define SIZEOF_INT $ac_cv_sizeof_int
12720_ACEOF 8848_ACEOF
12721 8849
12722 8850
12723echo "$as_me:$LINENO: checking for long" >&5
12724echo $ECHO_N "checking for long... $ECHO_C" >&6
12725if test "${ac_cv_type_long+set}" = set; then
12726 echo $ECHO_N "(cached) $ECHO_C" >&6
12727else
12728 cat >conftest.$ac_ext <<_ACEOF
12729/* confdefs.h. */
12730_ACEOF
12731cat confdefs.h >>conftest.$ac_ext
12732cat >>conftest.$ac_ext <<_ACEOF
12733/* end confdefs.h. */
12734$ac_includes_default
12735int
12736main ()
12737{
12738if ((long *) 0)
12739 return 0;
12740if (sizeof (long))
12741 return 0;
12742 ;
12743 return 0;
12744}
12745_ACEOF
12746rm -f conftest.$ac_objext
12747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12748 (eval $ac_compile) 2>conftest.er1
12749 ac_status=$?
12750 grep -v '^ *+' conftest.er1 >conftest.err
12751 rm -f conftest.er1
12752 cat conftest.err >&5
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); } &&
12755 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12757 (eval $ac_try) 2>&5
12758 ac_status=$?
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); }; } &&
12761 { ac_try='test -s conftest.$ac_objext'
12762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12763 (eval $ac_try) 2>&5
12764 ac_status=$?
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); }; }; then
12767 ac_cv_type_long=yes
12768else
12769 echo "$as_me: failed program was:" >&5
12770sed 's/^/| /' conftest.$ac_ext >&5
12771
12772ac_cv_type_long=no
12773fi
12774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12775fi
12776echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12777echo "${ECHO_T}$ac_cv_type_long" >&6
12778
12779echo "$as_me:$LINENO: checking size of long" >&5
12780echo $ECHO_N "checking size of long... $ECHO_C" >&6
12781if test "${ac_cv_sizeof_long+set}" = set; then
12782 echo $ECHO_N "(cached) $ECHO_C" >&6
12783else
12784 if test "$ac_cv_type_long" = yes; then
12785 # The cast to unsigned long works around a bug in the HP C Compiler
12786 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12787 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12788 # This bug is HP SR number 8606223364.
12789 if test "$cross_compiling" = yes; then
12790 # Depending upon the size, compute the lo and hi bounds.
12791cat >conftest.$ac_ext <<_ACEOF
12792/* confdefs.h. */
12793_ACEOF
12794cat confdefs.h >>conftest.$ac_ext
12795cat >>conftest.$ac_ext <<_ACEOF
12796/* end confdefs.h. */
12797$ac_includes_default
12798int
12799main ()
12800{
12801static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12802test_array [0] = 0
12803
12804 ;
12805 return 0;
12806}
12807_ACEOF
12808rm -f conftest.$ac_objext
12809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12810 (eval $ac_compile) 2>conftest.er1
12811 ac_status=$?
12812 grep -v '^ *+' conftest.er1 >conftest.err
12813 rm -f conftest.er1
12814 cat conftest.err >&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); } &&
12817 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12819 (eval $ac_try) 2>&5
12820 ac_status=$?
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); }; } &&
12823 { ac_try='test -s conftest.$ac_objext'
12824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12825 (eval $ac_try) 2>&5
12826 ac_status=$?
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); }; }; then
12829 ac_lo=0 ac_mid=0
12830 while :; do
12831 cat >conftest.$ac_ext <<_ACEOF
12832/* confdefs.h. */
12833_ACEOF
12834cat confdefs.h >>conftest.$ac_ext
12835cat >>conftest.$ac_ext <<_ACEOF
12836/* end confdefs.h. */
12837$ac_includes_default
12838int
12839main ()
12840{
12841static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12842test_array [0] = 0
12843
12844 ;
12845 return 0;
12846}
12847_ACEOF
12848rm -f conftest.$ac_objext
12849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12850 (eval $ac_compile) 2>conftest.er1
12851 ac_status=$?
12852 grep -v '^ *+' conftest.er1 >conftest.err
12853 rm -f conftest.er1
12854 cat conftest.err >&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); } &&
12857 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12859 (eval $ac_try) 2>&5
12860 ac_status=$?
12861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862 (exit $ac_status); }; } &&
12863 { ac_try='test -s conftest.$ac_objext'
12864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12865 (eval $ac_try) 2>&5
12866 ac_status=$?
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); }; }; then
12869 ac_hi=$ac_mid; break
12870else
12871 echo "$as_me: failed program was:" >&5
12872sed 's/^/| /' conftest.$ac_ext >&5
12873
12874ac_lo=`expr $ac_mid + 1`
12875 if test $ac_lo -le $ac_mid; then
12876 ac_lo= ac_hi=
12877 break
12878 fi
12879 ac_mid=`expr 2 '*' $ac_mid + 1`
12880fi
12881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12882 done
12883else
12884 echo "$as_me: failed program was:" >&5
12885sed 's/^/| /' conftest.$ac_ext >&5
12886
12887cat >conftest.$ac_ext <<_ACEOF
12888/* confdefs.h. */
12889_ACEOF
12890cat confdefs.h >>conftest.$ac_ext
12891cat >>conftest.$ac_ext <<_ACEOF
12892/* end confdefs.h. */
12893$ac_includes_default
12894int
12895main ()
12896{
12897static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12898test_array [0] = 0
12899
12900 ;
12901 return 0;
12902}
12903_ACEOF
12904rm -f conftest.$ac_objext
12905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12906 (eval $ac_compile) 2>conftest.er1
12907 ac_status=$?
12908 grep -v '^ *+' conftest.er1 >conftest.err
12909 rm -f conftest.er1
12910 cat conftest.err >&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); } &&
12913 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12915 (eval $ac_try) 2>&5
12916 ac_status=$?
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); }; } &&
12919 { ac_try='test -s conftest.$ac_objext'
12920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12921 (eval $ac_try) 2>&5
12922 ac_status=$?
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); }; }; then
12925 ac_hi=-1 ac_mid=-1
12926 while :; do
12927 cat >conftest.$ac_ext <<_ACEOF
12928/* confdefs.h. */
12929_ACEOF
12930cat confdefs.h >>conftest.$ac_ext
12931cat >>conftest.$ac_ext <<_ACEOF
12932/* end confdefs.h. */
12933$ac_includes_default
12934int
12935main ()
12936{
12937static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12938test_array [0] = 0
12939
12940 ;
12941 return 0;
12942}
12943_ACEOF
12944rm -f conftest.$ac_objext
12945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12946 (eval $ac_compile) 2>conftest.er1
12947 ac_status=$?
12948 grep -v '^ *+' conftest.er1 >conftest.err
12949 rm -f conftest.er1
12950 cat conftest.err >&5
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); } &&
12953 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12955 (eval $ac_try) 2>&5
12956 ac_status=$?
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); }; } &&
12959 { ac_try='test -s conftest.$ac_objext'
12960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12961 (eval $ac_try) 2>&5
12962 ac_status=$?
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); }; }; then
12965 ac_lo=$ac_mid; break
12966else
12967 echo "$as_me: failed program was:" >&5
12968sed 's/^/| /' conftest.$ac_ext >&5
12969
12970ac_hi=`expr '(' $ac_mid ')' - 1`
12971 if test $ac_mid -le $ac_hi; then
12972 ac_lo= ac_hi=
12973 break
12974 fi
12975 ac_mid=`expr 2 '*' $ac_mid`
12976fi
12977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12978 done
12979else
12980 echo "$as_me: failed program was:" >&5
12981sed 's/^/| /' conftest.$ac_ext >&5
12982
12983ac_lo= ac_hi=
12984fi
12985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12986fi
12987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12988# Binary search between lo and hi bounds.
12989while test "x$ac_lo" != "x$ac_hi"; do
12990 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12991 cat >conftest.$ac_ext <<_ACEOF
12992/* confdefs.h. */
12993_ACEOF
12994cat confdefs.h >>conftest.$ac_ext
12995cat >>conftest.$ac_ext <<_ACEOF
12996/* end confdefs.h. */
12997$ac_includes_default
12998int
12999main ()
13000{
13001static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13002test_array [0] = 0
13003
13004 ;
13005 return 0;
13006}
13007_ACEOF
13008rm -f conftest.$ac_objext
13009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13010 (eval $ac_compile) 2>conftest.er1
13011 ac_status=$?
13012 grep -v '^ *+' conftest.er1 >conftest.err
13013 rm -f conftest.er1
13014 cat conftest.err >&5
13015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); } &&
13017 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13019 (eval $ac_try) 2>&5
13020 ac_status=$?
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); }; } &&
13023 { ac_try='test -s conftest.$ac_objext'
13024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13025 (eval $ac_try) 2>&5
13026 ac_status=$?
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); }; }; then
13029 ac_hi=$ac_mid
13030else
13031 echo "$as_me: failed program was:" >&5
13032sed 's/^/| /' conftest.$ac_ext >&5
13033
13034ac_lo=`expr '(' $ac_mid ')' + 1`
13035fi
13036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13037done
13038case $ac_lo in
13039?*) ac_cv_sizeof_long=$ac_lo;;
13040'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13041See \`config.log' for more details." >&5
13042echo "$as_me: error: cannot compute sizeof (long), 77
13043See \`config.log' for more details." >&2;}
13044 { (exit 1); exit 1; }; } ;;
13045esac
13046else
13047 if test "$cross_compiling" = yes; then
13048 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13049echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13050 { (exit 1); exit 1; }; }
13051else
13052 cat >conftest.$ac_ext <<_ACEOF
13053/* confdefs.h. */
13054_ACEOF
13055cat confdefs.h >>conftest.$ac_ext
13056cat >>conftest.$ac_ext <<_ACEOF
13057/* end confdefs.h. */
13058$ac_includes_default
13059long longval () { return (long) (sizeof (long)); }
13060unsigned long ulongval () { return (long) (sizeof (long)); }
13061#include <stdio.h>
13062#include <stdlib.h>
13063int
13064main ()
13065{
13066
13067 FILE *f = fopen ("conftest.val", "w");
13068 if (! f)
13069 exit (1);
13070 if (((long) (sizeof (long))) < 0)
13071 {
13072 long i = longval ();
13073 if (i != ((long) (sizeof (long))))
13074 exit (1);
13075 fprintf (f, "%ld\n", i);
13076 }
13077 else
13078 {
13079 unsigned long i = ulongval ();
13080 if (i != ((long) (sizeof (long))))
13081 exit (1);
13082 fprintf (f, "%lu\n", i);
13083 }
13084 exit (ferror (f) || fclose (f) != 0);
13085
13086 ;
13087 return 0;
13088}
13089_ACEOF
13090rm -f conftest$ac_exeext
13091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13092 (eval $ac_link) 2>&5
13093 ac_status=$?
13094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13097 (eval $ac_try) 2>&5
13098 ac_status=$?
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); }; }; then
13101 ac_cv_sizeof_long=`cat conftest.val`
13102else
13103 echo "$as_me: program exited with status $ac_status" >&5
13104echo "$as_me: failed program was:" >&5
13105sed 's/^/| /' conftest.$ac_ext >&5
13106
13107( exit $ac_status )
13108{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13109See \`config.log' for more details." >&5
13110echo "$as_me: error: cannot compute sizeof (long), 77
13111See \`config.log' for more details." >&2;}
13112 { (exit 1); exit 1; }; }
13113fi
13114rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13115fi
13116fi
13117rm -f conftest.val
13118else
13119 ac_cv_sizeof_long=0
13120fi
13121fi
13122echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13123echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13124cat >>confdefs.h <<_ACEOF
13125#define SIZEOF_LONG $ac_cv_sizeof_long
13126_ACEOF
13127
13128
13129echo "$as_me:$LINENO: checking for long long" >&5 8851echo "$as_me:$LINENO: checking for long long" >&5
13130echo $ECHO_N "checking for long long... $ECHO_C" >&6 8852echo $ECHO_N "checking for long long... $ECHO_C" >&6
13131if test "${ac_cv_type_long_long+set}" = set; then 8853if test "${ac_cv_type_long_long+set}" = set; then
13132 echo $ECHO_N "(cached) $ECHO_C" >&6 8854 echo $ECHO_N "(cached) $ECHO_C" >&6
13133else 8855else
13984 rxvt_cv_int16_t=yes 9706 rxvt_cv_int16_t=yes
13985else 9707else
13986 echo "$as_me: failed program was:" >&5 9708 echo "$as_me: failed program was:" >&5
13987sed 's/^/| /' conftest.$ac_ext >&5 9709sed 's/^/| /' conftest.$ac_ext >&5
13988 9710
13989if test $ac_cv_sizeof_char -ge 2; then 9711if test "$ac_cv_sizeof_char" -ge 2; then
13990 rxvt_cv_int16_t=" char" 9712 rxvt_cv_int16_t=" char"
13991else 9713else
13992 if test $ac_cv_sizeof_short -ge 2; then 9714 if test "$ac_cv_sizeof_short" -ge 2; then
13993 rxvt_cv_int16_t=" short" 9715 rxvt_cv_int16_t=" short"
13994 else 9716 else
13995 if test $ac_cv_sizeof_int -ge 2; then 9717 if test "$ac_cv_sizeof_int" -ge 2; then
13996 rxvt_cv_int16_t=" int" 9718 rxvt_cv_int16_t=" int"
13997 else 9719 else
13998 if test $ac_cv_sizeof_long -ge 2; then 9720 if test "$ac_cv_sizeof_long" -ge 2; then
13999 rxvt_cv_int16_t=" long" 9721 rxvt_cv_int16_t=" long"
14000 else 9722 else
14001 if test $ac_cv_sizeof_long_long -ge 2; then 9723 if test "$ac_cv_sizeof_long_long" -ge 2; then
14002 rxvt_cv_int16_t=" long long" 9724 rxvt_cv_int16_t=" long long"
14003 else 9725 else
14004 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default 9726 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
14005 fi 9727 fi
14006 fi 9728 fi
14066 rxvt_cv_uint16_t=yes 9788 rxvt_cv_uint16_t=yes
14067else 9789else
14068 echo "$as_me: failed program was:" >&5 9790 echo "$as_me: failed program was:" >&5
14069sed 's/^/| /' conftest.$ac_ext >&5 9791sed 's/^/| /' conftest.$ac_ext >&5
14070 9792
14071if test $ac_cv_sizeof_char -ge 2; then 9793if test "$ac_cv_sizeof_char" -ge 2; then
14072 rxvt_cv_uint16_t="unsigned char" 9794 rxvt_cv_uint16_t="unsigned char"
14073else 9795else
14074 if test $ac_cv_sizeof_short -ge 2; then 9796 if test "$ac_cv_sizeof_short" -ge 2; then
14075 rxvt_cv_uint16_t="unsigned short" 9797 rxvt_cv_uint16_t="unsigned short"
14076 else 9798 else
14077 if test $ac_cv_sizeof_int -ge 2; then 9799 if test "$ac_cv_sizeof_int" -ge 2; then
14078 rxvt_cv_uint16_t="unsigned int" 9800 rxvt_cv_uint16_t="unsigned int"
14079 else 9801 else
14080 if test $ac_cv_sizeof_long -ge 2; then 9802 if test "$ac_cv_sizeof_long" -ge 2; then
14081 rxvt_cv_uint16_t="unsigned long" 9803 rxvt_cv_uint16_t="unsigned long"
14082 else 9804 else
14083 if test $ac_cv_sizeof_long_long -ge 2; then 9805 if test "$ac_cv_sizeof_long_long" -ge 2; then
14084 rxvt_cv_uint16_t="unsigned long long" 9806 rxvt_cv_uint16_t="unsigned long long"
14085 else 9807 else
14086 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default 9808 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
14087 fi 9809 fi
14088 fi 9810 fi
14148 rxvt_cv_int32_t=yes 9870 rxvt_cv_int32_t=yes
14149else 9871else
14150 echo "$as_me: failed program was:" >&5 9872 echo "$as_me: failed program was:" >&5
14151sed 's/^/| /' conftest.$ac_ext >&5 9873sed 's/^/| /' conftest.$ac_ext >&5
14152 9874
14153if test $ac_cv_sizeof_char -ge 4; then 9875if test "$ac_cv_sizeof_char" -ge 4; then
14154 rxvt_cv_int32_t=" char" 9876 rxvt_cv_int32_t=" char"
14155else 9877else
14156 if test $ac_cv_sizeof_short -ge 4; then 9878 if test "$ac_cv_sizeof_short" -ge 4; then
14157 rxvt_cv_int32_t=" short" 9879 rxvt_cv_int32_t=" short"
14158 else 9880 else
14159 if test $ac_cv_sizeof_int -ge 4; then 9881 if test "$ac_cv_sizeof_int" -ge 4; then
14160 rxvt_cv_int32_t=" int" 9882 rxvt_cv_int32_t=" int"
14161 else 9883 else
14162 if test $ac_cv_sizeof_long -ge 4; then 9884 if test "$ac_cv_sizeof_long" -ge 4; then
14163 rxvt_cv_int32_t=" long" 9885 rxvt_cv_int32_t=" long"
14164 else 9886 else
14165 if test $ac_cv_sizeof_long_long -ge 4; then 9887 if test "$ac_cv_sizeof_long_long" -ge 4; then
14166 rxvt_cv_int32_t=" long long" 9888 rxvt_cv_int32_t=" long long"
14167 else 9889 else
14168 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default 9890 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
14169 fi 9891 fi
14170 fi 9892 fi
14230 rxvt_cv_uint32_t=yes 9952 rxvt_cv_uint32_t=yes
14231else 9953else
14232 echo "$as_me: failed program was:" >&5 9954 echo "$as_me: failed program was:" >&5
14233sed 's/^/| /' conftest.$ac_ext >&5 9955sed 's/^/| /' conftest.$ac_ext >&5
14234 9956
14235if test $ac_cv_sizeof_char -ge 4; then 9957if test "$ac_cv_sizeof_char" -ge 4; then
14236 rxvt_cv_uint32_t="unsigned char" 9958 rxvt_cv_uint32_t="unsigned char"
14237else 9959else
14238 if test $ac_cv_sizeof_short -ge 4; then 9960 if test "$ac_cv_sizeof_short" -ge 4; then
14239 rxvt_cv_uint32_t="unsigned short" 9961 rxvt_cv_uint32_t="unsigned short"
14240 else 9962 else
14241 if test $ac_cv_sizeof_int -ge 4; then 9963 if test "$ac_cv_sizeof_int" -ge 4; then
14242 rxvt_cv_uint32_t="unsigned int" 9964 rxvt_cv_uint32_t="unsigned int"
14243 else 9965 else
14244 if test $ac_cv_sizeof_long -ge 4; then 9966 if test "$ac_cv_sizeof_long" -ge 4; then
14245 rxvt_cv_uint32_t="unsigned long" 9967 rxvt_cv_uint32_t="unsigned long"
14246 else 9968 else
14247 if test $ac_cv_sizeof_long_long -ge 4; then 9969 if test "$ac_cv_sizeof_long_long" -ge 4; then
14248 rxvt_cv_uint32_t="unsigned long long" 9970 rxvt_cv_uint32_t="unsigned long long"
14249 else 9971 else
14250 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default 9972 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
14251 fi 9973 fi
14252 fi 9974 fi
14266 else 9988 else
14267 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" 9989 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
14268 fi 9990 fi
14269fi 9991fi
14270 9992
14271if test $ac_cv_sizeof_int_p -eq 8; then 9993if test "$ac_cv_sizeof_int_p" -eq 8; then
14272 rxvt_intp_define="#define intp_t int64_t" 9994 rxvt_intp_define="#define intp_t int64_t"
14273 rxvt_u_intp_define="#define u_intp_t u_int64_t" 9995 rxvt_u_intp_define="#define u_intp_t u_int64_t"
14274else 9996else
14275 if test $ac_cv_sizeof_int_p -eq 4; then 9997 if test "$ac_cv_sizeof_int_p" -eq 4; then
14276 rxvt_intp_define="#define intp_t int32_t" 9998 rxvt_intp_define="#define intp_t int32_t"
14277 rxvt_u_intp_define="#define u_intp_t u_int32_t" 9999 rxvt_u_intp_define="#define u_intp_t u_int32_t"
14278 else 10000 else
14279 if test $ac_cv_sizeof_int_p -eq 2; then 10001 if test "$ac_cv_sizeof_int_p" -eq 2; then
14280 rxvt_intp_define="#define intp_t int16_t" 10002 rxvt_intp_define="#define intp_t int16_t"
14281 rxvt_u_intp_define="#define u_intp_t u_int16_t" 10003 rxvt_u_intp_define="#define u_intp_t u_int16_t"
14282 else 10004 else
14283 rxvt_intp_define="#error set intp_t" 10005 rxvt_intp_define="#error set intp_t"
14284 rxvt_u_intp_define="#error set u_intp_t" 10006 rxvt_u_intp_define="#error set u_intp_t"
14355#define RETSIGTYPE $ac_cv_type_signal 10077#define RETSIGTYPE $ac_cv_type_signal
14356_ACEOF 10078_ACEOF
14357 10079
14358 10080
14359 10081
14360case "$host_alias" in
14361 *ultrix) ac_cv_func_setsid='no' ;;
14362 *) break;;
14363esac
14364
14365
14366 10082
14367 10083
14368 10084
14369 10085
14370 10086
14379 10095
14380 10096
14381 10097
14382 10098
14383for ac_func in \ 10099for ac_func in \
14384 atexit \
14385 revoke \ 10100 revoke \
14386 unsetenv \ 10101 unsetenv \
14387 setutent \ 10102 setutent \
14388 seteuid \ 10103 seteuid \
10104 setresuid \
14389 setreuid \ 10105 setreuid \
14390 setsid \
14391 setpgrp \
14392 setpgid \
14393 openpty \
14394 _getpty \ 10106 _getpty \
10107 getpt \
10108 posix_openpt \
14395 grantpt \ 10109 grantpt \
14396 unlockpt \ 10110 unlockpt \
14397 isastream \ 10111 isastream \
14398 on_exit \ 10112 on_exit \
14399 nanosleep \ 10113 nanosleep \
14400 updwtmp \ 10114 updwtmp \
10115 updwtmpx \
14401 ttyslot \ 10116 ttyslot \
14402 10117
14403do 10118do
14404as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10119as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14405echo "$as_me:$LINENO: checking for $ac_func" >&5 10120echo "$as_me:$LINENO: checking for $ac_func" >&5
14648_ACEOF 10363_ACEOF
14649cat confdefs.h >>conftest.$ac_ext 10364cat confdefs.h >>conftest.$ac_ext
14650cat >>conftest.$ac_ext <<_ACEOF 10365cat >>conftest.$ac_ext <<_ACEOF
14651/* end confdefs.h. */ 10366/* end confdefs.h. */
14652#include <sys/types.h> 10367#include <sys/types.h>
14653#include <stdint.h>
14654#include <utmp.h> 10368#include <utmp.h>
14655int 10369int
14656main () 10370main ()
14657{ 10371{
14658struct utmp ut; 10372struct utmp ut;
15085#define HAVE_UTMPX_HOST 1 10799#define HAVE_UTMPX_HOST 1
15086_ACEOF 10800_ACEOF
15087 10801
15088fi 10802fi
15089 10803
15090fi 10804echo "$as_me:$LINENO: checking for session in utmpx struct" >&5
10805echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6
10806if test "${rxvt_cv_struct_utmpx_session+set}" = set; then
10807 echo $ECHO_N "(cached) $ECHO_C" >&6
10808else
10809 cat >conftest.$ac_ext <<_ACEOF
10810/* confdefs.h. */
10811_ACEOF
10812cat confdefs.h >>conftest.$ac_ext
10813cat >>conftest.$ac_ext <<_ACEOF
10814/* end confdefs.h. */
10815#include <sys/types.h>
10816#include <utmpx.h>
10817int
10818main ()
10819{
10820struct utmpx utx; utx.ut_session;
10821 ;
10822 return 0;
10823}
10824_ACEOF
10825rm -f conftest.$ac_objext
10826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10827 (eval $ac_compile) 2>conftest.er1
10828 ac_status=$?
10829 grep -v '^ *+' conftest.er1 >conftest.err
10830 rm -f conftest.er1
10831 cat conftest.err >&5
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); } &&
10834 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10836 (eval $ac_try) 2>&5
10837 ac_status=$?
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); }; } &&
10840 { ac_try='test -s conftest.$ac_objext'
10841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10842 (eval $ac_try) 2>&5
10843 ac_status=$?
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); }; }; then
10846 rxvt_cv_struct_utmpx_session=yes
10847else
10848 echo "$as_me: failed program was:" >&5
10849sed 's/^/| /' conftest.$ac_ext >&5
15091 10850
10851rxvt_cv_struct_utmpx_session=no
10852fi
10853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10854fi
10855echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_session" >&5
10856echo "${ECHO_T}$rxvt_cv_struct_utmpx_session" >&6
10857if test x$rxvt_cv_struct_utmpx_session = xyes; then
10858
10859cat >>confdefs.h <<\_ACEOF
10860#define HAVE_UTMPX_SESSION 1
10861_ACEOF
10862
10863fi
10864
10865fi
15092 10866
15093 10867
15094echo "$as_me:$LINENO: checking for struct lastlog" >&5 10868echo "$as_me:$LINENO: checking for struct lastlog" >&5
15095echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 10869echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
15096if test "${rxvt_cv_struct_lastlog+set}" = set; then 10870if test "${rxvt_cv_struct_lastlog+set}" = set; then
15973#define HAVE_NL_LANGINFO 1 11747#define HAVE_NL_LANGINFO 1
15974_ACEOF 11748_ACEOF
15975 11749
15976fi 11750fi
15977 11751
15978echo "$as_me:$LINENO: checking for getpt" >&5 11752echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5
15979echo $ECHO_N "checking for getpt... $ECHO_C" >&6 11753echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6
15980if test "${rxvt_cv_func_getpt+set}" = set; then 11754if test "${rxvt_can_pass_fds+set}" = set; then
15981 echo $ECHO_N "(cached) $ECHO_C" >&6 11755 echo $ECHO_N "(cached) $ECHO_C" >&6
15982else 11756else
15983 cat >conftest.$ac_ext <<_ACEOF 11757 cat >conftest.$ac_ext <<_ACEOF
15984/* confdefs.h. */ 11758/* confdefs.h. */
15985_ACEOF 11759_ACEOF
15986cat confdefs.h >>conftest.$ac_ext 11760cat confdefs.h >>conftest.$ac_ext
15987cat >>conftest.$ac_ext <<_ACEOF 11761cat >>conftest.$ac_ext <<_ACEOF
15988/* end confdefs.h. */ 11762/* end confdefs.h. */
15989#define _GNU_SOURCE 11763
15990#ifdef HAVE_STDLIB_H 11764#include <sys/types.h>
15991# include <cstdlib> 11765#include <sys/socket.h>
15992#endif 11766
15993int 11767int
15994main () 11768main ()
15995{ 11769{
15996(void)getpt(); 11770
11771{
11772 msghdr msg;
11773 iovec iov;
11774 char buf [100];
11775 char data = 0;
11776
11777 iov.iov_base = &data;
11778 iov.iov_len = 1;
11779
11780 msg.msg_iov = &iov;
11781 msg.msg_iovlen = 1;
11782 msg.msg_control = buf;
11783 msg.msg_controllen = sizeof buf;
11784
11785 cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
11786 cmsg->cmsg_level = SOL_SOCKET;
11787 cmsg->cmsg_type = SCM_RIGHTS;
11788 cmsg->cmsg_len = 100;
11789
11790 *(int *)CMSG_DATA (cmsg) = 5;
11791
11792 return sendmsg (3, &msg, 0);
11793}
11794
15997 ; 11795 ;
15998 return 0; 11796 return 0;
15999} 11797}
16000_ACEOF 11798_ACEOF
16001rm -f conftest.$ac_objext conftest$ac_exeext 11799rm -f conftest.$ac_objext conftest$ac_exeext
16017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16018 (eval $ac_try) 2>&5 11816 (eval $ac_try) 2>&5
16019 ac_status=$? 11817 ac_status=$?
16020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021 (exit $ac_status); }; }; then 11819 (exit $ac_status); }; }; then
16022 rxvt_cv_func_getpt=yes 11820 rxvt_can_pass_fds=yes
16023else 11821else
16024 echo "$as_me: failed program was:" >&5 11822 echo "$as_me: failed program was:" >&5
16025sed 's/^/| /' conftest.$ac_ext >&5 11823sed 's/^/| /' conftest.$ac_ext >&5
16026 11824
16027rxvt_cv_func_getpt=no 11825rxvt_can_pass_fds=no
16028fi 11826fi
16029rm -f conftest.err conftest.$ac_objext \ 11827rm -f conftest.err conftest.$ac_objext \
16030 conftest$ac_exeext conftest.$ac_ext 11828 conftest$ac_exeext conftest.$ac_ext
16031fi 11829fi
16032echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5 11830echo "$as_me:$LINENO: result: $rxvt_can_pass_fds" >&5
16033echo "${ECHO_T}$rxvt_cv_func_getpt" >&6 11831echo "${ECHO_T}$rxvt_can_pass_fds" >&6
16034if test x$rxvt_cv_func_getpt = xyes; then 11832if test x$rxvt_can_pass_fds = xyes; then
16035 11833
16036cat >>confdefs.h <<\_ACEOF 11834cat >>confdefs.h <<\_ACEOF
16037#define HAVE_GETPT 1 11835#define HAVE_UNIX_FDPASS 1
16038_ACEOF 11836_ACEOF
11837
11838else
11839 { { echo "$as_me:$LINENO: error: urxvt requires unix-compliant filehandle passing ability" >&5
11840echo "$as_me: error: urxvt requires unix-compliant filehandle passing ability" >&2;}
11841 { (exit 1); exit 1; }; }
11842fi
11843
11844echo "$as_me:$LINENO: checking for broken XIM callback" >&5
11845echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6
11846if test "${rxvt_broken_ximcb+set}" = set; then
11847 echo $ECHO_N "(cached) $ECHO_C" >&6
11848else
11849 cat >conftest.$ac_ext <<_ACEOF
11850
11851#include <X11/Xlib.h>
11852
11853void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
11854
11855void f() {
11856 XIMCallback cb;
11857 cb.callback = im_destroy_cb;
11858}
11859
11860_ACEOF
11861rm -f conftest.$ac_objext
11862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11863 (eval $ac_compile) 2>conftest.er1
11864 ac_status=$?
11865 grep -v '^ *+' conftest.er1 >conftest.err
11866 rm -f conftest.er1
11867 cat conftest.err >&5
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); } &&
11870 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11872 (eval $ac_try) 2>&5
11873 ac_status=$?
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); }; } &&
11876 { ac_try='test -s conftest.$ac_objext'
11877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11878 (eval $ac_try) 2>&5
11879 ac_status=$?
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; }; then
11882 rxvt_broken_ximcb=yes
11883else
11884 echo "$as_me: failed program was:" >&5
11885sed 's/^/| /' conftest.$ac_ext >&5
11886
11887rxvt_broken_ximcb=no
11888fi
11889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11890fi
11891echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
11892echo "${ECHO_T}$rxvt_broken_ximcb" >&6
11893
11894if test x$rxvt_broken_ximcb = xyes; then
11895
11896cat >>confdefs.h <<\_ACEOF
11897#define XIMCB_PROTO_BROKEN 1
11898_ACEOF
11899
11900fi
11901
11902if test x$ac_cv_func_getpt = xno -a x$ac_cv_func_posix_openpt = xno; then
11903 echo "$as_me:$LINENO: checking for openpty" >&5
11904echo $ECHO_N "checking for openpty... $ECHO_C" >&6
11905if test "${ac_cv_func_openpty+set}" = set; then
11906 echo $ECHO_N "(cached) $ECHO_C" >&6
11907else
11908 cat >conftest.$ac_ext <<_ACEOF
11909/* confdefs.h. */
11910_ACEOF
11911cat confdefs.h >>conftest.$ac_ext
11912cat >>conftest.$ac_ext <<_ACEOF
11913/* end confdefs.h. */
11914/* Define openpty to an innocuous variant, in case <limits.h> declares openpty.
11915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11916#define openpty innocuous_openpty
11917
11918/* System header to define __stub macros and hopefully few prototypes,
11919 which can conflict with char openpty (); below.
11920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11921 <limits.h> exists even on freestanding compilers. */
11922
11923#ifdef __STDC__
11924# include <limits.h>
11925#else
11926# include <assert.h>
11927#endif
11928
11929#undef openpty
11930
11931/* Override any gcc2 internal prototype to avoid an error. */
11932#ifdef __cplusplus
11933extern "C"
11934{
11935#endif
11936/* We use char because int might match the return type of a gcc2
11937 builtin and then its argument prototype would still apply. */
11938char openpty ();
11939/* The GNU C library defines this for functions which it implements
11940 to always fail with ENOSYS. Some functions are actually named
11941 something starting with __ and the normal name is an alias. */
11942#if defined (__stub_openpty) || defined (__stub___openpty)
11943choke me
11944#else
11945char (*f) () = openpty;
11946#endif
11947#ifdef __cplusplus
11948}
11949#endif
11950
11951int
11952main ()
11953{
11954return f != openpty;
11955 ;
11956 return 0;
11957}
11958_ACEOF
11959rm -f conftest.$ac_objext conftest$ac_exeext
11960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11961 (eval $ac_link) 2>conftest.er1
11962 ac_status=$?
11963 grep -v '^ *+' conftest.er1 >conftest.err
11964 rm -f conftest.er1
11965 cat conftest.err >&5
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); } &&
11968 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11970 (eval $ac_try) 2>&5
11971 ac_status=$?
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); }; } &&
11974 { ac_try='test -s conftest$ac_exeext'
11975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11976 (eval $ac_try) 2>&5
11977 ac_status=$?
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); }; }; then
11980 ac_cv_func_openpty=yes
11981else
11982 echo "$as_me: failed program was:" >&5
11983sed 's/^/| /' conftest.$ac_ext >&5
11984
11985ac_cv_func_openpty=no
11986fi
11987rm -f conftest.err conftest.$ac_objext \
11988 conftest$ac_exeext conftest.$ac_ext
11989fi
11990echo "$as_me:$LINENO: result: $ac_cv_func_openpty" >&5
11991echo "${ECHO_T}$ac_cv_func_openpty" >&6
11992if test $ac_cv_func_openpty = yes; then
11993 :
11994else
11995 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
11996echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
11997if test "${ac_cv_lib_util_openpty+set}" = set; then
11998 echo $ECHO_N "(cached) $ECHO_C" >&6
11999else
12000 ac_check_lib_save_LIBS=$LIBS
12001LIBS="-lutil $LIBS"
12002cat >conftest.$ac_ext <<_ACEOF
12003/* confdefs.h. */
12004_ACEOF
12005cat confdefs.h >>conftest.$ac_ext
12006cat >>conftest.$ac_ext <<_ACEOF
12007/* end confdefs.h. */
12008
12009/* Override any gcc2 internal prototype to avoid an error. */
12010#ifdef __cplusplus
12011extern "C"
12012#endif
12013/* We use char because int might match the return type of a gcc2
12014 builtin and then its argument prototype would still apply. */
12015char openpty ();
12016int
12017main ()
12018{
12019openpty ();
12020 ;
12021 return 0;
12022}
12023_ACEOF
12024rm -f conftest.$ac_objext conftest$ac_exeext
12025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12026 (eval $ac_link) 2>conftest.er1
12027 ac_status=$?
12028 grep -v '^ *+' conftest.er1 >conftest.err
12029 rm -f conftest.er1
12030 cat conftest.err >&5
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); } &&
12033 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12035 (eval $ac_try) 2>&5
12036 ac_status=$?
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); }; } &&
12039 { ac_try='test -s conftest$ac_exeext'
12040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12041 (eval $ac_try) 2>&5
12042 ac_status=$?
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); }; }; then
12045 ac_cv_lib_util_openpty=yes
12046else
12047 echo "$as_me: failed program was:" >&5
12048sed 's/^/| /' conftest.$ac_ext >&5
12049
12050ac_cv_lib_util_openpty=no
12051fi
12052rm -f conftest.err conftest.$ac_objext \
12053 conftest$ac_exeext conftest.$ac_ext
12054LIBS=$ac_check_lib_save_LIBS
12055fi
12056echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
12057echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
12058if test $ac_cv_lib_util_openpty = yes; then
12059 LIBS="$LIBS -lutil"
12060fi
12061
12062fi
16039 12063
16040fi 12064fi
16041 12065
16042echo "$as_me:$LINENO: checking for pty/tty type" >&5 12066echo "$as_me:$LINENO: checking for pty/tty type" >&5
16043echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6 12067echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6
16044if test "${rxvt_cv_ptys+set}" = set; then 12068if test "${rxvt_cv_ptys+set}" = set; then
16045 echo $ECHO_N "(cached) $ECHO_C" >&6 12069 echo $ECHO_N "(cached) $ECHO_C" >&6
16046else 12070else
16047 if test x$ac_cv_func_openpty = xyes; then 12071 if test x$ac_cv_func_openpty = xyes -o x$ac_cv_lib_util_openpty = xyes; then
16048 rxvt_cv_ptys=OPENPTY 12072 rxvt_cv_ptys=OPENPTY
12073 else if test x$ac_cv_func_getpt = xyes; then
12074 rxvt_cv_ptys=GLIBC
12075 else if test x$ac_cv_func_posix_openpt = xyes; then
12076 rxvt_cv_ptys=POSIX
16049 else if test x$ac_cv_func__getpty = xyes; then 12077 else if test x$ac_cv_func__getpty = xyes; then
16050 rxvt_cv_ptys=SGI4 12078 rxvt_cv_ptys=SGI4
16051 else if test -c /dev/ttyp20; then 12079 else if test -c /dev/ttyp20; then
16052 rxvt_cv_ptys=SCO 12080 rxvt_cv_ptys=SCO
16053 else if test -c /dev/ptym/clone; then 12081 else if test -c /dev/ptym/clone; then
16054 rxvt_cv_ptys=HPUX 12082 rxvt_cv_ptys=HPUX
16055 else if test x$rxvt_cv_func_getpt = xyes; then
16056 rxvt_cv_ptys=GLIBC
16057 else if test -c /dev/ptc -a -c /dev/pts; then 12083 else if test -c /dev/ptc -a -c /dev/pts; then
16058 rxvt_cv_ptys=PTC 12084 rxvt_cv_ptys=PTC
16059 else if test -c /dev/ptc -a -d /dev/pts; then 12085 else if test -c /dev/ptc -a -d /dev/pts; then
16060 rxvt_cv_ptys=PTC 12086 rxvt_cv_ptys=PTC
16061 else if test -c /dev/ptmx -a -c /dev/pts/0; then 12087 else if test -c /dev/ptmx -a -c /dev/pts/0; then
16071fi 12097fi
16072fi 12098fi
16073fi 12099fi
16074fi 12100fi
16075fi 12101fi
12102fi
16076 12103
16077fi 12104fi
16078echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5 12105echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
16079echo "${ECHO_T}$rxvt_cv_ptys" >&6 12106echo "${ECHO_T}$rxvt_cv_ptys" >&6
16080 12107
12108if test x$rxvt_cv_ptys = xGLIBC; then
12109
12110cat >>confdefs.h <<\_ACEOF
12111#define PTYS_ARE_GETPT 1
12112_ACEOF
12113
12114fi
12115if test x$rxvt_cv_ptys = xPOSIX; then
12116
12117cat >>confdefs.h <<\_ACEOF
12118#define PTYS_ARE_POSIX 1
12119_ACEOF
12120
12121fi
16081if test x$rxvt_cv_ptys = xOPENPTY; then 12122if test x$rxvt_cv_ptys = xOPENPTY; then
16082 12123
16083cat >>confdefs.h <<\_ACEOF 12124cat >>confdefs.h <<\_ACEOF
16084#define PTYS_ARE_OPENPTY 1 12125#define PTYS_ARE_OPENPTY 1
16085_ACEOF 12126_ACEOF
16111cat >>confdefs.h <<\_ACEOF 12152cat >>confdefs.h <<\_ACEOF
16112#define PTYS_ARE__GETPTY 1 12153#define PTYS_ARE__GETPTY 1
16113_ACEOF 12154_ACEOF
16114 12155
16115fi 12156fi
16116if test x$rxvt_cv_ptys = xCONVEX; then
16117
16118cat >>confdefs.h <<\_ACEOF
16119#define PTYS_ARE_GETPTY 1
16120_ACEOF
16121
16122fi
16123if test x$rxvt_cv_ptys = xGLIBC; then
16124
16125cat >>confdefs.h <<\_ACEOF
16126#define PTYS_ARE_GETPT 1
16127_ACEOF
16128
16129fi
16130if test x$rxvt_cv_ptys = xHPUX; then 12157if test x$rxvt_cv_ptys = xHPUX; then
16131 12158
16132cat >>confdefs.h <<\_ACEOF 12159cat >>confdefs.h <<\_ACEOF
16133#define PTYS_ARE_CLONE 1 12160#define PTYS_ARE_CLONE 1
16134_ACEOF 12161_ACEOF
16135 12162
16136fi 12163fi
16137if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then 12164if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xPOSIX; then
16138 12165
16139cat >>confdefs.h <<\_ACEOF 12166cat >>confdefs.h <<\_ACEOF
16140#define PTYS_ARE_SEARCHED 1 12167#define PTYS_ARE_SEARCHED 1
16141_ACEOF 12168_ACEOF
16142 12169
16161#define PTYCHAR2 "$pch2" 12188#define PTYCHAR2 "$pch2"
16162_ACEOF 12189_ACEOF
16163 12190
16164fi 12191fi
16165 12192
16166echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
16167echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
16168if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
16169 echo $ECHO_N "(cached) $ECHO_C" >&6
16170else
16171 ac_check_lib_save_LIBS=$LIBS
16172LIBS="-lxpg4 $LIBS"
16173cat >conftest.$ac_ext <<_ACEOF
16174/* confdefs.h. */
16175_ACEOF
16176cat confdefs.h >>conftest.$ac_ext
16177cat >>conftest.$ac_ext <<_ACEOF
16178/* end confdefs.h. */
16179
16180/* Override any gcc2 internal prototype to avoid an error. */
16181#ifdef __cplusplus
16182extern "C"
16183#endif
16184/* We use char because int might match the return type of a gcc2
16185 builtin and then its argument prototype would still apply. */
16186char setlocale ();
16187int
16188main ()
16189{
16190setlocale ();
16191 ;
16192 return 0;
16193}
16194_ACEOF
16195rm -f conftest.$ac_objext conftest$ac_exeext
16196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16197 (eval $ac_link) 2>conftest.er1
16198 ac_status=$?
16199 grep -v '^ *+' conftest.er1 >conftest.err
16200 rm -f conftest.er1
16201 cat conftest.err >&5
16202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203 (exit $ac_status); } &&
16204 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16206 (eval $ac_try) 2>&5
16207 ac_status=$?
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); }; } &&
16210 { ac_try='test -s conftest$ac_exeext'
16211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16212 (eval $ac_try) 2>&5
16213 ac_status=$?
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); }; }; then
16216 ac_cv_lib_xpg4_setlocale=yes
16217else
16218 echo "$as_me: failed program was:" >&5
16219sed 's/^/| /' conftest.$ac_ext >&5
16220
16221ac_cv_lib_xpg4_setlocale=no
16222fi
16223rm -f conftest.err conftest.$ac_objext \
16224 conftest$ac_exeext conftest.$ac_ext
16225LIBS=$ac_check_lib_save_LIBS
16226fi
16227echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
16228echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
16229if test $ac_cv_lib_xpg4_setlocale = yes; then
16230 LIBS="$LIBS -lxpg4"
16231fi
16232
16233
16234if test x$support_tinting = xyes; then
16235
16236cat >>confdefs.h <<\_ACEOF
16237#define TINTING 1
16238_ACEOF
16239
16240fi
16241if test x$support_inheritpixmap = xyes; then
16242
16243cat >>confdefs.h <<\_ACEOF
16244#define TRANSPARENT 1
16245_ACEOF
16246
16247fi
16248if test x$support_keepscrolling = xno; then
16249
16250cat >>confdefs.h <<\_ACEOF
16251#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
16252_ACEOF
16253
16254fi
16255if test x$support_selectionscrolling = xyes; then
16256
16257cat >>confdefs.h <<\_ACEOF
16258#define SELECTION_SCROLLING 1
16259_ACEOF
16260
16261fi
16262if test x$support_menubar = xyes; then
16263
16264cat >>confdefs.h <<\_ACEOF
16265#define MENUBAR 1
16266_ACEOF
16267
16268fi
16269if test x$support_frills = xno; then
16270
16271cat >>confdefs.h <<\_ACEOF
16272#define NO_FRILLS 1
16273_ACEOF
16274
16275fi
16276if test x$support_linespace = xno; then
16277
16278cat >>confdefs.h <<\_ACEOF
16279#define NO_LINESPACE 1
16280_ACEOF
16281
16282fi
16283if test x$support_24bit = xyes; then
16284
16285cat >>confdefs.h <<\_ACEOF
16286#define PREFER_24BIT 1
16287_ACEOF
16288
16289fi
16290if test x$support_mousewheel = xyes; then
16291
16292cat >>confdefs.h <<\_ACEOF
16293#define MOUSE_WHEEL 1
16294_ACEOF
16295
16296fi
16297if test x$support_mouseslipwheel = xyes; then
16298
16299cat >>confdefs.h <<\_ACEOF
16300#define MOUSE_SLIP_WHEELING 1
16301_ACEOF
16302
16303fi
16304if test x$support_utmp = xyes; then
16305
16306cat >>confdefs.h <<\_ACEOF
16307#define UTMP_SUPPORT 1
16308_ACEOF
16309
16310fi
16311if test x$support_wtmp = xyes; then
16312
16313cat >>confdefs.h <<\_ACEOF
16314#define WTMP_SUPPORT 1
16315_ACEOF
16316
16317fi
16318if test x$support_lastlog = xyes; then
16319
16320cat >>confdefs.h <<\_ACEOF
16321#define LASTLOG_SUPPORT 1
16322_ACEOF
16323
16324fi
16325if test x$support_xim = xyes -o x$multichar_set = xyes; then
16326 if test x$rxvt_cv_func_xlocale = xyes; then
16327
16328cat >>confdefs.h <<\_ACEOF
16329#define USE_XIM 1
16330_ACEOF
16331
16332 fi
16333fi
16334if test x$support_xpm = xyes; then
16335
16336cat >>confdefs.h <<\_ACEOF
16337#define XPM_BACKGROUND 1
16338_ACEOF
16339
16340fi
16341if test x$support_scroll_rxvt = xyes; then
16342
16343cat >>confdefs.h <<\_ACEOF
16344#define RXVT_SCROLLBAR 1
16345_ACEOF
16346
16347 scrolltypes="rxvt"
16348fi
16349if test x$support_scroll_next = xyes; then
16350
16351cat >>confdefs.h <<\_ACEOF
16352#define NEXT_SCROLLBAR 1
16353_ACEOF
16354
16355 scrolltypes="$scrolltypes next"
16356fi
16357if test x$support_scroll_xterm = xyes; then
16358
16359cat >>confdefs.h <<\_ACEOF
16360#define XTERM_SCROLLBAR 1
16361_ACEOF
16362
16363 scrolltypes="$scrolltypes xterm"
16364fi
16365if test x$support_scroll_plain = xyes; then
16366
16367cat >>confdefs.h <<\_ACEOF
16368#define PLAIN_SCROLLBAR 1
16369_ACEOF
16370
16371 scrolltypes="$scrolltypes plain"
16372fi
16373if test x$support_pointer_blank = xyes; then
16374
16375cat >>confdefs.h <<\_ACEOF
16376#define POINTER_BLANK 1
16377_ACEOF
16378
16379fi
16380if test x$support_cursor_blink = xyes; then
16381
16382cat >>confdefs.h <<\_ACEOF
16383#define CURSOR_BLINK 1
16384_ACEOF
16385
16386fi
16387if test x$support_text_blink = xyes; then
16388
16389cat >>confdefs.h <<\_ACEOF
16390#define TEXT_BLINK 1
16391_ACEOF
16392
16393fi
16394if test x$support_unicode3 = xyes; then
16395
16396cat >>confdefs.h <<\_ACEOF
16397#define UNICODE_3 1
16398_ACEOF
16399
16400fi
16401if test x$support_combining = xyes; then
16402
16403cat >>confdefs.h <<\_ACEOF
16404#define ENABLE_COMBINING 1
16405_ACEOF
16406
16407fi
16408if test x$codesets = xall; then
16409 codesets=jp,jp-ext,kr,cn,cn-ext
16410fi
16411for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
16412
16413cat >>confdefs.h <<\_ACEOF
16414#define ENCODING_EU 1
16415_ACEOF
16416
16417
16418cat >>confdefs.h <<\_ACEOF
16419#define ENCODING_VN 1
16420_ACEOF
16421
16422 case "$codeset" in
16423 JP )
16424cat >>confdefs.h <<\_ACEOF
16425#define ENCODING_JP 1
16426_ACEOF
16427 ;;
16428 JP_EXT )
16429cat >>confdefs.h <<\_ACEOF
16430#define ENCODING_JP_EXT 1
16431_ACEOF
16432 ;;
16433 KR )
16434cat >>confdefs.h <<\_ACEOF
16435#define ENCODING_KR 1
16436_ACEOF
16437 ;;
16438 CN )
16439cat >>confdefs.h <<\_ACEOF
16440#define ENCODING_CN 1
16441_ACEOF
16442 ;;
16443 CN_EXT )
16444cat >>confdefs.h <<\_ACEOF
16445#define ENCODING_CN_EXT 1
16446_ACEOF
16447 ;;
16448 esac
16449done
16450
16451
16452CFLAGS=${CFLAGS--O}
16453LDFLAGS=${LDFLAGS--O}
16454
16455CPPFLAGS="$CPPFLAGS"
16456
16457
16458
16459
16460
16461
16462
16463if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
16464 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
16465 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
16466 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
16467 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
16468 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
16469fi
16470
16471
16472
16473
16474
16475if test x$support_addstrings = xno; then
16476
16477cat >>confdefs.h <<\_ACEOF
16478#define NO_STRINGS 1
16479_ACEOF
16480
16481fi
16482
16483MCOMMON=./autoconf/Make.common
16484
16485
16486test "$program_prefix" != NONE &&
16487 program_transform_name="s,^,$program_prefix,;$program_transform_name"
16488# Use a double $ so make ignores it.
16489test "$program_suffix" != NONE &&
16490 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
16491# Double any \ or $. echo might interpret backslashes.
16492# By default was `s,x,x', remove it if useless.
16493cat <<\_ACEOF >conftest.sed
16494s/[\\$]/&&/g;s/;s,x,x,$//
16495_ACEOF
16496program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
16497rm conftest.sed
16498
16499
16500
16501
16502
16503if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
16504 include_stdint_h="#include <stdint.h>"
16505else
16506 include_stdint_h="/* #include <stdint.h> */"
16507fi
16508if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
16509 include_stdarg_h="#include <cstdarg>"
16510else
16511 include_stdarg_h="/* #include <cstdarg> */"
16512fi
16513if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
16514 include_stdlib_h="#include <cstdlib>"
16515else
16516 include_stdlib_h="/* #include <cstdlib> */"
16517fi
16518if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
16519 include_unistd_h="#include <unistd.h>"
16520else
16521 include_unistd_h="/* #include <unistd.h> */"
16522fi
16523if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
16524 include_string_h="#include <cstring>"
16525else
16526 include_string_h="/* #include <cstring> */"
16527fi
16528if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
16529 include_fcntl_h="#include <fcntl.h>"
16530else
16531 include_fcntl_h="/* #include <fcntl.h> */"
16532fi
16533if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
16534 include_util_h="#include <util.h>"
16535else
16536 include_util_h="/* #include <util.h> */"
16537fi
16538if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
16539 include_assert_h="#include <assert.h>"
16540else
16541 include_assert_h="/* #include <assert.h> */"
16542fi
16543if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
16544 include_sys_ioctl_h="#include <sys/ioctl.h>"
16545else
16546 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
16547fi
16548if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
16549 include_sys_select_h="#include <sys/select.h>"
16550else
16551 include_sys_select_h="/* #include <sys/select.h> */"
16552fi
16553if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
16554 include_sys_strredir_h="#include <sys/strredir.h>"
16555else
16556 include_sys_strredir_h="/* #include <sys/strredir.h> */"
16557fi
16558if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
16559 include_sys_time_h="#include <sys/time.h>"
16560else
16561 include_sys_time_h="/* #include <sys/time.h> */"
16562fi
16563if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
16564 include_time_h="#include <time.h>"
16565else
16566 include_time_h="/* #include <time.h> */"
16567fi
16568
16569if test x$support_xft = xyes; then 12193if test x$support_xft = xyes; then
16570 LIBS="$LIBS `pkg-config xft --libs`" 12194 LIBS="$LIBS `pkg-config xft --libs`"
16571 CFLAGS="$CFLAGS `pkg-config xft --cflags`"
16572 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`" 12195 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
16573 12196
16574 12197
16575for ac_header in X11/Xft/Xft.h 12198for ac_header in X11/Xft/Xft.h
16576do 12199do
16804#define XFT 1 12427#define XFT 1
16805_ACEOF 12428_ACEOF
16806 12429
16807 fi 12430 fi
16808fi 12431fi
12432if test x$support_styles = xyes; then
16809 12433
12434cat >>confdefs.h <<\_ACEOF
12435#define ENABLE_STYLES 1
12436_ACEOF
12437
12438fi
12439if test x$support_iso14755 = xyes; then
12440
12441cat >>confdefs.h <<\_ACEOF
12442#define ISO_14755 1
12443_ACEOF
12444
12445fi
12446if test x$support_8bitctrls = xyes; then
12447
12448cat >>confdefs.h <<\_ACEOF
12449#define EIGHT_BIT_CONTROLS 1
12450_ACEOF
12451
12452fi
12453if test x$support_fading = xyes; then
12454
12455cat >>confdefs.h <<\_ACEOF
12456#define OFF_FOCUS_FADING 1
12457_ACEOF
12458
12459fi
12460if test x$support_tinting = xyes; then
12461
12462cat >>confdefs.h <<\_ACEOF
12463#define TINTING 1
12464_ACEOF
12465
12466fi
12467if test x$support_inheritpixmap = xyes; then
12468
12469cat >>confdefs.h <<\_ACEOF
12470#define TRANSPARENT 1
12471_ACEOF
12472
12473fi
12474if test x$support_keepscrolling = xno; then
12475
12476cat >>confdefs.h <<\_ACEOF
12477#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
12478_ACEOF
12479
12480fi
12481if test x$support_selectionscrolling = xyes; then
12482
12483cat >>confdefs.h <<\_ACEOF
12484#define SELECTION_SCROLLING 1
12485_ACEOF
12486
12487fi
12488if test x$support_frills = xyes; then
12489
12490cat >>confdefs.h <<\_ACEOF
12491#define ENABLE_FRILLS 1
12492_ACEOF
12493
12494fi
12495if test x$support_24bit = xyes; then
12496
12497cat >>confdefs.h <<\_ACEOF
12498#define PREFER_24BIT 1
12499_ACEOF
12500
12501fi
12502if test x$support_mousewheel = xyes; then
12503
12504cat >>confdefs.h <<\_ACEOF
12505#define MOUSE_WHEEL 1
12506_ACEOF
12507
12508fi
12509if test x$support_mouseslipwheel = xyes; then
12510
12511cat >>confdefs.h <<\_ACEOF
12512#define MOUSE_SLIP_WHEELING 1
12513_ACEOF
12514
12515fi
12516if test x$support_utmp = xyes; then
12517
12518cat >>confdefs.h <<\_ACEOF
12519#define UTMP_SUPPORT 1
12520_ACEOF
12521
12522fi
12523if test x$support_wtmp = xyes; then
12524
12525cat >>confdefs.h <<\_ACEOF
12526#define WTMP_SUPPORT 1
12527_ACEOF
12528
12529fi
12530if test x$support_lastlog = xyes; then
12531
12532cat >>confdefs.h <<\_ACEOF
12533#define LASTLOG_SUPPORT 1
12534_ACEOF
12535
12536fi
12537if test x$support_xim = xyes -o x$multichar_set = xyes; then
12538 if test x$rxvt_cv_func_xlocale = xyes; then
12539
12540cat >>confdefs.h <<\_ACEOF
12541#define USE_XIM 1
12542_ACEOF
12543
12544 fi
12545fi
12546if test x$support_xpm = xyes; then
12547
12548cat >>confdefs.h <<\_ACEOF
12549#define XPM_BACKGROUND 1
12550_ACEOF
12551
12552fi
12553if test x$support_scroll_rxvt = xyes; then
12554
12555cat >>confdefs.h <<\_ACEOF
12556#define RXVT_SCROLLBAR 1
12557_ACEOF
12558
12559 scrolltypes="rxvt"
12560fi
12561if test x$support_scroll_next = xyes; then
12562
12563cat >>confdefs.h <<\_ACEOF
12564#define NEXT_SCROLLBAR 1
12565_ACEOF
12566
12567 scrolltypes="$scrolltypes next"
12568fi
12569if test x$support_scroll_xterm = xyes; then
12570
12571cat >>confdefs.h <<\_ACEOF
12572#define XTERM_SCROLLBAR 1
12573_ACEOF
12574
12575 scrolltypes="$scrolltypes xterm"
12576fi
12577if test x$support_scroll_plain = xyes; then
12578
12579cat >>confdefs.h <<\_ACEOF
12580#define PLAIN_SCROLLBAR 1
12581_ACEOF
12582
12583 scrolltypes="$scrolltypes plain"
12584fi
12585if test x$support_pointer_blank = xyes; then
12586
12587cat >>confdefs.h <<\_ACEOF
12588#define POINTER_BLANK 1
12589_ACEOF
12590
12591fi
12592if test x$support_text_blink = xyes; then
12593
12594cat >>confdefs.h <<\_ACEOF
12595#define TEXT_BLINK 1
12596_ACEOF
12597
12598fi
12599if test x$support_unicode3 = xyes; then
12600
12601cat >>confdefs.h <<\_ACEOF
12602#define UNICODE_3 1
12603_ACEOF
12604
12605fi
12606if test x$support_combining = xyes; then
12607
12608cat >>confdefs.h <<\_ACEOF
12609#define ENABLE_COMBINING 1
12610_ACEOF
12611
12612fi
12613if test x$codesets = xall; then
12614 codesets=jp,jp-ext,kr,zh,zh-ext
12615fi
12616
12617cat >>confdefs.h <<\_ACEOF
12618#define ENCODING_EU 1
12619_ACEOF
12620
12621
12622cat >>confdefs.h <<\_ACEOF
12623#define ENCODING_VN 1
12624_ACEOF
12625
12626for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
12627 case "$codeset" in
12628 JP )
12629cat >>confdefs.h <<\_ACEOF
12630#define ENCODING_JP 1
12631_ACEOF
12632 ;;
12633 JP_EXT )
12634cat >>confdefs.h <<\_ACEOF
12635#define ENCODING_JP_EXT 1
12636_ACEOF
12637 ;;
12638 KR )
12639cat >>confdefs.h <<\_ACEOF
12640#define ENCODING_KR 1
12641_ACEOF
12642 ;;
12643 ZH )
12644cat >>confdefs.h <<\_ACEOF
12645#define ENCODING_ZH 1
12646_ACEOF
12647 ;;
12648 ZH_EXT )
12649cat >>confdefs.h <<\_ACEOF
12650#define ENCODING_ZH_EXT 1
12651_ACEOF
12652 ;;
12653 esac
12654done
12655
12656IF_PERL=\#
12657if test x$support_perl = xyes; then
12658 # Extract the first word of "perl5", so it can be a program name with args.
12659set dummy perl5; ac_word=$2
12660echo "$as_me:$LINENO: checking for $ac_word" >&5
12661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12662if test "${ac_cv_path_PERL+set}" = set; then
12663 echo $ECHO_N "(cached) $ECHO_C" >&6
12664else
12665 case $PERL in
12666 [\\/]* | ?:[\\/]*)
12667 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12668 ;;
12669 *)
12670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12671for as_dir in $PATH
12672do
12673 IFS=$as_save_IFS
12674 test -z "$as_dir" && as_dir=.
12675 for ac_exec_ext in '' $ac_executable_extensions; do
12676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12677 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12679 break 2
12680 fi
12681done
12682done
12683
12684 ;;
12685esac
12686fi
12687PERL=$ac_cv_path_PERL
12688
12689if test -n "$PERL"; then
12690 echo "$as_me:$LINENO: result: $PERL" >&5
12691echo "${ECHO_T}$PERL" >&6
12692else
12693 echo "$as_me:$LINENO: result: no" >&5
12694echo "${ECHO_T}no" >&6
12695fi
12696
12697 # Extract the first word of "perl", so it can be a program name with args.
12698set dummy perl; ac_word=$2
12699echo "$as_me:$LINENO: checking for $ac_word" >&5
12700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12701if test "${ac_cv_path_PERL+set}" = set; then
12702 echo $ECHO_N "(cached) $ECHO_C" >&6
12703else
12704 case $PERL in
12705 [\\/]* | ?:[\\/]*)
12706 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12707 ;;
12708 *)
12709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12710for as_dir in $PATH
12711do
12712 IFS=$as_save_IFS
12713 test -z "$as_dir" && as_dir=.
12714 for ac_exec_ext in '' $ac_executable_extensions; do
12715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12716 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12718 break 2
12719 fi
12720done
12721done
12722
12723 ;;
12724esac
12725fi
12726PERL=$ac_cv_path_PERL
12727
12728if test -n "$PERL"; then
12729 echo "$as_me:$LINENO: result: $PERL" >&5
12730echo "${ECHO_T}$PERL" >&6
12731else
12732 echo "$as_me:$LINENO: result: no" >&5
12733echo "${ECHO_T}no" >&6
12734fi
12735
12736
12737 echo "$as_me:$LINENO: checking for $PERL suitability" >&5
12738echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6
12739 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
12740
12741 save_CXXFLAGS="$CXXFLAGS"
12742 save_LIBS="$LIBS"
12743 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
12744 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
12745 cat >conftest.$ac_ext <<_ACEOF
12746/* confdefs.h. */
12747_ACEOF
12748cat confdefs.h >>conftest.$ac_ext
12749cat >>conftest.$ac_ext <<_ACEOF
12750/* end confdefs.h. */
12751
12752#include <EXTERN.h>
12753#include <perl.h>
12754#include <XSUB.h>
12755
12756int
12757main ()
12758{
12759
12760 PerlInterpreter *perl = perl_alloc ();
12761
12762 ;
12763 return 0;
12764}
12765_ACEOF
12766rm -f conftest.$ac_objext conftest$ac_exeext
12767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12768 (eval $ac_link) 2>conftest.er1
12769 ac_status=$?
12770 grep -v '^ *+' conftest.er1 >conftest.err
12771 rm -f conftest.er1
12772 cat conftest.err >&5
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); } &&
12775 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12777 (eval $ac_try) 2>&5
12778 ac_status=$?
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); }; } &&
12781 { ac_try='test -s conftest$ac_exeext'
12782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783 (eval $ac_try) 2>&5
12784 ac_status=$?
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); }; }; then
12787 rxvt_perl_link=yes
12788else
12789 echo "$as_me: failed program was:" >&5
12790sed 's/^/| /' conftest.$ac_ext >&5
12791
12792rxvt_perl_link=no
12793fi
12794rm -f conftest.err conftest.$ac_objext \
12795 conftest$ac_exeext conftest.$ac_ext
12796 CXXFLAGS="$save_CXXFLAGS"
12797 LIBS="$save_LIBS"
12798
12799 if test x$rxvt_perl_link = xyes; then
12800 echo "$as_me:$LINENO: result: ok" >&5
12801echo "${ECHO_T}ok" >&6
12802
12803cat >>confdefs.h <<\_ACEOF
12804#define ENABLE_PERL 1
12805_ACEOF
12806
12807 IF_PERL=
12808 PERL_O=rxvtperl.o
12809 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
12810 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
12811 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
12812 else
12813 { { echo "$as_me:$LINENO: error: no, unable to link" >&5
12814echo "$as_me: error: no, unable to link" >&2;}
12815 { (exit 1); exit 1; }; }
12816 fi
12817 else
12818 { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5
12819echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;}
12820 { (exit 1); exit 1; }; }
12821 fi
12822fi
12823
12824
12825
12826
12827
12828
12829
12830if test x$support_perl = xyes; then
12831 support_frills=yes
12832fi
12833
12834
12835CFLAGS=${CFLAGS--O}
12836LDFLAGS=${LDFLAGS--O}
12837
12838CPPFLAGS="$CPPFLAGS"
12839
12840
12841
12842
12843
12844
12845
12846if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
12847 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
12848 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
12849 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
12850 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
12851 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
12852fi
12853
12854
12855
12856
12857
12858test "$program_prefix" != NONE &&
12859 program_transform_name="s,^,$program_prefix,;$program_transform_name"
12860# Use a double $ so make ignores it.
12861test "$program_suffix" != NONE &&
12862 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
12863# Double any \ or $. echo might interpret backslashes.
12864# By default was `s,x,x', remove it if useless.
12865cat <<\_ACEOF >conftest.sed
12866s/[\\$]/&&/g;s/;s,x,x,$//
12867_ACEOF
12868program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
12869rm conftest.sed
12870
12871
12872
12873
12874
12875if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
12876 include_stdint_h="#include <stdint.h>"
12877else
12878 include_stdint_h="/* #include <stdint.h> */"
12879fi
12880if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
12881 include_stdarg_h="#include <cstdarg>"
12882else
12883 include_stdarg_h="/* #include <cstdarg> */"
12884fi
12885if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
12886 include_stdlib_h="#include <cstdlib>"
12887else
12888 include_stdlib_h="/* #include <cstdlib> */"
12889fi
12890if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
12891 include_unistd_h="#include <unistd.h>"
12892else
12893 include_unistd_h="/* #include <unistd.h> */"
12894fi
12895if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
12896 include_string_h="#include <cstring>"
12897else
12898 include_string_h="/* #include <cstring> */"
12899fi
12900if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
12901 include_fcntl_h="#include <fcntl.h>"
12902else
12903 include_fcntl_h="/* #include <fcntl.h> */"
12904fi
12905if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
12906 include_util_h="#include <util.h>"
12907else
12908 include_util_h="/* #include <util.h> */"
12909fi
12910if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
12911 include_assert_h="#include <assert.h>"
12912else
12913 include_assert_h="/* #include <assert.h> */"
12914fi
12915if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
12916 include_sys_ioctl_h="#include <sys/ioctl.h>"
12917else
12918 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
12919fi
12920if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
12921 include_sys_select_h="#include <sys/select.h>"
12922else
12923 include_sys_select_h="/* #include <sys/select.h> */"
12924fi
12925if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
12926 include_sys_strredir_h="#include <sys/strredir.h>"
12927else
12928 include_sys_strredir_h="/* #include <sys/strredir.h> */"
12929fi
12930if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
12931 include_sys_time_h="#include <sys/time.h>"
12932else
12933 include_sys_time_h="/* #include <sys/time.h> */"
12934fi
12935if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
12936 include_time_h="#include <time.h>"
12937else
12938 include_time_h="/* #include <time.h> */"
12939fi
12940
16810 ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/test/Makefile src/rxvtlib.h W11/Makefile" 12941 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h"
12942
16811cat >confcache <<\_ACEOF 12943cat >confcache <<\_ACEOF
16812# This file is a shell script that caches the results of configure 12944# This file is a shell script that caches the results of configure
16813# tests run on this system so they can be shared between configure 12945# tests run on this system so they can be shared between configure
16814# scripts and configure runs, see configure's option --config-cache. 12946# scripts and configure runs, see configure's option --config-cache.
16815# It is not useful on other systems. If it contains results you don't 12947# It is not useful on other systems. If it contains results you don't
17331cat >>$CONFIG_STATUS <<\_ACEOF 13463cat >>$CONFIG_STATUS <<\_ACEOF
17332for ac_config_target in $ac_config_targets 13464for ac_config_target in $ac_config_targets
17333do 13465do
17334 case "$ac_config_target" in 13466 case "$ac_config_target" in
17335 # Handling of arguments. 13467 # Handling of arguments.
17336 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
17337 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13468 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17338 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 13469 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17339 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 13470 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17340 "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
17341 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; 13471 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
17342 "W11/Makefile" ) CONFIG_FILES="$CONFIG_FILES W11/Makefile" ;;
17343 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;; 13472 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
17344 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 13473 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17345echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 13474echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17346 { (exit 1); exit 1; }; };; 13475 { (exit 1); exit 1; }; };;
17347 esac 13476 esac
17348done 13477done
17423s,@DEFS@,$DEFS,;t t 13552s,@DEFS@,$DEFS,;t t
17424s,@ECHO_C@,$ECHO_C,;t t 13553s,@ECHO_C@,$ECHO_C,;t t
17425s,@ECHO_N@,$ECHO_N,;t t 13554s,@ECHO_N@,$ECHO_N,;t t
17426s,@ECHO_T@,$ECHO_T,;t t 13555s,@ECHO_T@,$ECHO_T,;t t
17427s,@LIBS@,$LIBS,;t t 13556s,@LIBS@,$LIBS,;t t
13557s,@build@,$build,;t t
13558s,@build_cpu@,$build_cpu,;t t
13559s,@build_vendor@,$build_vendor,;t t
13560s,@build_os@,$build_os,;t t
13561s,@host@,$host,;t t
13562s,@host_cpu@,$host_cpu,;t t
13563s,@host_vendor@,$host_vendor,;t t
13564s,@host_os@,$host_os,;t t
17428s,@VERSION@,$VERSION,;t t 13565s,@VERSION@,$VERSION,;t t
17429s,@DATE@,$DATE,;t t 13566s,@DATE@,$DATE,;t t
17430s,@LSMDATE@,$LSMDATE,;t t 13567s,@LSMDATE@,$LSMDATE,;t t
17431s,@LIBVERSION@,$LIBVERSION,;t t 13568s,@LIBVERSION@,$LIBVERSION,;t t
17432s,@CC@,$CC,;t t 13569s,@CC@,$CC,;t t
17441s,@ac_ct_CXX@,$ac_ct_CXX,;t t 13578s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17442s,@CPP@,$CPP,;t t 13579s,@CPP@,$CPP,;t t
17443s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 13580s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17444s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 13581s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17445s,@INSTALL_DATA@,$INSTALL_DATA,;t t 13582s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17446s,@AWK@,$AWK,;t t 13583s,@EGREP@,$EGREP,;t t
17447s,@LINKER@,$LINKER,;t t 13584s,@LINKER@,$LINKER,;t t
17448s,@CXXCPP@,$CXXCPP,;t t
17449s,@EGREP@,$EGREP,;t t
17450s,@build@,$build,;t t
17451s,@build_cpu@,$build_cpu,;t t
17452s,@build_vendor@,$build_vendor,;t t
17453s,@build_os@,$build_os,;t t
17454s,@host@,$host,;t t
17455s,@host_cpu@,$host_cpu,;t t
17456s,@host_vendor@,$host_vendor,;t t
17457s,@host_os@,$host_os,;t t
17458s,@LN_S@,$LN_S,;t t
17459s,@ECHO@,$ECHO,;t t
17460s,@RANLIB@,$RANLIB,;t t
17461s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17462s,@STRIP@,$STRIP,;t t
17463s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17464s,@LIBTOOL@,$LIBTOOL,;t t
17465s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t 13585s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
17466s,@RXVTNAME@,$RXVTNAME,;t t 13586s,@RXVTNAME@,$RXVTNAME,;t t
17467s,@MV@,$MV,;t t 13587s,@MV@,$MV,;t t
17468s,@RM@,$RM,;t t 13588s,@RM@,$RM,;t t
17469s,@CP@,$CP,;t t 13589s,@CP@,$CP,;t t
17470s,@LN@,$LN,;t t 13590s,@LN@,$LN,;t t
17471s,@SED@,$SED,;t t 13591s,@SED@,$SED,;t t
13592s,@ECHO@,$ECHO,;t t
17472s,@CMP@,$CMP,;t t 13593s,@CMP@,$CMP,;t t
17473s,@TBL@,$TBL,;t t 13594s,@TIC@,$TIC,;t t
13595s,@CXXCPP@,$CXXCPP,;t t
17474s,@X_CFLAGS@,$X_CFLAGS,;t t 13596s,@X_CFLAGS@,$X_CFLAGS,;t t
17475s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 13597s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17476s,@X_LIBS@,$X_LIBS,;t t 13598s,@X_LIBS@,$X_LIBS,;t t
17477s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 13599s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17478s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t 13600s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
17482s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t 13604s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
17483s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t 13605s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
17484s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t 13606s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
17485s,@rxvt_intp_define@,$rxvt_intp_define,;t t 13607s,@rxvt_intp_define@,$rxvt_intp_define,;t t
17486s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t 13608s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
13609s,@PERL@,$PERL,;t t
13610s,@PERLLIB@,$PERLLIB,;t t
13611s,@PERLFLAGS@,$PERLFLAGS,;t t
13612s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t
13613s,@IF_PERL@,$IF_PERL,;t t
13614s,@PERL_O@,$PERL_O,;t t
17487s,@DEBUG@,$DEBUG,;t t 13615s,@DEBUG@,$DEBUG,;t t
17488s,@DINCLUDE@,$DINCLUDE,;t t 13616s,@DINCLUDE@,$DINCLUDE,;t t
17489s,@DLIB@,$DLIB,;t t 13617s,@DLIB@,$DLIB,;t t
17490s,@include_stdint_h@,$include_stdint_h,;t t 13618s,@include_stdint_h@,$include_stdint_h,;t t
17491s,@include_stdarg_h@,$include_stdarg_h,;t t 13619s,@include_stdarg_h@,$include_stdarg_h,;t t
17500s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t 13628s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t
17501s,@include_sys_time_h@,$include_sys_time_h,;t t 13629s,@include_sys_time_h@,$include_sys_time_h,;t t
17502s,@include_time_h@,$include_time_h,;t t 13630s,@include_time_h@,$include_time_h,;t t
17503s,@LIBOBJS@,$LIBOBJS,;t t 13631s,@LIBOBJS@,$LIBOBJS,;t t
17504s,@LTLIBOBJS@,$LTLIBOBJS,;t t 13632s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17505/@MCOMMON@/r $MCOMMON
17506s,@MCOMMON@,,;t t
17507CEOF 13633CEOF
17508 13634
17509_ACEOF 13635_ACEOF
17510 13636
17511 cat >>$CONFIG_STATUS <<\_ACEOF 13637 cat >>$CONFIG_STATUS <<\_ACEOF
18032 utmp file: $rxvt_cv_path_utmp 14158 utmp file: $rxvt_cv_path_utmp
18033 utmpx file: $rxvt_cv_path_utmpx 14159 utmpx file: $rxvt_cv_path_utmpx
18034 wtmp file: $rxvt_cv_path_wtmp 14160 wtmp file: $rxvt_cv_path_wtmp
18035 wtmpx file: $rxvt_cv_path_wtmpx 14161 wtmpx file: $rxvt_cv_path_wtmpx
18036 lastlog file: $rxvt_cv_path_lastlog 14162 lastlog file: $rxvt_cv_path_lastlog
18037 ttys/ttytab file: $rxvt_cv_path_ttytab" 14163 ttys/ttytab file: $rxvt_cv_path_ttytab
14164 embedded perl: $support_perl"
18038 echo 14165 echo
18039fi 14166fi
18040if test x$term != x; then 14167if test x$term != x; then
18041 echo " set TERM to: $term" 14168 echo " set TERM to: $term"
18042fi 14169fi
18071 echo ". functions could not be found. ." 14198 echo ". functions could not be found. ."
18072 echo ". XIM is now being DISABLED! ." 14199 echo ". XIM is now being DISABLED! ."
18073 echo ".----------------------------------------------------------------." 14200 echo ".----------------------------------------------------------------."
18074fi 14201fi
18075 14202
18076echo " *** Please check src/feature.h for further options ***" 14203echo " *** Optionally check src/feature.h for further options ***"
18077echo 14204echo
18078 14205
18079echo ".----------------------------------------------------------------." 14206echo ".----------------------------------------------------------------."
18080echo ". NOTE: most features are disabled by default, try ." 14207echo ". NOTE: some features are disabled by default, try ."
18081echo ". configure --help to get an idea of the optional features ." 14208echo ". configure --help to get an idea of the optional features, ."
14209echo ". or read ./README.configure ."
14210echo ". ."
14211echo ". The script ./reconf gives a reasonable baseline, try it if ."
14212echo ". you do not want to read documentation and still want some ."
14213echo ". useful features. ."
18082echo ".----------------------------------------------------------------." 14214echo ".----------------------------------------------------------------."
18083echo 14215echo
18084 14216

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines