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.117 by root, Sun Nov 18 01:02:09 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-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
4897
4898ac_ext=cpp
4899ac_cpp='$CXXCPP $CPPFLAGS'
4900ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4901ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4902ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4903{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4904echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4905if test -z "$CXXCPP"; then
4906 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4908else
4909 # Double quotes because CXXCPP needs to be expanded
4910 for CXXCPP in "$CXX -E" "/lib/cpp"
4911 do
4912 ac_preproc_ok=false
4913for ac_cxx_preproc_warn_flag in '' yes
4914do
4915 # Use a header file that comes with gcc, so configuring glibc
4916 # with a fresh cross-compiler works.
4917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4918 # <limits.h> exists even on freestanding compilers.
4919 # On the NeXT, cc -E runs the code through the compiler's parser,
4920 # not just through cpp. "Syntax error" is here to catch this case.
4921 cat >conftest.$ac_ext <<_ACEOF
4922/* confdefs.h. */
4923_ACEOF
4924cat confdefs.h >>conftest.$ac_ext
4925cat >>conftest.$ac_ext <<_ACEOF
4926/* end confdefs.h. */
4927#ifdef __STDC__
4928# include <limits.h>
4929#else
4930# include <assert.h>
4931#endif
4932 Syntax error
4933_ACEOF
4934if { (ac_try="$ac_cpp conftest.$ac_ext"
4935case "(($ac_try" in
4936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4937 *) ac_try_echo=$ac_try;;
4938esac
4939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4941 ac_status=$?
4942 grep -v '^ *+' conftest.er1 >conftest.err
4943 rm -f conftest.er1
4944 cat conftest.err >&5
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); } >/dev/null && {
4947 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4948 test ! -s conftest.err
4949 }; then
4950 :
4951else
4952 echo "$as_me: failed program was:" >&5
4953sed 's/^/| /' conftest.$ac_ext >&5
4954
4955 # Broken: fails on valid input.
4956continue
4957fi
4958
4959rm -f conftest.err conftest.$ac_ext
4960
4961 # OK, works on sane cases. Now check whether nonexistent headers
4962 # can be detected and how.
4963 cat >conftest.$ac_ext <<_ACEOF
4964/* confdefs.h. */
4965_ACEOF
4966cat confdefs.h >>conftest.$ac_ext
4967cat >>conftest.$ac_ext <<_ACEOF
4968/* end confdefs.h. */
4969#include <ac_nonexistent.h>
4970_ACEOF
4971if { (ac_try="$ac_cpp conftest.$ac_ext"
4972case "(($ac_try" in
4973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4974 *) ac_try_echo=$ac_try;;
4975esac
4976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4978 ac_status=$?
4979 grep -v '^ *+' conftest.er1 >conftest.err
4980 rm -f conftest.er1
4981 cat conftest.err >&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); } >/dev/null && {
4984 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4985 test ! -s conftest.err
4986 }; then
4987 # Broken: success on invalid input.
4988continue
4989else
4990 echo "$as_me: failed program was:" >&5
4991sed 's/^/| /' conftest.$ac_ext >&5
4992
4993 # Passes both tests.
4994ac_preproc_ok=:
4995break
4996fi
4997
4998rm -f conftest.err conftest.$ac_ext
4999
5000done
5001# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5002rm -f conftest.err conftest.$ac_ext
5003if $ac_preproc_ok; then
5004 break
5005fi
5006
5007 done
5008 ac_cv_prog_CXXCPP=$CXXCPP
5009
5010fi
5011 CXXCPP=$ac_cv_prog_CXXCPP
5012else
5013 ac_cv_prog_CXXCPP=$CXXCPP
5014fi
5015{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5016echo "${ECHO_T}$CXXCPP" >&6; }
5017ac_preproc_ok=false
5018for ac_cxx_preproc_warn_flag in '' yes
5019do
5020 # Use a header file that comes with gcc, so configuring glibc
5021 # with a fresh cross-compiler works.
5022 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5023 # <limits.h> exists even on freestanding compilers.
5024 # On the NeXT, cc -E runs the code through the compiler's parser,
5025 # not just through cpp. "Syntax error" is here to catch this case.
5026 cat >conftest.$ac_ext <<_ACEOF
5027/* confdefs.h. */
5028_ACEOF
5029cat confdefs.h >>conftest.$ac_ext
5030cat >>conftest.$ac_ext <<_ACEOF
5031/* end confdefs.h. */
5032#ifdef __STDC__
5033# include <limits.h>
5034#else
5035# include <assert.h>
5036#endif
5037 Syntax error
5038_ACEOF
5039if { (ac_try="$ac_cpp conftest.$ac_ext"
5040case "(($ac_try" in
5041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5042 *) ac_try_echo=$ac_try;;
5043esac
5044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5045 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5046 ac_status=$?
5047 grep -v '^ *+' conftest.er1 >conftest.err
5048 rm -f conftest.er1
5049 cat conftest.err >&5
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); } >/dev/null && {
5052 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5053 test ! -s conftest.err
5054 }; then
5055 :
5056else
5057 echo "$as_me: failed program was:" >&5
5058sed 's/^/| /' conftest.$ac_ext >&5
5059
5060 # Broken: fails on valid input.
5061continue
5062fi
5063
5064rm -f conftest.err conftest.$ac_ext
5065
5066 # OK, works on sane cases. Now check whether nonexistent headers
5067 # can be detected and how.
5068 cat >conftest.$ac_ext <<_ACEOF
5069/* confdefs.h. */
5070_ACEOF
5071cat confdefs.h >>conftest.$ac_ext
5072cat >>conftest.$ac_ext <<_ACEOF
5073/* end confdefs.h. */
5074#include <ac_nonexistent.h>
5075_ACEOF
5076if { (ac_try="$ac_cpp conftest.$ac_ext"
5077case "(($ac_try" in
5078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5079 *) ac_try_echo=$ac_try;;
5080esac
5081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5083 ac_status=$?
5084 grep -v '^ *+' conftest.er1 >conftest.err
5085 rm -f conftest.er1
5086 cat conftest.err >&5
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); } >/dev/null && {
5089 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5090 test ! -s conftest.err
5091 }; then
5092 # Broken: success on invalid input.
5093continue
5094else
5095 echo "$as_me: failed program was:" >&5
5096sed 's/^/| /' conftest.$ac_ext >&5
5097
5098 # Passes both tests.
5099ac_preproc_ok=:
5100break
5101fi
5102
5103rm -f conftest.err conftest.$ac_ext
5104
5105done
5106# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5107rm -f conftest.err conftest.$ac_ext
5108if $ac_preproc_ok; then
5109 :
5110else
5111 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5112See \`config.log' for more details." >&5
5113echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5114See \`config.log' for more details." >&2;}
5115 { (exit 1); exit 1; }; }
5116fi
5117
5118ac_ext=cpp
5119ac_cpp='$CXXCPP $CPPFLAGS'
5120ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5121ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5122ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5123
5124
5125{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5126echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5127if test "${ac_cv_header_stdc+set}" = set; then
5128 echo $ECHO_N "(cached) $ECHO_C" >&6
5129else
5130 cat >conftest.$ac_ext <<_ACEOF
5131/* confdefs.h. */
5132_ACEOF
5133cat confdefs.h >>conftest.$ac_ext
5134cat >>conftest.$ac_ext <<_ACEOF
5135/* end confdefs.h. */
5136#include <stdlib.h>
5137#include <stdarg.h>
5138#include <string.h>
5139#include <float.h>
5140
5141int
5142main ()
5143{
5144
5145 ;
5146 return 0;
5147}
5148_ACEOF
5149rm -f conftest.$ac_objext
5150if { (ac_try="$ac_compile"
5151case "(($ac_try" in
5152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5153 *) ac_try_echo=$ac_try;;
5154esac
5155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5156 (eval "$ac_compile") 2>conftest.er1
5157 ac_status=$?
5158 grep -v '^ *+' conftest.er1 >conftest.err
5159 rm -f conftest.er1
5160 cat conftest.err >&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); } && {
5163 test -z "$ac_cxx_werror_flag" ||
5164 test ! -s conftest.err
5165 } && test -s conftest.$ac_objext; then
5166 ac_cv_header_stdc=yes
5167else
5168 echo "$as_me: failed program was:" >&5
5169sed 's/^/| /' conftest.$ac_ext >&5
5170
5171 ac_cv_header_stdc=no
5172fi
5173
5174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5175
5176if test $ac_cv_header_stdc = yes; then
5177 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5178 cat >conftest.$ac_ext <<_ACEOF
5179/* confdefs.h. */
5180_ACEOF
5181cat confdefs.h >>conftest.$ac_ext
5182cat >>conftest.$ac_ext <<_ACEOF
5183/* end confdefs.h. */
5184#include <string.h>
5185
5186_ACEOF
5187if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5188 $EGREP "memchr" >/dev/null 2>&1; then
5189 :
5190else
5191 ac_cv_header_stdc=no
5192fi
5193rm -f conftest*
5194
5195fi
5196
5197if test $ac_cv_header_stdc = yes; then
5198 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5199 cat >conftest.$ac_ext <<_ACEOF
5200/* confdefs.h. */
5201_ACEOF
5202cat confdefs.h >>conftest.$ac_ext
5203cat >>conftest.$ac_ext <<_ACEOF
5204/* end confdefs.h. */
5205#include <stdlib.h>
5206
5207_ACEOF
5208if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5209 $EGREP "free" >/dev/null 2>&1; then
5210 :
5211else
5212 ac_cv_header_stdc=no
5213fi
5214rm -f conftest*
5215
5216fi
5217
5218if test $ac_cv_header_stdc = yes; then
5219 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5220 if test "$cross_compiling" = yes; then
5221 :
5222else
5223 cat >conftest.$ac_ext <<_ACEOF
5224/* confdefs.h. */
5225_ACEOF
5226cat confdefs.h >>conftest.$ac_ext
5227cat >>conftest.$ac_ext <<_ACEOF
5228/* end confdefs.h. */
5229#include <ctype.h>
5230#include <stdlib.h>
5231#if ((' ' & 0x0FF) == 0x020)
5232# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5233# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5234#else
5235# define ISLOWER(c) \
5236 (('a' <= (c) && (c) <= 'i') \
5237 || ('j' <= (c) && (c) <= 'r') \
5238 || ('s' <= (c) && (c) <= 'z'))
5239# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5240#endif
5241
5242#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5243int
5244main ()
5245{
5246 int i;
5247 for (i = 0; i < 256; i++)
5248 if (XOR (islower (i), ISLOWER (i))
5249 || toupper (i) != TOUPPER (i))
5250 return 2;
5251 return 0;
5252}
5253_ACEOF
5254rm -f conftest$ac_exeext
5255if { (ac_try="$ac_link"
5256case "(($ac_try" in
5257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5258 *) ac_try_echo=$ac_try;;
5259esac
5260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5261 (eval "$ac_link") 2>&5
5262 ac_status=$?
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5265 { (case "(($ac_try" in
5266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5267 *) ac_try_echo=$ac_try;;
5268esac
5269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5270 (eval "$ac_try") 2>&5
5271 ac_status=$?
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); }; }; then
5274 :
5275else
5276 echo "$as_me: program exited with status $ac_status" >&5
5277echo "$as_me: failed program was:" >&5
5278sed 's/^/| /' conftest.$ac_ext >&5
5279
5280( exit $ac_status )
5281ac_cv_header_stdc=no
5282fi
5283rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5284fi
5285
5286
5287fi
5288fi
5289{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5290echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5291if test $ac_cv_header_stdc = yes; then
5292
5293cat >>confdefs.h <<\_ACEOF
5294#define STDC_HEADERS 1
5295_ACEOF
5296
5297fi
5298
5299# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5310 inttypes.h stdint.h unistd.h
5311do
5312as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5313{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5314echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5315if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5317else
5318 cat >conftest.$ac_ext <<_ACEOF
5319/* confdefs.h. */
5320_ACEOF
5321cat confdefs.h >>conftest.$ac_ext
5322cat >>conftest.$ac_ext <<_ACEOF
5323/* end confdefs.h. */
5324$ac_includes_default
5325
5326#include <$ac_header>
5327_ACEOF
5328rm -f conftest.$ac_objext
5329if { (ac_try="$ac_compile"
5330case "(($ac_try" in
5331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5332 *) ac_try_echo=$ac_try;;
5333esac
5334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5335 (eval "$ac_compile") 2>conftest.er1
5336 ac_status=$?
5337 grep -v '^ *+' conftest.er1 >conftest.err
5338 rm -f conftest.er1
5339 cat conftest.err >&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } && {
5342 test -z "$ac_cxx_werror_flag" ||
5343 test ! -s conftest.err
5344 } && test -s conftest.$ac_objext; then
5345 eval "$as_ac_Header=yes"
5346else
5347 echo "$as_me: failed program was:" >&5
5348sed 's/^/| /' conftest.$ac_ext >&5
5349
5350 eval "$as_ac_Header=no"
5351fi
5352
5353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5354fi
5355ac_res=`eval echo '${'$as_ac_Header'}'`
5356 { echo "$as_me:$LINENO: result: $ac_res" >&5
5357echo "${ECHO_T}$ac_res" >&6; }
5358if test `eval echo '${'$as_ac_Header'}'` = yes; then
5359 cat >>confdefs.h <<_ACEOF
5360#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5361_ACEOF
5362
5363fi
5364
5365done
5366
5367
5368
5369
5370
5371
5372for ac_header in sys/epoll.h sys/event.h sys/queue.h port.h
5373do
5374as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5375if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5377echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5378if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5379 echo $ECHO_N "(cached) $ECHO_C" >&6
5380fi
5381ac_res=`eval echo '${'$as_ac_Header'}'`
5382 { echo "$as_me:$LINENO: result: $ac_res" >&5
5383echo "${ECHO_T}$ac_res" >&6; }
5384else
5385 # Is the header compilable?
5386{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5387echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5388cat >conftest.$ac_ext <<_ACEOF
5389/* confdefs.h. */
5390_ACEOF
5391cat confdefs.h >>conftest.$ac_ext
5392cat >>conftest.$ac_ext <<_ACEOF
5393/* end confdefs.h. */
5394$ac_includes_default
5395#include <$ac_header>
5396_ACEOF
5397rm -f conftest.$ac_objext
5398if { (ac_try="$ac_compile"
5399case "(($ac_try" in
5400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5401 *) ac_try_echo=$ac_try;;
5402esac
5403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5404 (eval "$ac_compile") 2>conftest.er1
5405 ac_status=$?
5406 grep -v '^ *+' conftest.er1 >conftest.err
5407 rm -f conftest.er1
5408 cat conftest.err >&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); } && {
5411 test -z "$ac_cxx_werror_flag" ||
5412 test ! -s conftest.err
5413 } && test -s conftest.$ac_objext; then
5414 ac_header_compiler=yes
5415else
5416 echo "$as_me: failed program was:" >&5
5417sed 's/^/| /' conftest.$ac_ext >&5
5418
5419 ac_header_compiler=no
5420fi
5421
5422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5423{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5424echo "${ECHO_T}$ac_header_compiler" >&6; }
5425
5426# Is the header present?
5427{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5428echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5429cat >conftest.$ac_ext <<_ACEOF
5430/* confdefs.h. */
5431_ACEOF
5432cat confdefs.h >>conftest.$ac_ext
5433cat >>conftest.$ac_ext <<_ACEOF
5434/* end confdefs.h. */
5435#include <$ac_header>
5436_ACEOF
5437if { (ac_try="$ac_cpp conftest.$ac_ext"
5438case "(($ac_try" in
5439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5440 *) ac_try_echo=$ac_try;;
5441esac
5442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5444 ac_status=$?
5445 grep -v '^ *+' conftest.er1 >conftest.err
5446 rm -f conftest.er1
5447 cat conftest.err >&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); } >/dev/null && {
5450 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5451 test ! -s conftest.err
5452 }; then
5453 ac_header_preproc=yes
5454else
5455 echo "$as_me: failed program was:" >&5
5456sed 's/^/| /' conftest.$ac_ext >&5
5457
5458 ac_header_preproc=no
5459fi
5460
5461rm -f conftest.err conftest.$ac_ext
5462{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5463echo "${ECHO_T}$ac_header_preproc" >&6; }
5464
5465# So? What about this header?
5466case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5467 yes:no: )
5468 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5469echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5471echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5472 ac_header_preproc=yes
5473 ;;
5474 no:yes:* )
5475 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5476echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5477 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5478echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5479 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5480echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5481 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5482echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5484echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5485 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5486echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5487
5488 ;;
5489esac
5490{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5491echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5492if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5493 echo $ECHO_N "(cached) $ECHO_C" >&6
5494else
5495 eval "$as_ac_Header=\$ac_header_preproc"
5496fi
5497ac_res=`eval echo '${'$as_ac_Header'}'`
5498 { echo "$as_me:$LINENO: result: $ac_res" >&5
5499echo "${ECHO_T}$ac_res" >&6; }
5500
5501fi
5502if test `eval echo '${'$as_ac_Header'}'` = yes; then
5503 cat >>confdefs.h <<_ACEOF
5504#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5505_ACEOF
5506
5507fi
5508
5509done
5510
5511
5512
5513
5514
5515for ac_func in epoll_ctl kqueue port_create
5516do
5517as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5518{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5519echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5520if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5521 echo $ECHO_N "(cached) $ECHO_C" >&6
5522else
5523 cat >conftest.$ac_ext <<_ACEOF
5524/* confdefs.h. */
5525_ACEOF
5526cat confdefs.h >>conftest.$ac_ext
5527cat >>conftest.$ac_ext <<_ACEOF
5528/* end confdefs.h. */
5529/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5531#define $ac_func innocuous_$ac_func
5532
5533/* System header to define __stub macros and hopefully few prototypes,
5534 which can conflict with char $ac_func (); below.
5535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5536 <limits.h> exists even on freestanding compilers. */
5537
5538#ifdef __STDC__
5539# include <limits.h>
5540#else
5541# include <assert.h>
5542#endif
5543
5544#undef $ac_func
5545
5546/* Override any GCC internal prototype to avoid an error.
5547 Use char because int might match the return type of a GCC
5548 builtin and then its argument prototype would still apply. */
5549#ifdef __cplusplus
5550extern "C"
5551#endif
5552char $ac_func ();
5553/* The GNU C library defines this for functions which it implements
5554 to always fail with ENOSYS. Some functions are actually named
5555 something starting with __ and the normal name is an alias. */
5556#if defined __stub_$ac_func || defined __stub___$ac_func
5557choke me
5558#endif
5559
5560int
5561main ()
5562{
5563return $ac_func ();
5564 ;
5565 return 0;
5566}
5567_ACEOF
5568rm -f conftest.$ac_objext conftest$ac_exeext
5569if { (ac_try="$ac_link"
5570case "(($ac_try" in
5571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5572 *) ac_try_echo=$ac_try;;
5573esac
5574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5575 (eval "$ac_link") 2>conftest.er1
5576 ac_status=$?
5577 grep -v '^ *+' conftest.er1 >conftest.err
5578 rm -f conftest.er1
5579 cat conftest.err >&5
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); } && {
5582 test -z "$ac_cxx_werror_flag" ||
5583 test ! -s conftest.err
5584 } && test -s conftest$ac_exeext &&
5585 $as_test_x conftest$ac_exeext; then
5586 eval "$as_ac_var=yes"
5587else
5588 echo "$as_me: failed program was:" >&5
5589sed 's/^/| /' conftest.$ac_ext >&5
5590
5591 eval "$as_ac_var=no"
5592fi
5593
5594rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5595 conftest$ac_exeext conftest.$ac_ext
5596fi
5597ac_res=`eval echo '${'$as_ac_var'}'`
5598 { echo "$as_me:$LINENO: result: $ac_res" >&5
5599echo "${ECHO_T}$ac_res" >&6; }
5600if test `eval echo '${'$as_ac_var'}'` = yes; then
5601 cat >>confdefs.h <<_ACEOF
5602#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5603_ACEOF
5604
5605fi
5606done
5607
5608
5609{ echo "$as_me:$LINENO: checking for clock_gettime" >&5
5610echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6; }
5611if test "${ac_cv_func_clock_gettime+set}" = set; then
5612 echo $ECHO_N "(cached) $ECHO_C" >&6
5613else
5614 cat >conftest.$ac_ext <<_ACEOF
5615/* confdefs.h. */
5616_ACEOF
5617cat confdefs.h >>conftest.$ac_ext
5618cat >>conftest.$ac_ext <<_ACEOF
5619/* end confdefs.h. */
5620/* Define clock_gettime to an innocuous variant, in case <limits.h> declares clock_gettime.
5621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5622#define clock_gettime innocuous_clock_gettime
5623
5624/* System header to define __stub macros and hopefully few prototypes,
5625 which can conflict with char clock_gettime (); below.
5626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5627 <limits.h> exists even on freestanding compilers. */
5628
5629#ifdef __STDC__
5630# include <limits.h>
5631#else
5632# include <assert.h>
5633#endif
5634
5635#undef clock_gettime
5636
5637/* Override any GCC internal prototype to avoid an error.
5638 Use char because int might match the return type of a GCC
5639 builtin and then its argument prototype would still apply. */
5640#ifdef __cplusplus
5641extern "C"
5642#endif
5643char clock_gettime ();
5644/* The GNU C library defines this for functions which it implements
5645 to always fail with ENOSYS. Some functions are actually named
5646 something starting with __ and the normal name is an alias. */
5647#if defined __stub_clock_gettime || defined __stub___clock_gettime
5648choke me
5649#endif
5650
5651int
5652main ()
5653{
5654return clock_gettime ();
5655 ;
5656 return 0;
5657}
5658_ACEOF
5659rm -f conftest.$ac_objext conftest$ac_exeext
5660if { (ac_try="$ac_link"
5661case "(($ac_try" in
5662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5663 *) ac_try_echo=$ac_try;;
5664esac
5665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5666 (eval "$ac_link") 2>conftest.er1
5667 ac_status=$?
5668 grep -v '^ *+' conftest.er1 >conftest.err
5669 rm -f conftest.er1
5670 cat conftest.err >&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); } && {
5673 test -z "$ac_cxx_werror_flag" ||
5674 test ! -s conftest.err
5675 } && test -s conftest$ac_exeext &&
5676 $as_test_x conftest$ac_exeext; then
5677 ac_cv_func_clock_gettime=yes
5678else
5679 echo "$as_me: failed program was:" >&5
5680sed 's/^/| /' conftest.$ac_ext >&5
5681
5682 ac_cv_func_clock_gettime=no
5683fi
5684
5685rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5686 conftest$ac_exeext conftest.$ac_ext
5687fi
5688{ echo "$as_me:$LINENO: result: $ac_cv_func_clock_gettime" >&5
5689echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; }
5690if test $ac_cv_func_clock_gettime = yes; then
5691 :
5692else
5693
5694
5695{ echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
5696echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
5697if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
5699else
5700 ac_check_lib_save_LIBS=$LIBS
5701LIBS="-lrt $LIBS"
5702cat >conftest.$ac_ext <<_ACEOF
5703/* confdefs.h. */
5704_ACEOF
5705cat confdefs.h >>conftest.$ac_ext
5706cat >>conftest.$ac_ext <<_ACEOF
5707/* end confdefs.h. */
5708
5709/* Override any GCC internal prototype to avoid an error.
5710 Use char because int might match the return type of a GCC
5711 builtin and then its argument prototype would still apply. */
5712#ifdef __cplusplus
5713extern "C"
5714#endif
5715char clock_gettime ();
5716int
5717main ()
5718{
5719return clock_gettime ();
5720 ;
5721 return 0;
5722}
5723_ACEOF
5724rm -f conftest.$ac_objext conftest$ac_exeext
5725if { (ac_try="$ac_link"
5726case "(($ac_try" in
5727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5728 *) ac_try_echo=$ac_try;;
5729esac
5730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5731 (eval "$ac_link") 2>conftest.er1
5732 ac_status=$?
5733 grep -v '^ *+' conftest.er1 >conftest.err
5734 rm -f conftest.er1
5735 cat conftest.err >&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); } && {
5738 test -z "$ac_cxx_werror_flag" ||
5739 test ! -s conftest.err
5740 } && test -s conftest$ac_exeext &&
5741 $as_test_x conftest$ac_exeext; then
5742 ac_cv_lib_rt_clock_gettime=yes
5743else
5744 echo "$as_me: failed program was:" >&5
5745sed 's/^/| /' conftest.$ac_ext >&5
5746
5747 ac_cv_lib_rt_clock_gettime=no
5748fi
5749
5750rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5751 conftest$ac_exeext conftest.$ac_ext
5752LIBS=$ac_check_lib_save_LIBS
5753fi
5754{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
5755echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
5756if test $ac_cv_lib_rt_clock_gettime = yes; then
5757 cat >>confdefs.h <<_ACEOF
5758#define HAVE_LIBRT 1
5759_ACEOF
5760
5761 LIBS="-lrt $LIBS"
5762
5763fi
5764
5765
5766for ac_func in clock_gettime
5767do
5768as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5769{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5770echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5771if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5772 echo $ECHO_N "(cached) $ECHO_C" >&6
5773else
5774 cat >conftest.$ac_ext <<_ACEOF
5775/* confdefs.h. */
5776_ACEOF
5777cat confdefs.h >>conftest.$ac_ext
5778cat >>conftest.$ac_ext <<_ACEOF
5779/* end confdefs.h. */
5780/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5782#define $ac_func innocuous_$ac_func
5783
5784/* System header to define __stub macros and hopefully few prototypes,
5785 which can conflict with char $ac_func (); below.
5786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5787 <limits.h> exists even on freestanding compilers. */
5788
5789#ifdef __STDC__
5790# include <limits.h>
5791#else
5792# include <assert.h>
5793#endif
5794
5795#undef $ac_func
5796
5797/* Override any GCC internal prototype to avoid an error.
5798 Use char because int might match the return type of a GCC
5799 builtin and then its argument prototype would still apply. */
5800#ifdef __cplusplus
5801extern "C"
5802#endif
5803char $ac_func ();
5804/* The GNU C library defines this for functions which it implements
5805 to always fail with ENOSYS. Some functions are actually named
5806 something starting with __ and the normal name is an alias. */
5807#if defined __stub_$ac_func || defined __stub___$ac_func
5808choke me
5809#endif
5810
5811int
5812main ()
5813{
5814return $ac_func ();
5815 ;
5816 return 0;
5817}
5818_ACEOF
5819rm -f conftest.$ac_objext conftest$ac_exeext
5820if { (ac_try="$ac_link"
5821case "(($ac_try" in
5822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5823 *) ac_try_echo=$ac_try;;
5824esac
5825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5826 (eval "$ac_link") 2>conftest.er1
5827 ac_status=$?
5828 grep -v '^ *+' conftest.er1 >conftest.err
5829 rm -f conftest.er1
5830 cat conftest.err >&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); } && {
5833 test -z "$ac_cxx_werror_flag" ||
5834 test ! -s conftest.err
5835 } && test -s conftest$ac_exeext &&
5836 $as_test_x conftest$ac_exeext; then
5837 eval "$as_ac_var=yes"
5838else
5839 echo "$as_me: failed program was:" >&5
5840sed 's/^/| /' conftest.$ac_ext >&5
5841
5842 eval "$as_ac_var=no"
5843fi
5844
5845rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5846 conftest$ac_exeext conftest.$ac_ext
5847fi
5848ac_res=`eval echo '${'$as_ac_var'}'`
5849 { echo "$as_me:$LINENO: result: $ac_res" >&5
5850echo "${ECHO_T}$ac_res" >&6; }
5851if test `eval echo '${'$as_ac_var'}'` = yes; then
5852 cat >>confdefs.h <<_ACEOF
5853#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5854_ACEOF
5855
5856fi
5857done
5858
5859
5860fi
5861
5862
5863
5864{ echo "$as_me:$LINENO: checking for ceil in -lm" >&5
5865echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; }
5866if test "${ac_cv_lib_m_ceil+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
5868else
5869 ac_check_lib_save_LIBS=$LIBS
5870LIBS="-lm $LIBS"
5871cat >conftest.$ac_ext <<_ACEOF
5872/* confdefs.h. */
5873_ACEOF
5874cat confdefs.h >>conftest.$ac_ext
5875cat >>conftest.$ac_ext <<_ACEOF
5876/* end confdefs.h. */
5877
5878/* Override any GCC internal prototype to avoid an error.
5879 Use char because int might match the return type of a GCC
5880 builtin and then its argument prototype would still apply. */
5881#ifdef __cplusplus
5882extern "C"
5883#endif
5884char ceil ();
5885int
5886main ()
5887{
5888return ceil ();
5889 ;
5890 return 0;
5891}
5892_ACEOF
5893rm -f conftest.$ac_objext conftest$ac_exeext
5894if { (ac_try="$ac_link"
5895case "(($ac_try" in
5896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5897 *) ac_try_echo=$ac_try;;
5898esac
5899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5900 (eval "$ac_link") 2>conftest.er1
5901 ac_status=$?
5902 grep -v '^ *+' conftest.er1 >conftest.err
5903 rm -f conftest.er1
5904 cat conftest.err >&5
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); } && {
5907 test -z "$ac_cxx_werror_flag" ||
5908 test ! -s conftest.err
5909 } && test -s conftest$ac_exeext &&
5910 $as_test_x conftest$ac_exeext; then
5911 ac_cv_lib_m_ceil=yes
5912else
5913 echo "$as_me: failed program was:" >&5
5914sed 's/^/| /' conftest.$ac_ext >&5
5915
5916 ac_cv_lib_m_ceil=no
5917fi
5918
5919rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5920 conftest$ac_exeext conftest.$ac_ext
5921LIBS=$ac_check_lib_save_LIBS
5922fi
5923{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5
5924echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6; }
5925if test $ac_cv_lib_m_ceil = yes; then
5926 cat >>confdefs.h <<_ACEOF
5927#define HAVE_LIBM 1
5928_ACEOF
5929
5930 LIBS="-lm $LIBS"
5931
5932fi
5933
5934
5935
5936
4864 5937
4865 5938
4866 5939
4867# Extract the first word of "tic", so it can be a program name with args. 5940# Extract the first word of "tic", so it can be a program name with args.
4868set dummy tic; ac_word=$2 5941set dummy tic; ac_word=$2
4889 fi 5962 fi
4890done 5963done
4891done 5964done
4892IFS=$as_save_IFS 5965IFS=$as_save_IFS
4893 5966
5967 test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":"
4894 ;; 5968 ;;
4895esac 5969esac
4896fi 5970fi
4897TIC=$ac_cv_path_TIC 5971TIC=$ac_cv_path_TIC
4898if test -n "$TIC"; then 5972if test -n "$TIC"; then
4903echo "${ECHO_T}no" >&6; } 5977echo "${ECHO_T}no" >&6; }
4904fi 5978fi
4905 5979
4906 5980
4907 5981
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 5982
5136 5983
5137{ echo "$as_me:$LINENO: checking for X" >&5 5984{ echo "$as_me:$LINENO: checking for X" >&5
5138echo $ECHO_N "checking for X... $ECHO_C" >&6; } 5985echo $ECHO_N "checking for X... $ECHO_C" >&6; }
5139 5986
6445fi 7292fi
6446 7293
6447 LDFLAGS=$ac_save_LDFLAGS 7294 LDFLAGS=$ac_save_LDFLAGS
6448 7295
6449fi 7296fi
6450
6451 7297
6452 7298
6453AFTERIMAGE_CFLAGS= 7299AFTERIMAGE_CFLAGS=
6454AFTERIMAGE_LIBS= 7300AFTERIMAGE_LIBS=
6455AFTERIMAGE_VERSION= 7301AFTERIMAGE_VERSION=
6526echo "${ECHO_T}no" >&6; } 7372echo "${ECHO_T}no" >&6; }
6527 fi 7373 fi
6528 fi 7374 fi
6529fi 7375fi
6530 7376
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 7377{ 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; } 7378echo $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 7379if test "${ac_cv_header_sys_wait_h+set}" = set; then
6886 echo $ECHO_N "(cached) $ECHO_C" >&6 7380 echo $ECHO_N "(cached) $ECHO_C" >&6
6887else 7381else
6944cat >>confdefs.h <<\_ACEOF 7438cat >>confdefs.h <<\_ACEOF
6945#define HAVE_SYS_WAIT_H 1 7439#define HAVE_SYS_WAIT_H 1
6946_ACEOF 7440_ACEOF
6947 7441
6948fi 7442fi
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 7443
7193 7444
7194 7445
7195 7446
7196 7447
9959_ACEOF 10210_ACEOF
9960 10211
9961 10212
9962 10213
9963 10214
9964
9965
9966for ac_func in \ 10215for ac_func in unsetenv
9967 unsetenv \
9968 setutent \
9969 on_exit \
9970
9971do 10216do
9972as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10217as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9973{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10218{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9974echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10219echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9975if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10220if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10114 10359
10115 10360
10116 10361
10117 10362
10118for ac_func in \ 10363for ac_func in \
10119 ttyslot \
10120 updwtmp \ 10364 updwtmp \
10121 updwtmpx \ 10365 updwtmpx \
10366 updlastlogx \
10122 10367
10123do 10368do
10124as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10369as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10125{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10370{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10126echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10371echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11547 11792
11548cat >>confdefs.h <<_ACEOF 11793cat >>confdefs.h <<_ACEOF
11549#define LASTLOG_FILE "$path_lastlog" 11794#define LASTLOG_FILE "$path_lastlog"
11550_ACEOF 11795_ACEOF
11551 11796
11552 if test -d "$path_lastlog"; then
11553
11554cat >>confdefs.h <<\_ACEOF
11555#define LASTLOG_IS_DIR 1
11556_ACEOF
11557
11558 fi
11559fi 11797fi
11560 11798
11561{ echo "$as_me:$LINENO: checking where lastlogx is located" >&5 11799{ echo "$as_me:$LINENO: checking where lastlogx is located" >&5
11562echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } 11800echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; }
11563if test "${path_lastlogx+set}" = set; then 11801if test "${path_lastlogx+set}" = set; then
11645 11883
11646fi 11884fi
11647 11885
11648 11886
11649 11887
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 11888
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 11889save_LIBS=$LIBS
11676ac_save_CFLAGS=$CFLAGS 11890save_CFLAGS=$CFLAGS
11677CFLAGS="$CFLAGS $X_CFLAGS" 11891CFLAGS="$CFLAGS $X_CFLAGS"
11678LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 11892LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
11893if test x$support_xim = xyes; then
11679{ echo "$as_me:$LINENO: checking for working Xlocale" >&5 11894 { echo "$as_me:$LINENO: checking for working Xlocale" >&5
11680echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } 11895echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; }
11681if test "${rxvt_cv_func_xlocale+set}" = set; then 11896if test "${rxvt_cv_func_xlocale+set}" = set; then
11682 echo $ECHO_N "(cached) $ECHO_C" >&6 11897 echo $ECHO_N "(cached) $ECHO_C" >&6
11683else 11898else
11684 if test "$cross_compiling" = yes; then 11899 if test "$cross_compiling" = yes; then
11685 : 11900 :
11686else 11901else
11687 cat >conftest.$ac_ext <<_ACEOF 11902 cat >conftest.$ac_ext <<_ACEOF
11688/* confdefs.h. */ 11903/* confdefs.h. */
11689_ACEOF 11904_ACEOF
11690cat confdefs.h >>conftest.$ac_ext 11905cat confdefs.h >>conftest.$ac_ext
11691cat >>conftest.$ac_ext <<_ACEOF 11906cat >>conftest.$ac_ext <<_ACEOF
11692/* end confdefs.h. */ 11907/* end confdefs.h. */
11693#include <X11/Xlib.h> 11908#include <X11/Xlib.h>
11694#include <stdlib.h> 11909 #include <stdlib.h>
11695main() { 11910 main() {
11696char *p; 11911 char *p;
11697if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) 11912 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
11698exit (XSupportsLocale() ? 0 : 1); 11913 exit (XSupportsLocale() ? 0 : 1);
11699else 11914 else
11700exit (1);} 11915 exit (1);}
11701_ACEOF 11916_ACEOF
11702rm -f conftest$ac_exeext 11917rm -f conftest$ac_exeext
11703if { (ac_try="$ac_link" 11918if { (ac_try="$ac_link"
11704case "(($ac_try" in 11919case "(($ac_try" in
11705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11718 (eval "$ac_try") 2>&5 11933 (eval "$ac_try") 2>&5
11719 ac_status=$? 11934 ac_status=$?
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); }; }; then 11936 (exit $ac_status); }; }; then
11722 rxvt_cv_func_xlocale=yes 11937 rxvt_cv_func_xlocale=yes
11723else 11938else
11724 echo "$as_me: program exited with status $ac_status" >&5 11939 echo "$as_me: program exited with status $ac_status" >&5
11725echo "$as_me: failed program was:" >&5 11940echo "$as_me: failed program was:" >&5
11726sed 's/^/| /' conftest.$ac_ext >&5 11941sed 's/^/| /' conftest.$ac_ext >&5
11727 11942
11733 11948
11734 11949
11735fi 11950fi
11736{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 11951{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
11737echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; } 11952echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; }
11738if test x$support_xim = xyes; then
11739 if test x$rxvt_cv_func_xlocale = xyes; then 11953 if test x$rxvt_cv_func_xlocale = xyes; then
11740 11954
11741cat >>confdefs.h <<\_ACEOF 11955cat >>confdefs.h <<\_ACEOF
11742#define USE_XIM 1 11956#define USE_XIM 1
11743_ACEOF 11957_ACEOF
11744 11958
11959 { echo "$as_me:$LINENO: checking for broken XIM callback" >&5
11960echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; }
11961if test "${rxvt_broken_ximcb+set}" = set; then
11962 echo $ECHO_N "(cached) $ECHO_C" >&6
11963else
11964 cat >conftest.$ac_ext <<_ACEOF
11965
11966 #include <X11/Xlib.h>
11967
11968 void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
11969
11970 void f() {
11971 XIMCallback cb;
11972 cb.callback = im_destroy_cb;
11973 }
11974
11975_ACEOF
11976rm -f conftest.$ac_objext
11977if { (ac_try="$ac_compile"
11978case "(($ac_try" in
11979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11980 *) ac_try_echo=$ac_try;;
11981esac
11982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11983 (eval "$ac_compile") 2>conftest.er1
11984 ac_status=$?
11985 grep -v '^ *+' conftest.er1 >conftest.err
11986 rm -f conftest.er1
11987 cat conftest.err >&5
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); } && {
11990 test -z "$ac_cxx_werror_flag" ||
11991 test ! -s conftest.err
11992 } && test -s conftest.$ac_objext; then
11993 rxvt_broken_ximcb=yes
11994else
11995 echo "$as_me: failed program was:" >&5
11996sed 's/^/| /' conftest.$ac_ext >&5
11997
11998 rxvt_broken_ximcb=no
11999fi
12000
12001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12002fi
12003{ echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
12004echo "${ECHO_T}$rxvt_broken_ximcb" >&6; }
12005
12006 if test x$rxvt_broken_ximcb = xyes; then
12007
12008cat >>confdefs.h <<\_ACEOF
12009#define XIMCB_PROTO_BROKEN 1
12010_ACEOF
12011
12012 fi
11745 fi 12013 fi
11746fi 12014fi
11747 12015
11748{ echo "$as_me:$LINENO: checking for working X setlocale" >&5 12016{ echo "$as_me:$LINENO: checking for working X setlocale" >&5
11749echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; } 12017echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; }
11802cat >>confdefs.h <<\_ACEOF 12070cat >>confdefs.h <<\_ACEOF
11803#define HAVE_XSETLOCALE 1 12071#define HAVE_XSETLOCALE 1
11804_ACEOF 12072_ACEOF
11805 12073
11806fi 12074fi
11807LIBS=$ac_save_LIBS 12075LIBS=$save_LIBS
11808CFLAGS=$ac_save_CFLAGS 12076CFLAGS=$save_CFLAGS
11809 12077
11810{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5 12078{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5
11811echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } 12079echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; }
11812if test "${rxvt_cv_func_setlocale+set}" = set; then 12080if test "${rxvt_cv_func_setlocale+set}" = set; then
11813 echo $ECHO_N "(cached) $ECHO_C" >&6 12081 echo $ECHO_N "(cached) $ECHO_C" >&6
12016 { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5 12284 { { 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;} 12285echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;}
12018 { (exit 1); exit 1; }; } 12286 { (exit 1); exit 1; }; }
12019fi 12287fi
12020 12288
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 12289
12077 12290
12078 12291
12079 12292
12080 12293
12761echo "${ECHO_T}no" >&6; } 12974echo "${ECHO_T}no" >&6; }
12762fi 12975fi
12763 12976
12764 12977
12765 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then 12978 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
12766 LIBS="$LIBS `$PKG_CONFIG xft --libs`" 12979 X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS"
12767 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" 12980 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
12768 else 12981 else
12769 # Extract the first word of "xft-config", so it can be a program name with args. 12982 # Extract the first word of "xft-config", so it can be a program name with args.
12770set dummy xft-config; ac_word=$2 12983set dummy xft-config; ac_word=$2
12771{ echo "$as_me:$LINENO: checking for $ac_word" >&5 12984{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12806echo "${ECHO_T}no" >&6; } 13019echo "${ECHO_T}no" >&6; }
12807fi 13020fi
12808 13021
12809 13022
12810 if test $XFT_CONFIG != no; then 13023 if test $XFT_CONFIG != no; then
12811 LIBS="$LIBS `$XFT_CONFIG --libs`" 13024 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
12812 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" 13025 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
12813 fi 13026 fi
12814 fi 13027 fi
12815 13028
12816 13029
12953 support_xft=no 13166 support_xft=no
12954fi 13167fi
12955 13168
12956done 13169done
12957 13170
13171 ac_save_LIBS="$LIBS"
13172 LIBS="$LIBS $X_LIBS"
12958 13173
12959{ echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 13174{ echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
12960echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } 13175echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; }
12961if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then 13176if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then
12962 echo $ECHO_N "(cached) $ECHO_C" >&6 13177 echo $ECHO_N "(cached) $ECHO_C" >&6
13026 13241
13027else 13242else
13028 support_xft=no 13243 support_xft=no
13029fi 13244fi
13030 13245
13246 LIBS="$ac_save_LIBS"
13031 13247
13032 if test x$support_xft = xyes; then 13248 if test x$support_xft = xyes; then
13033 13249
13034cat >>confdefs.h <<\_ACEOF 13250cat >>confdefs.h <<\_ACEOF
13035#define XFT 1 13251#define XFT 1
13063cat >>confdefs.h <<\_ACEOF 13279cat >>confdefs.h <<\_ACEOF
13064#define OFF_FOCUS_FADING 1 13280#define OFF_FOCUS_FADING 1
13065_ACEOF 13281_ACEOF
13066 13282
13067fi 13283fi
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 13284if test x$support_inheritpixmap = xyes; then
13076 13285
13077cat >>confdefs.h <<\_ACEOF 13286cat >>confdefs.h <<\_ACEOF
13078#define ENABLE_TRANSPARENCY 1 13287#define ENABLE_TRANSPARENCY 1
13079_ACEOF 13288_ACEOF
13091cat >>confdefs.h <<\_ACEOF 13300cat >>confdefs.h <<\_ACEOF
13092#define SELECTION_SCROLLING 1 13301#define SELECTION_SCROLLING 1
13093_ACEOF 13302_ACEOF
13094 13303
13095fi 13304fi
13305if test x$support_frills = xyes; then
13306
13307cat >>confdefs.h <<\_ACEOF
13308#define ENABLE_FRILLS 1
13309_ACEOF
13310
13311fi
13096if test x$support_mousewheel = xyes; then 13312if test x$support_mousewheel = xyes; then
13097 13313
13098cat >>confdefs.h <<\_ACEOF 13314cat >>confdefs.h <<\_ACEOF
13099#define MOUSE_WHEEL 1 13315#define MOUSE_WHEEL 1
13100_ACEOF 13316_ACEOF
13105cat >>confdefs.h <<\_ACEOF 13321cat >>confdefs.h <<\_ACEOF
13106#define MOUSE_SLIP_WHEELING 1 13322#define MOUSE_SLIP_WHEELING 1
13107_ACEOF 13323_ACEOF
13108 13324
13109fi 13325fi
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 13326if test x$support_afterimage = xyes; then
13119 13327
13120cat >>confdefs.h <<\_ACEOF 13328cat >>confdefs.h <<\_ACEOF
13121#define HAVE_AFTERIMAGE 1 13329#define HAVE_AFTERIMAGE 1
13330_ACEOF
13331
13332
13333cat >>confdefs.h <<\_ACEOF
13334#define BG_IMAGE_FROM_FILE 1
13122_ACEOF 13335_ACEOF
13123 13336
13124fi 13337fi
13125 13338
13126 13339
13398 13611
13399 13612
13400 13613
13401 13614
13402 13615
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 13616
13416 13617
13417 13618
13418 13619
13419 13620
14195GREP!$GREP$ac_delim 14396GREP!$GREP$ac_delim
14196EGREP!$EGREP$ac_delim 14397EGREP!$EGREP$ac_delim
14197LINKER!$LINKER$ac_delim 14398LINKER!$LINKER$ac_delim
14198INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim 14399INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim
14199RXVTNAME!$RXVTNAME$ac_delim 14400RXVTNAME!$RXVTNAME$ac_delim
14401CXXCPP!$CXXCPP$ac_delim
14200TIC!$TIC$ac_delim 14402TIC!$TIC$ac_delim
14201XMKMF!$XMKMF$ac_delim 14403XMKMF!$XMKMF$ac_delim
14202CXXCPP!$CXXCPP$ac_delim
14203X_CFLAGS!$X_CFLAGS$ac_delim 14404X_CFLAGS!$X_CFLAGS$ac_delim
14204X_PRE_LIBS!$X_PRE_LIBS$ac_delim 14405X_PRE_LIBS!$X_PRE_LIBS$ac_delim
14205X_LIBS!$X_LIBS$ac_delim 14406X_LIBS!$X_LIBS$ac_delim
14206X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim 14407X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
14207afterimage_config!$afterimage_config$ac_delim 14408afterimage_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 14409rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim
14212rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim 14410rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim
14213rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim 14411rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim
14214rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim 14412rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim
14215rxvt_intp_define!$rxvt_intp_define$ac_delim 14413rxvt_intp_define!$rxvt_intp_define$ac_delim
14224PERL_O!$PERL_O$ac_delim 14422PERL_O!$PERL_O$ac_delim
14225AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim 14423AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim
14226AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim 14424AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim
14227include_stdint_h!$include_stdint_h$ac_delim 14425include_stdint_h!$include_stdint_h$ac_delim
14228include_stdarg_h!$include_stdarg_h$ac_delim 14426include_stdarg_h!$include_stdarg_h$ac_delim
14427include_stdlib_h!$include_stdlib_h$ac_delim
14428include_unistd_h!$include_unistd_h$ac_delim
14429include_string_h!$include_string_h$ac_delim
14229_ACEOF 14430_ACEOF
14230 14431
14231 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 14432 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
14232 break 14433 break
14233 elif $ac_last_try; then 14434 elif $ac_last_try; then
14265 14466
14266 14467
14267ac_delim='%!_!# ' 14468ac_delim='%!_!# '
14268for ac_last_try in false false false false false :; do 14469for ac_last_try in false false false false false :; do
14269 cat >conf$$subs.sed <<_ACEOF 14470 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 14471include_fcntl_h!$include_fcntl_h$ac_delim
14274include_util_h!$include_util_h$ac_delim 14472include_util_h!$include_util_h$ac_delim
14275include_assert_h!$include_assert_h$ac_delim 14473include_assert_h!$include_assert_h$ac_delim
14276include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim 14474include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim
14277include_sys_select_h!$include_sys_select_h$ac_delim 14475include_sys_select_h!$include_sys_select_h$ac_delim
14280include_time_h!$include_time_h$ac_delim 14478include_time_h!$include_time_h$ac_delim
14281LIBOBJS!$LIBOBJS$ac_delim 14479LIBOBJS!$LIBOBJS$ac_delim
14282LTLIBOBJS!$LTLIBOBJS$ac_delim 14480LTLIBOBJS!$LTLIBOBJS$ac_delim
14283_ACEOF 14481_ACEOF
14284 14482
14285 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then 14483 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
14286 break 14484 break
14287 elif $ac_last_try; then 14485 elif $ac_last_try; then
14288 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14486 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14289echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14487echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14290 { (exit 1); exit 1; }; } 14488 { (exit 1); exit 1; }; }
14719 Install path: ${prefix}/bin 14917 Install path: ${prefix}/bin
14720 Compiler: $CXX 14918 Compiler: $CXX
14721 Compiler flags: $CXXFLAGS 14919 Compiler flags: $CXXFLAGS
14722 Linker: $LINKER" 14920 Linker: $LINKER"
14723 14921
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 14922if test x$term != x; then
14734 echo " set TERM to: $term" 14923 echo " set TERM to: $term"
14735fi 14924fi
14736if test x$terminfo != x; then 14925if test x$terminfo != x; then
14737 echo " set TERMINFO to: $terminfo" 14926 echo " set TERMINFO to: $terminfo"
14743fi 14932fi
14744echo 14933echo
14745echo " embedded perl: $support_perl" 14934echo " embedded perl: $support_perl"
14746echo " libafterimage: $support_afterimage" 14935echo " libafterimage: $support_afterimage"
14747echo 14936echo
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 14937if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
14759 echo ".----------------------------------------------------------------." 14938 echo ".----------------------------------------------------------------."
14760 echo ". WARNING: --enable-xim was specified however the locale support ." 14939 echo ". WARNING: --enable-xim was specified however the locale support ."
14761 echo ". functions could not be found. ." 14940 echo ". functions could not be found. ."
14762 echo ". XIM is now being DISABLED! ." 14941 echo ". XIM is now being DISABLED! ."

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines