comparison src/configure.in @ 3038:e8ee4b4ebf41 v7.3.291

updated for version 7.3.291 Problem: Configure doesn't work properly with Python3. Solution: Put -ldl before $LDFLAGS. Add PY3_NO_RTLD_GLOBAL. (Roland Puntaier)
author Bram Moolenaar <bram@vim.org>
date Fri, 02 Sep 2011 12:27:25 +0200
parents 52512eddb876
children 4e9c5338f44c
comparison
equal deleted inserted replaced
3037:5dc0dbe052c0 3038:e8ee4b4ebf41
1159 AC_DEFINE(DYNAMIC_PYTHON3) 1159 AC_DEFINE(DYNAMIC_PYTHON3)
1160 AC_MSG_CHECKING(whether we can do without RTLD_GLOBAL for Python) 1160 AC_MSG_CHECKING(whether we can do without RTLD_GLOBAL for Python)
1161 cflags_save=$CFLAGS 1161 cflags_save=$CFLAGS
1162 CFLAGS="$CFLAGS $PYTHON_CFLAGS" 1162 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
1163 ldflags_save=$LDFLAGS 1163 ldflags_save=$LDFLAGS
1164 LDFLAGS="$LDFLAGS -ldl" 1164 dnl -ldl must go first to make this work on Archlinux (Roland Puntaier)
1165 LDFLAGS="-ldl $LDFLAGS"
1165 AC_RUN_IFELSE([ 1166 AC_RUN_IFELSE([
1166 #include <dlfcn.h> 1167 #include <dlfcn.h>
1167 /* If this program fails, then RTLD_GLOBAL is needed. 1168 /* If this program fails, then RTLD_GLOBAL is needed.
1168 * RTLD_GLOBAL will be used and then it is not possible to 1169 * RTLD_GLOBAL will be used and then it is not possible to
1169 * have both python versions enabled in the same vim instance. 1170 * have both python versions enabled in the same vim instance.
1203 1204
1204 AC_MSG_CHECKING(whether we can do without RTLD_GLOBAL for Python3) 1205 AC_MSG_CHECKING(whether we can do without RTLD_GLOBAL for Python3)
1205 cflags_save=$CFLAGS 1206 cflags_save=$CFLAGS
1206 CFLAGS="$CFLAGS $PYTHON3_CFLAGS" 1207 CFLAGS="$CFLAGS $PYTHON3_CFLAGS"
1207 ldflags_save=$LDFLAGS 1208 ldflags_save=$LDFLAGS
1208 LDFLAGS="$LDFLAGS -ldl" 1209 dnl -ldl must go first to make this work on Archlinux (Roland Puntaier)
1210 LDFLAGS="-ldl $LDFLAGS"
1209 AC_RUN_IFELSE([ 1211 AC_RUN_IFELSE([
1210 #include <dlfcn.h> 1212 #include <dlfcn.h>
1211 #include <wchar.h> 1213 #include <wchar.h>
1212 /* If this program fails, then RTLD_GLOBAL is needed. 1214 /* If this program fails, then RTLD_GLOBAL is needed.
1213 * RTLD_GLOBAL will be used and then it is not possible to 1215 * RTLD_GLOBAL will be used and then it is not possible to