Skip to content

Commit 0a1a3a9

Browse files
committed
Look for python3.2mu, specifically in Debian 7
1 parent 5af46bd commit 0a1a3a9

2 files changed

Lines changed: 83 additions & 0 deletions

File tree

‎ax_python.m4‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ if test x$ax_python_bin != x; then
6464
if test x$ax_python_lib == xno; then
6565
AC_CHECK_LIB(${ax_python_bin}m, main, ax_python_lib=${ax_python_bin}m, ax_python_lib=no)
6666
fi
67+
if test x$ax_python_lib == xno; then
68+
AC_CHECK_LIB(${ax_python_bin}mu, main, ax_python_lib=${ax_python_bin}mu, ax_python_lib=no)
69+
fi
6770
if test x$ax_python_lib != xno; then
6871
ax_python_header=`$ax_python_bin -c "from distutils.sysconfig import *; print(get_config_var('CONFINCLUDEPY'))"`
6972
if test x$ax_python_header != x; then

‎configure‎

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6069,6 +6069,46 @@ else
60696069
ax_python_lib=no
60706070
fi
60716071

6072+
fi
6073+
if test x$ax_python_lib == xno; then
6074+
as_ac_Lib=`$as_echo "ac_cv_lib_${ax_python_bin}mu''_main" | $as_tr_sh`
6075+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l${ax_python_bin}mu" >&5
6076+
$as_echo_n "checking for main in -l${ax_python_bin}mu... " >&6; }
6077+
if eval \${$as_ac_Lib+:} false; then :
6078+
$as_echo_n "(cached) " >&6
6079+
else
6080+
ac_check_lib_save_LIBS=$LIBS
6081+
LIBS="-l${ax_python_bin}mu $LIBS"
6082+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6083+
/* end confdefs.h. */
6084+
6085+
6086+
int
6087+
main ()
6088+
{
6089+
return main ();
6090+
;
6091+
return 0;
6092+
}
6093+
_ACEOF
6094+
if ac_fn_c_try_link "$LINENO"; then :
6095+
eval "$as_ac_Lib=yes"
6096+
else
6097+
eval "$as_ac_Lib=no"
6098+
fi
6099+
rm -f core conftest.err conftest.$ac_objext \
6100+
conftest$ac_exeext conftest.$ac_ext
6101+
LIBS=$ac_check_lib_save_LIBS
6102+
fi
6103+
eval ac_res=\$$as_ac_Lib
6104+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6105+
$as_echo "$ac_res" >&6; }
6106+
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6107+
ax_python_lib=${ax_python_bin}mu
6108+
else
6109+
ax_python_lib=no
6110+
fi
6111+
60726112
fi
60736113
if test x$ax_python_lib != xno; then
60746114
ax_python_header=`$ax_python_bin -c "from distutils.sysconfig import *; print(get_config_var('CONFINCLUDEPY'))"`
@@ -6262,6 +6302,46 @@ else
62626302
ax_python_lib=no
62636303
fi
62646304

6305+
fi
6306+
if test x$ax_python_lib == xno; then
6307+
as_ac_Lib=`$as_echo "ac_cv_lib_${ax_python_bin}mu''_main" | $as_tr_sh`
6308+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l${ax_python_bin}mu" >&5
6309+
$as_echo_n "checking for main in -l${ax_python_bin}mu... " >&6; }
6310+
if eval \${$as_ac_Lib+:} false; then :
6311+
$as_echo_n "(cached) " >&6
6312+
else
6313+
ac_check_lib_save_LIBS=$LIBS
6314+
LIBS="-l${ax_python_bin}mu $LIBS"
6315+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6316+
/* end confdefs.h. */
6317+
6318+
6319+
int
6320+
main ()
6321+
{
6322+
return main ();
6323+
;
6324+
return 0;
6325+
}
6326+
_ACEOF
6327+
if ac_fn_c_try_link "$LINENO"; then :
6328+
eval "$as_ac_Lib=yes"
6329+
else
6330+
eval "$as_ac_Lib=no"
6331+
fi
6332+
rm -f core conftest.err conftest.$ac_objext \
6333+
conftest$ac_exeext conftest.$ac_ext
6334+
LIBS=$ac_check_lib_save_LIBS
6335+
fi
6336+
eval ac_res=\$$as_ac_Lib
6337+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6338+
$as_echo "$ac_res" >&6; }
6339+
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6340+
ax_python_lib=${ax_python_bin}mu
6341+
else
6342+
ax_python_lib=no
6343+
fi
6344+
62656345
fi
62666346
if test x$ax_python_lib != xno; then
62676347
ax_python_header=`$ax_python_bin -c "from distutils.sysconfig import *; print(get_config_var('CONFINCLUDEPY'))"`

0 commit comments

Comments
 (0)