Added configure and configure.in.
[yazpp-moved-to-github.git] / configure.in
1 AC_INIT(configure.in)
2 AM_INIT_AUTOMAKE("yaz++", 0.1)
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
12
13 YAZPP_SRC_ROOT=`pwd`
14 AC_SUBST(YAZPP_SRC_ROOT)
15
16 if test -f src/yaz++-config.in; then
17         rm src/yaz++-config.in
18 fi
19 sed s%yaz_echo_source=yes%yaz_echo_source=no%g < yaz++-config.in >src/yaz++-config.in
20 AC_OUTPUT([
21         Makefile
22         src/Makefile
23         include/Makefile
24         include/yaz++/Makefile
25         yaz++-config
26         src/yaz++-config
27 ],[chmod +x yaz++-config src/yaz++-config])