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

Comparing rxvt-unicode/configure (file contents):
Revision 1.109 by root, Wed Aug 1 18:38:15 2007 UTC vs.
Revision 1.120 by root, Mon Nov 26 20:07:49 2007 UTC

679GREP 679GREP
680EGREP 680EGREP
681LINKER 681LINKER
682INSTALL_LIBRXVT 682INSTALL_LIBRXVT
683RXVTNAME 683RXVTNAME
684CXXCPP
684TIC 685TIC
685XMKMF 686XMKMF
686CXXCPP
687X_CFLAGS 687X_CFLAGS
688X_PRE_LIBS 688X_PRE_LIBS
689X_LIBS 689X_LIBS
690X_EXTRA_LIBS 690X_EXTRA_LIBS
691afterimage_config 691afterimage_config
692XPM_CPPFLAGS
693XPM_CFLAGS
694XPM_LIBS
695rxvt_int16_typedef 692rxvt_int16_typedef
696rxvt_uint16_typedef 693rxvt_uint16_typedef
697rxvt_int32_typedef 694rxvt_int32_typedef
698rxvt_uint32_typedef 695rxvt_uint32_typedef
699rxvt_intp_define 696rxvt_intp_define
734CPPFLAGS 731CPPFLAGS
735CXX 732CXX
736CXXFLAGS 733CXXFLAGS
737CCC 734CCC
738CPP 735CPP
739XMKMF
740CXXCPP' 736CXXCPP
737XMKMF'
741 738
742 739
743# Initialize some variables set by options. 740# Initialize some variables set by options.
744ac_init_help= 741ac_init_help=
745ac_init_version=false 742ac_init_version=false
1320 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1317 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1321 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1318 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1322 --enable-everything enable standard non-multichoice features 1319 --enable-everything enable standard non-multichoice features
1323 NOTE: this option is order dependent 1320 NOTE: this option is order dependent
1324 NOTE: automatically enabled with --enable-shared 1321 NOTE: automatically enabled with --enable-shared
1322 --enable-warnings turn on g++ warnings
1325 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters 1323 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1326 --enable-combining enable composition of base and combining characters 1324 --enable-combining enable composition of base and combining characters
1327 --enable-xft enable xft support on systems that have it 1325 --enable-xft enable xft support on systems that have it
1328 --enable-font-styles enable bold and italic support 1326 --enable-font-styles enable bold and italic support
1329 --enable-xpm-background enable background pixmaps
1330 --enable-afterimage enable integration with libAfterImage for background images 1327 --enable-afterimage enable integration with libAfterImage for background images
1331 --enable-transparency enable transparent backgrounds 1328 --enable-transparency enable transparent backgrounds
1332 --enable-tinting enable tinting of transparent bg
1333 --enable-fading enable colors fading when off focus 1329 --enable-fading enable colors fading when off focus
1334 --enable-rxvt-scroll enable rxvt style scrollbar 1330 --enable-rxvt-scroll enable rxvt style scrollbar
1335 --enable-next-scroll enable NeXT style scrollbar 1331 --enable-next-scroll enable NeXT style scrollbar
1336 --enable-xterm-scroll enable Xterm style scrollbar 1332 --enable-xterm-scroll enable Xterm style scrollbar
1337 --enable-perl enable embedded perl interpreter 1333 --enable-perl enable embedded perl interpreter
1339 --enable-xim XIM (X Input Method) protocol support 1335 --enable-xim XIM (X Input Method) protocol support
1340 --disable-backspace-key disable handling of the backspace key 1336 --disable-backspace-key disable handling of the backspace key
1341 --disable-delete-key disable handling of the delete key 1337 --disable-delete-key disable handling of the delete key
1342 --disable-resources disable all resource checking 1338 --disable-resources disable all resource checking
1343 --enable-8bitctrls enable 8 bit control sequences (not recommended) 1339 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1344 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) 1340 --enable-fallback[=CLASS] fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
1345 --disable-swapscreen disable swap screen support 1341 --disable-swapscreen disable swap screen support
1346 --enable-iso14755 enable support for extended ISO 14755 modes 1342 --enable-iso14755 enable support for extended ISO 14755 modes
1347 --enable-frills enable support for rarely used features 1343 --enable-frills enable support for rarely used features
1348 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 1344 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1349 --enable-selectionscrolling enable scrolling during selections 1345 --enable-selectionscrolling enable scrolling during selections
1350 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 1346 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1351 --enable-slipwheeling enable slip wheel scrolling (requires previous) 1347 --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel)
1352 --enable-smart-resize enable smart growth/shrink behaviour 1348 --enable-smart-resize enable smart growth/shrink behaviour
1353 --enable-text-blink enable blinking text 1349 --enable-text-blink enable blinking text
1354 --enable-pointer-blank enable pointer blank when typing or inactive pointer 1350 --enable-pointer-blank enable pointer blank when typing or inactive pointer
1355 --enable-utmp enable utmp (utmpx) support 1351 --enable-utmp enable utmp (utmpx) support
1356 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) 1352 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1358 1354
1359Optional Packages: 1355Optional Packages:
1360 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1356 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1361 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1357 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1362 --with-afterimage-config=DIR use libAfterImage config script in DIR 1358 --with-afterimage-config=DIR use libAfterImage config script in DIR
1363 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) 1359 --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
1364 --with-res-name=NAME use this as default resource name (default: urxvt) 1360 --with-res-name=NAME use this as default resource name (default: urxvt)
1365 --with-res-class=CLASS use this as the resource class (default: URxvt) 1361 --with-res-class=CLASS use this as the resource class (default: URxvt)
1366 --with-name=NAME set the basename for the installed binaries (default: urxvt) 1362 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1367 --with-term=NAME set the terminal to NAME (default: rxvt) 1363 --with-term=NAME set the terminal to NAME (default: rxvt)
1368 --with-terminfo=PATH set the path to the terminfo tree to PATH 1364 --with-terminfo=PATH set the path to the terminfo tree to PATH
1369 --with-x use the X Window System 1365 --with-x use the X Window System
1370 --with-xpm-includes=DIR use XPM includes in DIR
1371 --with-xpm-library=DIR use XPM library in DIR
1372 --with-xpm use XPM
1373 1366
1374Some influential environment variables: 1367Some influential environment variables:
1375 CC C compiler command 1368 CC C compiler command
1376 CFLAGS C compiler flags 1369 CFLAGS C compiler flags
1377 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1370 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1380 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1373 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1381 you have headers in a nonstandard directory <include dir> 1374 you have headers in a nonstandard directory <include dir>
1382 CXX C++ compiler command 1375 CXX C++ compiler command
1383 CXXFLAGS C++ compiler flags 1376 CXXFLAGS C++ compiler flags
1384 CPP C preprocessor 1377 CPP C preprocessor
1378 CXXCPP C++ preprocessor
1385 XMKMF Path to xmkmf, Makefile generator for X Window System 1379 XMKMF Path to xmkmf, Makefile generator for X Window System
1386 CXXCPP C++ preprocessor
1387 1380
1388Use these variables to override the choices made by `configure' or to help 1381Use these variables to override the choices made by `configure' or to help
1389it to find libraries and programs with nonstandard names/locations. 1382it to find libraries and programs with nonstandard names/locations.
1390 1383
1391_ACEOF 1384_ACEOF
1927 1920
1928 1921
1929 1922
1930VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1923VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1931DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1924DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1925
1932echo "" 1926echo ""
1933echo "configuring for rxvt $VERSION" 1927echo "configuring for rxvt $VERSION"
1934echo "" 1928echo ""
1935 1929
1936orig_CXXFLAGS="$CXXFLAGS" 1930orig_CXXFLAGS="$CXXFLAGS"
3877LINKER=$LINKER 3871LINKER=$LINKER
3878 3872
3879 3873
3880if test -z "$orig_CXXFLAGS"; then 3874if test -z "$orig_CXXFLAGS"; then
3881 if test x$GCC = xyes && test "x$GXX" = xyes; then 3875 if test x$GCC = xyes && test "x$GXX" = xyes; then
3882 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" 3876 CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs"
3883 cat >conftest.$ac_ext <<_ACEOF 3877 cat >conftest.$ac_ext <<_ACEOF
3884/* confdefs.h. */ 3878/* confdefs.h. */
3885_ACEOF 3879_ACEOF
3886cat confdefs.h >>conftest.$ac_ext 3880cat confdefs.h >>conftest.$ac_ext
3887cat >>conftest.$ac_ext <<_ACEOF 3881cat >>conftest.$ac_ext <<_ACEOF
4400 4394
4401 4395
4402 4396
4403support_frills=yes 4397support_frills=yes
4404support_inheritpixmap=yes 4398support_inheritpixmap=yes
4405support_tinting=yes
4406support_fading=yes 4399support_fading=yes
4407support_keepscrolling=yes 4400support_keepscrolling=yes
4408support_selectionscrolling=yes 4401support_selectionscrolling=yes
4409support_mousewheel=yes 4402support_mousewheel=yes
4410support_mouseslipwheel=yes 4403support_mouseslipwheel=yes
4413support_scroll_rxvt=yes 4406support_scroll_rxvt=yes
4414support_scroll_next=yes 4407support_scroll_next=yes
4415support_scroll_xterm=yes 4408support_scroll_xterm=yes
4416support_scroll_plain=yes 4409support_scroll_plain=yes
4417support_xim=yes 4410support_xim=yes
4418support_xpm=yes
4419support_afterimage=yes 4411support_afterimage=yes
4420support_afterstep=yes 4412support_afterstep=yes
4421support_xft=yes 4413support_xft=yes
4422support_unicode3=no 4414support_unicode3=no
4423support_combining=yes 4415support_combining=yes
4442if test "${enable_everything+set}" = set; then 4434if test "${enable_everything+set}" = set; then
4443 enableval=$enable_everything; 4435 enableval=$enable_everything;
4444 if test x$enableval = xno; then 4436 if test x$enableval = xno; then
4445 support_frills=no 4437 support_frills=no
4446 support_inheritpixmap=no 4438 support_inheritpixmap=no
4447 support_tinting=no
4448 support_fading=no 4439 support_fading=no
4449 support_keepscrolling=no 4440 support_keepscrolling=no
4450 support_selectionscrolling=no 4441 support_selectionscrolling=no
4451 support_lastlog=no 4442 support_lastlog=no
4452 support_mousewheel=no 4443 support_mousewheel=no
4458 support_scroll_xterm=no 4449 support_scroll_xterm=no
4459 support_scroll_plain=no 4450 support_scroll_plain=no
4460 support_utmp=no 4451 support_utmp=no
4461 support_wtmp=no 4452 support_wtmp=no
4462 support_xim=no 4453 support_xim=no
4463 support_xpm=no
4464 support_afterimage=no 4454 support_afterimage=no
4465 support_afterstep=no 4455 support_afterstep=no
4466 support_xft=no 4456 support_xft=no
4467 support_unicode3=no 4457 support_unicode3=no
4468 support_combining=no 4458 support_combining=no
4473 codesets= 4463 codesets=
4474 fi 4464 fi
4475 if test x$enableval = xyes; then 4465 if test x$enableval = xyes; then
4476 support_frills=yes 4466 support_frills=yes
4477 support_inheritpixmap=yes 4467 support_inheritpixmap=yes
4478 support_tinting=yes
4479 support_fading=yes 4468 support_fading=yes
4480 support_keepscrolling=yes 4469 support_keepscrolling=yes
4481 support_selectionscrolling=yes 4470 support_selectionscrolling=yes
4482 support_lastlog=yes 4471 support_lastlog=yes
4483 support_mousewheel=yes 4472 support_mousewheel=yes
4489 support_scroll_xterm=yes 4478 support_scroll_xterm=yes
4490 support_scroll_plain=yes 4479 support_scroll_plain=yes
4491 support_utmp=yes 4480 support_utmp=yes
4492 support_wtmp=yes 4481 support_wtmp=yes
4493 support_xim=yes 4482 support_xim=yes
4494 support_xpm=yes
4495 support_afterimage=yes 4483 support_afterimage=yes
4496 support_afterstep=yes 4484 support_afterstep=yes
4497 support_xft=yes 4485 support_xft=yes
4498 support_unicode3=yes 4486 support_unicode3=yes
4499 support_combining=yes 4487 support_combining=yes
4505 fi 4493 fi
4506 4494
4507fi 4495fi
4508 4496
4509 4497
4498WARNINGS=no
4499# Check whether --enable-warnings was given.
4500if test "${enable_warnings+set}" = set; then
4501 enableval=$enable_warnings; if test x$enableval = xyes; then
4502 WARNINGS=yes
4503 fi
4504fi
4505
4506if test x$GXX = xyes; then
4507 if test $WARNINGS = yes; then
4508 save_CXXFLAGS="$CXXFLAGS"
4509 CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-non-virtual-dtor"
4510 cat >conftest.$ac_ext <<_ACEOF
4511/* confdefs.h. */
4512_ACEOF
4513cat confdefs.h >>conftest.$ac_ext
4514cat >>conftest.$ac_ext <<_ACEOF
4515/* end confdefs.h. */
4516
4517int
4518main ()
4519{
4520
4521 ;
4522 return 0;
4523}
4524_ACEOF
4525rm -f conftest.$ac_objext
4526if { (ac_try="$ac_compile"
4527case "(($ac_try" in
4528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4529 *) ac_try_echo=$ac_try;;
4530esac
4531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4532 (eval "$ac_compile") 2>conftest.er1
4533 ac_status=$?
4534 grep -v '^ *+' conftest.er1 >conftest.err
4535 rm -f conftest.er1
4536 cat conftest.err >&5
4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); } && {
4539 test -z "$ac_cxx_werror_flag" ||
4540 test ! -s conftest.err
4541 } && test -s conftest.$ac_objext; then
4542 :
4543else
4544 echo "$as_me: failed program was:" >&5
4545sed 's/^/| /' conftest.$ac_ext >&5
4546
4547 CXXFLAGS="$save_CXXFLAGS"
4548fi
4549
4550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4551 else
4552 CXXFLAGS="$CXXFLAGS -w"
4553 fi
4554fi
4555
4510# Check whether --enable-unicode3 was given. 4556# Check whether --enable-unicode3 was given.
4511if test "${enable_unicode3+set}" = set; then 4557if test "${enable_unicode3+set}" = set; then
4512 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then 4558 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then
4513 support_unicode3=$enableval 4559 support_unicode3=$enableval
4514 fi 4560 fi
4537 support_styles=$enableval 4583 support_styles=$enableval
4538 fi 4584 fi
4539fi 4585fi
4540 4586
4541 4587
4542# Check whether --enable-xpm-background was given.
4543if test "${enable_xpm_background+set}" = set; then
4544 enableval=$enable_xpm_background; if test x$enableval = xyes -o x$enableval = xno; then
4545 support_xpm=$enableval
4546 fi
4547fi
4548
4549
4550# Check whether --enable-afterimage was given. 4588# Check whether --enable-afterimage was given.
4551if test "${enable_afterimage+set}" = set; then 4589if test "${enable_afterimage+set}" = set; then
4552 enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then 4590 enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then
4553 support_afterimage=$enableval 4591 support_afterimage=$enableval
4554 fi 4592 fi
4567 4605
4568# Check whether --enable-transparency was given. 4606# Check whether --enable-transparency was given.
4569if test "${enable_transparency+set}" = set; then 4607if test "${enable_transparency+set}" = set; then
4570 enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then 4608 enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then
4571 support_inheritpixmap=$enableval 4609 support_inheritpixmap=$enableval
4572 fi
4573fi
4574
4575
4576# Check whether --enable-tinting was given.
4577if test "${enable_tinting+set}" = set; then
4578 enableval=$enable_tinting; if test x$enableval = xyes -o x$enableval = xno; then
4579 support_tinting=$enableval
4580 fi 4610 fi
4581fi 4611fi
4582 4612
4583 4613
4584# Check whether --enable-fading was given. 4614# Check whether --enable-fading was given.
4859#define RXVT_TERMINFO "$withval" 4889#define RXVT_TERMINFO "$withval"
4860_ACEOF 4890_ACEOF
4861 terminfo="$withval" 4891 terminfo="$withval"
4862 fi 4892 fi
4863fi 4893fi
4894
4895
4896
4897LIBEV_M4_AVOID_LIBRT=1
4898
4899ac_ext=cpp
4900ac_cpp='$CXXCPP $CPPFLAGS'
4901ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4902ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4903ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4904{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4905echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4906if test -z "$CXXCPP"; then
4907 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4908 echo $ECHO_N "(cached) $ECHO_C" >&6
4909else
4910 # Double quotes because CXXCPP needs to be expanded
4911 for CXXCPP in "$CXX -E" "/lib/cpp"
4912 do
4913 ac_preproc_ok=false
4914for ac_cxx_preproc_warn_flag in '' yes
4915do
4916 # Use a header file that comes with gcc, so configuring glibc
4917 # with a fresh cross-compiler works.
4918 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4919 # <limits.h> exists even on freestanding compilers.
4920 # On the NeXT, cc -E runs the code through the compiler's parser,
4921 # not just through cpp. "Syntax error" is here to catch this case.
4922 cat >conftest.$ac_ext <<_ACEOF
4923/* confdefs.h. */
4924_ACEOF
4925cat confdefs.h >>conftest.$ac_ext
4926cat >>conftest.$ac_ext <<_ACEOF
4927/* end confdefs.h. */
4928#ifdef __STDC__
4929# include <limits.h>
4930#else
4931# include <assert.h>
4932#endif
4933 Syntax error
4934_ACEOF
4935if { (ac_try="$ac_cpp conftest.$ac_ext"
4936case "(($ac_try" in
4937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4938 *) ac_try_echo=$ac_try;;
4939esac
4940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4942 ac_status=$?
4943 grep -v '^ *+' conftest.er1 >conftest.err
4944 rm -f conftest.er1
4945 cat conftest.err >&5
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); } >/dev/null && {
4948 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4949 test ! -s conftest.err
4950 }; then
4951 :
4952else
4953 echo "$as_me: failed program was:" >&5
4954sed 's/^/| /' conftest.$ac_ext >&5
4955
4956 # Broken: fails on valid input.
4957continue
4958fi
4959
4960rm -f conftest.err conftest.$ac_ext
4961
4962 # OK, works on sane cases. Now check whether nonexistent headers
4963 # can be detected and how.
4964 cat >conftest.$ac_ext <<_ACEOF
4965/* confdefs.h. */
4966_ACEOF
4967cat confdefs.h >>conftest.$ac_ext
4968cat >>conftest.$ac_ext <<_ACEOF
4969/* end confdefs.h. */
4970#include <ac_nonexistent.h>
4971_ACEOF
4972if { (ac_try="$ac_cpp conftest.$ac_ext"
4973case "(($ac_try" in
4974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4975 *) ac_try_echo=$ac_try;;
4976esac
4977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4979 ac_status=$?
4980 grep -v '^ *+' conftest.er1 >conftest.err
4981 rm -f conftest.er1
4982 cat conftest.err >&5
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); } >/dev/null && {
4985 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4986 test ! -s conftest.err
4987 }; then
4988 # Broken: success on invalid input.
4989continue
4990else
4991 echo "$as_me: failed program was:" >&5
4992sed 's/^/| /' conftest.$ac_ext >&5
4993
4994 # Passes both tests.
4995ac_preproc_ok=:
4996break
4997fi
4998
4999rm -f conftest.err conftest.$ac_ext
5000
5001done
5002# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5003rm -f conftest.err conftest.$ac_ext
5004if $ac_preproc_ok; then
5005 break
5006fi
5007
5008 done
5009 ac_cv_prog_CXXCPP=$CXXCPP
5010
5011fi
5012 CXXCPP=$ac_cv_prog_CXXCPP
5013else
5014 ac_cv_prog_CXXCPP=$CXXCPP
5015fi
5016{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5017echo "${ECHO_T}$CXXCPP" >&6; }
5018ac_preproc_ok=false
5019for ac_cxx_preproc_warn_flag in '' yes
5020do
5021 # Use a header file that comes with gcc, so configuring glibc
5022 # with a fresh cross-compiler works.
5023 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5024 # <limits.h> exists even on freestanding compilers.
5025 # On the NeXT, cc -E runs the code through the compiler's parser,
5026 # not just through cpp. "Syntax error" is here to catch this case.
5027 cat >conftest.$ac_ext <<_ACEOF
5028/* confdefs.h. */
5029_ACEOF
5030cat confdefs.h >>conftest.$ac_ext
5031cat >>conftest.$ac_ext <<_ACEOF
5032/* end confdefs.h. */
5033#ifdef __STDC__
5034# include <limits.h>
5035#else
5036# include <assert.h>
5037#endif
5038 Syntax error
5039_ACEOF
5040if { (ac_try="$ac_cpp conftest.$ac_ext"
5041case "(($ac_try" in
5042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5043 *) ac_try_echo=$ac_try;;
5044esac
5045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5047 ac_status=$?
5048 grep -v '^ *+' conftest.er1 >conftest.err
5049 rm -f conftest.er1
5050 cat conftest.err >&5
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); } >/dev/null && {
5053 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5054 test ! -s conftest.err
5055 }; then
5056 :
5057else
5058 echo "$as_me: failed program was:" >&5
5059sed 's/^/| /' conftest.$ac_ext >&5
5060
5061 # Broken: fails on valid input.
5062continue
5063fi
5064
5065rm -f conftest.err conftest.$ac_ext
5066
5067 # OK, works on sane cases. Now check whether nonexistent headers
5068 # can be detected and how.
5069 cat >conftest.$ac_ext <<_ACEOF
5070/* confdefs.h. */
5071_ACEOF
5072cat confdefs.h >>conftest.$ac_ext
5073cat >>conftest.$ac_ext <<_ACEOF
5074/* end confdefs.h. */
5075#include <ac_nonexistent.h>
5076_ACEOF
5077if { (ac_try="$ac_cpp conftest.$ac_ext"
5078case "(($ac_try" in
5079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5080 *) ac_try_echo=$ac_try;;
5081esac
5082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5084 ac_status=$?
5085 grep -v '^ *+' conftest.er1 >conftest.err
5086 rm -f conftest.er1
5087 cat conftest.err >&5
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); } >/dev/null && {
5090 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5091 test ! -s conftest.err
5092 }; then
5093 # Broken: success on invalid input.
5094continue
5095else
5096 echo "$as_me: failed program was:" >&5
5097sed 's/^/| /' conftest.$ac_ext >&5
5098
5099 # Passes both tests.
5100ac_preproc_ok=:
5101break
5102fi
5103
5104rm -f conftest.err conftest.$ac_ext
5105
5106done
5107# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5108rm -f conftest.err conftest.$ac_ext
5109if $ac_preproc_ok; then
5110 :
5111else
5112 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5113See \`config.log' for more details." >&5
5114echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5115See \`config.log' for more details." >&2;}
5116 { (exit 1); exit 1; }; }
5117fi
5118
5119ac_ext=cpp
5120ac_cpp='$CXXCPP $CPPFLAGS'
5121ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5122ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5123ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5124
5125
5126{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5127echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5128if test "${ac_cv_header_stdc+set}" = set; then
5129 echo $ECHO_N "(cached) $ECHO_C" >&6
5130else
5131 cat >conftest.$ac_ext <<_ACEOF
5132/* confdefs.h. */
5133_ACEOF
5134cat confdefs.h >>conftest.$ac_ext
5135cat >>conftest.$ac_ext <<_ACEOF
5136/* end confdefs.h. */
5137#include <stdlib.h>
5138#include <stdarg.h>
5139#include <string.h>
5140#include <float.h>
5141
5142int
5143main ()
5144{
5145
5146 ;
5147 return 0;
5148}
5149_ACEOF
5150rm -f conftest.$ac_objext
5151if { (ac_try="$ac_compile"
5152case "(($ac_try" in
5153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5154 *) ac_try_echo=$ac_try;;
5155esac
5156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5157 (eval "$ac_compile") 2>conftest.er1
5158 ac_status=$?
5159 grep -v '^ *+' conftest.er1 >conftest.err
5160 rm -f conftest.er1
5161 cat conftest.err >&5
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163 (exit $ac_status); } && {
5164 test -z "$ac_cxx_werror_flag" ||
5165 test ! -s conftest.err
5166 } && test -s conftest.$ac_objext; then
5167 ac_cv_header_stdc=yes
5168else
5169 echo "$as_me: failed program was:" >&5
5170sed 's/^/| /' conftest.$ac_ext >&5
5171
5172 ac_cv_header_stdc=no
5173fi
5174
5175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5176
5177if test $ac_cv_header_stdc = yes; then
5178 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5179 cat >conftest.$ac_ext <<_ACEOF
5180/* confdefs.h. */
5181_ACEOF
5182cat confdefs.h >>conftest.$ac_ext
5183cat >>conftest.$ac_ext <<_ACEOF
5184/* end confdefs.h. */
5185#include <string.h>
5186
5187_ACEOF
5188if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5189 $EGREP "memchr" >/dev/null 2>&1; then
5190 :
5191else
5192 ac_cv_header_stdc=no
5193fi
5194rm -f conftest*
5195
5196fi
5197
5198if test $ac_cv_header_stdc = yes; then
5199 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5200 cat >conftest.$ac_ext <<_ACEOF
5201/* confdefs.h. */
5202_ACEOF
5203cat confdefs.h >>conftest.$ac_ext
5204cat >>conftest.$ac_ext <<_ACEOF
5205/* end confdefs.h. */
5206#include <stdlib.h>
5207
5208_ACEOF
5209if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5210 $EGREP "free" >/dev/null 2>&1; then
5211 :
5212else
5213 ac_cv_header_stdc=no
5214fi
5215rm -f conftest*
5216
5217fi
5218
5219if test $ac_cv_header_stdc = yes; then
5220 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5221 if test "$cross_compiling" = yes; then
5222 :
5223else
5224 cat >conftest.$ac_ext <<_ACEOF
5225/* confdefs.h. */
5226_ACEOF
5227cat confdefs.h >>conftest.$ac_ext
5228cat >>conftest.$ac_ext <<_ACEOF
5229/* end confdefs.h. */
5230#include <ctype.h>
5231#include <stdlib.h>
5232#if ((' ' & 0x0FF) == 0x020)
5233# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5234# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5235#else
5236# define ISLOWER(c) \
5237 (('a' <= (c) && (c) <= 'i') \
5238 || ('j' <= (c) && (c) <= 'r') \
5239 || ('s' <= (c) && (c) <= 'z'))
5240# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5241#endif
5242
5243#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5244int
5245main ()
5246{
5247 int i;
5248 for (i = 0; i < 256; i++)
5249 if (XOR (islower (i), ISLOWER (i))
5250 || toupper (i) != TOUPPER (i))
5251 return 2;
5252 return 0;
5253}
5254_ACEOF
5255rm -f conftest$ac_exeext
5256if { (ac_try="$ac_link"
5257case "(($ac_try" in
5258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5259 *) ac_try_echo=$ac_try;;
5260esac
5261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5262 (eval "$ac_link") 2>&5
5263 ac_status=$?
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5266 { (case "(($ac_try" in
5267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5268 *) ac_try_echo=$ac_try;;
5269esac
5270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5271 (eval "$ac_try") 2>&5
5272 ac_status=$?
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); }; }; then
5275 :
5276else
5277 echo "$as_me: program exited with status $ac_status" >&5
5278echo "$as_me: failed program was:" >&5
5279sed 's/^/| /' conftest.$ac_ext >&5
5280
5281( exit $ac_status )
5282ac_cv_header_stdc=no
5283fi
5284rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5285fi
5286
5287
5288fi
5289fi
5290{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5291echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5292if test $ac_cv_header_stdc = yes; then
5293
5294cat >>confdefs.h <<\_ACEOF
5295#define STDC_HEADERS 1
5296_ACEOF
5297
5298fi
5299
5300# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5311 inttypes.h stdint.h unistd.h
5312do
5313as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5314{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5315echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5316if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5318else
5319 cat >conftest.$ac_ext <<_ACEOF
5320/* confdefs.h. */
5321_ACEOF
5322cat confdefs.h >>conftest.$ac_ext
5323cat >>conftest.$ac_ext <<_ACEOF
5324/* end confdefs.h. */
5325$ac_includes_default
5326
5327#include <$ac_header>
5328_ACEOF
5329rm -f conftest.$ac_objext
5330if { (ac_try="$ac_compile"
5331case "(($ac_try" in
5332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5333 *) ac_try_echo=$ac_try;;
5334esac
5335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5336 (eval "$ac_compile") 2>conftest.er1
5337 ac_status=$?
5338 grep -v '^ *+' conftest.er1 >conftest.err
5339 rm -f conftest.er1
5340 cat conftest.err >&5
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); } && {
5343 test -z "$ac_cxx_werror_flag" ||
5344 test ! -s conftest.err
5345 } && test -s conftest.$ac_objext; then
5346 eval "$as_ac_Header=yes"
5347else
5348 echo "$as_me: failed program was:" >&5
5349sed 's/^/| /' conftest.$ac_ext >&5
5350
5351 eval "$as_ac_Header=no"
5352fi
5353
5354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5355fi
5356ac_res=`eval echo '${'$as_ac_Header'}'`
5357 { echo "$as_me:$LINENO: result: $ac_res" >&5
5358echo "${ECHO_T}$ac_res" >&6; }
5359if test `eval echo '${'$as_ac_Header'}'` = yes; then
5360 cat >>confdefs.h <<_ACEOF
5361#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5362_ACEOF
5363
5364fi
5365
5366done
5367
5368
5369
5370
5371
5372
5373
5374
5375for ac_header in sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h
5376do
5377as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5378if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5379 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5380echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5381if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5382 echo $ECHO_N "(cached) $ECHO_C" >&6
5383fi
5384ac_res=`eval echo '${'$as_ac_Header'}'`
5385 { echo "$as_me:$LINENO: result: $ac_res" >&5
5386echo "${ECHO_T}$ac_res" >&6; }
5387else
5388 # Is the header compilable?
5389{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5390echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5391cat >conftest.$ac_ext <<_ACEOF
5392/* confdefs.h. */
5393_ACEOF
5394cat confdefs.h >>conftest.$ac_ext
5395cat >>conftest.$ac_ext <<_ACEOF
5396/* end confdefs.h. */
5397$ac_includes_default
5398#include <$ac_header>
5399_ACEOF
5400rm -f conftest.$ac_objext
5401if { (ac_try="$ac_compile"
5402case "(($ac_try" in
5403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5404 *) ac_try_echo=$ac_try;;
5405esac
5406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5407 (eval "$ac_compile") 2>conftest.er1
5408 ac_status=$?
5409 grep -v '^ *+' conftest.er1 >conftest.err
5410 rm -f conftest.er1
5411 cat conftest.err >&5
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); } && {
5414 test -z "$ac_cxx_werror_flag" ||
5415 test ! -s conftest.err
5416 } && test -s conftest.$ac_objext; then
5417 ac_header_compiler=yes
5418else
5419 echo "$as_me: failed program was:" >&5
5420sed 's/^/| /' conftest.$ac_ext >&5
5421
5422 ac_header_compiler=no
5423fi
5424
5425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5426{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5427echo "${ECHO_T}$ac_header_compiler" >&6; }
5428
5429# Is the header present?
5430{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5431echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5432cat >conftest.$ac_ext <<_ACEOF
5433/* confdefs.h. */
5434_ACEOF
5435cat confdefs.h >>conftest.$ac_ext
5436cat >>conftest.$ac_ext <<_ACEOF
5437/* end confdefs.h. */
5438#include <$ac_header>
5439_ACEOF
5440if { (ac_try="$ac_cpp conftest.$ac_ext"
5441case "(($ac_try" in
5442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5443 *) ac_try_echo=$ac_try;;
5444esac
5445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5447 ac_status=$?
5448 grep -v '^ *+' conftest.er1 >conftest.err
5449 rm -f conftest.er1
5450 cat conftest.err >&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); } >/dev/null && {
5453 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5454 test ! -s conftest.err
5455 }; then
5456 ac_header_preproc=yes
5457else
5458 echo "$as_me: failed program was:" >&5
5459sed 's/^/| /' conftest.$ac_ext >&5
5460
5461 ac_header_preproc=no
5462fi
5463
5464rm -f conftest.err conftest.$ac_ext
5465{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5466echo "${ECHO_T}$ac_header_preproc" >&6; }
5467
5468# So? What about this header?
5469case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5470 yes:no: )
5471 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5472echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5474echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5475 ac_header_preproc=yes
5476 ;;
5477 no:yes:* )
5478 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5479echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5480 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5481echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5482 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5483echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5484 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5485echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5487echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5488 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5489echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5490
5491 ;;
5492esac
5493{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5494echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5495if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5496 echo $ECHO_N "(cached) $ECHO_C" >&6
5497else
5498 eval "$as_ac_Header=\$ac_header_preproc"
5499fi
5500ac_res=`eval echo '${'$as_ac_Header'}'`
5501 { echo "$as_me:$LINENO: result: $ac_res" >&5
5502echo "${ECHO_T}$ac_res" >&6; }
5503
5504fi
5505if test `eval echo '${'$as_ac_Header'}'` = yes; then
5506 cat >>confdefs.h <<_ACEOF
5507#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5508_ACEOF
5509
5510fi
5511
5512done
5513
5514
5515
5516
5517
5518
5519
5520for ac_func in epoll_ctl kqueue port_create poll select
5521do
5522as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5523{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5524echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5525if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5526 echo $ECHO_N "(cached) $ECHO_C" >&6
5527else
5528 cat >conftest.$ac_ext <<_ACEOF
5529/* confdefs.h. */
5530_ACEOF
5531cat confdefs.h >>conftest.$ac_ext
5532cat >>conftest.$ac_ext <<_ACEOF
5533/* end confdefs.h. */
5534/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5536#define $ac_func innocuous_$ac_func
5537
5538/* System header to define __stub macros and hopefully few prototypes,
5539 which can conflict with char $ac_func (); below.
5540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5541 <limits.h> exists even on freestanding compilers. */
5542
5543#ifdef __STDC__
5544# include <limits.h>
5545#else
5546# include <assert.h>
5547#endif
5548
5549#undef $ac_func
5550
5551/* Override any GCC internal prototype to avoid an error.
5552 Use char because int might match the return type of a GCC
5553 builtin and then its argument prototype would still apply. */
5554#ifdef __cplusplus
5555extern "C"
5556#endif
5557char $ac_func ();
5558/* The GNU C library defines this for functions which it implements
5559 to always fail with ENOSYS. Some functions are actually named
5560 something starting with __ and the normal name is an alias. */
5561#if defined __stub_$ac_func || defined __stub___$ac_func
5562choke me
5563#endif
5564
5565int
5566main ()
5567{
5568return $ac_func ();
5569 ;
5570 return 0;
5571}
5572_ACEOF
5573rm -f conftest.$ac_objext conftest$ac_exeext
5574if { (ac_try="$ac_link"
5575case "(($ac_try" in
5576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5577 *) ac_try_echo=$ac_try;;
5578esac
5579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5580 (eval "$ac_link") 2>conftest.er1
5581 ac_status=$?
5582 grep -v '^ *+' conftest.er1 >conftest.err
5583 rm -f conftest.er1
5584 cat conftest.err >&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); } && {
5587 test -z "$ac_cxx_werror_flag" ||
5588 test ! -s conftest.err
5589 } && test -s conftest$ac_exeext &&
5590 $as_test_x conftest$ac_exeext; then
5591 eval "$as_ac_var=yes"
5592else
5593 echo "$as_me: failed program was:" >&5
5594sed 's/^/| /' conftest.$ac_ext >&5
5595
5596 eval "$as_ac_var=no"
5597fi
5598
5599rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5600 conftest$ac_exeext conftest.$ac_ext
5601fi
5602ac_res=`eval echo '${'$as_ac_var'}'`
5603 { echo "$as_me:$LINENO: result: $ac_res" >&5
5604echo "${ECHO_T}$ac_res" >&6; }
5605if test `eval echo '${'$as_ac_var'}'` = yes; then
5606 cat >>confdefs.h <<_ACEOF
5607#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5608_ACEOF
5609
5610fi
5611done
5612
5613
5614{ echo "$as_me:$LINENO: checking for clock_gettime" >&5
5615echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6; }
5616if test "${ac_cv_func_clock_gettime+set}" = set; then
5617 echo $ECHO_N "(cached) $ECHO_C" >&6
5618else
5619 cat >conftest.$ac_ext <<_ACEOF
5620/* confdefs.h. */
5621_ACEOF
5622cat confdefs.h >>conftest.$ac_ext
5623cat >>conftest.$ac_ext <<_ACEOF
5624/* end confdefs.h. */
5625/* Define clock_gettime to an innocuous variant, in case <limits.h> declares clock_gettime.
5626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5627#define clock_gettime innocuous_clock_gettime
5628
5629/* System header to define __stub macros and hopefully few prototypes,
5630 which can conflict with char clock_gettime (); below.
5631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5632 <limits.h> exists even on freestanding compilers. */
5633
5634#ifdef __STDC__
5635# include <limits.h>
5636#else
5637# include <assert.h>
5638#endif
5639
5640#undef clock_gettime
5641
5642/* Override any GCC internal prototype to avoid an error.
5643 Use char because int might match the return type of a GCC
5644 builtin and then its argument prototype would still apply. */
5645#ifdef __cplusplus
5646extern "C"
5647#endif
5648char clock_gettime ();
5649/* The GNU C library defines this for functions which it implements
5650 to always fail with ENOSYS. Some functions are actually named
5651 something starting with __ and the normal name is an alias. */
5652#if defined __stub_clock_gettime || defined __stub___clock_gettime
5653choke me
5654#endif
5655
5656int
5657main ()
5658{
5659return clock_gettime ();
5660 ;
5661 return 0;
5662}
5663_ACEOF
5664rm -f conftest.$ac_objext conftest$ac_exeext
5665if { (ac_try="$ac_link"
5666case "(($ac_try" in
5667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5668 *) ac_try_echo=$ac_try;;
5669esac
5670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5671 (eval "$ac_link") 2>conftest.er1
5672 ac_status=$?
5673 grep -v '^ *+' conftest.er1 >conftest.err
5674 rm -f conftest.er1
5675 cat conftest.err >&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); } && {
5678 test -z "$ac_cxx_werror_flag" ||
5679 test ! -s conftest.err
5680 } && test -s conftest$ac_exeext &&
5681 $as_test_x conftest$ac_exeext; then
5682 ac_cv_func_clock_gettime=yes
5683else
5684 echo "$as_me: failed program was:" >&5
5685sed 's/^/| /' conftest.$ac_ext >&5
5686
5687 ac_cv_func_clock_gettime=no
5688fi
5689
5690rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5691 conftest$ac_exeext conftest.$ac_ext
5692fi
5693{ echo "$as_me:$LINENO: result: $ac_cv_func_clock_gettime" >&5
5694echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; }
5695if test $ac_cv_func_clock_gettime = yes; then
5696 :
5697else
5698
5699 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
5700
5701{ echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
5702echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
5703if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
5704 echo $ECHO_N "(cached) $ECHO_C" >&6
5705else
5706 ac_check_lib_save_LIBS=$LIBS
5707LIBS="-lrt $LIBS"
5708cat >conftest.$ac_ext <<_ACEOF
5709/* confdefs.h. */
5710_ACEOF
5711cat confdefs.h >>conftest.$ac_ext
5712cat >>conftest.$ac_ext <<_ACEOF
5713/* end confdefs.h. */
5714
5715/* Override any GCC internal prototype to avoid an error.
5716 Use char because int might match the return type of a GCC
5717 builtin and then its argument prototype would still apply. */
5718#ifdef __cplusplus
5719extern "C"
5720#endif
5721char clock_gettime ();
5722int
5723main ()
5724{
5725return clock_gettime ();
5726 ;
5727 return 0;
5728}
5729_ACEOF
5730rm -f conftest.$ac_objext conftest$ac_exeext
5731if { (ac_try="$ac_link"
5732case "(($ac_try" in
5733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5734 *) ac_try_echo=$ac_try;;
5735esac
5736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5737 (eval "$ac_link") 2>conftest.er1
5738 ac_status=$?
5739 grep -v '^ *+' conftest.er1 >conftest.err
5740 rm -f conftest.er1
5741 cat conftest.err >&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } && {
5744 test -z "$ac_cxx_werror_flag" ||
5745 test ! -s conftest.err
5746 } && test -s conftest$ac_exeext &&
5747 $as_test_x conftest$ac_exeext; then
5748 ac_cv_lib_rt_clock_gettime=yes
5749else
5750 echo "$as_me: failed program was:" >&5
5751sed 's/^/| /' conftest.$ac_ext >&5
5752
5753 ac_cv_lib_rt_clock_gettime=no
5754fi
5755
5756rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5757 conftest$ac_exeext conftest.$ac_ext
5758LIBS=$ac_check_lib_save_LIBS
5759fi
5760{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
5761echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
5762if test $ac_cv_lib_rt_clock_gettime = yes; then
5763 cat >>confdefs.h <<_ACEOF
5764#define HAVE_LIBRT 1
5765_ACEOF
5766
5767 LIBS="-lrt $LIBS"
5768
5769fi
5770
5771
5772for ac_func in clock_gettime
5773do
5774as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5775{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5776echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5777if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5778 echo $ECHO_N "(cached) $ECHO_C" >&6
5779else
5780 cat >conftest.$ac_ext <<_ACEOF
5781/* confdefs.h. */
5782_ACEOF
5783cat confdefs.h >>conftest.$ac_ext
5784cat >>conftest.$ac_ext <<_ACEOF
5785/* end confdefs.h. */
5786/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5788#define $ac_func innocuous_$ac_func
5789
5790/* System header to define __stub macros and hopefully few prototypes,
5791 which can conflict with char $ac_func (); below.
5792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5793 <limits.h> exists even on freestanding compilers. */
5794
5795#ifdef __STDC__
5796# include <limits.h>
5797#else
5798# include <assert.h>
5799#endif
5800
5801#undef $ac_func
5802
5803/* Override any GCC internal prototype to avoid an error.
5804 Use char because int might match the return type of a GCC
5805 builtin and then its argument prototype would still apply. */
5806#ifdef __cplusplus
5807extern "C"
5808#endif
5809char $ac_func ();
5810/* The GNU C library defines this for functions which it implements
5811 to always fail with ENOSYS. Some functions are actually named
5812 something starting with __ and the normal name is an alias. */
5813#if defined __stub_$ac_func || defined __stub___$ac_func
5814choke me
5815#endif
5816
5817int
5818main ()
5819{
5820return $ac_func ();
5821 ;
5822 return 0;
5823}
5824_ACEOF
5825rm -f conftest.$ac_objext conftest$ac_exeext
5826if { (ac_try="$ac_link"
5827case "(($ac_try" in
5828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5829 *) ac_try_echo=$ac_try;;
5830esac
5831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5832 (eval "$ac_link") 2>conftest.er1
5833 ac_status=$?
5834 grep -v '^ *+' conftest.er1 >conftest.err
5835 rm -f conftest.er1
5836 cat conftest.err >&5
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); } && {
5839 test -z "$ac_cxx_werror_flag" ||
5840 test ! -s conftest.err
5841 } && test -s conftest$ac_exeext &&
5842 $as_test_x conftest$ac_exeext; then
5843 eval "$as_ac_var=yes"
5844else
5845 echo "$as_me: failed program was:" >&5
5846sed 's/^/| /' conftest.$ac_ext >&5
5847
5848 eval "$as_ac_var=no"
5849fi
5850
5851rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5852 conftest$ac_exeext conftest.$ac_ext
5853fi
5854ac_res=`eval echo '${'$as_ac_var'}'`
5855 { echo "$as_me:$LINENO: result: $ac_res" >&5
5856echo "${ECHO_T}$ac_res" >&6; }
5857if test `eval echo '${'$as_ac_var'}'` = yes; then
5858 cat >>confdefs.h <<_ACEOF
5859#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5860_ACEOF
5861
5862fi
5863done
5864
5865 fi
5866
5867fi
5868
5869
5870
5871{ echo "$as_me:$LINENO: checking for ceil in -lm" >&5
5872echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; }
5873if test "${ac_cv_lib_m_ceil+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5875else
5876 ac_check_lib_save_LIBS=$LIBS
5877LIBS="-lm $LIBS"
5878cat >conftest.$ac_ext <<_ACEOF
5879/* confdefs.h. */
5880_ACEOF
5881cat confdefs.h >>conftest.$ac_ext
5882cat >>conftest.$ac_ext <<_ACEOF
5883/* end confdefs.h. */
5884
5885/* Override any GCC internal prototype to avoid an error.
5886 Use char because int might match the return type of a GCC
5887 builtin and then its argument prototype would still apply. */
5888#ifdef __cplusplus
5889extern "C"
5890#endif
5891char ceil ();
5892int
5893main ()
5894{
5895return ceil ();
5896 ;
5897 return 0;
5898}
5899_ACEOF
5900rm -f conftest.$ac_objext conftest$ac_exeext
5901if { (ac_try="$ac_link"
5902case "(($ac_try" in
5903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5904 *) ac_try_echo=$ac_try;;
5905esac
5906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5907 (eval "$ac_link") 2>conftest.er1
5908 ac_status=$?
5909 grep -v '^ *+' conftest.er1 >conftest.err
5910 rm -f conftest.er1
5911 cat conftest.err >&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); } && {
5914 test -z "$ac_cxx_werror_flag" ||
5915 test ! -s conftest.err
5916 } && test -s conftest$ac_exeext &&
5917 $as_test_x conftest$ac_exeext; then
5918 ac_cv_lib_m_ceil=yes
5919else
5920 echo "$as_me: failed program was:" >&5
5921sed 's/^/| /' conftest.$ac_ext >&5
5922
5923 ac_cv_lib_m_ceil=no
5924fi
5925
5926rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5927 conftest$ac_exeext conftest.$ac_ext
5928LIBS=$ac_check_lib_save_LIBS
5929fi
5930{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5
5931echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6; }
5932if test $ac_cv_lib_m_ceil = yes; then
5933 cat >>confdefs.h <<_ACEOF
5934#define HAVE_LIBM 1
5935_ACEOF
5936
5937 LIBS="-lm $LIBS"
5938
5939fi
5940
5941
5942
5943
4864 5944
4865 5945
4866 5946
4867# Extract the first word of "tic", so it can be a program name with args. 5947# Extract the first word of "tic", so it can be a program name with args.
4868set dummy tic; ac_word=$2 5948set dummy tic; ac_word=$2
4889 fi 5969 fi
4890done 5970done
4891done 5971done
4892IFS=$as_save_IFS 5972IFS=$as_save_IFS
4893 5973
5974 test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":"
4894 ;; 5975 ;;
4895esac 5976esac
4896fi 5977fi
4897TIC=$ac_cv_path_TIC 5978TIC=$ac_cv_path_TIC
4898if test -n "$TIC"; then 5979if test -n "$TIC"; then
4903echo "${ECHO_T}no" >&6; } 5984echo "${ECHO_T}no" >&6; }
4904fi 5985fi
4905 5986
4906 5987
4907 5988
4908
4909
4910ac_ext=cpp
4911ac_cpp='$CXXCPP $CPPFLAGS'
4912ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4913ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4914ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4915{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4916echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4917if test -z "$CXXCPP"; then
4918 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4919 echo $ECHO_N "(cached) $ECHO_C" >&6
4920else
4921 # Double quotes because CXXCPP needs to be expanded
4922 for CXXCPP in "$CXX -E" "/lib/cpp"
4923 do
4924 ac_preproc_ok=false
4925for ac_cxx_preproc_warn_flag in '' yes
4926do
4927 # Use a header file that comes with gcc, so configuring glibc
4928 # with a fresh cross-compiler works.
4929 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4930 # <limits.h> exists even on freestanding compilers.
4931 # On the NeXT, cc -E runs the code through the compiler's parser,
4932 # not just through cpp. "Syntax error" is here to catch this case.
4933 cat >conftest.$ac_ext <<_ACEOF
4934/* confdefs.h. */
4935_ACEOF
4936cat confdefs.h >>conftest.$ac_ext
4937cat >>conftest.$ac_ext <<_ACEOF
4938/* end confdefs.h. */
4939#ifdef __STDC__
4940# include <limits.h>
4941#else
4942# include <assert.h>
4943#endif
4944 Syntax error
4945_ACEOF
4946if { (ac_try="$ac_cpp conftest.$ac_ext"
4947case "(($ac_try" in
4948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4949 *) ac_try_echo=$ac_try;;
4950esac
4951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4953 ac_status=$?
4954 grep -v '^ *+' conftest.er1 >conftest.err
4955 rm -f conftest.er1
4956 cat conftest.err >&5
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); } >/dev/null && {
4959 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4960 test ! -s conftest.err
4961 }; then
4962 :
4963else
4964 echo "$as_me: failed program was:" >&5
4965sed 's/^/| /' conftest.$ac_ext >&5
4966
4967 # Broken: fails on valid input.
4968continue
4969fi
4970
4971rm -f conftest.err conftest.$ac_ext
4972
4973 # OK, works on sane cases. Now check whether nonexistent headers
4974 # can be detected and how.
4975 cat >conftest.$ac_ext <<_ACEOF
4976/* confdefs.h. */
4977_ACEOF
4978cat confdefs.h >>conftest.$ac_ext
4979cat >>conftest.$ac_ext <<_ACEOF
4980/* end confdefs.h. */
4981#include <ac_nonexistent.h>
4982_ACEOF
4983if { (ac_try="$ac_cpp conftest.$ac_ext"
4984case "(($ac_try" in
4985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4986 *) ac_try_echo=$ac_try;;
4987esac
4988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4990 ac_status=$?
4991 grep -v '^ *+' conftest.er1 >conftest.err
4992 rm -f conftest.er1
4993 cat conftest.err >&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); } >/dev/null && {
4996 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4997 test ! -s conftest.err
4998 }; then
4999 # Broken: success on invalid input.
5000continue
5001else
5002 echo "$as_me: failed program was:" >&5
5003sed 's/^/| /' conftest.$ac_ext >&5
5004
5005 # Passes both tests.
5006ac_preproc_ok=:
5007break
5008fi
5009
5010rm -f conftest.err conftest.$ac_ext
5011
5012done
5013# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5014rm -f conftest.err conftest.$ac_ext
5015if $ac_preproc_ok; then
5016 break
5017fi
5018
5019 done
5020 ac_cv_prog_CXXCPP=$CXXCPP
5021
5022fi
5023 CXXCPP=$ac_cv_prog_CXXCPP
5024else
5025 ac_cv_prog_CXXCPP=$CXXCPP
5026fi
5027{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5028echo "${ECHO_T}$CXXCPP" >&6; }
5029ac_preproc_ok=false
5030for ac_cxx_preproc_warn_flag in '' yes
5031do
5032 # Use a header file that comes with gcc, so configuring glibc
5033 # with a fresh cross-compiler works.
5034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5035 # <limits.h> exists even on freestanding compilers.
5036 # On the NeXT, cc -E runs the code through the compiler's parser,
5037 # not just through cpp. "Syntax error" is here to catch this case.
5038 cat >conftest.$ac_ext <<_ACEOF
5039/* confdefs.h. */
5040_ACEOF
5041cat confdefs.h >>conftest.$ac_ext
5042cat >>conftest.$ac_ext <<_ACEOF
5043/* end confdefs.h. */
5044#ifdef __STDC__
5045# include <limits.h>
5046#else
5047# include <assert.h>
5048#endif
5049 Syntax error
5050_ACEOF
5051if { (ac_try="$ac_cpp conftest.$ac_ext"
5052case "(($ac_try" in
5053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5054 *) ac_try_echo=$ac_try;;
5055esac
5056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5058 ac_status=$?
5059 grep -v '^ *+' conftest.er1 >conftest.err
5060 rm -f conftest.er1
5061 cat conftest.err >&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } >/dev/null && {
5064 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5065 test ! -s conftest.err
5066 }; then
5067 :
5068else
5069 echo "$as_me: failed program was:" >&5
5070sed 's/^/| /' conftest.$ac_ext >&5
5071
5072 # Broken: fails on valid input.
5073continue
5074fi
5075
5076rm -f conftest.err conftest.$ac_ext
5077
5078 # OK, works on sane cases. Now check whether nonexistent headers
5079 # can be detected and how.
5080 cat >conftest.$ac_ext <<_ACEOF
5081/* confdefs.h. */
5082_ACEOF
5083cat confdefs.h >>conftest.$ac_ext
5084cat >>conftest.$ac_ext <<_ACEOF
5085/* end confdefs.h. */
5086#include <ac_nonexistent.h>
5087_ACEOF
5088if { (ac_try="$ac_cpp conftest.$ac_ext"
5089case "(($ac_try" in
5090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5091 *) ac_try_echo=$ac_try;;
5092esac
5093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5095 ac_status=$?
5096 grep -v '^ *+' conftest.er1 >conftest.err
5097 rm -f conftest.er1
5098 cat conftest.err >&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); } >/dev/null && {
5101 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5102 test ! -s conftest.err
5103 }; then
5104 # Broken: success on invalid input.
5105continue
5106else
5107 echo "$as_me: failed program was:" >&5
5108sed 's/^/| /' conftest.$ac_ext >&5
5109
5110 # Passes both tests.
5111ac_preproc_ok=:
5112break
5113fi
5114
5115rm -f conftest.err conftest.$ac_ext
5116
5117done
5118# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5119rm -f conftest.err conftest.$ac_ext
5120if $ac_preproc_ok; then
5121 :
5122else
5123 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5124See \`config.log' for more details." >&5
5125echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5126See \`config.log' for more details." >&2;}
5127 { (exit 1); exit 1; }; }
5128fi
5129
5130ac_ext=cpp
5131ac_cpp='$CXXCPP $CPPFLAGS'
5132ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5133ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5134ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5135 5989
5136 5990
5137{ echo "$as_me:$LINENO: checking for X" >&5 5991{ echo "$as_me:$LINENO: checking for X" >&5
5138echo $ECHO_N "checking for X... $ECHO_C" >&6; } 5992echo $ECHO_N "checking for X... $ECHO_C" >&6; }
5139 5993
6445fi 7299fi
6446 7300
6447 LDFLAGS=$ac_save_LDFLAGS 7301 LDFLAGS=$ac_save_LDFLAGS
6448 7302
6449fi 7303fi
6450
6451 7304
6452 7305
6453AFTERIMAGE_CFLAGS= 7306AFTERIMAGE_CFLAGS=
6454AFTERIMAGE_LIBS= 7307AFTERIMAGE_LIBS=
6455AFTERIMAGE_VERSION= 7308AFTERIMAGE_VERSION=
6526echo "${ECHO_T}no" >&6; } 7379echo "${ECHO_T}no" >&6; }
6527 fi 7380 fi
6528 fi 7381 fi
6529fi 7382fi
6530 7383
6531if test x$support_afterimage != xyes -a x$support_xpm = xyes ; then
6532
6533
6534
6535# Initialize some more variables set by options.
6536# The variables have the same names as the options, with
6537# dashes changed to underlines.
6538
6539# If we find XPM, set shell vars xpm_includes and xpm_libraries to the
6540# paths, otherwise set no_xpm=yes.
6541# Uses ac_ vars as temps to allow command line to override cache and checks.
6542{ echo "$as_me:$LINENO: checking for libXpm" >&5
6543echo $ECHO_N "checking for libXpm... $ECHO_C" >&6; }
6544
6545
6546# Check whether --with-xpm_includes was given.
6547if test "${with_xpm_includes+set}" = set; then
6548 withval=$with_xpm_includes; xpm_includes="$withval"
6549else
6550 xpm_includes=NO
6551fi
6552
6553
6554# Check whether --with-xpm_library was given.
6555if test "${with_xpm_library+set}" = set; then
6556 withval=$with_xpm_library; xpm_libraries="$withval"
6557else
6558 xpm_libraries=NO
6559fi
6560
6561
6562# --without-xpm overrides everything else, but does not touch the cache.
6563
6564# Check whether --with-xpm was given.
6565if test "${with_xpm+set}" = set; then
6566 withval=$with_xpm;
6567fi
6568
6569if test "$with_xpm" = no; then
6570 have_xpm=disabled
6571else
6572 if test "${ac_cv_have_xpm+set}" = set; then
6573 echo $ECHO_N "(cached) $ECHO_C" >&6
6574else
6575
6576 vt_xpm_include_X11=no
6577 if test -n "$xpm_includes"; then
6578 vt_xpm_includes=$xpm_includes
6579 else
6580 vt_xpm_includes=NO
6581 fi
6582 if test -n "$xpm_libraries"; then
6583 vt_xpm_libraries=$xpm_libraries
6584 else
6585 vt_xpm_libraries=NO
6586 fi
6587
6588 if test "$vt_xpm_includes" = NO; then
6589 # Guess where to find xpm.h
6590
6591ac_save_CPPFLAGS="$CPPFLAGS"
6592CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6593
6594 # First, try using that file with no special directory specified.
6595cat >conftest.$ac_ext <<_ACEOF
6596/* confdefs.h. */
6597_ACEOF
6598cat confdefs.h >>conftest.$ac_ext
6599cat >>conftest.$ac_ext <<_ACEOF
6600/* end confdefs.h. */
6601#include <X11/xpm.h>
6602_ACEOF
6603if { (ac_try="$ac_cpp conftest.$ac_ext"
6604case "(($ac_try" in
6605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6606 *) ac_try_echo=$ac_try;;
6607esac
6608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6610 ac_status=$?
6611 grep -v '^ *+' conftest.er1 >conftest.err
6612 rm -f conftest.er1
6613 cat conftest.err >&5
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); } >/dev/null && {
6616 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6617 test ! -s conftest.err
6618 }; then
6619 # We can compile using X headers with no special include directory.
6620vt_xpm_includes=
6621vt_xpm_include_X11=yes
6622else
6623 echo "$as_me: failed program was:" >&5
6624sed 's/^/| /' conftest.$ac_ext >&5
6625
6626 CPPFLAGS="$ac_save_CPPFLAGS"
6627# Look for the header file in a standard set of common directories.
6628 for ac_dir in \
6629 /usr/X11/include \
6630 /usr/X11R6/include \
6631 /usr/X11R5/include \
6632 /usr/X11R4/include \
6633 \
6634 /usr/include/X11 \
6635 /usr/include/X11R6 \
6636 /usr/include/X11R5 \
6637 /usr/include/X11R4 \
6638 \
6639 /usr/local/X11/include \
6640 /usr/local/X11R6/include \
6641 /usr/local/X11R5/include \
6642 /usr/local/X11R4/include \
6643 \
6644 /usr/local/include/X11 \
6645 /usr/local/include/X11R6 \
6646 /usr/local/include/X11R5 \
6647 /usr/local/include/X11R4 \
6648 \
6649 /usr/X386/include \
6650 /usr/x386/include \
6651 /usr/XFree86/include/X11 \
6652 \
6653 /usr/include \
6654 /usr/local/include \
6655 /usr/unsupported/include \
6656 /usr/athena/include \
6657 /usr/local/x11r5/include \
6658 /usr/lpp/Xamples/include \
6659 \
6660 /usr/openwin/include \
6661 /usr/openwin/share/include \
6662 ; \
6663 do
6664 if test -r "$ac_dir/X11/xpm.h"; then
6665 vt_xpm_includes="$ac_dir"
6666 vt_xpm_include_X11=yes
6667 break
6668 else
6669 if test -r "$ac_dir/xpm.h"; then
6670 vt_xpm_includes=$ac_dir
6671 break
6672 fi
6673 fi
6674 done
6675fi
6676
6677rm -f conftest.err conftest.$ac_ext
6678fi
6679
6680if test "$vt_xpm_libraries" = NO; then
6681 # Check for the libraries.
6682
6683 # See if we find them without any special options.
6684 # Don't add to $LIBS permanently.
6685 ac_save_LIBS="$LIBS"
6686 LIBS="$LIBS $X_LIBS -lXpm -lX11"
6687cat >conftest.$ac_ext <<_ACEOF
6688/* confdefs.h. */
6689_ACEOF
6690cat confdefs.h >>conftest.$ac_ext
6691cat >>conftest.$ac_ext <<_ACEOF
6692/* end confdefs.h. */
6693
6694int
6695main ()
6696{
6697XpmReadFileToPixmap()
6698 ;
6699 return 0;
6700}
6701_ACEOF
6702rm -f conftest.$ac_objext conftest$ac_exeext
6703if { (ac_try="$ac_link"
6704case "(($ac_try" in
6705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6706 *) ac_try_echo=$ac_try;;
6707esac
6708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6709 (eval "$ac_link") 2>conftest.er1
6710 ac_status=$?
6711 grep -v '^ *+' conftest.er1 >conftest.err
6712 rm -f conftest.er1
6713 cat conftest.err >&5
6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); } && {
6716 test -z "$ac_cxx_werror_flag" ||
6717 test ! -s conftest.err
6718 } && test -s conftest$ac_exeext &&
6719 $as_test_x conftest$ac_exeext; then
6720 LIBS="$ac_save_LIBS"
6721# We can link libXpm with no special library path.
6722vt_xpm_libraries=
6723else
6724 echo "$as_me: failed program was:" >&5
6725sed 's/^/| /' conftest.$ac_ext >&5
6726
6727 LIBS="$ac_save_LIBS"
6728# First see if replacing the include by lib works.
6729for ac_dir in \
6730 `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
6731 /usr/X11/lib \
6732 /usr/X11R6/lib \
6733 /usr/X11R5/lib \
6734 /usr/X11R4/lib \
6735 \
6736 /usr/lib/X11 \
6737 /usr/lib/X11R6 \
6738 /usr/lib/X11R5 \
6739 /usr/lib/X11R4 \
6740 \
6741 /usr/local/X11/lib \
6742 /usr/local/X11R6/lib \
6743 /usr/local/X11R5/lib \
6744 /usr/local/X11R4/lib \
6745 \
6746 /usr/local/lib/X11 \
6747 /usr/local/lib/X11R6 \
6748 /usr/local/lib/X11R5 \
6749 /usr/local/lib/X11R4 \
6750 \
6751 /usr/X386/lib \
6752 /usr/x386/lib \
6753 /usr/XFree86/lib/X11 \
6754 \
6755 /usr/lib \
6756 /usr/local/lib \
6757 /usr/unsupported/lib \
6758 /usr/athena/lib \
6759 /usr/local/x11r5/lib \
6760 /usr/lpp/Xamples/lib \
6761 \
6762 /usr/openwin/lib \
6763 /usr/openwin/share/lib \
6764 ; \
6765do
6766 for ac_extension in a so sl; do
6767 if test -r $ac_dir/libXpm.$ac_extension; then
6768 vt_xpm_libraries=$ac_dir
6769 break 2
6770 fi
6771 done
6772done
6773fi
6774
6775rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6776 conftest$ac_exeext conftest.$ac_ext
6777fi
6778
6779
6780 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then
6781 ac_cv_have_xpm="have_xpm=no"
6782 else
6783 ac_cv_have_xpm="have_xpm=yes \
6784 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6785 vt_xpm_include_X11=$vt_xpm_include_X11"
6786 fi
6787fi
6788 eval "$ac_cv_have_xpm"
6789fi
6790
6791if test "$have_xpm" != yes; then
6792 { echo "$as_me:$LINENO: result: $have_xpm" >&5
6793echo "${ECHO_T}$have_xpm" >&6; }
6794 no_xpm=yes
6795else
6796 if test "$xpm_includes" != NO; then
6797 if test "$xpm_includes" = "$vt_xpm_includes"; then
6798 if test -r "$xpm_includes/X11/xpm.h"; then
6799 vt_xpm_include_X11=yes
6800 fi
6801 else
6802 vt_xpm_include_X11=no
6803 if test -z "$xpm_includes"; then
6804 cat >conftest.$ac_ext <<_ACEOF
6805/* confdefs.h. */
6806_ACEOF
6807cat confdefs.h >>conftest.$ac_ext
6808cat >>conftest.$ac_ext <<_ACEOF
6809/* end confdefs.h. */
6810#include <X11/xpm.h>
6811_ACEOF
6812if { (ac_try="$ac_cpp conftest.$ac_ext"
6813case "(($ac_try" in
6814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6815 *) ac_try_echo=$ac_try;;
6816esac
6817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6819 ac_status=$?
6820 grep -v '^ *+' conftest.er1 >conftest.err
6821 rm -f conftest.er1
6822 cat conftest.err >&5
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); } >/dev/null && {
6825 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6826 test ! -s conftest.err
6827 }; then
6828 vt_xpm_include_X11=yes
6829else
6830 echo "$as_me: failed program was:" >&5
6831sed 's/^/| /' conftest.$ac_ext >&5
6832
6833
6834fi
6835
6836rm -f conftest.err conftest.$ac_ext
6837 else
6838 if test -r "$xpm_includes/X11/xpm.h"; then
6839 vt_xpm_include_X11=yes
6840 fi
6841 fi
6842 fi
6843 vt_xpm_includes=$xpm_includes
6844 fi
6845 if test "x$xpm_libraries" != xNO; then
6846 vt_xpm_libraries=$xpm_libraries
6847 fi
6848 # Update the cache value to reflect the command line values.
6849 ac_cv_have_xpm="have_xpm=yes \
6850 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6851 vt_xpm_include_X11=$vt_xpm_include_X11"
6852 eval "$ac_cv_have_xpm"
6853 { echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5
6854echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6; }
6855 if test -n "$vt_xpm_includes"; then
6856 XPM_CPPFLAGS="-DHAVE_LIBXPM"
6857 fi
6858 if test -n "$vt_xpm_includes"; then
6859 XPM_CFLAGS="-I$vt_xpm_includes"
6860 fi
6861 XPM_LIBS="-lXpm"
6862 if test -n "$vt_xpm_libraries"; then
6863 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
6864 fi
6865 if test "x$vt_xpm_include_X11" = xyes; then
6866
6867cat >>confdefs.h <<\_ACEOF
6868#define XPM_INC_X11 1
6869_ACEOF
6870
6871 fi
6872fi
6873
6874
6875
6876
6877
6878 if test x$no_xpm = xyes; then
6879 support_xpm=needsmanualspecification
6880 fi
6881fi
6882
6883{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 7384{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6884echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } 7385echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6885if test "${ac_cv_header_sys_wait_h+set}" = set; then 7386if test "${ac_cv_header_sys_wait_h+set}" = set; then
6886 echo $ECHO_N "(cached) $ECHO_C" >&6 7387 echo $ECHO_N "(cached) $ECHO_C" >&6
6887else 7388else
6944cat >>confdefs.h <<\_ACEOF 7445cat >>confdefs.h <<\_ACEOF
6945#define HAVE_SYS_WAIT_H 1 7446#define HAVE_SYS_WAIT_H 1
6946_ACEOF 7447_ACEOF
6947 7448
6948fi 7449fi
6949
6950{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6951echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6952if test "${ac_cv_header_stdc+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6954else
6955 cat >conftest.$ac_ext <<_ACEOF
6956/* confdefs.h. */
6957_ACEOF
6958cat confdefs.h >>conftest.$ac_ext
6959cat >>conftest.$ac_ext <<_ACEOF
6960/* end confdefs.h. */
6961#include <stdlib.h>
6962#include <stdarg.h>
6963#include <string.h>
6964#include <float.h>
6965
6966int
6967main ()
6968{
6969
6970 ;
6971 return 0;
6972}
6973_ACEOF
6974rm -f conftest.$ac_objext
6975if { (ac_try="$ac_compile"
6976case "(($ac_try" in
6977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6978 *) ac_try_echo=$ac_try;;
6979esac
6980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6981 (eval "$ac_compile") 2>conftest.er1
6982 ac_status=$?
6983 grep -v '^ *+' conftest.er1 >conftest.err
6984 rm -f conftest.er1
6985 cat conftest.err >&5
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); } && {
6988 test -z "$ac_cxx_werror_flag" ||
6989 test ! -s conftest.err
6990 } && test -s conftest.$ac_objext; then
6991 ac_cv_header_stdc=yes
6992else
6993 echo "$as_me: failed program was:" >&5
6994sed 's/^/| /' conftest.$ac_ext >&5
6995
6996 ac_cv_header_stdc=no
6997fi
6998
6999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7000
7001if test $ac_cv_header_stdc = yes; then
7002 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7003 cat >conftest.$ac_ext <<_ACEOF
7004/* confdefs.h. */
7005_ACEOF
7006cat confdefs.h >>conftest.$ac_ext
7007cat >>conftest.$ac_ext <<_ACEOF
7008/* end confdefs.h. */
7009#include <string.h>
7010
7011_ACEOF
7012if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7013 $EGREP "memchr" >/dev/null 2>&1; then
7014 :
7015else
7016 ac_cv_header_stdc=no
7017fi
7018rm -f conftest*
7019
7020fi
7021
7022if test $ac_cv_header_stdc = yes; then
7023 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7024 cat >conftest.$ac_ext <<_ACEOF
7025/* confdefs.h. */
7026_ACEOF
7027cat confdefs.h >>conftest.$ac_ext
7028cat >>conftest.$ac_ext <<_ACEOF
7029/* end confdefs.h. */
7030#include <stdlib.h>
7031
7032_ACEOF
7033if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7034 $EGREP "free" >/dev/null 2>&1; then
7035 :
7036else
7037 ac_cv_header_stdc=no
7038fi
7039rm -f conftest*
7040
7041fi
7042
7043if test $ac_cv_header_stdc = yes; then
7044 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7045 if test "$cross_compiling" = yes; then
7046 :
7047else
7048 cat >conftest.$ac_ext <<_ACEOF
7049/* confdefs.h. */
7050_ACEOF
7051cat confdefs.h >>conftest.$ac_ext
7052cat >>conftest.$ac_ext <<_ACEOF
7053/* end confdefs.h. */
7054#include <ctype.h>
7055#include <stdlib.h>
7056#if ((' ' & 0x0FF) == 0x020)
7057# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7058# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7059#else
7060# define ISLOWER(c) \
7061 (('a' <= (c) && (c) <= 'i') \
7062 || ('j' <= (c) && (c) <= 'r') \
7063 || ('s' <= (c) && (c) <= 'z'))
7064# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7065#endif
7066
7067#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7068int
7069main ()
7070{
7071 int i;
7072 for (i = 0; i < 256; i++)
7073 if (XOR (islower (i), ISLOWER (i))
7074 || toupper (i) != TOUPPER (i))
7075 return 2;
7076 return 0;
7077}
7078_ACEOF
7079rm -f conftest$ac_exeext
7080if { (ac_try="$ac_link"
7081case "(($ac_try" in
7082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7083 *) ac_try_echo=$ac_try;;
7084esac
7085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7086 (eval "$ac_link") 2>&5
7087 ac_status=$?
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7090 { (case "(($ac_try" in
7091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7092 *) ac_try_echo=$ac_try;;
7093esac
7094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7109fi
7110
7111
7112fi
7113fi
7114{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7115echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7116if test $ac_cv_header_stdc = yes; then
7117
7118cat >>confdefs.h <<\_ACEOF
7119#define STDC_HEADERS 1
7120_ACEOF
7121
7122fi
7123
7124# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7135 inttypes.h stdint.h unistd.h
7136do
7137as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7138{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7139echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7140if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7141 echo $ECHO_N "(cached) $ECHO_C" >&6
7142else
7143 cat >conftest.$ac_ext <<_ACEOF
7144/* confdefs.h. */
7145_ACEOF
7146cat confdefs.h >>conftest.$ac_ext
7147cat >>conftest.$ac_ext <<_ACEOF
7148/* end confdefs.h. */
7149$ac_includes_default
7150
7151#include <$ac_header>
7152_ACEOF
7153rm -f conftest.$ac_objext
7154if { (ac_try="$ac_compile"
7155case "(($ac_try" in
7156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7157 *) ac_try_echo=$ac_try;;
7158esac
7159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7160 (eval "$ac_compile") 2>conftest.er1
7161 ac_status=$?
7162 grep -v '^ *+' conftest.er1 >conftest.err
7163 rm -f conftest.er1
7164 cat conftest.err >&5
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); } && {
7167 test -z "$ac_cxx_werror_flag" ||
7168 test ! -s conftest.err
7169 } && test -s conftest.$ac_objext; then
7170 eval "$as_ac_Header=yes"
7171else
7172 echo "$as_me: failed program was:" >&5
7173sed 's/^/| /' conftest.$ac_ext >&5
7174
7175 eval "$as_ac_Header=no"
7176fi
7177
7178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7179fi
7180ac_res=`eval echo '${'$as_ac_Header'}'`
7181 { echo "$as_me:$LINENO: result: $ac_res" >&5
7182echo "${ECHO_T}$ac_res" >&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 7450
7193 7451
7194 7452
7195 7453
7196 7454
9959_ACEOF 10217_ACEOF
9960 10218
9961 10219
9962 10220
9963 10221
9964
9965
9966for ac_func in \ 10222for ac_func in unsetenv
9967 unsetenv \
9968 setutent \
9969 on_exit \
9970
9971do 10223do
9972as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10224as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9973{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10225{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9974echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10226echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9975if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10227if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10114 10366
10115 10367
10116 10368
10117 10369
10118for ac_func in \ 10370for ac_func in \
10119 ttyslot \
10120 updwtmp \ 10371 updwtmp \
10121 updwtmpx \ 10372 updwtmpx \
10373 updlastlogx \
10122 10374
10123do 10375do
10124as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10376as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10125{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10377{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10126echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10378echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11547 11799
11548cat >>confdefs.h <<_ACEOF 11800cat >>confdefs.h <<_ACEOF
11549#define LASTLOG_FILE "$path_lastlog" 11801#define LASTLOG_FILE "$path_lastlog"
11550_ACEOF 11802_ACEOF
11551 11803
11552 if test -d "$path_lastlog"; then
11553
11554cat >>confdefs.h <<\_ACEOF
11555#define LASTLOG_IS_DIR 1
11556_ACEOF
11557
11558 fi
11559fi 11804fi
11560 11805
11561{ echo "$as_me:$LINENO: checking where lastlogx is located" >&5 11806{ echo "$as_me:$LINENO: checking where lastlogx is located" >&5
11562echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } 11807echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; }
11563if test "${path_lastlogx+set}" = set; then 11808if test "${path_lastlogx+set}" = set; then
11645 11890
11646fi 11891fi
11647 11892
11648 11893
11649 11894
11650{ echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
11651echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6; }
11652if test "${rxvt_cv_path_ttytab+set}" = set; then
11653 echo $ECHO_N "(cached) $ECHO_C" >&6
11654else
11655 for ttys_file in /etc/ttys /etc/ttytab;
11656do
11657 if test -f "$ttys_file" ; then
11658 rxvt_cv_path_ttytab=$ttys_file
11659 break
11660 fi
11661done
11662 11895
11663fi
11664{ echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
11665echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6; }
11666if test x$rxvt_cv_path_ttytab != x; then
11667
11668cat >>confdefs.h <<_ACEOF
11669#define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
11670_ACEOF
11671
11672fi
11673
11674
11675ac_save_LIBS=$LIBS 11896save_LIBS=$LIBS
11676ac_save_CFLAGS=$CFLAGS 11897save_CFLAGS=$CFLAGS
11677CFLAGS="$CFLAGS $X_CFLAGS" 11898CFLAGS="$CFLAGS $X_CFLAGS"
11678LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 11899LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
11900if test x$support_xim = xyes; then
11679{ echo "$as_me:$LINENO: checking for working Xlocale" >&5 11901 { echo "$as_me:$LINENO: checking for working Xlocale" >&5
11680echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } 11902echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; }
11681if test "${rxvt_cv_func_xlocale+set}" = set; then 11903if test "${rxvt_cv_func_xlocale+set}" = set; then
11682 echo $ECHO_N "(cached) $ECHO_C" >&6 11904 echo $ECHO_N "(cached) $ECHO_C" >&6
11683else 11905else
11684 if test "$cross_compiling" = yes; then 11906 if test "$cross_compiling" = yes; then
11685 : 11907 :
11686else 11908else
11687 cat >conftest.$ac_ext <<_ACEOF 11909 cat >conftest.$ac_ext <<_ACEOF
11688/* confdefs.h. */ 11910/* confdefs.h. */
11689_ACEOF 11911_ACEOF
11690cat confdefs.h >>conftest.$ac_ext 11912cat confdefs.h >>conftest.$ac_ext
11691cat >>conftest.$ac_ext <<_ACEOF 11913cat >>conftest.$ac_ext <<_ACEOF
11692/* end confdefs.h. */ 11914/* end confdefs.h. */
11693#include <X11/Xlib.h> 11915#include <X11/Xlib.h>
11694#include <stdlib.h> 11916 #include <stdlib.h>
11695main() { 11917 main() {
11696char *p; 11918 char *p;
11697if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) 11919 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
11698exit (XSupportsLocale() ? 0 : 1); 11920 exit (XSupportsLocale() ? 0 : 1);
11699else 11921 else
11700exit (1);} 11922 exit (1);}
11701_ACEOF 11923_ACEOF
11702rm -f conftest$ac_exeext 11924rm -f conftest$ac_exeext
11703if { (ac_try="$ac_link" 11925if { (ac_try="$ac_link"
11704case "(($ac_try" in 11926case "(($ac_try" in
11705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11718 (eval "$ac_try") 2>&5 11940 (eval "$ac_try") 2>&5
11719 ac_status=$? 11941 ac_status=$?
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); }; }; then 11943 (exit $ac_status); }; }; then
11722 rxvt_cv_func_xlocale=yes 11944 rxvt_cv_func_xlocale=yes
11723else 11945else
11724 echo "$as_me: program exited with status $ac_status" >&5 11946 echo "$as_me: program exited with status $ac_status" >&5
11725echo "$as_me: failed program was:" >&5 11947echo "$as_me: failed program was:" >&5
11726sed 's/^/| /' conftest.$ac_ext >&5 11948sed 's/^/| /' conftest.$ac_ext >&5
11727 11949
11733 11955
11734 11956
11735fi 11957fi
11736{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 11958{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
11737echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; } 11959echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; }
11738if test x$support_xim = xyes; then
11739 if test x$rxvt_cv_func_xlocale = xyes; then 11960 if test x$rxvt_cv_func_xlocale = xyes; then
11740 11961
11741cat >>confdefs.h <<\_ACEOF 11962cat >>confdefs.h <<\_ACEOF
11742#define USE_XIM 1 11963#define USE_XIM 1
11743_ACEOF 11964_ACEOF
11744 11965
11966 { echo "$as_me:$LINENO: checking for broken XIM callback" >&5
11967echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; }
11968if test "${rxvt_broken_ximcb+set}" = set; then
11969 echo $ECHO_N "(cached) $ECHO_C" >&6
11970else
11971 cat >conftest.$ac_ext <<_ACEOF
11972
11973 #include <X11/Xlib.h>
11974
11975 void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
11976
11977 void f() {
11978 XIMCallback cb;
11979 cb.callback = im_destroy_cb;
11980 }
11981
11982_ACEOF
11983rm -f conftest.$ac_objext
11984if { (ac_try="$ac_compile"
11985case "(($ac_try" in
11986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11987 *) ac_try_echo=$ac_try;;
11988esac
11989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11990 (eval "$ac_compile") 2>conftest.er1
11991 ac_status=$?
11992 grep -v '^ *+' conftest.er1 >conftest.err
11993 rm -f conftest.er1
11994 cat conftest.err >&5
11995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996 (exit $ac_status); } && {
11997 test -z "$ac_cxx_werror_flag" ||
11998 test ! -s conftest.err
11999 } && test -s conftest.$ac_objext; then
12000 rxvt_broken_ximcb=yes
12001else
12002 echo "$as_me: failed program was:" >&5
12003sed 's/^/| /' conftest.$ac_ext >&5
12004
12005 rxvt_broken_ximcb=no
12006fi
12007
12008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12009fi
12010{ echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
12011echo "${ECHO_T}$rxvt_broken_ximcb" >&6; }
12012
12013 if test x$rxvt_broken_ximcb = xyes; then
12014
12015cat >>confdefs.h <<\_ACEOF
12016#define XIMCB_PROTO_BROKEN 1
12017_ACEOF
12018
12019 fi
11745 fi 12020 fi
11746fi 12021fi
11747 12022
11748{ echo "$as_me:$LINENO: checking for working X setlocale" >&5 12023{ echo "$as_me:$LINENO: checking for working X setlocale" >&5
11749echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; } 12024echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; }
11802cat >>confdefs.h <<\_ACEOF 12077cat >>confdefs.h <<\_ACEOF
11803#define HAVE_XSETLOCALE 1 12078#define HAVE_XSETLOCALE 1
11804_ACEOF 12079_ACEOF
11805 12080
11806fi 12081fi
11807LIBS=$ac_save_LIBS 12082LIBS=$save_LIBS
11808CFLAGS=$ac_save_CFLAGS 12083CFLAGS=$save_CFLAGS
11809 12084
11810{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5 12085{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5
11811echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } 12086echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; }
11812if test "${rxvt_cv_func_setlocale+set}" = set; then 12087if test "${rxvt_cv_func_setlocale+set}" = set; then
11813 echo $ECHO_N "(cached) $ECHO_C" >&6 12088 echo $ECHO_N "(cached) $ECHO_C" >&6
12016 { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5 12291 { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5
12017echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} 12292echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;}
12018 { (exit 1); exit 1; }; } 12293 { (exit 1); exit 1; }; }
12019fi 12294fi
12020 12295
12021
12022{ echo "$as_me:$LINENO: checking for broken XIM callback" >&5
12023echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; }
12024if test "${rxvt_broken_ximcb+set}" = set; then
12025 echo $ECHO_N "(cached) $ECHO_C" >&6
12026else
12027 cat >conftest.$ac_ext <<_ACEOF
12028
12029#include <X11/Xlib.h>
12030
12031void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
12032
12033void f() {
12034 XIMCallback cb;
12035 cb.callback = im_destroy_cb;
12036}
12037
12038_ACEOF
12039rm -f conftest.$ac_objext
12040if { (ac_try="$ac_compile"
12041case "(($ac_try" in
12042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12043 *) ac_try_echo=$ac_try;;
12044esac
12045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12046 (eval "$ac_compile") 2>conftest.er1
12047 ac_status=$?
12048 grep -v '^ *+' conftest.er1 >conftest.err
12049 rm -f conftest.er1
12050 cat conftest.err >&5
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); } && {
12053 test -z "$ac_cxx_werror_flag" ||
12054 test ! -s conftest.err
12055 } && test -s conftest.$ac_objext; then
12056 rxvt_broken_ximcb=yes
12057else
12058 echo "$as_me: failed program was:" >&5
12059sed 's/^/| /' conftest.$ac_ext >&5
12060
12061 rxvt_broken_ximcb=no
12062fi
12063
12064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12065fi
12066{ echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
12067echo "${ECHO_T}$rxvt_broken_ximcb" >&6; }
12068
12069if test x$rxvt_broken_ximcb = xyes; then
12070
12071cat >>confdefs.h <<\_ACEOF
12072#define XIMCB_PROTO_BROKEN 1
12073_ACEOF
12074
12075fi
12076 12296
12077 12297
12078 12298
12079 12299
12080 12300
12761echo "${ECHO_T}no" >&6; } 12981echo "${ECHO_T}no" >&6; }
12762fi 12982fi
12763 12983
12764 12984
12765 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then 12985 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
12766 LIBS="$LIBS `$PKG_CONFIG xft --libs`" 12986 X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS"
12767 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" 12987 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
12768 else 12988 else
12769 # Extract the first word of "xft-config", so it can be a program name with args. 12989 # Extract the first word of "xft-config", so it can be a program name with args.
12770set dummy xft-config; ac_word=$2 12990set dummy xft-config; ac_word=$2
12771{ echo "$as_me:$LINENO: checking for $ac_word" >&5 12991{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12806echo "${ECHO_T}no" >&6; } 13026echo "${ECHO_T}no" >&6; }
12807fi 13027fi
12808 13028
12809 13029
12810 if test $XFT_CONFIG != no; then 13030 if test $XFT_CONFIG != no; then
12811 LIBS="$LIBS `$XFT_CONFIG --libs`" 13031 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
12812 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" 13032 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
12813 fi 13033 fi
12814 fi 13034 fi
12815 13035
13036 save_LIBS="$LIBS"
13037 LIBS="$LIBS $X_LIBS"
12816 13038
12817for ac_header in X11/Xft/Xft.h 13039for ac_header in X11/Xft/Xft.h
12818do 13040do
12819as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13041as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12820if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13042if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12953 support_xft=no 13175 support_xft=no
12954fi 13176fi
12955 13177
12956done 13178done
12957 13179
12958
12959{ echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 13180 { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
12960echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } 13181echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; }
12961if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then 13182if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then
12962 echo $ECHO_N "(cached) $ECHO_C" >&6 13183 echo $ECHO_N "(cached) $ECHO_C" >&6
12963else 13184else
12964 ac_check_lib_save_LIBS=$LIBS 13185 ac_check_lib_save_LIBS=$LIBS
13016LIBS=$ac_check_lib_save_LIBS 13237LIBS=$ac_check_lib_save_LIBS
13017fi 13238fi
13018{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 13239{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
13019echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } 13240echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; }
13020if test $ac_cv_lib_Xft_XftDrawString32 = yes; then 13241if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
13021 cat >>confdefs.h <<_ACEOF 13242 :
13022#define HAVE_LIBXFT 1
13023_ACEOF
13024
13025 LIBS="-lXft $LIBS"
13026
13027else 13243else
13028 support_xft=no 13244 support_xft=no
13029fi 13245fi
13030 13246
13247 LIBS="$save_LIBS"
13031 13248
13032 if test x$support_xft = xyes; then 13249 if test x$support_xft = xyes; then
13033 13250
13034cat >>confdefs.h <<\_ACEOF 13251cat >>confdefs.h <<\_ACEOF
13035#define XFT 1 13252#define XFT 1
13063cat >>confdefs.h <<\_ACEOF 13280cat >>confdefs.h <<\_ACEOF
13064#define OFF_FOCUS_FADING 1 13281#define OFF_FOCUS_FADING 1
13065_ACEOF 13282_ACEOF
13066 13283
13067fi 13284fi
13068if test x$support_tinting = xyes; then
13069
13070cat >>confdefs.h <<\_ACEOF
13071#define TINTING 1
13072_ACEOF
13073
13074fi
13075if test x$support_inheritpixmap = xyes; then 13285if test x$support_inheritpixmap = xyes; then
13076 13286
13077cat >>confdefs.h <<\_ACEOF 13287cat >>confdefs.h <<\_ACEOF
13078#define ENABLE_TRANSPARENCY 1 13288#define ENABLE_TRANSPARENCY 1
13079_ACEOF 13289_ACEOF
13091cat >>confdefs.h <<\_ACEOF 13301cat >>confdefs.h <<\_ACEOF
13092#define SELECTION_SCROLLING 1 13302#define SELECTION_SCROLLING 1
13093_ACEOF 13303_ACEOF
13094 13304
13095fi 13305fi
13306if test x$support_frills = xyes; then
13307
13308cat >>confdefs.h <<\_ACEOF
13309#define ENABLE_FRILLS 1
13310_ACEOF
13311
13312fi
13096if test x$support_mousewheel = xyes; then 13313if test x$support_mousewheel = xyes; then
13097 13314
13098cat >>confdefs.h <<\_ACEOF 13315cat >>confdefs.h <<\_ACEOF
13099#define MOUSE_WHEEL 1 13316#define MOUSE_WHEEL 1
13100_ACEOF 13317_ACEOF
13105cat >>confdefs.h <<\_ACEOF 13322cat >>confdefs.h <<\_ACEOF
13106#define MOUSE_SLIP_WHEELING 1 13323#define MOUSE_SLIP_WHEELING 1
13107_ACEOF 13324_ACEOF
13108 13325
13109fi 13326fi
13110if test x$support_xpm = xyes -o x$support_afterimage = xyes ; then
13111
13112cat >>confdefs.h <<\_ACEOF
13113#define XPM_BACKGROUND 1
13114_ACEOF
13115
13116fi
13117
13118if test x$support_afterimage = xyes; then 13327if test x$support_afterimage = xyes; then
13119 13328
13120cat >>confdefs.h <<\_ACEOF 13329cat >>confdefs.h <<\_ACEOF
13121#define HAVE_AFTERIMAGE 1 13330#define HAVE_AFTERIMAGE 1
13331_ACEOF
13332
13333
13334cat >>confdefs.h <<\_ACEOF
13335#define BG_IMAGE_FROM_FILE 1
13122_ACEOF 13336_ACEOF
13123 13337
13124fi 13338fi
13125 13339
13126 13340
13398 13612
13399 13613
13400 13614
13401 13615
13402 13616
13403
13404if test x$support_perl = xyes; then
13405 support_frills=yes
13406fi
13407
13408if test x$support_frills = xyes; then
13409
13410cat >>confdefs.h <<\_ACEOF
13411#define ENABLE_FRILLS 1
13412_ACEOF
13413
13414fi
13415 13617
13416 13618
13417 13619
13418 13620
13419 13621
14195GREP!$GREP$ac_delim 14397GREP!$GREP$ac_delim
14196EGREP!$EGREP$ac_delim 14398EGREP!$EGREP$ac_delim
14197LINKER!$LINKER$ac_delim 14399LINKER!$LINKER$ac_delim
14198INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim 14400INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim
14199RXVTNAME!$RXVTNAME$ac_delim 14401RXVTNAME!$RXVTNAME$ac_delim
14402CXXCPP!$CXXCPP$ac_delim
14200TIC!$TIC$ac_delim 14403TIC!$TIC$ac_delim
14201XMKMF!$XMKMF$ac_delim 14404XMKMF!$XMKMF$ac_delim
14202CXXCPP!$CXXCPP$ac_delim
14203X_CFLAGS!$X_CFLAGS$ac_delim 14405X_CFLAGS!$X_CFLAGS$ac_delim
14204X_PRE_LIBS!$X_PRE_LIBS$ac_delim 14406X_PRE_LIBS!$X_PRE_LIBS$ac_delim
14205X_LIBS!$X_LIBS$ac_delim 14407X_LIBS!$X_LIBS$ac_delim
14206X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim 14408X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
14207afterimage_config!$afterimage_config$ac_delim 14409afterimage_config!$afterimage_config$ac_delim
14208XPM_CPPFLAGS!$XPM_CPPFLAGS$ac_delim
14209XPM_CFLAGS!$XPM_CFLAGS$ac_delim
14210XPM_LIBS!$XPM_LIBS$ac_delim
14211rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim 14410rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim
14212rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim 14411rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim
14213rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim 14412rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim
14214rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim 14413rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim
14215rxvt_intp_define!$rxvt_intp_define$ac_delim 14414rxvt_intp_define!$rxvt_intp_define$ac_delim
14224PERL_O!$PERL_O$ac_delim 14423PERL_O!$PERL_O$ac_delim
14225AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim 14424AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim
14226AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim 14425AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim
14227include_stdint_h!$include_stdint_h$ac_delim 14426include_stdint_h!$include_stdint_h$ac_delim
14228include_stdarg_h!$include_stdarg_h$ac_delim 14427include_stdarg_h!$include_stdarg_h$ac_delim
14428include_stdlib_h!$include_stdlib_h$ac_delim
14429include_unistd_h!$include_unistd_h$ac_delim
14430include_string_h!$include_string_h$ac_delim
14229_ACEOF 14431_ACEOF
14230 14432
14231 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 14433 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
14232 break 14434 break
14233 elif $ac_last_try; then 14435 elif $ac_last_try; then
14265 14467
14266 14468
14267ac_delim='%!_!# ' 14469ac_delim='%!_!# '
14268for ac_last_try in false false false false false :; do 14470for ac_last_try in false false false false false :; do
14269 cat >conf$$subs.sed <<_ACEOF 14471 cat >conf$$subs.sed <<_ACEOF
14270include_stdlib_h!$include_stdlib_h$ac_delim
14271include_unistd_h!$include_unistd_h$ac_delim
14272include_string_h!$include_string_h$ac_delim
14273include_fcntl_h!$include_fcntl_h$ac_delim 14472include_fcntl_h!$include_fcntl_h$ac_delim
14274include_util_h!$include_util_h$ac_delim 14473include_util_h!$include_util_h$ac_delim
14275include_assert_h!$include_assert_h$ac_delim 14474include_assert_h!$include_assert_h$ac_delim
14276include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim 14475include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim
14277include_sys_select_h!$include_sys_select_h$ac_delim 14476include_sys_select_h!$include_sys_select_h$ac_delim
14280include_time_h!$include_time_h$ac_delim 14479include_time_h!$include_time_h$ac_delim
14281LIBOBJS!$LIBOBJS$ac_delim 14480LIBOBJS!$LIBOBJS$ac_delim
14282LTLIBOBJS!$LTLIBOBJS$ac_delim 14481LTLIBOBJS!$LTLIBOBJS$ac_delim
14283_ACEOF 14482_ACEOF
14284 14483
14285 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then 14484 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
14286 break 14485 break
14287 elif $ac_last_try; then 14486 elif $ac_last_try; then
14288 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14487 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14289echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14488echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14290 { (exit 1); exit 1; }; } 14489 { (exit 1); exit 1; }; }
14719 Install path: ${prefix}/bin 14918 Install path: ${prefix}/bin
14720 Compiler: $CXX 14919 Compiler: $CXX
14721 Compiler flags: $CXXFLAGS 14920 Compiler flags: $CXXFLAGS
14722 Linker: $LINKER" 14921 Linker: $LINKER"
14723 14922
14724if test x$support_xpm = xyes; then
14725 echo " Xpm library: $XPM_LIBS"
14726fi
14727
14728if test x$support_afterimage = xyes; then
14729 echo " AfterImage support: yes"
14730fi
14731
14732
14733if test x$term != x; then 14923if test x$term != x; then
14734 echo " set TERM to: $term" 14924 echo " set TERM to: $term"
14735fi 14925fi
14736if test x$terminfo != x; then 14926if test x$terminfo != x; then
14737 echo " set TERMINFO to: $terminfo" 14927 echo " set TERMINFO to: $terminfo"
14743fi 14933fi
14744echo 14934echo
14745echo " embedded perl: $support_perl" 14935echo " embedded perl: $support_perl"
14746echo " libafterimage: $support_afterimage" 14936echo " libafterimage: $support_afterimage"
14747echo 14937echo
14748if test x$support_xpm = xneedsmanualspecification; then
14749 echo ".----------------------------------------------------------------."
14750 echo ". WARNING: --enable-xpm-background was specified however the ."
14751 echo ". XPM includes files and libraries could not be found. ."
14752 echo ". XPM backgrounds are now being DISABLED! If you want ."
14753 echo ". to use them you should rerun configure with the ."
14754 echo ". appropriate --with-xpm-includes=/path/to/xpm/includes ."
14755 echo ". and --with-xpm-library=/path/to/xpm/library lines. ."
14756 echo ".----------------------------------------------------------------."
14757fi
14758if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then 14938if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
14759 echo ".----------------------------------------------------------------." 14939 echo ".----------------------------------------------------------------."
14760 echo ". WARNING: --enable-xim was specified however the locale support ." 14940 echo ". WARNING: --enable-xim was specified however the locale support ."
14761 echo ". functions could not be found. ." 14941 echo ". functions could not be found. ."
14762 echo ". XIM is now being DISABLED! ." 14942 echo ". XIM is now being DISABLED! ."

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines