Ticket #36220: patch-configure.diff
File patch-configure.diff, 2.9 KB (added by Tom.Schoonjans@…, 12 years ago) |
---|
-
xraylib-2.16.
old new 17732 17732 # credits goes to momjian, I think. I'd like to put the right name 17733 17733 # in the credits, if someone can point me in the right direction... ? 17734 17734 # 17735 if test -n "$ac_python_libdir" -a -n "$ac_python_library" \ 17736 -a x"$ac_python_library" != x"$ac_python_soname" 17737 then 17735 #echo "ac_python_libdir: x$ac_python_libdirx" 17736 #echo "ac_python_library: x$ac_python_libraryx" 17737 #echo "ac_python_soname: x$ac_python_sonamex" 17738 #if test -n "$ac_python_libdir" -a -n "$ac_python_library" \ 17739 # -a x"$ac_python_library" != x"$ac_python_soname" 17740 #then 17738 17741 # use the official shared library 17739 17742 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"` 17740 PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"17741 else17742 # old way: use libpython from python_configdir17743 ac_python_libdir=`$PYTHON -c \17744 "from distutils.sysconfig import get_python_lib as f; \17745 import os; \17746 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`17747 17743 PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version" 17748 fi 17744 #else 17745 # # old way: use libpython from python_configdir 17746 # ac_python_libdir=`$PYTHON -c \ 17747 # "from distutils.sysconfig import get_python_lib as f; \ 17748 # import os; \ 17749 # print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"` 17750 # PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version" 17751 #fi 17749 17752 17750 17753 if test -z "PYTHON_LDFLAGS"; then 17751 17754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: … … 17800 17803 if test -z "$PYTHON_EXTRA_LIBS"; then 17801 17804 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \ 17802 17805 conf = distutils.sysconfig.get_config_var; \ 17803 print (conf('LOCALMODLIBS') + ' ' + conf('L IBS'))"`17806 print (conf('LOCALMODLIBS') + ' ' + conf('LDFLAGS') + ' ' + conf('LIBS'))"` 17804 17807 fi 17805 17808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5 17806 17809 $as_echo "$PYTHON_EXTRA_LIBS" >&6; } … … 18080 18083 JAVA_TEST=Test.java 18081 18084 CLASS_TEST=Test.class 18082 18085 cat << \EOF > $JAVA_TEST 18083 /* #line 1808 3"configure" */18086 /* #line 18086 "configure" */ 18084 18087 public class Test { 18085 18088 } 18086 18089 EOF … … 18267 18270 if $UUDECODE Test.uue; then 18268 18271 ac_cv_prog_uudecode_base64=yes 18269 18272 else 18270 echo "configure: 1827 0: uudecode had trouble decoding base 64 file 'Test.uue'" >&518273 echo "configure: 18273: uudecode had trouble decoding base 64 file 'Test.uue'" >&5 18271 18274 echo "configure: failed file was:" >&5 18272 18275 cat Test.uue >&5 18273 18276 ac_cv_prog_uudecode_base64=no … … 18298 18301 CLASS_TEST=Test.class 18299 18302 TEST=Test 18300 18303 cat << \EOF > $JAVA_TEST 18301 /* [#]line 1830 1"configure" */18304 /* [#]line 18304 "configure" */ 18302 18305 public class Test { 18303 18306 public static void main (String args[]) { 18304 18307 System.exit (0);