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.
 
 
 
 
 
 

118 lines
2.8 KiB

  1. AC_INIT([libisofs], [0.2.9], [http://libburnia-project.org])
  2. AC_PREREQ([2.50])
  3. dnl AC_CONFIG_HEADER([config.h])
  4. AC_CANONICAL_HOST
  5. AC_CANONICAL_TARGET
  6. AM_INIT_AUTOMAKE([subdir-objects])
  7. dnl A61101 This breaks Linux build (makes 32 bit off_t)
  8. dnl http://sourceware.org/autobook/autobook/autobook_96.html says
  9. dnl one must include some config.h and this was a pitfall.
  10. dnl So why dig the pit at all ?
  11. dnl AM_CONFIG_HEADER(config.h)
  12. dnl Making releases:
  13. dnl BURN_MICRO_VERSION += 1;
  14. dnl BURN_INTERFACE_AGE += 1;
  15. dnl BURN_BINARY_AGE += 1;
  16. dnl if any functions have been added, set BURN_INTERFACE_AGE to 0.
  17. dnl if backwards compatibility has been broken,
  18. dnl set BURN_BINARY_AGE and BURN_INTERFACE_AGE to 0.
  19. dnl
  20. dnl if MAJOR or MINOR version changes, be sure to change AC_INIT above to match
  21. dnl
  22. BURN_MAJOR_VERSION=0
  23. BURN_MINOR_VERSION=2
  24. BURN_MICRO_VERSION=4
  25. BURN_INTERFACE_AGE=0
  26. BURN_BINARY_AGE=0
  27. BURN_VERSION=$BURN_MAJOR_VERSION.$BURN_MINOR_VERSION.$BURN_MICRO_VERSION
  28. AC_SUBST(BURN_MAJOR_VERSION)
  29. AC_SUBST(BURN_MINOR_VERSION)
  30. AC_SUBST(BURN_MICRO_VERSION)
  31. AC_SUBST(BURN_INTERFACE_AGE)
  32. AC_SUBST(BURN_BINARY_AGE)
  33. AC_SUBST(BURN_VERSION)
  34. dnl Libtool versioning
  35. LT_RELEASE=$BURN_MAJOR_VERSION.$BURN_MINOR_VERSION
  36. LT_CURRENT=`expr $BURN_MICRO_VERSION - $BURN_INTERFACE_AGE`
  37. LT_REVISION=$BURN_INTERFACE_AGE
  38. LT_AGE=`expr $BURN_BINARY_AGE - $BURN_INTERFACE_AGE`
  39. LT_CURRENT_MINUS_AGE=`expr $LT_CURRENT - $LT_AGE`
  40. AC_SUBST(LT_RELEASE)
  41. AC_SUBST(LT_CURRENT)
  42. AC_SUBST(LT_REVISION)
  43. AC_SUBST(LT_AGE)
  44. AC_SUBST(LT_CURRENT_MINUS_AGE)
  45. AC_PREFIX_DEFAULT([/usr/local])
  46. test "$prefix" = "NONE" && prefix=$ac_default_prefix
  47. AM_MAINTAINER_MODE
  48. AM_PROG_CC_C_O
  49. AC_C_CONST
  50. AC_C_INLINE
  51. AC_C_BIGENDIAN
  52. dnl Large file support
  53. AC_SYS_LARGEFILE
  54. AC_FUNC_FSEEKO
  55. AC_CHECK_FUNC([fseeko])
  56. if test ! $ac_cv_func_fseeko; then
  57. AC_ERROR([Libisofs requires largefile support.])
  58. fi
  59. AC_PROG_LIBTOOL
  60. AC_SUBST(LIBTOOL_DEPS)
  61. LIBTOOL="$LIBTOOL --silent"
  62. AC_PROG_INSTALL
  63. AC_CHECK_HEADERS()
  64. AC_CHECK_MEMBER([struct tm.tm_gmtoff],
  65. [AC_DEFINE(HAVE_TM_GMTOFF, 1,
  66. [Define this if tm structure includes a tm_gmtoff entry.])],
  67. ,
  68. [#include <time.h>])
  69. THREAD_LIBS=-lpthread
  70. AC_SUBST(THREAD_LIBS)
  71. TARGET_SHIZZLE
  72. AC_SUBST(ARCH)
  73. AC_SUBST(LIBBURN_ARCH_LIBS)
  74. dnl Add compiler-specific flags
  75. dnl See if the user wants aggressive optimizations of the code
  76. AC_ARG_ENABLE(debug,
  77. [ --enable-debug Disable aggressive optimizations [default=yes]],
  78. , enable_debug=yes)
  79. if test x$enable_debug != xyes; then
  80. if test x$GCC = xyes; then
  81. CFLAGS="$CFLAGS -O3"
  82. CFLAGS="$CFLAGS -fexpensive-optimizations"
  83. fi
  84. CFLAGS="$CFLAGS -DNDEBUG"
  85. else
  86. if test x$GCC = xyes; then
  87. CFLAGS="$CFLAGS -g -pedantic -Wall"
  88. fi
  89. CFLAGS="$CFLAGS -DDEBUG"
  90. fi
  91. AC_CONFIG_FILES([
  92. Makefile
  93. doc/doxygen.conf
  94. version.h
  95. libisofs-5.pc
  96. ])
  97. AC_OUTPUT