A shell that runs x86_64 assembly
c
x86-64
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.

configure.ac 2.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ([2.69])
  4. AC_INIT([FULL-PACKAGE-NAME], [VERSION], [BUG-REPORT-ADDRESS])
  5. AM_INIT_AUTOMAKE([-Wall])
  6. AC_ARG_ENABLE([debug],[ --enable-debug turn on debugging],
  7. [case "${enableval}" in
  8. yes) debug=true ;;
  9. no) debug=false ;;
  10. *) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;;
  11. esac],[debug=false])
  12. AM_CONDITIONAL([DEBUG], [test x$debug = xtrue])
  13. AC_ARG_ENABLE([check],[ --disable-check disable unit test support],
  14. [case "${enableval}" in
  15. yes) check=true ;;
  16. no) check=false ;;
  17. *) AC_MSG_ERROR([bad value ${enableval} for --enable-check]) ;;
  18. esac],[check=true])
  19. AM_CONDITIONAL([CHECK], [test x$check = xtrue])
  20. # Checks for libraries.
  21. if test "x$check" = "xtrue"
  22. then
  23. PKG_CHECK_MODULES([CHECK], [check >= 0.9.4], [],
  24. AC_MSG_FAILURE([Unable to locate (check unit test c framework).
  25. You can run ./configure --disable-check if you do not need unit tests.
  26. ]))
  27. AS_IF([test x$debug = xtrue], [CK_FORK=no],[])
  28. fi
  29. AC_CONFIG_SRCDIR([asmsh.c])
  30. AC_CONFIG_HEADERS([config.h])
  31. # Checks for programs.
  32. AC_GNU_SOURCE
  33. AC_C_CONST
  34. AC_C_INLINE
  35. AC_PROG_CC
  36. AC_PROG_RANLIB
  37. AM_PROG_AS
  38. AM_PROG_AR
  39. if test "x$check" = "xtrue"
  40. then
  41. AC_CHECK_PROGS([GCOV], [gcov])
  42. if test -z "$GCOV";
  43. then
  44. AC_MSG_WARN([gcov not found - continuing without coverage monitoring])
  45. else
  46. AC_CHECK_PROGS([LCOV], [lcov])
  47. if test -z "$LCOV";
  48. then
  49. AC_MSG_WARN([lcov not found - continuing without HTML coverage summary])
  50. fi
  51. fi
  52. fi
  53. AM_CONDITIONAL([HAVE_GCOV], [test -n "$GCOV"])
  54. AM_CONDITIONAL([HAVE_LCOV], [test -n "$LCOV"])
  55. # Checks for libraries.
  56. # Checks for header files.
  57. AC_CHECK_HEADERS([fcntl.h limits.h stdlib.h string.h unistd.h])
  58. # Checks for typedefs, structures, and compiler characteristics.
  59. AC_TYPE_PID_T
  60. AC_TYPE_SIZE_T
  61. # Checks for library functions.
  62. AC_FUNC_FORK
  63. AC_FUNC_MALLOC
  64. AC_FUNC_REALLOC
  65. AC_CHECK_FUNCS([bzero strtoull, gmtime_r])
  66. AC_CONFIG_FILES([Makefile tests/Makefile tests/samples/Makefile])
  67. AC_OUTPUT