configure.ac 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. #
  4. # This program is free software: you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation, either version 3 of the License, or
  7. # (at your option) any later version.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. AC_PREREQ(2.59)
  17. AC_INIT(gcc-gml4gtk-plugin, 2.8, mooigraph@gmail.com)
  18. AC_CONFIG_HEADERS(config.h)
  19. # m4
  20. AC_CONFIG_MACRO_DIR([m4])
  21. #ACLOCAL_FLAGS="-I m4"
  22. # automake
  23. AM_INIT_AUTOMAKE
  24. # add the m4 dir
  25. # AC_CONFIG_MACRO_DIR([m4])
  26. # Checks for programs.
  27. AC_PROG_CC
  28. AC_PROG_CXX
  29. AC_ARG_WITH(gmp, [AS_HELP_STRING([--with-gmp=PATH],
  30. [specify prefix directory for installed gmp package. Equivalent to
  31. --with-gmp-include=PATH/include plus --with-gmp-lib=PATH/lib])])
  32. AC_ARG_WITH(gmp_include, [AS_HELP_STRING([--with-gmp-include=PATH],
  33. [specify directory for installed gmp include files])])
  34. AC_ARG_WITH(gmp_lib, [AS_HELP_STRING([--with-gmp-lib=PATH],
  35. [specify directory for installed gmp library])])
  36. if test "x$with_gmp" != x; then
  37. gmp_inc="-I$with_gmp/include"
  38. gmp_lib="-L$with_gmp/lib"
  39. fi
  40. if test "x$with_gmp_include" != x; then
  41. gmp_inc="-I$with_gmp_include"
  42. fi
  43. if test "x$with_gmp_lib" != x; then
  44. gmp_lib="-L$with_gmp_lib"
  45. fi
  46. AC_SUBST(gmp_inc)
  47. AC_SUBST(gmp_lib)
  48. # libtool
  49. LT_INIT
  50. AC_PROG_LIBTOOL
  51. # Checks for header files.
  52. # Checks for typedefs, structures, and compiler characteristics.
  53. AC_C_CONST
  54. AC_FUNC_OBSTACK
  55. # Checks for library functions.
  56. AC_FUNC_ERROR_AT_LINE
  57. AC_CONFIG_FILES([Makefile gml4gtk-plugin/Makefile])
  58. AC_OUTPUT