configure.ac
changeset 2049 a9933b493198
parent 2012 224cd6aacfc1
child 2056 8acf212a5ed4
equal deleted inserted replaced
36:4a19e9a5ea05 37:c2e662b3dbcb
    14 AC_PROG_CXX
    14 AC_PROG_CXX
    15 AC_PROG_CXXCPP
    15 AC_PROG_CXXCPP
    16 AC_PROG_INSTALL
    16 AC_PROG_INSTALL
    17 AC_DISABLE_SHARED
    17 AC_DISABLE_SHARED
    18 AC_PROG_LIBTOOL
    18 AC_PROG_LIBTOOL
       
    19 
       
    20 dnl i18n
       
    21 AM_GNU_GETTEXT_VERSION([0.14.5])
       
    22 AM_GNU_GETTEXT([external])
    19 
    23 
    20 if test x"$lx_cmdline_cxxflags_set" != x"set" -a "$GXX" = yes; then
    24 if test x"$lx_cmdline_cxxflags_set" != x"set" -a "$GXX" = yes; then
    21   CXXFLAGS="$CXXFLAGS -Wall -W"
    25   CXXFLAGS="$CXXFLAGS -Wall -W"
    22 fi
    26 fi
    23 
    27 
    64   AC_MSG_RESULT([yes])
    68   AC_MSG_RESULT([yes])
    65 else
    69 else
    66   AC_MSG_RESULT([no])
    70   AC_MSG_RESULT([no])
    67 fi
    71 fi
    68 if test x"$enable_gui" != x"no"; then
    72 if test x"$enable_gui" != x"no"; then
    69   AC_CONFIG_SUBDIRS([gui])
    73   PKG_CHECK_MODULES([GTK], [libgnomecanvasmm-2.6 >= 2.6.0])
    70 fi
    74 fi
    71 AM_CONDITIONAL([WANT_GUI], [test x"$enable_gui" != x"no"])
    75 AM_CONDITIONAL([WANT_GUI], [test x"$enable_gui" != x"no"])
    72 
    76 
    73 dnl Disable/enable building the demo programs
    77 dnl Disable/enable building the demo programs
    74 AC_ARG_ENABLE([demo],
    78 AC_ARG_ENABLE([demo],
    97 AM_CONDITIONAL([WANT_BENCHMARK], [test x"$enable_benchmark" != x"no"])
   101 AM_CONDITIONAL([WANT_BENCHMARK], [test x"$enable_benchmark" != x"no"])
    98 
   102 
    99 dnl Checks for header files.
   103 dnl Checks for header files.
   100 AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h)
   104 AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h)
   101 
   105 
   102 dnl Checks for header files.
       
   103 AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h)
       
   104 
       
   105 dnl Checks for typedefs, structures, and compiler characteristics.
   106 dnl Checks for typedefs, structures, and compiler characteristics.
   106 AC_C_CONST
   107 AC_C_CONST
   107 AC_C_INLINE
   108 AC_C_INLINE
   108 AC_TYPE_SIZE_T
   109 AC_TYPE_SIZE_T
   109 AC_HEADER_TIME
   110 AC_HEADER_TIME
   122 lemon/Makefile
   123 lemon/Makefile
   123 lemon/lemon.pc
   124 lemon/lemon.pc
   124 benchmark/Makefile
   125 benchmark/Makefile
   125 demo/Makefile
   126 demo/Makefile
   126 test/Makefile
   127 test/Makefile
       
   128 gui/Makefile
       
   129 po/Makefile.in
   127 ])
   130 ])
   128 
   131 
   129 AC_OUTPUT
   132 AC_OUTPUT
   130 
   133 
   131 echo
   134 echo