Mercurial > emacs
comparison configure @ 112311:babd014aab81
Regenerate.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Sat, 08 Jan 2011 23:33:50 -0800 |
parents | 474d5026a5a2 |
children | a68c30a5d799 |
comparison
equal
deleted
inserted
replaced
112310:e838cdd68eae | 112311:babd014aab81 |
---|---|
599 # include <unistd.h> | 599 # include <unistd.h> |
600 #endif" | 600 #endif" |
601 | 601 |
602 ac_config_libobj_dir=src | 602 ac_config_libobj_dir=src |
603 ac_header_list= | 603 ac_header_list= |
604 gl_getopt_required=POSIX | |
605 gl_getopt_required=POSIX | |
604 ac_func_list= | 606 ac_func_list= |
605 ac_subst_vars='gltests_LTLIBOBJS | 607 ac_subst_vars='gltests_LTLIBOBJS |
606 gltests_LIBOBJS | 608 gltests_LIBOBJS |
607 gl_LTLIBOBJS | 609 gl_LTLIBOBJS |
608 gl_LIBOBJS | 610 gl_LIBOBJS |
665 TERMCAP_OBJ | 667 TERMCAP_OBJ |
666 LIBS_TERMCAP | 668 LIBS_TERMCAP |
667 LIBGNU_LTLIBDEPS | 669 LIBGNU_LTLIBDEPS |
668 LIBGNU_LIBDEPS | 670 LIBGNU_LIBDEPS |
669 gltests_WITNESS | 671 gltests_WITNESS |
672 HAVE_UNISTD_H | |
673 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H | |
674 NEXT_UNISTD_H | |
670 PTHREAD_H_DEFINES_STRUCT_TIMESPEC | 675 PTHREAD_H_DEFINES_STRUCT_TIMESPEC |
671 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC | 676 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC |
672 TIME_H_DEFINES_STRUCT_TIMESPEC | 677 TIME_H_DEFINES_STRUCT_TIMESPEC |
673 NEXT_AS_FIRST_DIRECTIVE_TIME_H | 678 NEXT_AS_FIRST_DIRECTIVE_TIME_H |
674 NEXT_TIME_H | 679 NEXT_TIME_H |
675 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H | 680 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H |
676 NEXT_STDDEF_H | 681 NEXT_STDDEF_H |
677 PRAGMA_COLUMNS | |
678 PRAGMA_SYSTEM_HEADER | |
679 INCLUDE_NEXT_AS_FIRST_DIRECTIVE | |
680 INCLUDE_NEXT | |
681 STDDEF_H | 682 STDDEF_H |
682 HAVE_WCHAR_T | 683 HAVE_WCHAR_T |
683 REPLACE_NULL | 684 REPLACE_NULL |
684 APPLE_UNIVERSAL_BUILD | 685 APPLE_UNIVERSAL_BUILD |
685 REPLACE_TIMEGM | 686 REPLACE_TIMEGM |
693 GNULIB_TIME_R | 694 GNULIB_TIME_R |
694 GNULIB_TIMEGM | 695 GNULIB_TIMEGM |
695 GNULIB_STRPTIME | 696 GNULIB_STRPTIME |
696 GNULIB_NANOSLEEP | 697 GNULIB_NANOSLEEP |
697 GNULIB_MKTIME | 698 GNULIB_MKTIME |
699 LTLIBINTL | |
700 LIBINTL | |
701 GETOPT_H | |
702 HAVE_GETOPT_H | |
703 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H | |
704 NEXT_GETOPT_H | |
705 PRAGMA_COLUMNS | |
706 PRAGMA_SYSTEM_HEADER | |
707 INCLUDE_NEXT_AS_FIRST_DIRECTIVE | |
708 INCLUDE_NEXT | |
709 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS | |
710 UNISTD_H_HAVE_WINSOCK2_H | |
711 REPLACE_WRITE | |
712 REPLACE_USLEEP | |
713 REPLACE_UNLINKAT | |
714 REPLACE_UNLINK | |
715 REPLACE_TTYNAME_R | |
716 REPLACE_SYMLINK | |
717 REPLACE_SLEEP | |
718 REPLACE_RMDIR | |
719 REPLACE_READLINK | |
720 REPLACE_PWRITE | |
721 REPLACE_PREAD | |
722 REPLACE_LSEEK | |
723 REPLACE_LINKAT | |
724 REPLACE_LINK | |
725 REPLACE_LCHOWN | |
726 REPLACE_GETPAGESIZE | |
727 REPLACE_GETGROUPS | |
728 REPLACE_GETLOGIN_R | |
729 REPLACE_GETDOMAINNAME | |
730 REPLACE_GETCWD | |
731 REPLACE_FCHOWNAT | |
732 REPLACE_DUP2 | |
733 REPLACE_DUP | |
734 REPLACE_CLOSE | |
735 REPLACE_CHOWN | |
736 HAVE_SYS_PARAM_H | |
737 HAVE_OS_H | |
738 HAVE_DECL_TTYNAME_R | |
739 HAVE_DECL_GETUSERSHELL | |
740 HAVE_DECL_GETPAGESIZE | |
741 HAVE_DECL_GETLOGIN_R | |
742 HAVE_DECL_GETDOMAINNAME | |
743 HAVE_DECL_FCHDIR | |
744 HAVE_DECL_ENVIRON | |
745 HAVE_USLEEP | |
746 HAVE_UNLINKAT | |
747 HAVE_SYMLINKAT | |
748 HAVE_SYMLINK | |
749 HAVE_SLEEP | |
750 HAVE_READLINKAT | |
751 HAVE_READLINK | |
752 HAVE_PWRITE | |
753 HAVE_PREAD | |
754 HAVE_PIPE2 | |
755 HAVE_PIPE | |
756 HAVE_LINKAT | |
757 HAVE_LINK | |
758 HAVE_LCHOWN | |
759 HAVE_GETPAGESIZE | |
760 HAVE_GETLOGIN | |
761 HAVE_GETHOSTNAME | |
762 HAVE_GETGROUPS | |
763 HAVE_GETDTABLESIZE | |
764 HAVE_FTRUNCATE | |
765 HAVE_FSYNC | |
766 HAVE_FCHOWNAT | |
767 HAVE_FCHDIR | |
768 HAVE_FACCESSAT | |
769 HAVE_EUIDACCESS | |
770 HAVE_DUP3 | |
771 HAVE_DUP2 | |
772 HAVE_CHOWN | |
773 GNULIB_WRITE | |
774 GNULIB_USLEEP | |
775 GNULIB_UNLINKAT | |
776 GNULIB_UNLINK | |
777 GNULIB_UNISTD_H_SIGPIPE | |
778 GNULIB_UNISTD_H_GETOPT | |
779 GNULIB_TTYNAME_R | |
780 GNULIB_SYMLINKAT | |
781 GNULIB_SYMLINK | |
782 GNULIB_SLEEP | |
783 GNULIB_RMDIR | |
784 GNULIB_READLINKAT | |
785 GNULIB_READLINK | |
786 GNULIB_PWRITE | |
787 GNULIB_PREAD | |
788 GNULIB_PIPE2 | |
789 GNULIB_PIPE | |
790 GNULIB_LSEEK | |
791 GNULIB_LINKAT | |
792 GNULIB_LINK | |
793 GNULIB_LCHOWN | |
794 GNULIB_GETUSERSHELL | |
795 GNULIB_GETPAGESIZE | |
796 GNULIB_GETLOGIN_R | |
797 GNULIB_GETLOGIN | |
798 GNULIB_GETHOSTNAME | |
799 GNULIB_GETGROUPS | |
800 GNULIB_GETDTABLESIZE | |
801 GNULIB_GETDOMAINNAME | |
802 GNULIB_GETCWD | |
803 GNULIB_FTRUNCATE | |
804 GNULIB_FSYNC | |
805 GNULIB_FCHOWNAT | |
806 GNULIB_FCHDIR | |
807 GNULIB_FACCESSAT | |
808 GNULIB_EUIDACCESS | |
809 GNULIB_ENVIRON | |
810 GNULIB_DUP3 | |
811 GNULIB_DUP2 | |
812 GNULIB_CLOSE | |
813 GNULIB_CHOWN | |
698 GL_COND_LIBTOOL_FALSE | 814 GL_COND_LIBTOOL_FALSE |
699 GL_COND_LIBTOOL_TRUE | 815 GL_COND_LIBTOOL_TRUE |
700 GETOPTOBJS | |
701 GETOPT_H | |
702 GETLOADAVG_LIBS | 816 GETLOADAVG_LIBS |
703 KMEM_GROUP | 817 KMEM_GROUP |
704 NEED_SETGID | 818 NEED_SETGID |
705 LIBOBJS | 819 LIBOBJS |
706 BLESSMAIL_TARGET | 820 BLESSMAIL_TARGET |
2539 fi | 2653 fi |
2540 | 2654 |
2541 as_fn_append ac_header_list " stdlib.h" | 2655 as_fn_append ac_header_list " stdlib.h" |
2542 as_fn_append ac_header_list " unistd.h" | 2656 as_fn_append ac_header_list " unistd.h" |
2543 as_fn_append ac_header_list " sys/param.h" | 2657 as_fn_append ac_header_list " sys/param.h" |
2658 gl_getopt_required=GNU | |
2659 as_fn_append ac_header_list " getopt.h" | |
2544 as_fn_append ac_func_list " alarm" | 2660 as_fn_append ac_func_list " alarm" |
2545 as_fn_append ac_header_list " stddef.h" | 2661 as_fn_append ac_header_list " stddef.h" |
2546 as_fn_append ac_header_list " time.h" | 2662 as_fn_append ac_header_list " time.h" |
2547 as_fn_append ac_header_list " sys/time.h" | 2663 as_fn_append ac_header_list " sys/time.h" |
2548 as_fn_append ac_func_list " localtime_r" | 2664 as_fn_append ac_func_list " localtime_r" |
5693 # Code from module arg-nonnull: | 5809 # Code from module arg-nonnull: |
5694 # Code from module c++defs: | 5810 # Code from module c++defs: |
5695 # Code from module extensions: | 5811 # Code from module extensions: |
5696 | 5812 |
5697 # Code from module ftoastr: | 5813 # Code from module ftoastr: |
5814 # Code from module getopt-gnu: | |
5815 # Code from module getopt-posix: | |
5816 # Code from module gettext-h: | |
5698 # Code from module include_next: | 5817 # Code from module include_next: |
5699 # Code from module intprops: | 5818 # Code from module intprops: |
5700 # Code from module mktime: | 5819 # Code from module mktime: |
5701 # Code from module multiarch: | 5820 # Code from module multiarch: |
5702 # Code from module stddef: | 5821 # Code from module stddef: |
5703 # Code from module time: | 5822 # Code from module time: |
5704 # Code from module time_r: | 5823 # Code from module time_r: |
5824 # Code from module unistd: | |
5705 # Code from module warn-on-use: | 5825 # Code from module warn-on-use: |
5706 | 5826 |
5707 | 5827 |
5708 # On Suns, sometimes $CPP names a directory. | 5828 # On Suns, sometimes $CPP names a directory. |
5709 if test -n "$CPP" && test -d "$CPP"; then | 5829 if test -n "$CPP" && test -d "$CPP"; then |
13380 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h | 13500 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h |
13381 | 13501 |
13382 fi | 13502 fi |
13383 | 13503 |
13384 | 13504 |
13385 # Configure getopt. | |
13386 # getopt.m4 serial 10 | |
13387 | |
13388 # The getopt module assume you want GNU getopt, with getopt_long etc, | |
13389 # rather than vanilla POSIX getopt. This means your your code should | |
13390 # always include <getopt.h> for the getopt prototypes. | |
13391 | |
13392 | |
13393 | |
13394 | |
13395 | |
13396 | |
13397 | |
13398 | |
13399 | |
13400 | |
13401 | |
13402 # Prerequisites of lib/getopt*. | |
13403 | |
13404 | |
13405 | |
13406 | |
13407 GETOPT_H= | |
13408 for ac_header in getopt.h | |
13409 do : | |
13410 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" | |
13411 if test "x$ac_cv_header_getopt_h" = xyes; then : | |
13412 cat >>confdefs.h <<_ACEOF | |
13413 #define HAVE_GETOPT_H 1 | |
13414 _ACEOF | |
13415 | |
13416 else | |
13417 GETOPT_H=getopt.h | |
13418 fi | |
13419 | |
13420 done | |
13421 | |
13422 if test -z "$GETOPT_H"; then | |
13423 for ac_func in getopt_long_only | |
13424 do : | |
13425 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only" | |
13426 if test "x$ac_cv_func_getopt_long_only" = xyes; then : | |
13427 cat >>confdefs.h <<_ACEOF | |
13428 #define HAVE_GETOPT_LONG_ONLY 1 | |
13429 _ACEOF | |
13430 | |
13431 else | |
13432 GETOPT_H=getopt.h | |
13433 fi | |
13434 done | |
13435 | |
13436 fi | |
13437 | |
13438 if test -z "$GETOPT_H"; then | |
13439 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h> | |
13440 " | |
13441 if test "x$ac_cv_have_decl_optreset" = xyes; then : | |
13442 GETOPT_H=getopt.h | |
13443 fi | |
13444 | |
13445 fi | |
13446 | |
13447 if test -z "$GETOPT_H"; then | |
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5 | |
13449 $as_echo_n "checking for working GNU getopt function... " >&6; } | |
13450 if ${gl_cv_func_gnu_getopt+:} false; then : | |
13451 $as_echo_n "(cached) " >&6 | |
13452 else | |
13453 if test "$cross_compiling" = yes; then : | |
13454 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h> | |
13455 " | |
13456 if test "x$ac_cv_have_decl_getopt_clip" = xyes; then : | |
13457 gl_cv_func_gnu_getopt=no | |
13458 else | |
13459 gl_cv_func_gnu_getopt=yes | |
13460 fi | |
13461 | |
13462 else | |
13463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13464 /* end confdefs.h. */ | |
13465 #include <getopt.h> | |
13466 int | |
13467 main () | |
13468 { | |
13469 | |
13470 char *myargv[3]; | |
13471 myargv[0] = "conftest"; | |
13472 myargv[1] = "-+"; | |
13473 myargv[2] = 0; | |
13474 return getopt (2, myargv, "+a") != '?'; | |
13475 | |
13476 ; | |
13477 return 0; | |
13478 } | |
13479 _ACEOF | |
13480 if ac_fn_c_try_run "$LINENO"; then : | |
13481 gl_cv_func_gnu_getopt=yes | |
13482 else | |
13483 gl_cv_func_gnu_getopt=no | |
13484 fi | |
13485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
13486 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
13487 fi | |
13488 | |
13489 fi | |
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5 | |
13491 $as_echo "$gl_cv_func_gnu_getopt" >&6; } | |
13492 if test "$gl_cv_func_gnu_getopt" = "no"; then | |
13493 GETOPT_H=getopt.h | |
13494 fi | |
13495 fi | |
13496 | |
13497 | |
13498 | |
13499 if test -n "$GETOPT_H"; then : | |
13500 | |
13501 | |
13502 GETOPT_H=getopt.h | |
13503 | |
13504 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h | |
13505 | |
13506 | |
13507 | |
13508 : | |
13509 GETOPTOBJS='getopt.o getopt1.o' | |
13510 | |
13511 fi | |
13512 | |
13513 | |
13514 | |
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5 | 13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5 |
13516 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } | 13506 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } |
13517 if ${ac_cv_func_getpgrp_void+:} false; then : | 13507 if ${ac_cv_func_getpgrp_void+:} false; then : |
13518 $as_echo_n "(cached) " >&6 | 13508 $as_echo_n "(cached) " >&6 |
13519 else | 13509 else |
13597 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h | 13587 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h |
13598 | 13588 |
13599 fi | 13589 fi |
13600 | 13590 |
13601 | 13591 |
13602 GNULIB_MKTIME=0; | 13592 GNULIB_CHOWN=0; |
13603 GNULIB_NANOSLEEP=0; | 13593 GNULIB_CLOSE=0; |
13604 GNULIB_STRPTIME=0; | 13594 GNULIB_DUP2=0; |
13605 GNULIB_TIMEGM=0; | 13595 GNULIB_DUP3=0; |
13606 GNULIB_TIME_R=0; | 13596 GNULIB_ENVIRON=0; |
13607 HAVE_DECL_LOCALTIME_R=1; | 13597 GNULIB_EUIDACCESS=0; |
13608 HAVE_NANOSLEEP=1; | 13598 GNULIB_FACCESSAT=0; |
13609 HAVE_STRPTIME=1; | 13599 GNULIB_FCHDIR=0; |
13610 HAVE_TIMEGM=1; | 13600 GNULIB_FCHOWNAT=0; |
13611 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK; | 13601 GNULIB_FSYNC=0; |
13612 REPLACE_MKTIME=GNULIB_PORTCHECK; | 13602 GNULIB_FTRUNCATE=0; |
13613 REPLACE_NANOSLEEP=GNULIB_PORTCHECK; | 13603 GNULIB_GETCWD=0; |
13614 REPLACE_TIMEGM=GNULIB_PORTCHECK; | 13604 GNULIB_GETDOMAINNAME=0; |
13615 | 13605 GNULIB_GETDTABLESIZE=0; |
13616 | 13606 GNULIB_GETGROUPS=0; |
13617 | 13607 GNULIB_GETHOSTNAME=0; |
13618 | 13608 GNULIB_GETLOGIN=0; |
13619 for ac_func in $ac_func_list | 13609 GNULIB_GETLOGIN_R=0; |
13620 do : | 13610 GNULIB_GETPAGESIZE=0; |
13621 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 13611 GNULIB_GETUSERSHELL=0; |
13622 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 13612 GNULIB_LCHOWN=0; |
13623 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 13613 GNULIB_LINK=0; |
13624 cat >>confdefs.h <<_ACEOF | 13614 GNULIB_LINKAT=0; |
13625 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 13615 GNULIB_LSEEK=0; |
13626 _ACEOF | 13616 GNULIB_PIPE=0; |
13627 | 13617 GNULIB_PIPE2=0; |
13628 fi | 13618 GNULIB_PREAD=0; |
13629 done | 13619 GNULIB_PWRITE=0; |
13630 | 13620 GNULIB_READLINK=0; |
13631 | 13621 GNULIB_READLINKAT=0; |
13632 | 13622 GNULIB_RMDIR=0; |
13633 | 13623 GNULIB_SLEEP=0; |
13634 gl_cv_c_multiarch=no | 13624 GNULIB_SYMLINK=0; |
13635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 13625 GNULIB_SYMLINKAT=0; |
13636 /* end confdefs.h. */ | 13626 GNULIB_TTYNAME_R=0; |
13637 #ifndef __APPLE_CC__ | 13627 GNULIB_UNISTD_H_GETOPT=0; |
13638 not a universal capable compiler | 13628 GNULIB_UNISTD_H_SIGPIPE=0; |
13639 #endif | 13629 GNULIB_UNLINK=0; |
13640 typedef int dummy; | 13630 GNULIB_UNLINKAT=0; |
13641 | 13631 GNULIB_USLEEP=0; |
13642 _ACEOF | 13632 GNULIB_WRITE=0; |
13643 if ac_fn_c_try_compile "$LINENO"; then : | 13633 HAVE_CHOWN=1; |
13644 | 13634 HAVE_DUP2=1; |
13645 arch= | 13635 HAVE_DUP3=1; |
13646 prev= | 13636 HAVE_EUIDACCESS=1; |
13647 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do | 13637 HAVE_FACCESSAT=1; |
13648 if test -n "$prev"; then | 13638 HAVE_FCHDIR=1; |
13649 case $word in | 13639 HAVE_FCHOWNAT=1; |
13650 i?86 | x86_64 | ppc | ppc64) | 13640 HAVE_FSYNC=1; |
13651 if test -z "$arch" || test "$arch" = "$word"; then | 13641 HAVE_FTRUNCATE=1; |
13652 arch="$word" | 13642 HAVE_GETDTABLESIZE=1; |
13653 else | 13643 HAVE_GETGROUPS=1; |
13654 gl_cv_c_multiarch=yes | 13644 HAVE_GETHOSTNAME=1; |
13655 fi | 13645 HAVE_GETLOGIN=1; |
13656 ;; | 13646 HAVE_GETPAGESIZE=1; |
13657 esac | 13647 HAVE_LCHOWN=1; |
13658 prev= | 13648 HAVE_LINK=1; |
13659 else | 13649 HAVE_LINKAT=1; |
13660 if test "x$word" = "x-arch"; then | 13650 HAVE_PIPE=1; |
13661 prev=arch | 13651 HAVE_PIPE2=1; |
13662 fi | 13652 HAVE_PREAD=1; |
13663 fi | 13653 HAVE_PWRITE=1; |
13664 done | 13654 HAVE_READLINK=1; |
13665 | 13655 HAVE_READLINKAT=1; |
13666 fi | 13656 HAVE_SLEEP=1; |
13667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 13657 HAVE_SYMLINK=1; |
13668 if test $gl_cv_c_multiarch = yes; then | 13658 HAVE_SYMLINKAT=1; |
13669 | 13659 HAVE_UNLINKAT=1; |
13670 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | 13660 HAVE_USLEEP=1; |
13671 | 13661 HAVE_DECL_ENVIRON=1; |
13672 APPLE_UNIVERSAL_BUILD=1 | 13662 HAVE_DECL_FCHDIR=1; |
13673 else | 13663 HAVE_DECL_GETDOMAINNAME=1; |
13674 APPLE_UNIVERSAL_BUILD=0 | 13664 HAVE_DECL_GETLOGIN_R=1; |
13675 fi | 13665 HAVE_DECL_GETPAGESIZE=1; |
13676 | 13666 HAVE_DECL_GETUSERSHELL=1; |
13677 | 13667 HAVE_DECL_TTYNAME_R=1; |
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | 13668 HAVE_OS_H=0; |
13679 $as_echo_n "checking for inline... " >&6; } | 13669 HAVE_SYS_PARAM_H=0; |
13680 if ${ac_cv_c_inline+:} false; then : | 13670 REPLACE_CHOWN=0; |
13681 $as_echo_n "(cached) " >&6 | 13671 REPLACE_CLOSE=0; |
13682 else | 13672 REPLACE_DUP=0; |
13683 ac_cv_c_inline=no | 13673 REPLACE_DUP2=0; |
13684 for ac_kw in inline __inline__ __inline; do | 13674 REPLACE_FCHOWNAT=0; |
13685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 13675 REPLACE_GETCWD=0; |
13686 /* end confdefs.h. */ | 13676 REPLACE_GETDOMAINNAME=0; |
13687 #ifndef __cplusplus | 13677 REPLACE_GETLOGIN_R=0; |
13688 typedef int foo_t; | 13678 REPLACE_GETGROUPS=0; |
13689 static $ac_kw foo_t static_foo () {return 0; } | 13679 REPLACE_GETPAGESIZE=0; |
13690 $ac_kw foo_t foo () {return 0; } | 13680 REPLACE_LCHOWN=0; |
13691 #endif | 13681 REPLACE_LINK=0; |
13692 | 13682 REPLACE_LINKAT=0; |
13693 _ACEOF | 13683 REPLACE_LSEEK=0; |
13694 if ac_fn_c_try_compile "$LINENO"; then : | 13684 REPLACE_PREAD=0; |
13695 ac_cv_c_inline=$ac_kw | 13685 REPLACE_PWRITE=0; |
13696 fi | 13686 REPLACE_READLINK=0; |
13697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 13687 REPLACE_RMDIR=0; |
13698 test "$ac_cv_c_inline" != no && break | 13688 REPLACE_SLEEP=0; |
13699 done | 13689 REPLACE_SYMLINK=0; |
13700 | 13690 REPLACE_TTYNAME_R=0; |
13701 fi | 13691 REPLACE_UNLINK=0; |
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | 13692 REPLACE_UNLINKAT=0; |
13703 $as_echo "$ac_cv_c_inline" >&6; } | 13693 REPLACE_USLEEP=0; |
13704 | 13694 REPLACE_WRITE=0; |
13705 case $ac_cv_c_inline in | 13695 UNISTD_H_HAVE_WINSOCK2_H=0; |
13706 inline | yes) ;; | 13696 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0; |
13707 *) | 13697 |
13708 case $ac_cv_c_inline in | |
13709 no) ac_val=;; | |
13710 *) ac_val=$ac_cv_c_inline;; | |
13711 esac | |
13712 cat >>confdefs.h <<_ACEOF | |
13713 #ifndef __cplusplus | |
13714 #define inline $ac_val | |
13715 #endif | |
13716 _ACEOF | |
13717 ;; | |
13718 esac | |
13719 | |
13720 | |
13721 REPLACE_NULL=0; | |
13722 HAVE_WCHAR_T=1; | |
13723 STDDEF_H=''; | |
13724 | |
13725 | |
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 | |
13727 $as_echo_n "checking for wchar_t... " >&6; } | |
13728 if ${gt_cv_c_wchar_t+:} false; then : | |
13729 $as_echo_n "(cached) " >&6 | |
13730 else | |
13731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13732 /* end confdefs.h. */ | |
13733 #include <stddef.h> | |
13734 wchar_t foo = (wchar_t)'\0'; | |
13735 int | |
13736 main () | |
13737 { | |
13738 | |
13739 ; | |
13740 return 0; | |
13741 } | |
13742 _ACEOF | |
13743 if ac_fn_c_try_compile "$LINENO"; then : | |
13744 gt_cv_c_wchar_t=yes | |
13745 else | |
13746 gt_cv_c_wchar_t=no | |
13747 fi | |
13748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13749 fi | |
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 | |
13751 $as_echo "$gt_cv_c_wchar_t" >&6; } | |
13752 if test $gt_cv_c_wchar_t = yes; then | |
13753 | |
13754 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h | |
13755 | |
13756 fi | |
13757 | 13698 |
13758 | 13699 |
13759 | 13700 |
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5 | 13701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5 |
13761 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; } | 13702 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; } |
13869 fi | 13810 fi |
13870 | 13811 |
13871 | 13812 |
13872 | 13813 |
13873 | 13814 |
13815 | |
13816 | |
13817 | |
13818 | |
13819 | |
13820 | |
13821 | |
13822 | |
13823 | |
13824 | |
13825 if test $gl_cv_have_include_next = yes; then | |
13826 gl_cv_next_getopt_h='<'getopt.h'>' | |
13827 else | |
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5 | |
13829 $as_echo_n "checking absolute name of <getopt.h>... " >&6; } | |
13830 if ${gl_cv_next_getopt_h+:} false; then : | |
13831 $as_echo_n "(cached) " >&6 | |
13832 else | |
13833 | |
13834 if test $ac_cv_header_getopt_h = yes; then | |
13835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13836 /* end confdefs.h. */ | |
13837 #include <getopt.h> | |
13838 | |
13839 _ACEOF | |
13840 case "$host_os" in | |
13841 aix*) gl_absname_cpp="$ac_cpp -C" ;; | |
13842 *) gl_absname_cpp="$ac_cpp" ;; | |
13843 esac | |
13844 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | | |
13845 sed -n '\#/getopt.h#{ | |
13846 s#.*"\(.*/getopt.h\)".*#\1# | |
13847 s#^/[^/]#//&# | |
13848 p | |
13849 q | |
13850 }'`'"' | |
13851 else | |
13852 gl_cv_next_getopt_h='<'getopt.h'>' | |
13853 fi | |
13854 | |
13855 fi | |
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5 | |
13857 $as_echo "$gl_cv_next_getopt_h" >&6; } | |
13858 fi | |
13859 NEXT_GETOPT_H=$gl_cv_next_getopt_h | |
13860 | |
13861 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then | |
13862 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' | |
13863 gl_next_as_first_directive='<'getopt.h'>' | |
13864 else | |
13865 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' | |
13866 gl_next_as_first_directive=$gl_cv_next_getopt_h | |
13867 fi | |
13868 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive | |
13869 | |
13870 | |
13871 | |
13872 | |
13873 if test $ac_cv_header_getopt_h = yes; then | |
13874 HAVE_GETOPT_H=1 | |
13875 else | |
13876 HAVE_GETOPT_H=0 | |
13877 fi | |
13878 | |
13879 | |
13880 gl_replace_getopt= | |
13881 | |
13882 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then | |
13883 for ac_header in getopt.h | |
13884 do : | |
13885 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" | |
13886 if test "x$ac_cv_header_getopt_h" = xyes; then : | |
13887 cat >>confdefs.h <<_ACEOF | |
13888 #define HAVE_GETOPT_H 1 | |
13889 _ACEOF | |
13890 | |
13891 else | |
13892 gl_replace_getopt=yes | |
13893 fi | |
13894 | |
13895 done | |
13896 | |
13897 fi | |
13898 | |
13899 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then | |
13900 for ac_func in getopt_long_only | |
13901 do : | |
13902 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only" | |
13903 if test "x$ac_cv_func_getopt_long_only" = xyes; then : | |
13904 cat >>confdefs.h <<_ACEOF | |
13905 #define HAVE_GETOPT_LONG_ONLY 1 | |
13906 _ACEOF | |
13907 | |
13908 else | |
13909 gl_replace_getopt=yes | |
13910 fi | |
13911 done | |
13912 | |
13913 fi | |
13914 | |
13915 if test -z "$gl_replace_getopt"; then | |
13916 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h> | |
13917 " | |
13918 if test "x$ac_cv_have_decl_optreset" = xyes; then : | |
13919 ac_have_decl=1 | |
13920 else | |
13921 ac_have_decl=0 | |
13922 fi | |
13923 | |
13924 cat >>confdefs.h <<_ACEOF | |
13925 #define HAVE_DECL_OPTRESET $ac_have_decl | |
13926 _ACEOF | |
13927 if test $ac_have_decl = 1; then : | |
13928 | |
13929 else | |
13930 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h> | |
13931 " | |
13932 if test "x$ac_cv_have_decl_getopt_clip" = xyes; then : | |
13933 ac_have_decl=1 | |
13934 else | |
13935 ac_have_decl=0 | |
13936 fi | |
13937 | |
13938 cat >>confdefs.h <<_ACEOF | |
13939 #define HAVE_DECL_GETOPT_CLIP $ac_have_decl | |
13940 _ACEOF | |
13941 | |
13942 | |
13943 fi | |
13944 | |
13945 fi | |
13946 | |
13947 if test -z "$gl_replace_getopt"; then | |
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5 | |
13949 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; } | |
13950 if ${gl_cv_func_getopt_posix+:} false; then : | |
13951 $as_echo_n "(cached) " >&6 | |
13952 else | |
13953 | |
13954 if test "$cross_compiling" = yes; then : | |
13955 case "$host_os" in | |
13956 mingw*) gl_cv_func_getopt_posix="guessing no";; | |
13957 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";; | |
13958 *) gl_cv_func_getopt_posix="guessing yes";; | |
13959 esac | |
13960 | |
13961 else | |
13962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13963 /* end confdefs.h. */ | |
13964 | |
13965 #include <unistd.h> | |
13966 #include <stdlib.h> | |
13967 #include <string.h> | |
13968 | |
13969 #if !HAVE_DECL_OPTRESET && !HAVE_DECL_GETOPT_CLIP | |
13970 # define OPTIND_MIN 0 | |
13971 #else | |
13972 # define OPTIND_MIN 1 | |
13973 #endif | |
13974 | |
13975 int | |
13976 main () | |
13977 { | |
13978 { | |
13979 int argc = 0; | |
13980 char *argv[10]; | |
13981 int c; | |
13982 | |
13983 argv[argc++] = "program"; | |
13984 argv[argc++] = "-a"; | |
13985 argv[argc++] = "foo"; | |
13986 argv[argc++] = "bar"; | |
13987 argv[argc] = NULL; | |
13988 optind = OPTIND_MIN; | |
13989 opterr = 0; | |
13990 | |
13991 c = getopt (argc, argv, "ab"); | |
13992 if (!(c == 'a')) | |
13993 return 1; | |
13994 c = getopt (argc, argv, "ab"); | |
13995 if (!(c == -1)) | |
13996 return 2; | |
13997 if (!(optind == 2)) | |
13998 return 3; | |
13999 } | |
14000 /* Some internal state exists at this point. */ | |
14001 { | |
14002 int argc = 0; | |
14003 char *argv[10]; | |
14004 int c; | |
14005 | |
14006 argv[argc++] = "program"; | |
14007 argv[argc++] = "donald"; | |
14008 argv[argc++] = "-p"; | |
14009 argv[argc++] = "billy"; | |
14010 argv[argc++] = "duck"; | |
14011 argv[argc++] = "-a"; | |
14012 argv[argc++] = "bar"; | |
14013 argv[argc] = NULL; | |
14014 optind = OPTIND_MIN; | |
14015 opterr = 0; | |
14016 | |
14017 c = getopt (argc, argv, "+abp:q:"); | |
14018 if (!(c == -1)) | |
14019 return 4; | |
14020 if (!(strcmp (argv[0], "program") == 0)) | |
14021 return 5; | |
14022 if (!(strcmp (argv[1], "donald") == 0)) | |
14023 return 6; | |
14024 if (!(strcmp (argv[2], "-p") == 0)) | |
14025 return 7; | |
14026 if (!(strcmp (argv[3], "billy") == 0)) | |
14027 return 8; | |
14028 if (!(strcmp (argv[4], "duck") == 0)) | |
14029 return 9; | |
14030 if (!(strcmp (argv[5], "-a") == 0)) | |
14031 return 10; | |
14032 if (!(strcmp (argv[6], "bar") == 0)) | |
14033 return 11; | |
14034 if (!(optind == 1)) | |
14035 return 12; | |
14036 } | |
14037 /* Detect MacOS 10.5, AIX 7.1 bug. */ | |
14038 { | |
14039 char *argv[3] = { "program", "-ab", NULL }; | |
14040 optind = OPTIND_MIN; | |
14041 opterr = 0; | |
14042 if (getopt (2, argv, "ab:") != 'a') | |
14043 return 13; | |
14044 if (getopt (2, argv, "ab:") != '?') | |
14045 return 14; | |
14046 if (optopt != 'b') | |
14047 return 15; | |
14048 if (optind != 2) | |
14049 return 16; | |
14050 } | |
14051 | |
14052 return 0; | |
14053 } | |
14054 | |
14055 _ACEOF | |
14056 if ac_fn_c_try_run "$LINENO"; then : | |
14057 gl_cv_func_getopt_posix=yes | |
14058 else | |
14059 gl_cv_func_getopt_posix=no | |
14060 fi | |
14061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
14062 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14063 fi | |
14064 | |
14065 | |
14066 fi | |
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5 | |
14068 $as_echo "$gl_cv_func_getopt_posix" >&6; } | |
14069 case "$gl_cv_func_getopt_posix" in | |
14070 *no) gl_replace_getopt=yes ;; | |
14071 esac | |
14072 fi | |
14073 | |
14074 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then | |
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5 | |
14076 $as_echo_n "checking for working GNU getopt function... " >&6; } | |
14077 if ${gl_cv_func_getopt_gnu+:} false; then : | |
14078 $as_echo_n "(cached) " >&6 | |
14079 else | |
14080 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the | |
14081 # optstring is necessary for programs like m4 that have POSIX-mandated | |
14082 # semantics for supporting options interspersed with files. | |
14083 # Also, since getopt_long is a GNU extension, we require optind=0. | |
14084 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT; | |
14085 # so take care to revert to the correct (non-)export state. | |
14086 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }' | |
14087 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in | |
14088 xx) gl_had_POSIXLY_CORRECT=exported ;; | |
14089 x) gl_had_POSIXLY_CORRECT=yes ;; | |
14090 *) gl_had_POSIXLY_CORRECT= ;; | |
14091 esac | |
14092 POSIXLY_CORRECT=1 | |
14093 export POSIXLY_CORRECT | |
14094 if test "$cross_compiling" = yes; then : | |
14095 case $host_os:$ac_cv_have_decl_optreset in | |
14096 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;; | |
14097 *:yes) gl_cv_func_getopt_gnu=no;; | |
14098 *) gl_cv_func_getopt_gnu=yes;; | |
14099 esac | |
14100 | |
14101 else | |
14102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14103 /* end confdefs.h. */ | |
14104 #include <getopt.h> | |
14105 #include <stddef.h> | |
14106 #include <string.h> | |
14107 | |
14108 int | |
14109 main () | |
14110 { | |
14111 | |
14112 int result = 0; | |
14113 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw, | |
14114 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5, | |
14115 OSF/1 5.1, Solaris 10. */ | |
14116 { | |
14117 char *myargv[3]; | |
14118 myargv[0] = "conftest"; | |
14119 myargv[1] = "-+"; | |
14120 myargv[2] = 0; | |
14121 opterr = 0; | |
14122 if (getopt (2, myargv, "+a") != '?') | |
14123 result |= 1; | |
14124 } | |
14125 /* This code succeeds on glibc 2.8, mingw, | |
14126 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11, | |
14127 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */ | |
14128 { | |
14129 char *argv[] = { "program", "-p", "foo", "bar", NULL }; | |
14130 | |
14131 optind = 1; | |
14132 if (getopt (4, argv, "p::") != 'p') | |
14133 result |= 2; | |
14134 else if (optarg != NULL) | |
14135 result |= 4; | |
14136 else if (getopt (4, argv, "p::") != -1) | |
14137 result |= 6; | |
14138 else if (optind != 2) | |
14139 result |= 8; | |
14140 } | |
14141 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */ | |
14142 { | |
14143 char *argv[] = { "program", "foo", "-p", NULL }; | |
14144 optind = 0; | |
14145 if (getopt (3, argv, "-p") != 1) | |
14146 result |= 16; | |
14147 else if (getopt (3, argv, "-p") != 'p') | |
14148 result |= 32; | |
14149 } | |
14150 /* This code fails on glibc 2.11. */ | |
14151 { | |
14152 char *argv[] = { "program", "-b", "-a", NULL }; | |
14153 optind = opterr = 0; | |
14154 if (getopt (3, argv, "+:a:b") != 'b') | |
14155 result |= 64; | |
14156 else if (getopt (3, argv, "+:a:b") != ':') | |
14157 result |= 64; | |
14158 } | |
14159 return result; | |
14160 | |
14161 ; | |
14162 return 0; | |
14163 } | |
14164 _ACEOF | |
14165 if ac_fn_c_try_run "$LINENO"; then : | |
14166 gl_cv_func_getopt_gnu=yes | |
14167 else | |
14168 gl_cv_func_getopt_gnu=no | |
14169 fi | |
14170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
14171 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14172 fi | |
14173 | |
14174 case $gl_had_POSIXLY_CORRECT in | |
14175 exported) ;; | |
14176 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;; | |
14177 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;; | |
14178 esac | |
14179 | |
14180 fi | |
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5 | |
14182 $as_echo "$gl_cv_func_getopt_gnu" >&6; } | |
14183 if test "$gl_cv_func_getopt_gnu" = "no"; then | |
14184 gl_replace_getopt=yes | |
14185 fi | |
14186 fi | |
14187 | |
14188 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default" | |
14189 if test "x$ac_cv_have_decl_getenv" = xyes; then : | |
14190 ac_have_decl=1 | |
14191 else | |
14192 ac_have_decl=0 | |
14193 fi | |
14194 | |
14195 cat >>confdefs.h <<_ACEOF | |
14196 #define HAVE_DECL_GETENV $ac_have_decl | |
14197 _ACEOF | |
14198 | |
14199 | |
14200 | |
14201 | |
14202 | |
14203 | |
14204 if test -n "$gl_replace_getopt"; then : | |
14205 | |
14206 | |
14207 | |
14208 GETOPT_H=getopt.h | |
14209 | |
14210 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h | |
14211 | |
14212 | |
14213 | |
14214 GNULIB_UNISTD_H_GETOPT=1 | |
14215 | |
14216 | |
14217 | |
14218 | |
14219 | |
14220 | |
14221 | |
14222 | |
14223 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext" | |
14224 | |
14225 | |
14226 | |
14227 | |
14228 | |
14229 | |
14230 | |
14231 | |
14232 | |
14233 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext" | |
14234 | |
14235 | |
14236 | |
14237 | |
14238 | |
14239 | |
14240 fi | |
14241 | |
14242 | |
14243 | |
14244 GNULIB_MKTIME=0; | |
14245 GNULIB_NANOSLEEP=0; | |
14246 GNULIB_STRPTIME=0; | |
14247 GNULIB_TIMEGM=0; | |
14248 GNULIB_TIME_R=0; | |
14249 HAVE_DECL_LOCALTIME_R=1; | |
14250 HAVE_NANOSLEEP=1; | |
14251 HAVE_STRPTIME=1; | |
14252 HAVE_TIMEGM=1; | |
14253 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK; | |
14254 REPLACE_MKTIME=GNULIB_PORTCHECK; | |
14255 REPLACE_NANOSLEEP=GNULIB_PORTCHECK; | |
14256 REPLACE_TIMEGM=GNULIB_PORTCHECK; | |
14257 | |
14258 | |
14259 | |
14260 | |
14261 for ac_func in $ac_func_list | |
14262 do : | |
14263 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
14264 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
14265 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
14266 cat >>confdefs.h <<_ACEOF | |
14267 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
14268 _ACEOF | |
14269 | |
14270 fi | |
14271 done | |
14272 | |
14273 | |
14274 | |
14275 | |
14276 gl_cv_c_multiarch=no | |
14277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14278 /* end confdefs.h. */ | |
14279 #ifndef __APPLE_CC__ | |
14280 not a universal capable compiler | |
14281 #endif | |
14282 typedef int dummy; | |
14283 | |
14284 _ACEOF | |
14285 if ac_fn_c_try_compile "$LINENO"; then : | |
14286 | |
14287 arch= | |
14288 prev= | |
14289 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do | |
14290 if test -n "$prev"; then | |
14291 case $word in | |
14292 i?86 | x86_64 | ppc | ppc64) | |
14293 if test -z "$arch" || test "$arch" = "$word"; then | |
14294 arch="$word" | |
14295 else | |
14296 gl_cv_c_multiarch=yes | |
14297 fi | |
14298 ;; | |
14299 esac | |
14300 prev= | |
14301 else | |
14302 if test "x$word" = "x-arch"; then | |
14303 prev=arch | |
14304 fi | |
14305 fi | |
14306 done | |
14307 | |
14308 fi | |
14309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14310 if test $gl_cv_c_multiarch = yes; then | |
14311 | |
14312 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
14313 | |
14314 APPLE_UNIVERSAL_BUILD=1 | |
14315 else | |
14316 APPLE_UNIVERSAL_BUILD=0 | |
14317 fi | |
14318 | |
14319 | |
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | |
14321 $as_echo_n "checking for inline... " >&6; } | |
14322 if ${ac_cv_c_inline+:} false; then : | |
14323 $as_echo_n "(cached) " >&6 | |
14324 else | |
14325 ac_cv_c_inline=no | |
14326 for ac_kw in inline __inline__ __inline; do | |
14327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14328 /* end confdefs.h. */ | |
14329 #ifndef __cplusplus | |
14330 typedef int foo_t; | |
14331 static $ac_kw foo_t static_foo () {return 0; } | |
14332 $ac_kw foo_t foo () {return 0; } | |
14333 #endif | |
14334 | |
14335 _ACEOF | |
14336 if ac_fn_c_try_compile "$LINENO"; then : | |
14337 ac_cv_c_inline=$ac_kw | |
14338 fi | |
14339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14340 test "$ac_cv_c_inline" != no && break | |
14341 done | |
14342 | |
14343 fi | |
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | |
14345 $as_echo "$ac_cv_c_inline" >&6; } | |
14346 | |
14347 case $ac_cv_c_inline in | |
14348 inline | yes) ;; | |
14349 *) | |
14350 case $ac_cv_c_inline in | |
14351 no) ac_val=;; | |
14352 *) ac_val=$ac_cv_c_inline;; | |
14353 esac | |
14354 cat >>confdefs.h <<_ACEOF | |
14355 #ifndef __cplusplus | |
14356 #define inline $ac_val | |
14357 #endif | |
14358 _ACEOF | |
14359 ;; | |
14360 esac | |
14361 | |
14362 | |
14363 REPLACE_NULL=0; | |
14364 HAVE_WCHAR_T=1; | |
14365 STDDEF_H=''; | |
14366 | |
14367 | |
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 | |
14369 $as_echo_n "checking for wchar_t... " >&6; } | |
14370 if ${gt_cv_c_wchar_t+:} false; then : | |
14371 $as_echo_n "(cached) " >&6 | |
14372 else | |
14373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14374 /* end confdefs.h. */ | |
14375 #include <stddef.h> | |
14376 wchar_t foo = (wchar_t)'\0'; | |
14377 int | |
14378 main () | |
14379 { | |
14380 | |
14381 ; | |
14382 return 0; | |
14383 } | |
14384 _ACEOF | |
14385 if ac_fn_c_try_compile "$LINENO"; then : | |
14386 gt_cv_c_wchar_t=yes | |
14387 else | |
14388 gt_cv_c_wchar_t=no | |
14389 fi | |
14390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14391 fi | |
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 | |
14393 $as_echo "$gt_cv_c_wchar_t" >&6; } | |
14394 if test $gt_cv_c_wchar_t = yes; then | |
14395 | |
14396 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h | |
14397 | |
14398 fi | |
14399 | |
14400 | |
14401 | |
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 | 14402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 |
13875 $as_echo_n "checking for C/C++ restrict keyword... " >&6; } | 14403 $as_echo_n "checking for C/C++ restrict keyword... " >&6; } |
13876 if ${ac_cv_c_restrict+:} false; then : | 14404 if ${ac_cv_c_restrict+:} false; then : |
13877 $as_echo_n "(cached) " >&6 | 14405 $as_echo_n "(cached) " >&6 |
13878 else | 14406 else |
14116 gl_source_base='lib' | 14644 gl_source_base='lib' |
14117 # Code from module arg-nonnull: | 14645 # Code from module arg-nonnull: |
14118 # Code from module c++defs: | 14646 # Code from module c++defs: |
14119 # Code from module extensions: | 14647 # Code from module extensions: |
14120 # Code from module ftoastr: | 14648 # Code from module ftoastr: |
14649 | |
14650 # Code from module getopt-gnu: | |
14651 | |
14652 | |
14653 | |
14654 | |
14655 | |
14656 | |
14657 | |
14658 $as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h | |
14659 | |
14660 | |
14661 # Code from module getopt-posix: | |
14662 | |
14663 | |
14664 | |
14665 | |
14666 | |
14667 if test -n "$gl_replace_getopt"; then : | |
14668 | |
14669 | |
14670 | |
14671 GETOPT_H=getopt.h | |
14672 | |
14673 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h | |
14674 | |
14675 | |
14676 | |
14677 GNULIB_UNISTD_H_GETOPT=1 | |
14678 | |
14679 | |
14680 | |
14681 | |
14682 | |
14683 | |
14684 | |
14685 | |
14686 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext" | |
14687 | |
14688 | |
14689 | |
14690 | |
14691 | |
14692 | |
14693 | |
14694 | |
14695 | |
14696 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext" | |
14697 | |
14698 | |
14699 | |
14700 | |
14701 | |
14702 | |
14703 fi | |
14704 | |
14705 | |
14706 # Code from module gettext-h: | |
14707 | |
14121 | 14708 |
14122 # Code from module include_next: | 14709 # Code from module include_next: |
14123 # Code from module intprops: | 14710 # Code from module intprops: |
14124 # Code from module mktime: | 14711 # Code from module mktime: |
14125 | 14712 |
14558 | 15145 |
14559 | 15146 |
14560 | 15147 |
14561 $as_echo "#define GNULIB_TEST_TIME_R 1" >>confdefs.h | 15148 $as_echo "#define GNULIB_TEST_TIME_R 1" >>confdefs.h |
14562 | 15149 |
15150 | |
15151 | |
15152 # Code from module unistd: | |
15153 | |
15154 | |
15155 | |
15156 | |
15157 | |
15158 | |
15159 | |
15160 | |
15161 | |
15162 | |
15163 if test $gl_cv_have_include_next = yes; then | |
15164 gl_cv_next_unistd_h='<'unistd.h'>' | |
15165 else | |
15166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5 | |
15167 $as_echo_n "checking absolute name of <unistd.h>... " >&6; } | |
15168 if ${gl_cv_next_unistd_h+:} false; then : | |
15169 $as_echo_n "(cached) " >&6 | |
15170 else | |
15171 | |
15172 if test $ac_cv_header_unistd_h = yes; then | |
15173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15174 /* end confdefs.h. */ | |
15175 #include <unistd.h> | |
15176 | |
15177 _ACEOF | |
15178 case "$host_os" in | |
15179 aix*) gl_absname_cpp="$ac_cpp -C" ;; | |
15180 *) gl_absname_cpp="$ac_cpp" ;; | |
15181 esac | |
15182 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | | |
15183 sed -n '\#/unistd.h#{ | |
15184 s#.*"\(.*/unistd.h\)".*#\1# | |
15185 s#^/[^/]#//&# | |
15186 p | |
15187 q | |
15188 }'`'"' | |
15189 else | |
15190 gl_cv_next_unistd_h='<'unistd.h'>' | |
15191 fi | |
15192 | |
15193 fi | |
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5 | |
15195 $as_echo "$gl_cv_next_unistd_h" >&6; } | |
15196 fi | |
15197 NEXT_UNISTD_H=$gl_cv_next_unistd_h | |
15198 | |
15199 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then | |
15200 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' | |
15201 gl_next_as_first_directive='<'unistd.h'>' | |
15202 else | |
15203 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' | |
15204 gl_next_as_first_directive=$gl_cv_next_unistd_h | |
15205 fi | |
15206 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive | |
15207 | |
15208 | |
15209 | |
15210 | |
15211 | |
15212 if test $ac_cv_header_unistd_h = yes; then | |
15213 HAVE_UNISTD_H=1 | |
15214 else | |
15215 HAVE_UNISTD_H=0 | |
15216 fi | |
15217 | |
15218 | |
15219 | |
15220 for gl_func in chown dup2 dup3 environ euidaccess faccessat fchdir fchownat fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell lchown link linkat lseek pipe pipe2 pread pwrite readlink readlinkat rmdir sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do | |
15221 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` | |
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 | |
15223 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } | |
15224 if eval \${$as_gl_Symbol+:} false; then : | |
15225 $as_echo_n "(cached) " >&6 | |
15226 else | |
15227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15228 /* end confdefs.h. */ | |
15229 #include <unistd.h> | |
15230 /* Some systems declare various items in the wrong headers. */ | |
15231 #if !(defined __GLIBC__ && !defined __UCLIBC__) | |
15232 # include <fcntl.h> | |
15233 # include <stdio.h> | |
15234 # include <stdlib.h> | |
15235 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ | |
15236 # include <io.h> | |
15237 # endif | |
15238 #endif | |
15239 | |
15240 int | |
15241 main () | |
15242 { | |
15243 #undef $gl_func | |
15244 (void) $gl_func; | |
15245 ; | |
15246 return 0; | |
15247 } | |
15248 _ACEOF | |
15249 if ac_fn_c_try_compile "$LINENO"; then : | |
15250 eval "$as_gl_Symbol=yes" | |
15251 else | |
15252 eval "$as_gl_Symbol=no" | |
15253 fi | |
15254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15255 fi | |
15256 eval ac_res=\$$as_gl_Symbol | |
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
15258 $as_echo "$ac_res" >&6; } | |
15259 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : | |
15260 cat >>confdefs.h <<_ACEOF | |
15261 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 | |
15262 _ACEOF | |
15263 | |
15264 eval ac_cv_have_decl_$gl_func=yes | |
15265 fi | |
15266 done | |
14563 | 15267 |
14564 | 15268 |
14565 # Code from module warn-on-use: | 15269 # Code from module warn-on-use: |
14566 # End of code from modules | 15270 # End of code from modules |
14567 | 15271 |