comparison configure.in @ 95:ff1743cbe4aa

initial attempt at building a shared library
author Carl Byington <carl@five-ten-sg.com>
date Sat, 13 Sep 2008 20:15:40 -0700
parents cb14583c119a
children 2e3ec9511166
comparison
equal deleted inserted replaced
94:997cf1373f9e 95:ff1743cbe4aa
18 AC_PROG_CXX 18 AC_PROG_CXX
19 AC_PROG_CC 19 AC_PROG_CC
20 AC_PROG_CPP 20 AC_PROG_CPP
21 AC_PROG_INSTALL 21 AC_PROG_INSTALL
22 AC_PROG_LN_S 22 AC_PROG_LN_S
23 AC_PROG_LIBTOOL
23 AC_PROG_MAKE_SET 24 AC_PROG_MAKE_SET
24 AC_PROG_RANLIB 25 AC_PROG_RANLIB
25 26
26 AC_SYS_LARGEFILE 27 AC_SYS_LARGEFILE
27 AC_CHECK_SIZEOF(off_t) 28 AC_CHECK_SIZEOF(off_t)
78 # Default value for configure 79 # Default value for configure
79 AC_MSG_RESULT([no]) 80 AC_MSG_RESULT([no])
80 ) 81 )
81 82
82 83
84 # The following lines adds the --enable-libpst-shared option to configure:
85 #
86 # Give the user the choice to enter one of these:
87 # --enable-libpst-shared
88 # --enable-libpst-shared=yes
89 # --enable-libpst-shared=no
90 #
91 AC_MSG_CHECKING([whether we are building libpst shared object])
92 AC_ARG_ENABLE(libpst-shared,
93 AC_HELP_STRING([--enable-libpst-shared], [build libpst shared object]),
94 [if test "${enable_libpst_shared}" = "no" ; then
95 AC_MSG_RESULT([no])
96 AM_CONDITIONAL(BUILD_LIBPST_SHARED, test 0 = 1)
97 else
98 AC_MSG_RESULT([yes])
99 AM_CONDITIONAL(BUILD_LIBPST_SHARED, test 1 = 1)
100 fi],
101 # Default value for configure
102 [AC_MSG_RESULT([no])
103 AM_CONDITIONAL(BUILD_LIBPST_SHARED, test 0 = 1)]
104 )
105
106
83 AC_OUTPUT( \ 107 AC_OUTPUT( \
84 Makefile \ 108 Makefile \
85 debian/changelog \ 109 debian/changelog \
86 debian/Makefile \ 110 debian/Makefile \
87 libpst.spec \ 111 libpst.spec \
112 libpst.pc \
88 html/Makefile \ 113 html/Makefile \
89 info/Makefile \ 114 info/Makefile \
90 man/Makefile \ 115 man/Makefile \
91 src/Makefile \ 116 src/Makefile \
92 src/version.h \ 117 src/version.h \
93 src/pst2dii.cpp \ 118 src/pst2dii.cpp \
94 xml/Makefile \ 119 xml/Makefile \
95 xml/libpst \ 120 xml/libpst \
96 ) 121 )