source: pymolproxy/branches/1.0/configure.ac @ 6307

Last change on this file since 6307 was 6199, checked in by ldelgass, 8 years ago

rename configure.in to configure.ac

  • Property svn:mergeinfo set to (toggle deleted branches)
    /branches/1.3/packages/vizservers/configure.in4525
    /branches/nanovis2/packages/vizservers/configure.in3001-3361
File size: 2.6 KB
RevLine 
[2101]1AC_PREREQ([2.60])
[4595]2AC_INIT([pymolproxy], [1.0], [rappture@nanohub.org])
[2618]3AC_CONFIG_AUX_DIR(cf)
[749]4
[2090]5AC_ARG_WITH(
6    [tcllib],
7    [AS_HELP_STRING([--with-tcllib[=DIR]],
8        [location of Tcl binary library libtclstubs.a @<:@default=/usr/lib@:>@])],
9    [with_tcllib=$withval],
10    [with_tcllib=""])
11
12AC_ARG_WITH(
[3403]13    [statsdir],
14    [AS_HELP_STRING([--with-statsdir=DIR],
[4024]15        [Write statistics in DIR])],
[3403]16    [STATSDIR=$withval],
17    [STATSDIR="/var/tmp/visservers"])
18
[4108]19AC_ARG_WITH(
[4109]20    [logdir],
21    [AS_HELP_STRING([--with-logdir=DIR],
[4108]22        [Write log files in DIR])],
23    [LOGDIR=$withval],
24    [LOGDIR="/tmp"])
25
[4060]26RP_LANG_PYTHON
[749]27
28#------------------------------------------------------------------------
29# Handle the --prefix=... option
30#------------------------------------------------------------------------
31
32if test "${prefix}" = "NONE"; then
33    prefix=/usr/local
34fi
35if test "${exec_prefix}" = "NONE"; then
36    exec_prefix=$prefix
37fi
38
[2198]39if test "x${incdir}" == "x"; then
40  incdir=${exec_prefix}/include
41fi
42libdir=${exec_prefix}/lib
43
[749]44if test "${libdir}" != "${prefix}/lib"; then
45    LIB_SEARCH_DIRS="-L ${prefix}/lib -L ${libdir}"
46else
47    LIB_SEARCH_DIRS="-L ${libdir}"
48fi
49
[1113]50SC_CONFIG_CFLAGS
[749]51
[2073]52AC_PATH_X
53
[749]54AC_PROG_INSTALL
[1111]55AC_PROG_RANLIB
56AC_PROG_LN_S
57AC_PROG_MKDIR_P
[749]58
59dnl find and test the C compiler
60AC_PROG_CC
[1113]61AC_PROG_CPP
62AC_PROG_CXXCPP
[749]63AC_PROG_CXX
64AC_LANG_CPLUSPLUS
65
[940]66AC_C_BIGENDIAN
67
[1899]68# Save the values as shell variables so that we can substitute them
69# into bltHash.h for situtations where there's no bltInt.h.
70
[1278]71LD_RPATH="";
72
[948]73#
74# Need to check for the following dependencies:
75#       Rappture headers and library (done)
76#       Tcl headers and library (done)
77#       GL headers and library
78#       GLEW header and library
79#       pthread library
80#
81
[1114]82TCL_VERSION="8.4"
83for dir in \
84 ${exec_prefix} \
[4060]85 ${exec_prefix}/lib ; do
[1114]86  tclconfig="${dir}/tclConfig.sh"
87  if test -f "$tclconfig" ; then
[1113]88    . $tclconfig
89    break
90  fi
91done
[1114]92TCL_INC_SPEC="$TCL_INCLUDE_SPEC"
[1113]93
[749]94if test "x$with_tcllib" != "x" ; then
[1114]95   tclconfig="${with_tcllib}/tclConfig.sh"
96   if test -f "$tclconfig" ; then
97    . $tclconfig
98   fi
99   TCL_LIB_SPEC="-L${with_tcllib} -ltcl${TCL_VERSION}"
[749]100fi
101if test "x$with_tclinclude" != "x" ; then
[1114]102   TCL_INC_SPEC="-I${with_tclinclude}"
[749]103fi
104
[1120]105AC_CHECK_HEADER([GL/glew.h])
[944]106
[1115]107AC_CHECK_HEADERS([stdio.h unistd.h stdlib.h string.h sys/types.h])
108AC_CHECK_HEADERS([sys/socket.h sys/time.h netinet/in.h arpa/inet.h netdb.h])
109
[2567]110AC_CHECK_FUNCS([accept4])
[4108]111AC_CHECK_FUNCS([mkstemps])
[2567]112
[1278]113AC_SUBST(LD_RPATH)
[4108]114AC_SUBST(LOGDIR)
[3403]115AC_SUBST(STATSDIR)
[2198]116AC_SUBST(SUBDIRS)
[2618]117AC_SUBST(PYTHON)
[2198]118AC_SUBST(TCL_INC_SPEC)
119AC_SUBST(TCL_LIB_SPEC)
120AC_SUBST(TCL_VERSION)
[1278]121
[2198]122AC_OUTPUT([
[4589]123   Makefile])
Note: See TracBrowser for help on using the repository browser.