mpc-0.9-configure.patch 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. Issue http://lists.gforge.inria.fr/pipermail/mpc-discuss/2011-February/000805.html
  2. Upstream patch https://gforge.inria.fr/scm/viewvc.php/trunk/configure.ac?root=mpc&r1=932&r2=936
  3. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
  4. --- trunk/configure.ac 2011/02/21 12:18:31 932
  5. +++ trunk/configure.ac 2011/02/21 16:41:09 936
  6. @@ -33,7 +33,7 @@
  7. AC_CANONICAL_HOST
  8. AC_CONFIG_MACRO_DIR([m4])
  9. -dnl Extra arguments to configure
  10. +# Extra arguments to configure
  11. AC_ARG_WITH([mpfr_include],
  12. [AC_HELP_STRING([--with-mpfr-include=DIR],
  13. [MPFR include directory])],
  14. @@ -85,18 +85,19 @@
  15. )
  16. -dnl Setup CC and CFLAGS
  17. +# Setup CC and CFLAGS
  18. +AC_PROG_CC
  19. +AC_LANG(C)
  20. -dnl Check for user specification of CC or CFLAGS
  21. +# Set up LibTool
  22. +AC_PROG_LIBTOOL
  23. +
  24. +# Check for user specification of CC or CFLAGS
  25. if test -n "$CFLAGS" || test -n "$CC" ; then
  26. user_redefine_cc=yes
  27. fi
  28. -# Check for programs
  29. -AC_PROG_CC
  30. -AC_LANG(C)
  31. -
  32. -dnl Check GMP Header
  33. +# Check GMP Header
  34. AC_MSG_CHECKING(for gmp.h)
  35. AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
  36. #include "gmp.h"
  37. @@ -105,22 +106,19 @@
  38. AC_MSG_ERROR([gmp.h can't be found, or is unusable.])
  39. ])
  40. -dnl Check for GMP CFLAGS in gmp.h
  41. +# Check for GMP CFLAGS in gmp.h
  42. if test -z "$user_redefine_cc" ; then
  43. MPC_GMP_CC_CFLAGS
  44. fi
  45. -dnl Configs for Windows DLLs
  46. +# Configs for Windows DLLs
  47. case $host in
  48. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  49. MPC_WINDOWS
  50. esac
  51. -dnl Finally set up LibTool
  52. -AC_PROG_LIBTOOL
  53. -
  54. # Checks for header files.
  55. AC_HEADER_STDC
  56. AC_CHECK_HEADERS([complex.h locale.h inttypes.h stdint.h limits.h unistd.h sys/time.h])