~ubuntu-branches/ubuntu/karmic/hddtemp/karmic

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Aurelien Jarno
  • Date: 2004-05-04 01:48:26 UTC
  • Revision ID: james.westby@ubuntu.com-20040504014826-px26mjroiu8gos6c
Tags: upstream-0.3-beta11
ImportĀ upstreamĀ versionĀ 0.3-beta11

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl Process this file with autoconf to produce a configure script.
 
2
 
 
3
# Initialization
 
4
AC_INIT(Makefile.am)
 
5
AM_CONFIG_HEADER(config.h)
 
6
 
 
7
# Determine the host and build type. The target is always a PIC.
 
8
AC_CANONICAL_HOST
 
9
 
 
10
AM_INIT_AUTOMAKE(hddtemp, 0.3-beta11)
 
11
 
 
12
dnl Checks for programs.
 
13
AC_PROG_CC
 
14
AC_PROG_INSTALL
 
15
 
 
16
# append the host alias to the tools for cross compiling
 
17
AC_HEADER_STDC
 
18
AC_CHECK_HEADERS(fcntl.h)
 
19
AC_CHECK_HEADERS(netinet/in.h)
 
20
AC_CHECK_TYPE(in_addr_t, ,[AC_DEFINE_UNQUOTED([in_addr_t], [uint32_t], [Define to 'uint32_t' if <netinet/in.h> does not define.])], [#include <netinet/in.h>])
 
21
 
 
22
# Checks for typedefs, structures, and compiler characteristics.
 
23
AC_C_CONST
 
24
AC_STRUCT_TM
 
25
 
 
26
dnl internationalization macros
 
27
AM_GNU_GETTEXT
 
28
 
 
29
dnl reasonable guesses for where stuff is installed
 
30
dnl if we don't do that now, the config.h will use ${prefix}
 
31
dnl for DEFAULT_DATABASE_PATH.
 
32
if test "x$prefix" = "xNONE"; then
 
33
   prefix="/usr/local"
 
34
fi
 
35
if test "x$exec_prefix" = "xNONE"; then
 
36
   exec_prefix=$prefix
 
37
fi
 
38
 
 
39
AC_MSG_CHECKING([Location of hddtemp.db])
 
40
DEFAULT_DATABASE_PATH=
 
41
#db_path=\"`eval echo ${datadir}`/misc/hddtemp.db\"
 
42
db_path=\"/usr/share/misc/hddtemp.db\"
 
43
AC_ARG_WITH(db_path,
 
44
               [  --with-db-path=PATH \
 
45
                Default location of hddtemp.db file [/usr/share/misc/hddtemp.db]],
 
46
               [  if test -d "$withval"; then
 
47
                     AC_MSG_FAILURE([new file name for db-path])
 
48
                  fi
 
49
                  DEFAULT_DATABASE_PATH="\"$withval\"" 
 
50
               ],
 
51
               [  DEFAULT_DATABASE_PATH="$db_path" ])
 
52
AC_MSG_RESULT($DEFAULT_DATABASE_PATH)
 
53
AC_DEFINE_UNQUOTED([DEFAULT_DATABASE_PATH], [$DEFAULT_DATABASE_PATH], [Default location of drive info database])
 
54
 
 
55
#CFLAGS="$CFLAGS -Wall -fomit-frame-pointer -Wcast-align"
 
56
CFLAGS="$CFLAGS -Wall -W -Wcast-align"
 
57
 
 
58
# Substitute configuration variables
 
59
AC_OUTPUT(
 
60
Makefile \
 
61
intl/Makefile \
 
62
po/Makefile.in \
 
63
m4/Makefile \
 
64
src/Makefile \
 
65
doc/Makefile \
 
66
)
 
67
 
 
68
AC_MSG_RESULT([
 
69
 
 
70
hddtemp-$VERSION is now configured for $canonical_host_type
 
71
 
 
72
  Build:                $build
 
73
  Host:                 $host
 
74
  Source directory:     $srcdir
 
75
  Installation prefix:  $prefix
 
76
  C compiler:           $CC $CFLAGS
 
77
  
 
78
])