File: configure.in

package info (click to toggle)
globus-xio 2.8-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,320 kB
  • ctags: 2,912
  • sloc: ansic: 33,944; sh: 8,579; makefile: 448
file content (76 lines) | stat: -rw-r--r-- 2,085 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
dnl

AC_REVISION($Revision: 1.8 $)
AC_INIT(Makefile.am)

GLOBUS_INIT

AM_PROG_LIBTOOL

dnl config header goes here

dnl check for -lsocket -lnsl

CHECK_NEED_LNSL

CHECK_NEED_LSOCKET

GPT_SET_LIBS(["$EXTERNAL_LIBS -lm"])

dnl Initialize the automake rules the last argument
AM_INIT_AUTOMAKE($GPT_NAME, $GPT_VERSION)


dnl Build hooks for all 'builtin' drivers
echo -n "Checking for builtin drivers... "
XIO_BUILTIN_DIRS=
XIO_BUILTIN_DOXY_DIRS=
XIO_BUILTIN_LIBS=
BUILTIN_EXTENSIONS_DEC=
BUILTIN_EXTENSIONS_DEF=
builtins=`ls builtins | grep -v CVS | grep -v Makefile`
if test "X$builtins" != "X" ; then
  echo
  for builtin in $builtins ; do
    if test -f builtins/$builtin/Makefile.in ; then
      XIO_BUILTIN_DIRS="$XIO_BUILTIN_DIRS $builtin"
      XIO_BUILTIN_DOXY_DIRS="$XIO_BUILTIN_DOXY_DIRS ../builtins/${builtin}"  
      lib_name="builtins/${builtin}/libglobus_xio_${builtin}_driver_${GLOBUS_FLAVOR_NAME}.la"
      XIO_BUILTIN_LIBS="$XIO_BUILTIN_LIBS $lib_name"
    
      BUILTIN_EXTENSIONS_DEC="${BUILTIN_EXTENSIONS_DEC}GlobusXIODeclareModule(${builtin}); "
      BUILTIN_EXTENSIONS_DEF="$BUILTIN_EXTENSIONS_DEF {GlobusXIOExtensionName(${builtin}), GlobusXIOMyModule(${builtin})},"
      echo "Including driver: $builtin"
    fi
  done
else
  echo "none found"
fi

AC_SUBST(XIO_BUILTIN_DIRS)
AC_SUBST(XIO_BUILTIN_LIBS)
AC_SUBST(BUILTIN_EXTENSIONS_DEC)
AC_SUBST(BUILTIN_EXTENSIONS_DEF)

CFLAGS="$CFLAGS -DGLOBUS_BUILTIN"
LAC_DOXYGEN("../ $XIO_BUILTIN_DOXY_DIRS", 
            "*.doc", 
            "${GLOBUS_LOCATION:-/usr}/sbin/globus-vararg-enums-doxygen-filter.pl")

AM_CONFIG_HEADER(config.h)
AC_CHECK_FUNCS(sysconf)

GLOBUS_FINALIZE

AC_OUTPUT(
    Makefile
    pkgdata/Makefile
    pkgdata/pkg_data_src.gpt
    builtins/Makefile
    doxygen/Makefile
    doxygen/Doxyfile
    doxygen/Doxyfile-internal
    version.h
    extensions.h
dnl NOTE: do not put anything below this line!
 builtins/file/Makefile builtins/http/Makefile builtins/mode_e/Makefile builtins/ordering/Makefile builtins/queue/Makefile builtins/tcp/Makefile builtins/telnet/Makefile builtins/udp/Makefile)