5e07d839057d273758931616e7a142bd60f03587
[yazpp-moved-to-github.git] / configure.in
1 AC_INIT(configure.in)
2 AM_INIT_AUTOMAKE("yaz++", 0.2)
3
4 AC_PROG_CC
5 AC_PROG_CPP
6 AC_PROG_CXX
7 AC_HEADER_STDC
8 AM_DISABLE_SHARED
9 AM_PROG_LIBTOOL
10
11 YAZ_INIT(threads)
12
13 AC_SUBST(YAZPP_SRC_ROOT)
14 AC_SUBST(YAZPP_BUILD_ROOT)
15 YAZPP_SRC_ROOT=`cd ${srcdir}; pwd`
16 YAZPP_BUILD_ROOT=`pwd`
17
18 if test -f ${srcdir}/src/yaz++-config.in; then
19         rm ${srcdir}/src/yaz++-config.in
20 fi
21 sed s%yaz_echo_source=yes%yaz_echo_source=no%g < ${srcdir}/yaz++-config.in >${srcdir}/src/yaz++-config.in
22 AC_OUTPUT([
23         Makefile
24         src/Makefile
25         include/Makefile
26         include/yaz++/Makefile
27         yaz++-config
28         src/yaz++-config
29 ],[chmod +x yaz++-config src/yaz++-config])