File: configure.in

package info (click to toggle)
xlispstat 3.52.14-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 7,560 kB
  • ctags: 12,676
  • sloc: ansic: 91,357; lisp: 21,759; sh: 1,525; makefile: 521; csh: 1
file content (27 lines) | stat: -rw-r--r-- 694 bytes parent folder | download | duplicates (8)
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
# Adapted from Tcl and Welch p. 545

AC_INIT(Makefile.in)

# Get the application library directory.
AC_ARG_WITH(libdir,
            [  --with-libdir=DIR       library directory for application],
            [LIBDIR=$withval;INCDIR="$LIBDIR/include"],
            [LIBDIR=`cd ../..; pwd`;INCDIR=$LIBDIR])
if test ! -d $LIBDIR; then
  AC_MSG_ERROR(library directory $LIBDIR does not exist)
fi

# Recover system configuration information.
. $LIBDIR/shlibconfig.sh

# Register configuration variables for substitution.
AC_SUBST(CC)
AC_SUBST(SHLIB_CFLAGS)
AC_SUBST(SHLIB_LD)
AC_SUBST(SHLIB_SUFFIX)
AC_SUBST(SHLIB_LD_LIBS)
AC_SUBST(LIBDIR)
AC_SUBST(INCDIR)

# Output the Makefile
AC_OUTPUT(Makefile)