configure.ac 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. dnl fulci a program to organize your movies collection
  2. dnl Copyright (C) 2019 cage
  3. dnl This program is free software: you can redistribute it and/or modify
  4. dnl it under the terms of the GNU General Public License as published by
  5. dnl the Free Software Foundation, either version 3 of the License, or
  6. dnl (at your option) any later version.
  7. dnl This program is distributed in the hope that it will be useful,
  8. dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. dnl GNU General Public License for more details.
  11. dnl You should have received a copy of the GNU General Public License
  12. dnl along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. AC_INIT([fulci],[0.9.4],[https://notabug.org/cage/fulci/],[fulci])
  14. AM_INIT_AUTOMAKE([-Wall foreign])
  15. AM_GNU_GETTEXT([external])
  16. AC_PATH_PROG([LISP_COMPILER],[sbcl],[no])
  17. if test "$LISP_COMPILER" = "no" ; then
  18. AC_MSG_ERROR([Can not find SBCL, Common Lisp compiler.])
  19. fi
  20. AC_PATH_PROG([CURL],[curl],[no])
  21. if test "$CURL" = "no" ; then
  22. AC_MSG_ERROR([Can not find curl.])
  23. exit 1;
  24. fi
  25. AC_PATH_PROG([GPG],[gpg],[no])
  26. if test "$GPG" = "no" ; then
  27. AC_MSG_ERROR([Can not find gpg, crypto software.])
  28. exit 1;
  29. fi
  30. AC_PATH_PROG([BASH],[bash],[no])
  31. if test "$BASH" = "no" ; then
  32. AC_MSG_ERROR([Can not find bash shell.])
  33. exit 1;
  34. fi
  35. AC_PATH_PROG([GAWK],[gawk],[no])
  36. if test "$GAWK" = "no" ; then
  37. AC_MSG_ERROR([Can not find GNU AWK (gawk).])
  38. exit 1;
  39. fi
  40. AC_PROG_MKDIR_P
  41. dnl check sbcl version
  42. SBCL_MIN_VERSION="1.4.8";
  43. SBCL_VERSION=`${LISP_COMPILER} --version | ${GAWK} -- '// {print $2}'`
  44. SBCL_VERSION_OK=`echo "$SBCL_VERSION $SBCL_MIN_VERSION" | awk -f compare_version.awk`
  45. if test "$SBCL_VERSION_OK" = "1" ; then
  46. AC_MSG_ERROR([Lisp compiler too old, $SBCL_MIN_VERSION is the oldest supported.])
  47. exit 1;
  48. fi
  49. AC_PATH_PROG([WISH],[wish],[no])
  50. if test "$WISH" = "no" ; then
  51. AC_MSG_ERROR([Can not find wish, the TK interpreter.])
  52. exit 1;
  53. fi
  54. AC_PATH_PROG([SQLITE],[sqlite3],[no])
  55. if test "$SQLITE" = "no" ; then
  56. AC_MSG_ERROR([Can not find sqlite3 binary.])
  57. exit 1;
  58. fi
  59. AC_PATH_PROG([GIMP],[gimp],[no])
  60. if test "$GIMP" = "no" ; then
  61. AC_MSG_ERROR([Can not find gimp.])
  62. exit 1;
  63. fi
  64. AC_PATH_PROG([GV],[gv],[no])
  65. if test "$GV" = "no" ; then
  66. AC_MSG_ERROR([Can not find gv (PostScript visualizer).])
  67. exit 1;
  68. fi
  69. AC_CHECK_HEADER("libps/pslib.h", [],[AC_MSG_ERROR([Can not find pslib developement header.])], [])
  70. AC_CHECK_HEADER("openssl/ssl.h", [],[AC_MSG_ERROR([Can not find libssl developement header.])], [])
  71. AC_CHECK_LIB([ps], [PS_boot], [],
  72. AC_MSG_ERROR([Can not find pslib (PostScript generation library).]))
  73. AC_CHECK_LIB([ssl], [SSL_new], [],
  74. AC_MSG_ERROR([Can not find openssl library.]))
  75. AC_CONFIG_FILES([Makefile quick_quicklisp.sh po/Makefile.in src/config.lisp.in])
  76. AC_OUTPUT