comparison src/configure.in @ 5757:4b78922d557c v7.4.223

updated for version 7.4.223 Problem: Still using an older autoconf version. Solution: Switch to autoconf 2.69.
author Bram Moolenaar <bram@vim.org>
date Thu, 27 Mar 2014 17:40:59 +0100
parents 9123b4d3ef05
children 092b8f61021b
comparison
equal deleted inserted replaced
5756:ade5febe214e 5757:4b78922d557c
1395 cflags_save=$CFLAGS 1395 cflags_save=$CFLAGS
1396 CFLAGS="$CFLAGS $PYTHON_CFLAGS" 1396 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
1397 ldflags_save=$LDFLAGS 1397 ldflags_save=$LDFLAGS
1398 dnl -ldl must go first to make this work on Archlinux (Roland Puntaier) 1398 dnl -ldl must go first to make this work on Archlinux (Roland Puntaier)
1399 LDFLAGS="-ldl $LDFLAGS" 1399 LDFLAGS="-ldl $LDFLAGS"
1400 AC_RUN_IFELSE([ 1400 AC_RUN_IFELSE([AC_LANG_SOURCE([
1401 #include <dlfcn.h> 1401 #include <dlfcn.h>
1402 /* If this program fails, then RTLD_GLOBAL is needed. 1402 /* If this program fails, then RTLD_GLOBAL is needed.
1403 * RTLD_GLOBAL will be used and then it is not possible to 1403 * RTLD_GLOBAL will be used and then it is not possible to
1404 * have both python versions enabled in the same vim instance. 1404 * have both python versions enabled in the same vim instance.
1405 * Only the first python version used will be switched on. 1405 * Only the first python version used will be switched on.
1428 { 1428 {
1429 int not_needed = 0; 1429 int not_needed = 0;
1430 if (no_rtl_global_needed_for("${python_INSTSONAME}", "${vi_cv_path_python_pfx}")) 1430 if (no_rtl_global_needed_for("${python_INSTSONAME}", "${vi_cv_path_python_pfx}"))
1431 not_needed = 1; 1431 not_needed = 1;
1432 return !not_needed; 1432 return !not_needed;
1433 }], 1433 }])],
1434 [AC_MSG_RESULT(yes);AC_DEFINE(PY_NO_RTLD_GLOBAL)], [AC_MSG_RESULT(no)]) 1434 [AC_MSG_RESULT(yes);AC_DEFINE(PY_NO_RTLD_GLOBAL)], [AC_MSG_RESULT(no)])
1435 1435
1436 CFLAGS=$cflags_save 1436 CFLAGS=$cflags_save
1437 LDFLAGS=$ldflags_save 1437 LDFLAGS=$ldflags_save
1438 1438
1440 cflags_save=$CFLAGS 1440 cflags_save=$CFLAGS
1441 CFLAGS="$CFLAGS $PYTHON3_CFLAGS" 1441 CFLAGS="$CFLAGS $PYTHON3_CFLAGS"
1442 ldflags_save=$LDFLAGS 1442 ldflags_save=$LDFLAGS
1443 dnl -ldl must go first to make this work on Archlinux (Roland Puntaier) 1443 dnl -ldl must go first to make this work on Archlinux (Roland Puntaier)
1444 LDFLAGS="-ldl $LDFLAGS" 1444 LDFLAGS="-ldl $LDFLAGS"
1445 AC_RUN_IFELSE([ 1445 AC_RUN_IFELSE([AC_LANG_SOURCE([
1446 #include <dlfcn.h> 1446 #include <dlfcn.h>
1447 #include <wchar.h> 1447 #include <wchar.h>
1448 /* If this program fails, then RTLD_GLOBAL is needed. 1448 /* If this program fails, then RTLD_GLOBAL is needed.
1449 * RTLD_GLOBAL will be used and then it is not possible to 1449 * RTLD_GLOBAL will be used and then it is not possible to
1450 * have both python versions enabled in the same vim instance. 1450 * have both python versions enabled in the same vim instance.
1474 { 1474 {
1475 int not_needed = 0; 1475 int not_needed = 0;
1476 if (no_rtl_global_needed_for("${python3_INSTSONAME}", L"${vi_cv_path_python3_pfx}")) 1476 if (no_rtl_global_needed_for("${python3_INSTSONAME}", L"${vi_cv_path_python3_pfx}"))
1477 not_needed = 1; 1477 not_needed = 1;
1478 return !not_needed; 1478 return !not_needed;
1479 }], 1479 }])],
1480 [AC_MSG_RESULT(yes);AC_DEFINE(PY3_NO_RTLD_GLOBAL)], [AC_MSG_RESULT(no)]) 1480 [AC_MSG_RESULT(yes);AC_DEFINE(PY3_NO_RTLD_GLOBAL)], [AC_MSG_RESULT(no)])
1481 1481
1482 CFLAGS=$cflags_save 1482 CFLAGS=$cflags_save
1483 LDFLAGS=$ldflags_save 1483 LDFLAGS=$ldflags_save
1484 1484
2735 2735
2736 dnl Checks for libraries and include files. 2736 dnl Checks for libraries and include files.
2737 2737
2738 AC_CACHE_CHECK([whether toupper is broken], [vim_cv_toupper_broken], 2738 AC_CACHE_CHECK([whether toupper is broken], [vim_cv_toupper_broken],
2739 [ 2739 [
2740 AC_RUN_IFELSE([[ 2740 AC_RUN_IFELSE([AC_LANG_SOURCE([[
2741 #include "confdefs.h" 2741 #include "confdefs.h"
2742 #include <ctype.h> 2742 #include <ctype.h>
2743 #if STDC_HEADERS 2743 #if STDC_HEADERS
2744 # include <stdlib.h> 2744 # include <stdlib.h>
2745 # include <stddef.h> 2745 # include <stddef.h>
2746 #endif 2746 #endif
2747 main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); } 2747 main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
2748 ]],[ 2748 ]])],[
2749 vim_cv_toupper_broken=yes 2749 vim_cv_toupper_broken=yes
2750 ],[ 2750 ],[
2751 vim_cv_toupper_broken=no 2751 vim_cv_toupper_broken=no
2752 ],[ 2752 ],[
2753 AC_MSG_ERROR(cross-compiling: please set 'vim_cv_toupper_broken') 2753 AC_MSG_ERROR(cross-compiling: please set 'vim_cv_toupper_broken')
2991 Or specify the name of the library with --with-tlib.])) 2991 Or specify the name of the library with --with-tlib.]))
2992 fi 2992 fi
2993 2993
2994 AC_CACHE_CHECK([whether we talk terminfo], [vim_cv_terminfo], 2994 AC_CACHE_CHECK([whether we talk terminfo], [vim_cv_terminfo],
2995 [ 2995 [
2996 AC_RUN_IFELSE([[ 2996 AC_RUN_IFELSE([AC_LANG_SOURCE([[
2997 #include "confdefs.h" 2997 #include "confdefs.h"
2998 #ifdef HAVE_TERMCAP_H 2998 #ifdef HAVE_TERMCAP_H
2999 # include <termcap.h> 2999 # include <termcap.h>
3000 #endif 3000 #endif
3001 #ifdef HAVE_STRING_H 3001 #ifdef HAVE_STRING_H
3005 # include <stdlib.h> 3005 # include <stdlib.h>
3006 # include <stddef.h> 3006 # include <stddef.h>
3007 #endif 3007 #endif
3008 main() 3008 main()
3009 {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); } 3009 {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
3010 ]],[ 3010 ]])],[
3011 vim_cv_terminfo=no 3011 vim_cv_terminfo=no
3012 ],[ 3012 ],[
3013 vim_cv_terminfo=yes 3013 vim_cv_terminfo=yes
3014 ],[ 3014 ],[
3015 AC_MSG_ERROR(cross-compiling: please set 'vim_cv_terminfo') 3015 AC_MSG_ERROR(cross-compiling: please set 'vim_cv_terminfo')
3021 fi 3021 fi
3022 3022
3023 if test "x$olibs" != "x$LIBS"; then 3023 if test "x$olibs" != "x$LIBS"; then
3024 AC_CACHE_CHECK([what tgetent() returns for an unknown terminal], [vim_cv_tgent], 3024 AC_CACHE_CHECK([what tgetent() returns for an unknown terminal], [vim_cv_tgent],
3025 [ 3025 [
3026 AC_RUN_IFELSE([[ 3026 AC_RUN_IFELSE([AC_LANG_SOURCE([[
3027 #include "confdefs.h" 3027 #include "confdefs.h"
3028 #ifdef HAVE_TERMCAP_H 3028 #ifdef HAVE_TERMCAP_H
3029 # include <termcap.h> 3029 # include <termcap.h>
3030 #endif 3030 #endif
3031 #if STDC_HEADERS 3031 #if STDC_HEADERS
3032 # include <stdlib.h> 3032 # include <stdlib.h>
3033 # include <stddef.h> 3033 # include <stddef.h>
3034 #endif 3034 #endif
3035 main() 3035 main()
3036 {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); } 3036 {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
3037 ]],[ 3037 ]])],[
3038 vim_cv_tgent=zero 3038 vim_cv_tgent=zero
3039 ],[ 3039 ],[
3040 vim_cv_tgent=non-zero 3040 vim_cv_tgent=non-zero
3041 ],[ 3041 ],[
3042 AC_MSG_ERROR(failed to compile test program.) 3042 AC_MSG_ERROR(failed to compile test program.)
3156 dnl 3156 dnl
3157 dnl support provided by Luke Mewburn <lm@rmit.edu.au>, 931222 3157 dnl support provided by Luke Mewburn <lm@rmit.edu.au>, 931222
3158 rm -f conftest_grp 3158 rm -f conftest_grp
3159 AC_CACHE_CHECK([default tty permissions/group], [vim_cv_tty_group], 3159 AC_CACHE_CHECK([default tty permissions/group], [vim_cv_tty_group],
3160 [ 3160 [
3161 AC_RUN_IFELSE([[ 3161 AC_RUN_IFELSE([AC_LANG_SOURCE([[
3162 #include "confdefs.h" 3162 #include "confdefs.h"
3163 #include <sys/types.h> 3163 #include <sys/types.h>
3164 #if STDC_HEADERS 3164 #if STDC_HEADERS
3165 # include <stdlib.h> 3165 # include <stdlib.h>
3166 # include <stddef.h> 3166 # include <stddef.h>
3192 exit(1); 3192 exit(1);
3193 fprintf(fp, "%d\n", sb.st_gid); 3193 fprintf(fp, "%d\n", sb.st_gid);
3194 fclose(fp); 3194 fclose(fp);
3195 exit(0); 3195 exit(0);
3196 } 3196 }
3197 ]],[ 3197 ]])],[
3198 if test -f conftest_grp; then 3198 if test -f conftest_grp; then
3199 vim_cv_tty_group=`cat conftest_grp` 3199 vim_cv_tty_group=`cat conftest_grp`
3200 if test "x$vim_cv_tty_mode" = "x" ; then 3200 if test "x$vim_cv_tty_mode" = "x" ; then
3201 vim_cv_tty_mode=0620 3201 vim_cv_tty_mode=0620
3202 fi 3202 fi
3250 3250
3251 dnl tricky stuff: try to find out if getcwd() is implemented with 3251 dnl tricky stuff: try to find out if getcwd() is implemented with
3252 dnl system("sh -c pwd") 3252 dnl system("sh -c pwd")
3253 AC_CACHE_CHECK([getcwd implementation is broken], [vim_cv_getcwd_broken], 3253 AC_CACHE_CHECK([getcwd implementation is broken], [vim_cv_getcwd_broken],
3254 [ 3254 [
3255 AC_RUN_IFELSE([[ 3255 AC_RUN_IFELSE([AC_LANG_SOURCE([[
3256 #include "confdefs.h" 3256 #include "confdefs.h"
3257 #ifdef HAVE_UNISTD_H 3257 #ifdef HAVE_UNISTD_H
3258 #include <unistd.h> 3258 #include <unistd.h>
3259 #endif 3259 #endif
3260 char *dagger[] = { "IFS=pwd", 0 }; 3260 char *dagger[] = { "IFS=pwd", 0 };
3263 char buffer[500]; 3263 char buffer[500];
3264 extern char **environ; 3264 extern char **environ;
3265 environ = dagger; 3265 environ = dagger;
3266 return getcwd(buffer, 500) ? 0 : 1; 3266 return getcwd(buffer, 500) ? 0 : 1;
3267 } 3267 }
3268 ]],[ 3268 ]])],[
3269 vim_cv_getcwd_broken=no 3269 vim_cv_getcwd_broken=no
3270 ],[ 3270 ],[
3271 vim_cv_getcwd_broken=yes 3271 vim_cv_getcwd_broken=yes
3272 ],[ 3272 ],[
3273 AC_MSG_ERROR(cross-compiling: please set 'vim_cv_getcwd_broken') 3273 AC_MSG_ERROR(cross-compiling: please set 'vim_cv_getcwd_broken')
3306 AC_MSG_RESULT(yes); AC_DEFINE(HAVE_ST_BLKSIZE), 3306 AC_MSG_RESULT(yes); AC_DEFINE(HAVE_ST_BLKSIZE),
3307 AC_MSG_RESULT(no)) 3307 AC_MSG_RESULT(no))
3308 3308
3309 AC_CACHE_CHECK([whether stat() ignores a trailing slash], [vim_cv_stat_ignores_slash], 3309 AC_CACHE_CHECK([whether stat() ignores a trailing slash], [vim_cv_stat_ignores_slash],
3310 [ 3310 [
3311 AC_RUN_IFELSE([[ 3311 AC_RUN_IFELSE([AC_LANG_SOURCE([[
3312 #include "confdefs.h" 3312 #include "confdefs.h"
3313 #if STDC_HEADERS 3313 #if STDC_HEADERS
3314 # include <stdlib.h> 3314 # include <stdlib.h>
3315 # include <stddef.h> 3315 # include <stddef.h>
3316 #endif 3316 #endif
3317 #include <sys/types.h> 3317 #include <sys/types.h>
3318 #include <sys/stat.h> 3318 #include <sys/stat.h>
3319 main() {struct stat st; exit(stat("configure/", &st) != 0); } 3319 main() {struct stat st; exit(stat("configure/", &st) != 0); }
3320 ]],[ 3320 ]])],[
3321 vim_cv_stat_ignores_slash=yes 3321 vim_cv_stat_ignores_slash=yes
3322 ],[ 3322 ],[
3323 vim_cv_stat_ignores_slash=no 3323 vim_cv_stat_ignores_slash=no
3324 ],[ 3324 ],[
3325 AC_MSG_ERROR(cross-compiling: please set 'vim_cv_stat_ignores_slash') 3325 AC_MSG_ERROR(cross-compiling: please set 'vim_cv_stat_ignores_slash')
3629 exit(0); /* libc version works properly. */ 3629 exit(0); /* libc version works properly. */
3630 }'] 3630 }']
3631 3631
3632 AC_CACHE_CHECK([whether memmove handles overlaps],[vim_cv_memmove_handles_overlap], 3632 AC_CACHE_CHECK([whether memmove handles overlaps],[vim_cv_memmove_handles_overlap],
3633 [ 3633 [
3634 AC_RUN_IFELSE([[#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog]], 3634 AC_RUN_IFELSE([AC_LANG_SOURCE([[#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog]])],
3635 [ 3635 [
3636 vim_cv_memmove_handles_overlap=yes 3636 vim_cv_memmove_handles_overlap=yes
3637 ],[ 3637 ],[
3638 vim_cv_memmove_handles_overlap=no 3638 vim_cv_memmove_handles_overlap=no
3639 ],[ 3639 ],[
3644 if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then 3644 if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
3645 AC_DEFINE(USEMEMMOVE) 3645 AC_DEFINE(USEMEMMOVE)
3646 else 3646 else
3647 AC_CACHE_CHECK([whether bcopy handles overlaps],[vim_cv_bcopy_handles_overlap], 3647 AC_CACHE_CHECK([whether bcopy handles overlaps],[vim_cv_bcopy_handles_overlap],
3648 [ 3648 [
3649 AC_RUN_IFELSE([[#define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog]], 3649 AC_RUN_IFELSE([AC_LANG_SOURCE([[#define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog]])],
3650 [ 3650 [
3651 vim_cv_bcopy_handles_overlap=yes 3651 vim_cv_bcopy_handles_overlap=yes
3652 ],[ 3652 ],[
3653 vim_cv_bcopy_handles_overlap=no 3653 vim_cv_bcopy_handles_overlap=no
3654 ],[ 3654 ],[
3659 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then 3659 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
3660 AC_DEFINE(USEBCOPY) 3660 AC_DEFINE(USEBCOPY)
3661 else 3661 else
3662 AC_CACHE_CHECK([whether memcpy handles overlaps],[vim_cv_memcpy_handles_overlap], 3662 AC_CACHE_CHECK([whether memcpy handles overlaps],[vim_cv_memcpy_handles_overlap],
3663 [ 3663 [
3664 AC_RUN_IFELSE([[#define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog]], 3664 AC_RUN_IFELSE([AC_LANG_SOURCE([[#define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog]])],
3665 [ 3665 [
3666 vim_cv_memcpy_handles_overlap=yes 3666 vim_cv_memcpy_handles_overlap=yes
3667 ],[ 3667 ],[
3668 vim_cv_memcpy_handles_overlap=no 3668 vim_cv_memcpy_handles_overlap=no
3669 ],[ 3669 ],[