Changeset 61ecfb6 for configure.in


Ignore:
Timestamp:
10/31/05 16:16:50 (15 years ago)
Author:
Daniel Lawson <dlawson@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
96ddd3c
Parents:
deab6dc5
Message:

added libpacketdump:

  • modified top level makefile.am and configure.am
  • added libpacketdump/Makefile.am
  • libpacketdump installs to $(libdir)
  • libpacketdump modules install to $(libdir)/libpacketdump/
  • versioning is the same as for libtrace
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.in

    rdeab6dc5 r61ecfb6  
    44AM_INIT_AUTOMAKE(libtrace, 2.0.23)
    55
    6 AC_CONFIG_FILES([Makefile lib/Makefile docs/Makefile])
     6AC_CONFIG_FILES([Makefile lib/Makefile docs/Makefile libpacketdump/Makefile])
    77dnl GNU C library
    88dnl AC_GNU_SOURCE
     9
    910
    1011AM_CONFIG_HEADER(config.h)
     
    1314AC_PROG_CC
    1415AC_PROG_INSTALL
     16AC_LIBTOOL_DLOPEN
    1517AC_PROG_LIBTOOL
    1618
    17 
     19AC_CONFIG_LIBOBJ_DIR(lib)
    1820
    1921# Checks for header files.
     
    122124AC_CHECK_FUNCS(socket strdup)
    123125
    124 # configure time option for __attribute__((pure))
    125 test_pure=true
    126 AC_ARG_WITH(pure,
    127             AC_HELP_STRING([--with-pure],
    128                            [use __attribute__((pure)) for optimisation]),
    129 [
    130         if test "$withval" = no -o "$withval" = false
    131         then
    132                 test_pure=false
    133         else
    134                 test_pure=true
    135         fi
    136 ],[
    137         test_pure=true
    138 ])
    139 
    140 libtrace_pure=false
    141 if test "$test_pure" = true; then
    142         AC_MSG_CHECKING([if compiler supports __attribute__((pure))])
    143         OLDCFLAGS="$CFLAGS"
    144         CFLAGS="$CFLAGS -Werror"
    145        
    146         AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
    147                            [[
    148 #define SIMPLE_FUNCTION __attribute__((pure))
    149 SIMPLE_FUNCTION
    150 void foo() {
    151 }
    152                            ]])],
    153                 [AC_DEFINE(HAVE_ATTR_PURE,1,[define to test for __attribute__((pure)) support]) libtrace_pure=true],
    154                 [AC_DEFINE(HAVE_ATTR_PURE,0,[define to test for __attribute__((pure)) support]) libtrace_pure=false])
    155 
    156         AC_MSG_RESULT($libtrace_pure)
    157         CFLAGS="$OLDCFLAGS"
    158 fi
    159 
    160 if test "$libtrace_pure" = true; then
    161         perl -pi -e 's/#define HAVE_ATTR_PURE.*/#define HAVE_ATTR_PURE 1/' lib/libtrace.h
    162 else
    163         perl -pi -e 's/#define HAVE_ATTR_PURE.*/#define HAVE_ATTR_PURE 0/' lib/libtrace.h
    164 fi
    165 
    166 
     126## configure time option for __attribute__((pure))
     127#test_pure=true
     128#AC_ARG_WITH(pure,
     129#           AC_HELP_STRING([--with-pure],
     130#                          [use __attribute__((pure)) for optimisation]),
     131#[
     132#       if test "$withval" = no -o "$withval" = false
     133#       then
     134#               test_pure=false
     135#       else
     136#               test_pure=true
     137#       fi
     138#],[
     139#       test_pure=true
     140#])
     141#
     142#libtrace_pure=false
     143#if test "$test_pure" = true; then
     144#       AC_MSG_CHECKING([if compiler supports __attribute__((pure))])
     145#       OLDCFLAGS="$CFLAGS"
     146#       CFLAGS="$CFLAGS -Werror"
     147#       
     148#       AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
     149#                          [[
     150##define SIMPLE_FUNCTION __attribute__((pure))
     151#SIMPLE_FUNCTION
     152#void foo() {
     153#}
     154#                          ]])],
     155#               [AC_DEFINE(HAVE_ATTR_PURE,1,[define to test for __attribute__((pure)) support]) libtrace_pure=true],
     156#               [AC_DEFINE(HAVE_ATTR_PURE,0,[define to test for __attribute__((pure)) support]) libtrace_pure=false])
     157#
     158#       AC_MSG_RESULT($libtrace_pure)
     159#       CFLAGS="$OLDCFLAGS"
     160#
     161#       if test "$libtrace_pure" = true; then
     162#               perl -pi -e 's/#define HAVE_ATTR_PURE.*/#define HAVE_ATTR_PURE 1/' lib/libtrace.h
     163#       else
     164#               perl -pi -e 's/#define HAVE_ATTR_PURE.*/#define HAVE_ATTR_PURE 0/' lib/libtrace.h
     165#       fi
     166#
     167#fi
    167168
    168169# configure time options for man pages
Note: See TracChangeset for help on using the changeset viewer.