source:
patches/2.0/vim-7.0-cross_compile-1.patch@
7fc909b
Last change on this file since 7fc909b was e9be59d, checked in by , 18 years ago | |
---|---|
|
|
File size: 24.1 KB |
-
src/auto/configure
Submitted By: Joe Ciccone <joeciccone@crazyeyesoft.com Date: 2006-06-06 Initial Package Version: 7.0 Upstream Status: Unknown Origin: Joe Ciccone and OpenEmbedded Description: This patch makes it possible to cross_compile vim. diff -Naur vim70.orig/src/auto/configure vim70/src/auto/configure
old new 2796 2796 fi 2797 2797 fi 2798 2798 2799 if test "$cross_compiling" = yes; then2800 { { echo "$as_me:$LINENO: error: cannot compile a simple program, check CC and CFLAGS2801 (cross compiling doesn't work)" >&52802 echo "$as_me: error: cannot compile a simple program, check CC and CFLAGS2803 (cross compiling doesn't work)" >&2;}2804 { (exit 1); exit 1; }; }2805 fi2806 2807 2799 test "$GCC" = yes && CPP_MM=M; 2808 2800 2809 2801 if test -f ./toolcheck; then … … 3410 3402 3411 3403 3412 3404 3413 have_local_include=''3414 have_local_lib=''3415 if test "$GCC" = yes; then3416 echo 'void f(){}' > conftest.c3417 have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep '/usr/local/include'`3418 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep '/usr/local/lib'`3419 rm -f conftest.c conftest.o3420 fi3421 if test -z "$have_local_lib" -a -d /usr/local/lib; then3422 tt=`echo "$LDFLAGS" | sed -e 's+-L/usr/local/lib ++g' -e 's+-L/usr/local/lib$++g'`3423 if test "$tt" = "$LDFLAGS"; then3424 LDFLAGS="$LDFLAGS -L/usr/local/lib"3425 fi3426 fi3427 if test -z "$have_local_include" -a -d /usr/local/include; then3428 tt=`echo "$CPPFLAGS" | sed -e 's+-I/usr/local/include ++g' -e 's+-I/usr/local/include$++g'`3429 if test "$tt" = "$CPPFLAGS"; then3430 CPPFLAGS="$CPPFLAGS -I/usr/local/include"3431 fi3432 fi3433 3434 3405 echo "$as_me:$LINENO: checking --with-vim-name argument" >&5 3435 3406 echo $ECHO_N "checking --with-vim-name argument... $ECHO_C" >&6 3436 3407 … … 9273 9244 echo "$as_me:$LINENO: checking quality of toupper" >&5 9274 9245 echo $ECHO_N "checking quality of toupper... $ECHO_C" >&6 9275 9246 if test "$cross_compiling" = yes; then 9276 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 9277 echo "$as_me: error: failed to compile test program" >&2;} 9278 { (exit 1); exit 1; }; } 9247 { echo "$as_me:$LINENO: WARNING: failed to compile test program" >&5 9248 echo "$as_me: WARNING: failed to compile test program" >&2;} 9279 9249 else 9280 9250 cat >conftest.$ac_ext <<_ACEOF 9281 9251 /* confdefs.h. */ … … 11748 11718 echo "$as_me:$LINENO: checking whether we talk terminfo" >&5 11749 11719 echo $ECHO_N "checking whether we talk terminfo... $ECHO_C" >&6 11750 11720 if test "$cross_compiling" = yes; then 11751 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5 11752 echo "$as_me: error: failed to compile test program." >&2;} 11753 { (exit 1); exit 1; }; } 11721 { echo "$as_me:$LINENO: WARNING: failed to compile test program." >&5 11722 echo "$as_me: WARNING: failed to compile test program." >&2;} 11723 cat >>confdefs.h <<\_ACEOF 11724 #define TERMINFO 1 11725 _ACEOF 11726 11754 11727 else 11755 11728 cat >conftest.$ac_ext <<_ACEOF 11756 11729 /* confdefs.h. */ … … 12313 12286 echo $ECHO_N "checking default tty permissions/group... $ECHO_C" >&6 12314 12287 rm -f conftest_grp 12315 12288 if test "$cross_compiling" = yes; then 12316 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 12317 echo "$as_me: error: failed to compile test program" >&2;} 12318 { (exit 1); exit 1; }; } 12289 { echo "$as_me:$LINENO: WARNING: failed to compile test program" >&5 12290 echo "$as_me: WARNING: failed to compile test program" >&2;} 12319 12291 else 12320 12292 cat >conftest.$ac_ext <<_ACEOF 12321 12293 /* confdefs.h. */ … … 12542 12514 echo "$as_me:$LINENO: checking getcwd implementation" >&5 12543 12515 echo $ECHO_N "checking getcwd implementation... $ECHO_C" >&6 12544 12516 if test "$cross_compiling" = yes; then 12545 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 12546 echo "$as_me: error: failed to compile test program" >&2;} 12547 { (exit 1); exit 1; }; } 12517 { echo "$as_me:$LINENO: WARNING: failed to compile test program" >&5 12518 echo "$as_me: WARNING: failed to compile test program" >&2;} 12548 12519 else 12549 12520 cat >conftest.$ac_ext <<_ACEOF 12550 12521 /* confdefs.h. */ … … 12805 12776 12806 12777 echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5 12807 12778 echo $ECHO_N "checking whether stat() ignores a trailing slash... $ECHO_C" >&6 12808 if test "$cross_compiling" = yes; then 12809 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 12810 echo "$as_me: error: failed to compile test program" >&2;} 12811 { (exit 1); exit 1; }; } 12779 if test "${ac_cv_func_stat_ignores_trailing_slash+set}" = set; then 12780 echo $ECHO_N "(cached) $ECHO_C" >&6 12781 else 12782 if test "$cross_compiling" = yes; then 12783 ac_cv_func_stat_ignores_trailing_slash=no 12784 12812 12785 else 12813 12786 cat >conftest.$ac_ext <<_ACEOF 12814 12787 /* confdefs.h. */ … … 12831 12804 ac_status=$? 12832 12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12833 12806 (exit $ac_status); }; }; then 12834 echo "$as_me:$LINENO: result: yes" >&5 12835 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF 12836 #define STAT_IGNORES_SLASH 1 12837 _ACEOF 12838 12807 ac_cv_func_stat_ignores_trailing_slash=yes 12839 12808 else 12840 12809 echo "$as_me: program exited with status $ac_status" >&5 12841 12810 echo "$as_me: failed program was:" >&5 12842 12811 sed 's/^/| /' conftest.$ac_ext >&5 12843 12812 12844 12813 ( exit $ac_status ) 12845 echo "$as_me:$LINENO: result: no" >&5 12846 echo "${ECHO_T}no" >&6 12814 ac_cv_func_stat_ignores_trailing_slash=no 12847 12815 fi 12848 12816 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12849 12817 fi 12818 fi 12819 echo "$as_me:$LINENO: result: $ac_cv_func_stat_ignores_trailing_slash" >&5 12820 echo "${ECHO_T}$ac_cv_func_stat_ignores_trailing_slash" >&6 12821 12822 if X"$ac_cv_func_stat_ignores_trailing_slash" = Xyes; then 12823 cat >>confdefs.h <<\_ACEOF 12824 #define STAT_IGNORES_SLASH 1 12825 _ACEOF 12826 12827 fi 12850 12828 12851 12829 echo "$as_me:$LINENO: checking for iconv_open()" >&5 12852 12830 echo $ECHO_N "checking for iconv_open()... $ECHO_C" >&6 … … 13743 13721 fi 13744 13722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13745 13723 13724 echo "$as_me:$LINENO: checking for int" >&5 13725 echo $ECHO_N "checking for int... $ECHO_C" >&6 13726 if test "${ac_cv_type_int+set}" = set; then 13727 echo $ECHO_N "(cached) $ECHO_C" >&6 13728 else 13729 cat >conftest.$ac_ext <<_ACEOF 13730 /* confdefs.h. */ 13731 _ACEOF 13732 cat confdefs.h >>conftest.$ac_ext 13733 cat >>conftest.$ac_ext <<_ACEOF 13734 /* end confdefs.h. */ 13735 $ac_includes_default 13736 int 13737 main () 13738 { 13739 if ((int *) 0) 13740 return 0; 13741 if (sizeof (int)) 13742 return 0; 13743 ; 13744 return 0; 13745 } 13746 _ACEOF 13747 rm -f conftest.$ac_objext 13748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13749 (eval $ac_compile) 2>conftest.er1 13750 ac_status=$? 13751 grep -v '^ *+' conftest.er1 >conftest.err 13752 rm -f conftest.er1 13753 cat conftest.err >&5 13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13755 (exit $ac_status); } && 13756 { ac_try='test -z "$ac_c_werror_flag" 13757 || test ! -s conftest.err' 13758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13759 (eval $ac_try) 2>&5 13760 ac_status=$? 13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13762 (exit $ac_status); }; } && 13763 { ac_try='test -s conftest.$ac_objext' 13764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13765 (eval $ac_try) 2>&5 13766 ac_status=$? 13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13768 (exit $ac_status); }; }; then 13769 ac_cv_type_int=yes 13770 else 13771 echo "$as_me: failed program was:" >&5 13772 sed 's/^/| /' conftest.$ac_ext >&5 13773 13774 ac_cv_type_int=no 13775 fi 13776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13777 fi 13778 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 13779 echo "${ECHO_T}$ac_cv_type_int" >&6 13746 13780 13747 13781 echo "$as_me:$LINENO: checking size of int" >&5 13748 13782 echo $ECHO_N "checking size of int... $ECHO_C" >&6 13749 13783 if test "${ac_cv_sizeof_int+set}" = set; then 13750 13784 echo $ECHO_N "(cached) $ECHO_C" >&6 13751 13785 else 13786 if test "$ac_cv_type_int" = yes; then 13787 # The cast to unsigned long works around a bug in the HP C Compiler 13788 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13789 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13790 # This bug is HP SR number 8606223364. 13752 13791 if test "$cross_compiling" = yes; then 13753 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 13754 echo "$as_me: error: failed to compile test program" >&2;} 13792 # Depending upon the size, compute the lo and hi bounds. 13793 cat >conftest.$ac_ext <<_ACEOF 13794 /* confdefs.h. */ 13795 _ACEOF 13796 cat confdefs.h >>conftest.$ac_ext 13797 cat >>conftest.$ac_ext <<_ACEOF 13798 /* end confdefs.h. */ 13799 $ac_includes_default 13800 int 13801 main () 13802 { 13803 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 13804 test_array [0] = 0 13805 13806 ; 13807 return 0; 13808 } 13809 _ACEOF 13810 rm -f conftest.$ac_objext 13811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13812 (eval $ac_compile) 2>conftest.er1 13813 ac_status=$? 13814 grep -v '^ *+' conftest.er1 >conftest.err 13815 rm -f conftest.er1 13816 cat conftest.err >&5 13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13818 (exit $ac_status); } && 13819 { ac_try='test -z "$ac_c_werror_flag" 13820 || test ! -s conftest.err' 13821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13822 (eval $ac_try) 2>&5 13823 ac_status=$? 13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13825 (exit $ac_status); }; } && 13826 { ac_try='test -s conftest.$ac_objext' 13827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13828 (eval $ac_try) 2>&5 13829 ac_status=$? 13830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13831 (exit $ac_status); }; }; then 13832 ac_lo=0 ac_mid=0 13833 while :; do 13834 cat >conftest.$ac_ext <<_ACEOF 13835 /* confdefs.h. */ 13836 _ACEOF 13837 cat confdefs.h >>conftest.$ac_ext 13838 cat >>conftest.$ac_ext <<_ACEOF 13839 /* end confdefs.h. */ 13840 $ac_includes_default 13841 int 13842 main () 13843 { 13844 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 13845 test_array [0] = 0 13846 13847 ; 13848 return 0; 13849 } 13850 _ACEOF 13851 rm -f conftest.$ac_objext 13852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13853 (eval $ac_compile) 2>conftest.er1 13854 ac_status=$? 13855 grep -v '^ *+' conftest.er1 >conftest.err 13856 rm -f conftest.er1 13857 cat conftest.err >&5 13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13859 (exit $ac_status); } && 13860 { ac_try='test -z "$ac_c_werror_flag" 13861 || test ! -s conftest.err' 13862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13863 (eval $ac_try) 2>&5 13864 ac_status=$? 13865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13866 (exit $ac_status); }; } && 13867 { ac_try='test -s conftest.$ac_objext' 13868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13869 (eval $ac_try) 2>&5 13870 ac_status=$? 13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13872 (exit $ac_status); }; }; then 13873 ac_hi=$ac_mid; break 13874 else 13875 echo "$as_me: failed program was:" >&5 13876 sed 's/^/| /' conftest.$ac_ext >&5 13877 13878 ac_lo=`expr $ac_mid + 1` 13879 if test $ac_lo -le $ac_mid; then 13880 ac_lo= ac_hi= 13881 break 13882 fi 13883 ac_mid=`expr 2 '*' $ac_mid + 1` 13884 fi 13885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13886 done 13887 else 13888 echo "$as_me: failed program was:" >&5 13889 sed 's/^/| /' conftest.$ac_ext >&5 13890 13891 cat >conftest.$ac_ext <<_ACEOF 13892 /* confdefs.h. */ 13893 _ACEOF 13894 cat confdefs.h >>conftest.$ac_ext 13895 cat >>conftest.$ac_ext <<_ACEOF 13896 /* end confdefs.h. */ 13897 $ac_includes_default 13898 int 13899 main () 13900 { 13901 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 13902 test_array [0] = 0 13903 13904 ; 13905 return 0; 13906 } 13907 _ACEOF 13908 rm -f conftest.$ac_objext 13909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13910 (eval $ac_compile) 2>conftest.er1 13911 ac_status=$? 13912 grep -v '^ *+' conftest.er1 >conftest.err 13913 rm -f conftest.er1 13914 cat conftest.err >&5 13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13916 (exit $ac_status); } && 13917 { ac_try='test -z "$ac_c_werror_flag" 13918 || test ! -s conftest.err' 13919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13920 (eval $ac_try) 2>&5 13921 ac_status=$? 13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13923 (exit $ac_status); }; } && 13924 { ac_try='test -s conftest.$ac_objext' 13925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13926 (eval $ac_try) 2>&5 13927 ac_status=$? 13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13929 (exit $ac_status); }; }; then 13930 ac_hi=-1 ac_mid=-1 13931 while :; do 13932 cat >conftest.$ac_ext <<_ACEOF 13933 /* confdefs.h. */ 13934 _ACEOF 13935 cat confdefs.h >>conftest.$ac_ext 13936 cat >>conftest.$ac_ext <<_ACEOF 13937 /* end confdefs.h. */ 13938 $ac_includes_default 13939 int 13940 main () 13941 { 13942 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 13943 test_array [0] = 0 13944 13945 ; 13946 return 0; 13947 } 13948 _ACEOF 13949 rm -f conftest.$ac_objext 13950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13951 (eval $ac_compile) 2>conftest.er1 13952 ac_status=$? 13953 grep -v '^ *+' conftest.er1 >conftest.err 13954 rm -f conftest.er1 13955 cat conftest.err >&5 13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13957 (exit $ac_status); } && 13958 { ac_try='test -z "$ac_c_werror_flag" 13959 || test ! -s conftest.err' 13960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13961 (eval $ac_try) 2>&5 13962 ac_status=$? 13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13964 (exit $ac_status); }; } && 13965 { ac_try='test -s conftest.$ac_objext' 13966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13967 (eval $ac_try) 2>&5 13968 ac_status=$? 13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13970 (exit $ac_status); }; }; then 13971 ac_lo=$ac_mid; break 13972 else 13973 echo "$as_me: failed program was:" >&5 13974 sed 's/^/| /' conftest.$ac_ext >&5 13975 13976 ac_hi=`expr '(' $ac_mid ')' - 1` 13977 if test $ac_mid -le $ac_hi; then 13978 ac_lo= ac_hi= 13979 break 13980 fi 13981 ac_mid=`expr 2 '*' $ac_mid` 13982 fi 13983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13984 done 13985 else 13986 echo "$as_me: failed program was:" >&5 13987 sed 's/^/| /' conftest.$ac_ext >&5 13988 13989 ac_lo= ac_hi= 13990 fi 13991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13992 fi 13993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13994 # Binary search between lo and hi bounds. 13995 while test "x$ac_lo" != "x$ac_hi"; do 13996 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 13997 cat >conftest.$ac_ext <<_ACEOF 13998 /* confdefs.h. */ 13999 _ACEOF 14000 cat confdefs.h >>conftest.$ac_ext 14001 cat >>conftest.$ac_ext <<_ACEOF 14002 /* end confdefs.h. */ 14003 $ac_includes_default 14004 int 14005 main () 14006 { 14007 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 14008 test_array [0] = 0 14009 14010 ; 14011 return 0; 14012 } 14013 _ACEOF 14014 rm -f conftest.$ac_objext 14015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14016 (eval $ac_compile) 2>conftest.er1 14017 ac_status=$? 14018 grep -v '^ *+' conftest.er1 >conftest.err 14019 rm -f conftest.er1 14020 cat conftest.err >&5 14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14022 (exit $ac_status); } && 14023 { ac_try='test -z "$ac_c_werror_flag" 14024 || test ! -s conftest.err' 14025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14026 (eval $ac_try) 2>&5 14027 ac_status=$? 14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14029 (exit $ac_status); }; } && 14030 { ac_try='test -s conftest.$ac_objext' 14031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14032 (eval $ac_try) 2>&5 14033 ac_status=$? 14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14035 (exit $ac_status); }; }; then 14036 ac_hi=$ac_mid 14037 else 14038 echo "$as_me: failed program was:" >&5 14039 sed 's/^/| /' conftest.$ac_ext >&5 14040 14041 ac_lo=`expr '(' $ac_mid ')' + 1` 14042 fi 14043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14044 done 14045 case $ac_lo in 14046 ?*) ac_cv_sizeof_int=$ac_lo;; 14047 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 14048 See \`config.log' for more details." >&5 14049 echo "$as_me: error: cannot compute sizeof (int), 77 14050 See \`config.log' for more details." >&2;} 14051 { (exit 1); exit 1; }; } ;; 14052 esac 14053 else 14054 if test "$cross_compiling" = yes; then 14055 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 14056 See \`config.log' for more details." >&5 14057 echo "$as_me: error: cannot run test program while cross compiling 14058 See \`config.log' for more details." >&2;} 13755 14059 { (exit 1); exit 1; }; } 13756 14060 else 13757 14061 cat >conftest.$ac_ext <<_ACEOF … … 13760 14064 cat confdefs.h >>conftest.$ac_ext 13761 14065 cat >>conftest.$ac_ext <<_ACEOF 13762 14066 /* end confdefs.h. */ 14067 $ac_includes_default 14068 long longval () { return (long) (sizeof (int)); } 14069 unsigned long ulongval () { return (long) (sizeof (int)); } 13763 14070 #include <stdio.h> 13764 main() 13765 { 13766 FILE *f=fopen("conftestval", "w"); 13767 if (!f) exit(1); 13768 fprintf(f, "%d\n", (int)sizeof(int)); 13769 exit(0); 13770 } 14071 #include <stdlib.h> 14072 int 14073 main () 14074 { 14075 14076 FILE *f = fopen ("conftest.val", "w"); 14077 if (! f) 14078 exit (1); 14079 if (((long) (sizeof (int))) < 0) 14080 { 14081 long i = longval (); 14082 if (i != ((long) (sizeof (int)))) 14083 exit (1); 14084 fprintf (f, "%ld\n", i); 14085 } 14086 else 14087 { 14088 unsigned long i = ulongval (); 14089 if (i != ((long) (sizeof (int)))) 14090 exit (1); 14091 fprintf (f, "%lu\n", i); 14092 } 14093 exit (ferror (f) || fclose (f) != 0); 14094 14095 ; 14096 return 0; 14097 } 13771 14098 _ACEOF 13772 14099 rm -f conftest$ac_exeext 13773 14100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 … … 13780 14107 ac_status=$? 13781 14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13782 14109 (exit $ac_status); }; }; then 13783 ac_cv_sizeof_int=`cat conftest val`14110 ac_cv_sizeof_int=`cat conftest.val` 13784 14111 else 13785 14112 echo "$as_me: program exited with status $ac_status" >&5 13786 14113 echo "$as_me: failed program was:" >&5 13787 14114 sed 's/^/| /' conftest.$ac_ext >&5 13788 14115 13789 14116 ( exit $ac_status ) 13790 ac_cv_sizeof_int=0 14117 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 14118 See \`config.log' for more details." >&5 14119 echo "$as_me: error: cannot compute sizeof (int), 77 14120 See \`config.log' for more details." >&2;} 14121 { (exit 1); exit 1; }; } 13791 14122 fi 13792 14123 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13793 14124 fi 13794 14125 fi 13795 14126 rm -f conftest.val 14127 else 14128 ac_cv_sizeof_int=0 14129 fi 14130 fi 13796 14131 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 13797 14132 echo "${ECHO_T}$ac_cv_sizeof_int" >&6 13798 14133 cat >>confdefs.h <<_ACEOF … … 13800 14135 _ACEOF 13801 14136 13802 14137 14138 13803 14139 echo "$as_me:$LINENO: checking whether memmove/bcopy/memcpy handle overlaps" >&5 13804 14140 echo $ECHO_N "checking whether memmove/bcopy/memcpy handle overlaps... $ECHO_C" >&6 13805 14141 bcopy_test_prog=' … … 13818 14154 13819 14155 13820 14156 if test "$cross_compiling" = yes; then 13821 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 13822 echo "$as_me: error: failed to compile test program" >&2;} 13823 { (exit 1); exit 1; }; } 14157 { echo "$as_me:$LINENO: WARNING: failed to compile test program" >&5 14158 echo "$as_me: WARNING: failed to compile test program" >&2;} 13824 14159 else 13825 14160 cat >conftest.$ac_ext <<_ACEOF 13826 14161 /* confdefs.h. */ … … 13853 14188 13854 14189 ( exit $ac_status ) 13855 14190 if test "$cross_compiling" = yes; then 13856 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 13857 echo "$as_me: error: failed to compile test program" >&2;} 13858 { (exit 1); exit 1; }; } 14191 { echo "$as_me:$LINENO: WARNING: failed to compile test program" >&5 14192 echo "$as_me: WARNING: failed to compile test program" >&2;} 13859 14193 else 13860 14194 cat >conftest.$ac_ext <<_ACEOF 13861 14195 /* confdefs.h. */ … … 13888 14222 13889 14223 ( exit $ac_status ) 13890 14224 if test "$cross_compiling" = yes; then 13891 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 13892 echo "$as_me: error: failed to compile test program" >&2;} 13893 { (exit 1); exit 1; }; } 14225 { echo "$as_me:$LINENO: WARNING: failed to compile test program" >&5 14226 echo "$as_me: WARNING: failed to compile test program" >&2;} 13894 14227 else 13895 14228 cat >conftest.$ac_ext <<_ACEOF 13896 14229 /* confdefs.h. */ -
src/configure.in
diff -Naur vim70.orig/src/configure.in vim70/src/configure.in
old new 47 47 fi 48 48 fi 49 49 50 dnl If configure thinks we are cross compiling, there is probably something51 dnl wrong with the CC or CFLAGS settings, give an understandable error message52 if test "$cross_compiling" = yes; then53 AC_MSG_ERROR([cannot compile a simple program, check CC and CFLAGS54 (cross compiling doesn't work)])55 fi56 57 50 dnl gcc-cpp has the wonderful -MM option to produce nicer dependencies. 58 51 dnl But gcc 3.1 changed the meaning! See near the end. 59 52 test "$GCC" = yes && CPP_MM=M; AC_SUBST(CPP_MM) … … 183 176 AC_SUBST(OS_EXTRA_SRC) 184 177 AC_SUBST(OS_EXTRA_OBJ) 185 178 186 dnl Add /usr/local/lib to $LDFLAGS and /usr/local/include to CFLAGS.187 dnl Only when the directory exists and it wasn't there yet.188 dnl For gcc don't do this when it is already in the default search path.189 have_local_include=''190 have_local_lib=''191 if test "$GCC" = yes; then192 echo 'void f(){}' > conftest.c193 dnl -no-cpp-precomp is needed for OS X 10.2 (Ben Fowler)194 have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep '/usr/local/include'`195 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep '/usr/local/lib'`196 rm -f conftest.c conftest.o197 fi198 if test -z "$have_local_lib" -a -d /usr/local/lib; then199 tt=`echo "$LDFLAGS" | sed -e 's+-L/usr/local/lib ++g' -e 's+-L/usr/local/lib$++g'`200 if test "$tt" = "$LDFLAGS"; then201 LDFLAGS="$LDFLAGS -L/usr/local/lib"202 fi203 fi204 if test -z "$have_local_include" -a -d /usr/local/include; then205 tt=`echo "$CPPFLAGS" | sed -e 's+-I/usr/local/include ++g' -e 's+-I/usr/local/include$++g'`206 if test "$tt" = "$CPPFLAGS"; then207 CPPFLAGS="$CPPFLAGS -I/usr/local/include"208 fi209 fi210 211 179 AC_MSG_CHECKING(--with-vim-name argument) 212 180 AC_ARG_WITH(vim-name, [ --with-vim-name=NAME what to call the Vim executable], 213 181 VIMNAME="$withval"; AC_MSG_RESULT($VIMNAME), … … 1977 1945 AC_TRY_RUN([#include <ctype.h> 1978 1946 main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }], 1979 1947 AC_DEFINE(BROKEN_TOUPPER) AC_MSG_RESULT(bad), 1980 AC_MSG_RESULT(good), AC_MSG_ ERROR(failed to compile test program))1948 AC_MSG_RESULT(good), AC_MSG_WARN(failed to compile test program)) 1981 1949 1982 1950 AC_MSG_CHECKING(whether __DATE__ and __TIME__ work) 1983 1951 AC_TRY_COMPILE(, [printf("(" __DATE__ " " __TIME__ ")");], … … 2197 2165 {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }], 2198 2166 AC_MSG_RESULT([no -- we are in termcap land]), 2199 2167 AC_MSG_RESULT([yes -- terminfo spoken here]); AC_DEFINE(TERMINFO), 2200 AC_MSG_ERROR(failed to compile test program.)) 2168 AC_MSG_WARN(failed to compile test program.) 2169 AC_DEFINE(TERMINFO)) 2201 2170 2202 2171 if test "x$olibs" != "x$LIBS"; then 2203 2172 AC_MSG_CHECKING(what tgetent() returns for an unknown terminal) … … 2360 2329 fi 2361 2330 ], 2362 2331 AC_MSG_RESULT([can't determine - assume ptys are world accessable]), 2363 AC_MSG_ ERROR(failed to compile test program))2332 AC_MSG_WARN(failed to compile test program)) 2364 2333 rm -f conftest_grp 2365 2334 2366 2335 dnl Checks for library functions. =================================== … … 2403 2372 AC_MSG_RESULT(it is usable), 2404 2373 AC_MSG_RESULT(it stinks) 2405 2374 AC_DEFINE(BAD_GETCWD), 2406 AC_MSG_ ERROR(failed to compile test program))2375 AC_MSG_WARN(failed to compile test program)) 2407 2376 2408 2377 dnl Check for functions in one big call, to reduce the size of configure 2409 2378 AC_CHECK_FUNCS(bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \ … … 2427 2396 AC_MSG_RESULT(yes); AC_DEFINE(HAVE_ST_BLKSIZE), 2428 2397 AC_MSG_RESULT(no)) 2429 2398 2430 AC_MSG_CHECKING(whether stat() ignores a trailing slash) 2399 AC_CACHE_CHECK([whether stat() ignores a trailing slash], 2400 [ac_cv_func_stat_ignores_trailing_slash], 2431 2401 AC_TRY_RUN( 2432 2402 [#include <sys/types.h> 2433 2403 #include <sys/stat.h> 2434 2404 main() {struct stat st; exit(stat("configure/", &st) != 0); }], 2435 AC_MSG_RESULT(yes); AC_DEFINE(STAT_IGNORES_SLASH), 2436 AC_MSG_RESULT(no), AC_MSG_ERROR(failed to compile test program)) 2405 ac_cv_func_stat_ignores_trailing_slash=yes, 2406 ac_cv_func_stat_ignores_trailing_slash=no, 2407 ac_cv_func_stat_ignores_trailing_slash=no 2408 )) 2409 2410 if X"$ac_cv_func_stat_ignores_trailing_slash" = Xyes; then 2411 AC_DEFINE(STAT_IGNORES_SLASH) 2412 fi 2437 2413 2438 2414 dnl Link with iconv for charset translation, if not found without library. 2439 2415 dnl check for iconv() requires including iconv.h … … 2597 2573 AC_MSG_RESULT(yes); AC_DEFINE(HAVE_SYSCONF), 2598 2574 AC_MSG_RESULT(not usable)) 2599 2575 2600 dnl Our own version of AC_CHECK_SIZEOF(int); fixes a bug when sizeof() can't 2601 dnl be printed with "%d", and avoids a warning for cross-compiling. 2602 2603 AC_MSG_CHECKING(size of int) 2604 AC_CACHE_VAL(ac_cv_sizeof_int, 2605 [AC_TRY_RUN([#include <stdio.h> 2606 main() 2607 { 2608 FILE *f=fopen("conftestval", "w"); 2609 if (!f) exit(1); 2610 fprintf(f, "%d\n", (int)sizeof(int)); 2611 exit(0); 2612 }], 2613 ac_cv_sizeof_int=`cat conftestval`, 2614 ac_cv_sizeof_int=0, 2615 AC_MSG_ERROR(failed to compile test program))]) 2616 AC_MSG_RESULT($ac_cv_sizeof_int) 2617 AC_DEFINE_UNQUOTED(SIZEOF_INT, $ac_cv_sizeof_int) 2576 AC_CHECK_SIZEOF(int) 2618 2577 2619 2578 AC_MSG_CHECKING(whether memmove/bcopy/memcpy handle overlaps) 2620 2579 [bcopy_test_prog=' … … 2640 2599 AC_DEFINE(USEBCOPY) AC_MSG_RESULT(bcopy does), 2641 2600 AC_TRY_RUN([#define mch_memmove(s,d,l) memcpy(d,s,l) $bcopy_test_prog], 2642 2601 AC_DEFINE(USEMEMCPY) AC_MSG_RESULT(memcpy does), AC_MSG_RESULT(no), 2643 AC_MSG_ ERROR(failed to compile test program)),2644 AC_MSG_ ERROR(failed to compile test program)),2645 AC_MSG_ ERROR(failed to compile test program))2602 AC_MSG_WARN(failed to compile test program)), 2603 AC_MSG_WARN(failed to compile test program)), 2604 AC_MSG_WARN(failed to compile test program)) 2646 2605 2647 2606 dnl Check for multibyte locale functions 2648 2607 dnl Find out if _Xsetlocale() is supported by libX11.
Note:
See TracBrowser
for help on using the repository browser.