Changeset 1477 in Sophya
- Timestamp:
- Apr 25, 2001, 10:52:35 AM (24 years ago)
- Location:
- trunk/ArchTOIPipe
- Files:
-
- 4 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/Kernel/toi.h
r1464 r1477 4 4 5 5 #include "config.h" 6 #include <vector> 7 using namespace std; 6 8 7 9 #include <pthread.h> -
trunk/ArchTOIPipe/Makefile.in
r1365 r1477 68 68 rm -f *.o 69 69 rm -rf rii_files ii_files cxxrep cxx_repository 70 for d in kernel processors sophya; do \ 71 if [ -d $d ]; then \ 72 cd $d; $(MAKE) clean \ 73 fi \ 74 done 70 75 71 SRCFILES=@srcfiles@ 76 %: $(srcdir)/pipes/%.cc build_kernel build_processors build_sophya 77 cd pipes; $(MAKE) $@ 72 78 73 FILES=$(patsubst %.c,%.o,$(SRCFILES:.cc=.o)) 79 build_kernel: 80 cd kernel; $(MAKE) 74 81 75 %: %.o $(FILES) 76 $(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -pthread -o $@ -lm82 build_processors: 83 cd processors; $(MAKE) 77 84 78 %.o:$(srcdir)/%.cc 79 $(COMPILE.cc) -pthread -o $@ $< 85 build_sophya: 86 ifeq ($(USE_SOPHYA),1) 87 if [ -f sophya ]; then \ 88 cd sophya; $(MAKE) \ 89 fi 90 else 91 echo "no sophya" 92 endif 80 93 81 94 82 95 83 %.d: $(srcdir)/%.cc84 $(SHELL) -ec 'gcc -MM $(CPPFLAGS) -I. $< \85 | sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@; \86 [ -s $@ ] || rm -f $@'87 88 include $(SRCFILES:.cc=.d) -
trunk/ArchTOIPipe/config.h
r1365 r1477 16 16 #define int_4 long 17 17 #endif 18 19 #if SIZEOF_LONG == 8 20 #define int_8 long 21 #else 22 #error long is not 8 bytes... 23 #endif 18 24 #endif 19 25 -
trunk/ArchTOIPipe/configure
r1407 r1477 454 454 # A filename unique to this package, relative to the directory that 455 455 # configure is in, which we can look for to find out if srcdir is correct. 456 ac_unique_file= toi.cc456 ac_unique_file=kernel/toi.cc 457 457 458 458 # Find the source files, if location was not specified. … … 545 545 fi 546 546 547 # Extract the first word of "gcc", so it can be a program name with args. 548 set dummy gcc; ac_word=$2 549 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 550 echo "configure:551: checking for $ac_word" >&5 551 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 552 echo $ac_n "(cached) $ac_c" 1>&6 553 else 554 if test -n "$CC"; then 555 ac_cv_prog_CC="$CC" # Let the user override the test. 556 else 557 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 558 ac_dummy="$PATH" 559 for ac_dir in $ac_dummy; do 560 test -z "$ac_dir" && ac_dir=. 561 if test -f $ac_dir/$ac_word; then 562 ac_cv_prog_CC="gcc" 563 break 564 fi 565 done 566 IFS="$ac_save_ifs" 567 fi 568 fi 569 CC="$ac_cv_prog_CC" 570 if test -n "$CC"; then 571 echo "$ac_t""$CC" 1>&6 572 else 573 echo "$ac_t""no" 1>&6 574 fi 575 576 if test -z "$CC"; then 577 # Extract the first word of "cc", so it can be a program name with args. 578 set dummy cc; ac_word=$2 579 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 580 echo "configure:581: checking for $ac_word" >&5 581 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 582 echo $ac_n "(cached) $ac_c" 1>&6 583 else 584 if test -n "$CC"; then 585 ac_cv_prog_CC="$CC" # Let the user override the test. 586 else 587 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 588 ac_prog_rejected=no 589 ac_dummy="$PATH" 590 for ac_dir in $ac_dummy; do 591 test -z "$ac_dir" && ac_dir=. 592 if test -f $ac_dir/$ac_word; then 593 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 594 ac_prog_rejected=yes 595 continue 596 fi 597 ac_cv_prog_CC="cc" 598 break 599 fi 600 done 601 IFS="$ac_save_ifs" 602 if test $ac_prog_rejected = yes; then 603 # We found a bogon in the path, so make sure we never use it. 604 set dummy $ac_cv_prog_CC 605 shift 606 if test $# -gt 0; then 607 # We chose a different compiler from the bogus one. 608 # However, it has the same basename, so the bogon will be chosen 609 # first if we set CC to just the basename; use the full file name. 610 shift 611 set dummy "$ac_dir/$ac_word" "$@" 612 shift 613 ac_cv_prog_CC="$@" 614 fi 615 fi 616 fi 617 fi 618 CC="$ac_cv_prog_CC" 619 if test -n "$CC"; then 620 echo "$ac_t""$CC" 1>&6 621 else 622 echo "$ac_t""no" 1>&6 623 fi 624 625 if test -z "$CC"; then 626 case "`uname -s`" in 627 *win32* | *WIN32*) 628 # Extract the first word of "cl", so it can be a program name with args. 629 set dummy cl; ac_word=$2 630 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 631 echo "configure:632: checking for $ac_word" >&5 632 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 633 echo $ac_n "(cached) $ac_c" 1>&6 634 else 635 if test -n "$CC"; then 636 ac_cv_prog_CC="$CC" # Let the user override the test. 637 else 638 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 639 ac_dummy="$PATH" 640 for ac_dir in $ac_dummy; do 641 test -z "$ac_dir" && ac_dir=. 642 if test -f $ac_dir/$ac_word; then 643 ac_cv_prog_CC="cl" 644 break 645 fi 646 done 647 IFS="$ac_save_ifs" 648 fi 649 fi 650 CC="$ac_cv_prog_CC" 651 if test -n "$CC"; then 652 echo "$ac_t""$CC" 1>&6 653 else 654 echo "$ac_t""no" 1>&6 655 fi 656 ;; 657 esac 658 fi 659 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 660 fi 661 662 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 663 echo "configure:664: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 664 665 ac_ext=c 666 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 667 ac_cpp='$CPP $CPPFLAGS' 668 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 669 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 670 cross_compiling=$ac_cv_prog_cc_cross 671 672 cat > conftest.$ac_ext << EOF 673 674 #line 675 "configure" 675 #include "confdefs.h" 676 677 main(){return(0);} 678 EOF 679 if { (eval echo configure:680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 680 ac_cv_prog_cc_works=yes 681 # If we can't run a trivial program, we are probably using a cross compiler. 682 if (./conftest; exit) 2>/dev/null; then 683 ac_cv_prog_cc_cross=no 684 else 685 ac_cv_prog_cc_cross=yes 686 fi 687 else 688 echo "configure: failed program was:" >&5 689 cat conftest.$ac_ext >&5 690 ac_cv_prog_cc_works=no 691 fi 692 rm -fr conftest* 693 ac_ext=c 694 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 695 ac_cpp='$CPP $CPPFLAGS' 696 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 697 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 698 cross_compiling=$ac_cv_prog_cc_cross 699 700 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 701 if test $ac_cv_prog_cc_works = no; then 702 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 703 fi 704 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 705 echo "configure:706: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 706 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 707 cross_compiling=$ac_cv_prog_cc_cross 708 709 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 710 echo "configure:711: checking whether we are using GNU C" >&5 711 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 712 echo $ac_n "(cached) $ac_c" 1>&6 713 else 714 cat > conftest.c <<EOF 715 #ifdef __GNUC__ 716 yes; 717 #endif 718 EOF 719 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 720 ac_cv_prog_gcc=yes 721 else 722 ac_cv_prog_gcc=no 723 fi 724 fi 725 726 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 727 728 if test $ac_cv_prog_gcc = yes; then 729 GCC=yes 730 else 731 GCC= 732 fi 733 734 ac_test_CFLAGS="${CFLAGS+set}" 735 ac_save_CFLAGS="$CFLAGS" 736 CFLAGS= 737 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 738 echo "configure:739: checking whether ${CC-cc} accepts -g" >&5 739 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 740 echo $ac_n "(cached) $ac_c" 1>&6 741 else 742 echo 'void f(){}' > conftest.c 743 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 744 ac_cv_prog_cc_g=yes 745 else 746 ac_cv_prog_cc_g=no 747 fi 748 rm -f conftest* 749 750 fi 751 752 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 753 if test "$ac_test_CFLAGS" = set; then 754 CFLAGS="$ac_save_CFLAGS" 755 elif test $ac_cv_prog_cc_g = yes; then 756 if test "$GCC" = yes; then 757 CFLAGS="-g -O2" 758 else 759 CFLAGS="-g" 760 fi 761 else 762 if test "$GCC" = yes; then 763 CFLAGS="-O2" 764 else 765 CFLAGS= 766 fi 767 fi 768 547 769 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 548 770 do … … 550 772 set dummy $ac_prog; ac_word=$2 551 773 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 552 echo "configure: 553: checking for $ac_word" >&5774 echo "configure:775: checking for $ac_word" >&5 553 775 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then 554 776 echo $ac_n "(cached) $ac_c" 1>&6 … … 582 804 583 805 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 584 echo "configure: 585: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5806 echo "configure:807: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 585 807 586 808 ac_ext=C … … 593 815 cat > conftest.$ac_ext << EOF 594 816 595 #line 596"configure"817 #line 818 "configure" 596 818 #include "confdefs.h" 597 819 598 820 int main(){return(0);} 599 821 EOF 600 if { (eval echo configure: 601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then822 if { (eval echo configure:823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 601 823 ac_cv_prog_cxx_works=yes 602 824 # If we can't run a trivial program, we are probably using a cross compiler. … … 624 846 fi 625 847 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 626 echo "configure: 627: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5848 echo "configure:849: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 627 849 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 628 850 cross_compiling=$ac_cv_prog_cxx_cross 629 851 630 852 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 631 echo "configure: 632: checking whether we are using GNU C++" >&5853 echo "configure:854: checking whether we are using GNU C++" >&5 632 854 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then 633 855 echo $ac_n "(cached) $ac_c" 1>&6 … … 638 860 #endif 639 861 EOF 640 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure: 641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then862 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 641 863 ac_cv_prog_gxx=yes 642 864 else … … 657 879 CXXFLAGS= 658 880 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 659 echo "configure: 660: checking whether ${CXX-g++} accepts -g" >&5881 echo "configure:882: checking whether ${CXX-g++} accepts -g" >&5 660 882 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then 661 883 echo $ac_n "(cached) $ac_c" 1>&6 … … 690 912 691 913 echo $ac_n "checking size of short""... $ac_c" 1>&6 692 echo "configure: 693: checking size of short" >&5914 echo "configure:915: checking size of short" >&5 693 915 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then 694 916 echo $ac_n "(cached) $ac_c" 1>&6 … … 698 920 else 699 921 cat > conftest.$ac_ext <<EOF 700 #line 701"configure"922 #line 923 "configure" 701 923 #include "confdefs.h" 702 924 #include <stdio.h> … … 709 931 } 710 932 EOF 711 if { (eval echo configure: 712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null933 if { (eval echo configure:934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 712 934 then 713 935 ac_cv_sizeof_short=`cat conftestval` … … 729 951 730 952 echo $ac_n "checking size of int""... $ac_c" 1>&6 731 echo "configure: 732: checking size of int" >&5953 echo "configure:954: checking size of int" >&5 732 954 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then 733 955 echo $ac_n "(cached) $ac_c" 1>&6 … … 737 959 else 738 960 cat > conftest.$ac_ext <<EOF 739 #line 740"configure"961 #line 962 "configure" 740 962 #include "confdefs.h" 741 963 #include <stdio.h> … … 748 970 } 749 971 EOF 750 if { (eval echo configure: 751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null972 if { (eval echo configure:973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 751 973 then 752 974 ac_cv_sizeof_int=`cat conftestval` … … 768 990 769 991 echo $ac_n "checking size of long""... $ac_c" 1>&6 770 echo "configure: 771: checking size of long" >&5992 echo "configure:993: checking size of long" >&5 771 993 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then 772 994 echo $ac_n "(cached) $ac_c" 1>&6 … … 776 998 else 777 999 cat > conftest.$ac_ext <<EOF 778 #line 779"configure"1000 #line 1001 "configure" 779 1001 #include "confdefs.h" 780 1002 #include <stdio.h> … … 787 1009 } 788 1010 EOF 789 if { (eval echo configure: 790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1011 if { (eval echo configure:1012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 790 1012 then 791 1013 ac_cv_sizeof_long=`cat conftestval` … … 807 1029 808 1030 echo $ac_n "checking size of float""... $ac_c" 1>&6 809 echo "configure: 810: checking size of float" >&51031 echo "configure:1032: checking size of float" >&5 810 1032 if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then 811 1033 echo $ac_n "(cached) $ac_c" 1>&6 … … 815 1037 else 816 1038 cat > conftest.$ac_ext <<EOF 817 #line 818"configure"1039 #line 1040 "configure" 818 1040 #include "confdefs.h" 819 1041 #include <stdio.h> … … 826 1048 } 827 1049 EOF 828 if { (eval echo configure: 829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1050 if { (eval echo configure:1051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 829 1051 then 830 1052 ac_cv_sizeof_float=`cat conftestval` … … 846 1068 847 1069 echo $ac_n "checking size of double""... $ac_c" 1>&6 848 echo "configure: 849: checking size of double" >&51070 echo "configure:1071: checking size of double" >&5 849 1071 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then 850 1072 echo $ac_n "(cached) $ac_c" 1>&6 … … 854 1076 else 855 1077 cat > conftest.$ac_ext <<EOF 856 #line 857"configure"1078 #line 1079 "configure" 857 1079 #include "confdefs.h" 858 1080 #include <stdio.h> … … 865 1087 } 866 1088 EOF 867 if { (eval echo configure: 868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1089 if { (eval echo configure:1090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 868 1090 then 869 1091 ac_cv_sizeof_double=`cat conftestval` … … 885 1107 886 1108 echo $ac_n "checking size of long double""... $ac_c" 1>&6 887 echo "configure: 888: checking size of long double" >&51109 echo "configure:1110: checking size of long double" >&5 888 1110 if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then 889 1111 echo $ac_n "(cached) $ac_c" 1>&6 … … 893 1115 else 894 1116 cat > conftest.$ac_ext <<EOF 895 #line 896"configure"1117 #line 1118 "configure" 896 1118 #include "confdefs.h" 897 1119 #include <stdio.h> … … 904 1126 } 905 1127 EOF 906 if { (eval echo configure: 907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1128 if { (eval echo configure:1129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 907 1129 then 908 1130 ac_cv_sizeof_long_double=`cat conftestval` … … 926 1148 927 1149 echo $ac_n "checking "for cfitsio lib"""... $ac_c" 1>&6 928 echo "configure: 929: checking "for cfitsio lib"" >&51150 echo "configure:1151: checking "for cfitsio lib"" >&5 929 1151 MACHDIR=`uname`-$CXX 930 1152 if test -f $ARCHBASEREP/$MACHDIR/Libs/libcfitsio.a; then … … 951 1173 952 1174 echo $ac_n "checking "for cfitsio includes"""... $ac_c" 1>&6 953 echo "configure: 954: checking "for cfitsio includes"" >&51175 echo "configure:1176: checking "for cfitsio includes"" >&5 954 1176 if test -f $CFITSIODIR/fitsio.h; then 955 1177 cfitsincdir='-I$(CFITSIODIR)' … … 963 1185 964 1186 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 965 echo "configure: 966: checking for sin in -lm" >&51187 echo "configure:1188: checking for sin in -lm" >&5 966 1188 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` 967 1189 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 971 1193 LIBS="-lm $LIBS" 972 1194 cat > conftest.$ac_ext <<EOF 973 #line 974"configure"1195 #line 1196 "configure" 974 1196 #include "confdefs.h" 975 1197 /* Override any gcc2 internal prototype to avoid an error. */ … … 982 1204 ; return 0; } 983 1205 EOF 984 if { (eval echo configure: 985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1206 if { (eval echo configure:1207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 985 1207 rm -rf conftest* 986 1208 eval "ac_cv_lib_$ac_lib_var=yes" … … 1010 1232 1011 1233 1012 echo $ac_n "checking "for source files in distribution"""... $ac_c" 1>&61013 echo "configure:1014: checking "for source files in distribution"" >&51014 srcfiles=""1015 curd=`pwd`1016 cd $srcdir1017 for n in *.cc; do1018 grep -q 'main(.*)' $n || srcfiles="$srcfiles $n"1019 done1020 cd $curd1021 1022 echo "$ac_t"""done"" 1>&61023 1024 1234 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1025 echo "configure:1 026: checking how to run the C preprocessor" >&51235 echo "configure:1236: checking how to run the C preprocessor" >&5 1026 1236 # On Suns, sometimes $CPP names a directory. 1027 1237 if test -n "$CPP" && test -d "$CPP"; then … … 1038 1248 # not just through cpp. 1039 1249 cat > conftest.$ac_ext <<EOF 1040 #line 1 041 "configure"1250 #line 1251 "configure" 1041 1251 #include "confdefs.h" 1042 1252 #include <assert.h> … … 1044 1254 EOF 1045 1255 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1046 { (eval echo configure:1 047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1256 { (eval echo configure:1257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1047 1257 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1048 1258 if test -z "$ac_err"; then … … 1055 1265 CPP="${CC-cc} -E -traditional-cpp" 1056 1266 cat > conftest.$ac_ext <<EOF 1057 #line 1 058 "configure"1267 #line 1268 "configure" 1058 1268 #include "confdefs.h" 1059 1269 #include <assert.h> … … 1061 1271 EOF 1062 1272 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1063 { (eval echo configure:1 064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1273 { (eval echo configure:1274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1064 1274 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1065 1275 if test -z "$ac_err"; then … … 1072 1282 CPP="${CC-cc} -nologo -E" 1073 1283 cat > conftest.$ac_ext <<EOF 1074 #line 1 075 "configure"1284 #line 1285 "configure" 1075 1285 #include "confdefs.h" 1076 1286 #include <assert.h> … … 1078 1288 EOF 1079 1289 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1080 { (eval echo configure:1 081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1290 { (eval echo configure:1291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1081 1291 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1082 1292 if test -z "$ac_err"; then … … 1103 1313 1104 1314 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1105 echo "configure:1 106: checking for ANSI C header files" >&51315 echo "configure:1316: checking for ANSI C header files" >&5 1106 1316 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1107 1317 echo $ac_n "(cached) $ac_c" 1>&6 1108 1318 else 1109 1319 cat > conftest.$ac_ext <<EOF 1110 #line 1 111 "configure"1320 #line 1321 "configure" 1111 1321 #include "confdefs.h" 1112 1322 #include <stdlib.h> … … 1116 1326 EOF 1117 1327 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1118 { (eval echo configure:1 119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1328 { (eval echo configure:1329: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1119 1329 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1120 1330 if test -z "$ac_err"; then … … 1133 1343 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1134 1344 cat > conftest.$ac_ext <<EOF 1135 #line 1 136 "configure"1345 #line 1346 "configure" 1136 1346 #include "confdefs.h" 1137 1347 #include <string.h> … … 1151 1361 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1152 1362 cat > conftest.$ac_ext <<EOF 1153 #line 1 154 "configure"1363 #line 1364 "configure" 1154 1364 #include "confdefs.h" 1155 1365 #include <stdlib.h> … … 1172 1382 else 1173 1383 cat > conftest.$ac_ext <<EOF 1174 #line 1 175 "configure"1384 #line 1385 "configure" 1175 1385 #include "confdefs.h" 1176 1386 #include <ctype.h> … … 1183 1393 1184 1394 EOF 1185 if { (eval echo configure:1 186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1395 if { (eval echo configure:1396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1186 1396 then 1187 1397 : … … 1206 1416 fi 1207 1417 1418 1419 outfiles="Makefile kernel/Makefile processors/Makefile pipes/Makefile" 1420 if [ $use_sophya = 1 ]; then 1421 outfiles="$outfiles sophya/Makefile" 1422 fi 1208 1423 1209 1424 trap '' 1 2 15 … … 1307 1522 ac_given_srcdir=$srcdir 1308 1523 1309 trap 'rm -fr `echo " Makefileconf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 151524 trap 'rm -fr `echo "$outfiles conf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 1310 1525 EOF 1311 1526 cat >> $CONFIG_STATUS <<EOF … … 1340 1555 s%@mandir@%$mandir%g 1341 1556 s%@use_sophya@%$use_sophya%g 1557 s%@CC@%$CC%g 1342 1558 s%@CXX@%$CXX%g 1343 1559 s%@cfitslibdir@%$cfitslibdir%g 1344 1560 s%@cfitsincdir@%$cfitsincdir%g 1345 s%@srcfiles@%$srcfiles%g1346 1561 s%@CPP@%$CPP%g 1347 1562 … … 1386 1601 cat >> $CONFIG_STATUS <<EOF 1387 1602 1388 CONFIG_FILES=\${CONFIG_FILES-" Makefile"}1603 CONFIG_FILES=\${CONFIG_FILES-"$outfiles"} 1389 1604 EOF 1390 1605 cat >> $CONFIG_STATUS <<\EOF … … 1559 1774 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 1560 1775 1776 -
trunk/ArchTOIPipe/configure.in
r1365 r1477 1 1 dnl Process this file with autoconf to produce a configure script. 2 AC_INIT( toi.cc)2 AC_INIT(kernel/toi.cc) 3 3 AC_CONFIG_HEADER(conf.h) 4 4 … … 16 16 fi 17 17 18 AC_PROG_CC 18 19 AC_PROG_CXX 19 20 … … 67 68 AC_CHECK_LIB(m, sin) 68 69 69 AC_MSG_CHECKING("for source files in distribution")70 srcfiles=""71 curd=`pwd`72 cd $srcdir73 for n in *.cc; do74 grep -q 'main(.*)' $n || srcfiles="$srcfiles $n"75 done76 cd $curd77 AC_SUBST(srcfiles)78 AC_MSG_RESULT("done")79 80 70 dnl Checks for header files. 81 71 AC_HEADER_STDC 82 72 83 AC_OUTPUT(Makefile) 73 outfiles="Makefile kernel/Makefile processors/Makefile pipes/Makefile" 74 if [[ $use_sophya = 1 ]]; then 75 outfiles="$outfiles sophya/Makefile" 76 fi 77 78 AC_OUTPUT($outfiles) 79
Note:
See TracChangeset
for help on using the changeset viewer.