ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/libukcprog/configure.in
Revision: 1.2
Committed: Sat May 3 13:14:20 2003 UTC (21 years, 6 months ago) by tdb
Branch: MAIN
CVS Tags: LIBUKCPROG_1_0
Changes since 1.1: +12 -2 lines
Log Message:
Make the library be linked with -lnsl and -lsocket on solaris. This helps
people using libukcprog, without it they need to add those every time they
use this library.

File Contents

# User Rev Content
1 tdb 1.1 # -*- Autoconf -*-
2     # Process this file with autoconf to produce a configure script.
3     #
4     # configure.in for libukcprog
5 tdb 1.2 # $Id: configure.in,v 1.1 2003/03/29 16:30:31 tdb Exp $
6 tdb 1.1 #
7    
8     # Change these to change the package name and version
9     AC_INIT(libukcprog, 1.0, dev@i-scream.org.uk)
10     AM_INIT_AUTOMAKE(libukcprog, 1.0)
11    
12     # Revision number (automatically updated)
13 tdb 1.2 AC_REVISION($Revision: 1.1 $)
14 tdb 1.1
15     # Might work with older autoconfs... but tested on 2.57
16     AC_PREREQ(2.57)
17    
18     # Checks for programs
19     AC_PROG_CC
20     AC_PROG_INSTALL
21     AC_PROG_LIBTOOL
22    
23     # Checks for header files
24     AC_HEADER_STDC
25    
26     # Checks for typedefs, structures, and compiler characteristics
27     AC_C_CONST
28 tdb 1.2
29     # Figure out details about the host - we need the OS
30     AC_CANONICAL_HOST
31    
32     # On Slaris add some LIBS to make linking against libukcprog easier
33     case $host_os in
34     solaris2.*)
35     LIBS="$LIBS -lnsl -lsocket"
36     ;;
37     esac
38 tdb 1.1
39     # And finish by changing these files
40     AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile])
41    
42     AC_OUTPUT