source: trunk/packages/vizservers/geovis/configure.in @ 4058

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

cleanup configure: remove unused functions/vars

File size: 2.8 KB
Line 
1AC_PREREQ([2.60])
2AC_INIT(geovis, 0.1, rappture@nanohub.org)
3AC_CONFIG_AUX_DIR(cf)
4
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(
13    [osg-includes],
14    [AS_HELP_STRING([--with-osg-includes=DIR],
15        [OSG include files are in DIR])],
16    [with_osg_includes=$withval],
17    [with_osg_includes=""])
18
19AC_ARG_WITH(
20    [osg-libs],
21    [AS_HELP_STRING([--with-osg-libs=DIR],
22        [OSG libraries are in DIR])],
23    [with_osg_libs=$withval],
24    [with_osg_libs=""])
25
26AC_ARG_WITH(
27    [statsdir],
28    [AS_HELP_STRING([--with-statsdir=DIR],
29        [Write statistics in DIR])],
30    [STATSDIR=$withval],
31    [STATSDIR="/var/tmp/visservers"])
32
33#------------------------------------------------------------------------
34# Handle the --prefix=... option
35#------------------------------------------------------------------------
36
37if test "${prefix}" = "NONE"; then
38    prefix=/usr/local
39fi
40if test "${exec_prefix}" = "NONE"; then
41    exec_prefix=$prefix
42fi
43
44if test "x${incdir}" == "x"; then
45  incdir=${exec_prefix}/include
46fi
47libdir=${exec_prefix}/lib
48
49if test "${libdir}" != "${prefix}/lib"; then
50    LIB_SEARCH_DIRS="-L ${prefix}/lib -L ${libdir}"
51else
52    LIB_SEARCH_DIRS="-L ${libdir}"
53fi
54
55AC_PROG_INSTALL
56AC_PROG_RANLIB
57AC_PROG_LN_S
58AC_PROG_MKDIR_P
59
60dnl find and test the C compiler
61AC_PROG_CC
62AC_PROG_CPP
63AC_PROG_CXXCPP
64AC_PROG_CXX
65AC_LANG_CPLUSPLUS
66
67#
68# Need to check for the following dependencies:
69#       Tcl headers and library
70#       GL headers and library
71#       pthread library
72#       OpenSceneGraph libraries
73#       osgEarth libraries
74#
75
76TCL_VERSION="8.4"
77for dir in \
78 ${exec_prefix} \
79 ${exec_prefix}/lib ; do
80  tclconfig="${dir}/tclConfig.sh"
81  if test -f "$tclconfig" ; then
82    . $tclconfig
83    break
84  fi
85done
86TCL_INC_SPEC="$TCL_INCLUDE_SPEC"
87
88if test "x$with_tcllib" != "x" ; then
89   tclconfig="${with_tcllib}/tclConfig.sh"
90   if test -f "$tclconfig" ; then
91    . $tclconfig
92   fi
93   TCL_LIB_SPEC="-L${with_tcllib} -ltcl${TCL_VERSION}"
94fi
95if test "x$with_tclinclude" != "x" ; then
96   TCL_INC_SPEC="-I${with_tclinclude}"
97fi
98
99OSG_INC_SPEC=-I${incdir}
100OSG_LIB_DIR=${libdir}
101OSG_LIB_SPEC="-L${libdir}"
102
103if test "x$with_osg_includes" != "x"; then
104   OSG_INC_SPEC=-I$with_osg_includes
105fi
106
107if test "x$with_osg_libs" != "x"; then
108   OSG_LIB_DIR=$with_osg_libs
109   OSG_LIB_SPEC="-L$with_osg_libs"
110fi
111
112AC_CHECK_HEADERS([stdio.h unistd.h stdlib.h string.h sys/types.h])
113AC_CHECK_HEADERS([sys/socket.h sys/time.h netinet/in.h arpa/inet.h netdb.h])
114
115AC_CHECK_FUNCS([accept4])
116
117AC_SUBST(STATSDIR)
118AC_SUBST(TCL_INC_SPEC)
119AC_SUBST(TCL_LIB_SPEC)
120AC_SUBST(TCL_VERSION)
121AC_SUBST(OSG_INC_SPEC)
122AC_SUBST(OSG_LIB_DIR)
123AC_SUBST(OSG_LIB_SPEC)
124
125AC_OUTPUT([Makefile])
Note: See TracBrowser for help on using the repository browser.