Tests about a simple python3 fastcgi runner using libfcgi and the Python-C API.
python
c
wsgi
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ([2.69])
  4. AC_INIT([PyFCGI], [0.0.1], [yann.weber@member.fsf.org])
  5. AC_CONFIG_SRCDIR([src/main.c])
  6. AC_CONFIG_HEADERS([include/config.h])
  7. AC_ARG_ENABLE([debug],
  8. AS_HELP_STRING([--enable-debug], [Enable debug, disabling -Werror, etc.]))
  9. AC_USE_SYSTEM_EXTENSIONS
  10. AC_GNU_SOURCE
  11. # Checks for programs.
  12. AC_PROG_CC
  13. AC_PROG_RANLIB
  14. AC_CHECK_PROG(PYTHON_CONFIG, [python3-config], [yes])
  15. if test x"${PYTHON_CONFIG}" == x"yes"; then
  16. PYTHON_CFLAGS=`python3-config --includes`
  17. PYTHON_LDFLAGS=`python3-config --libs`
  18. AC_SUBST([PYTHON_CFLAGS])
  19. AC_SUBST([PYTHON_LDFLAGS])
  20. else
  21. AC_MSG_ERROR([Unable to find python3-config])
  22. fi
  23. if test x"${enable_debug}" = x"yes"; then
  24. AM_CFLAGS="-Wall -g"
  25. else
  26. AM_CFLAGS="-Wall -Werror -O2"
  27. fi
  28. AC_SUBST([AM_CFLAGS])
  29. AC_C_INLINE
  30. # Checks for libraries.
  31. AC_CHECK_LIB([fcgi], [FCGI_Accept])
  32. PKG_CHECK_MODULES([CHECK], [check >= 0.9.4])
  33. # Checks for header files.
  34. AC_CHECK_HEADERS([fcntl.h limits.h stdlib.h string.h syslog.h unistd.h sem.h])
  35. # Checks for typedefs, structures, and compiler characteristics.
  36. AC_TYPE_PID_T
  37. AC_TYPE_SIZE_T
  38. # Checks for library functions.
  39. AC_FUNC_FORK
  40. AC_FUNC_MALLOC
  41. AC_FUNC_REALLOC
  42. AC_CHECK_FUNCS([bzero getcwd gettimeofday memmove strdup strerror strndup semop clone get_current_dir_name])
  43. AM_INIT_AUTOMAKE
  44. AC_CONFIG_FILES([Makefile
  45. src/Makefile
  46. tests/Makefile])
  47. AC_OUTPUT