~ubuntu-branches/ubuntu/dapper/hplip/dapper-security

« back to all changes in this revision

Viewing changes to prnt/hpijs/configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Henrique de Moraes Holschuh
  • Date: 2005-02-01 12:46:56 UTC
  • Revision ID: james.westby@ubuntu.com-20050201124656-g6cgoa5uezd5lnbo
Tags: 0.8.7-4
* Henrique de Moraes Holschuh:
  * HPLIP:
    * Remove stray tab on 50_securityfix_umask.dpatch.  Reupload in
      case python decides to croak on us because of it
    * Remove unneeded (but harmless) patch 21_base_pidfile_support.dpatch

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
dnl Process this file with autoconf to produce a configure script.
2
 
AC_INIT(hpijs.cpp)
3
 
AM_INIT_AUTOMAKE(hpijs, 2.0.1)
4
 
#AC_PREFIX_DEFAULT(/usr) 
 
2
AC_INIT(hpijs, 2.0.1)
 
3
AC_CONFIG_SRCDIR([hpijs.cpp])
 
4
AC_CONFIG_AUX_DIR(../..)
 
5
AM_INIT_AUTOMAKE(foreign)
 
6
AM_MAINTAINER_MODE
5
7
 
6
8
dnl Checks for programs.
7
9
AC_PROG_CC
34
36
-DAPDK_BUFFER_SEND -DAPDK_LDL_COMPRESS -DAPDK_EXTENDED_MEDIASIZE \
35
37
-DAPDK_MLC_PRINTER -DAPDK_DJ3600 -DAPDK_LINUX"
36
38
 
37
 
AC_MSG_CHECKING("which type of build")
38
 
if test "$GCC" = yes; then
39
 
   AC_ARG_ENABLE(debug,
40
 
     [  --enable-debug             enable debug mode [default=no]],
41
 
     enable_debug=$enableval, enable_debug=no)
42
 
   if test $enable_debug = yes; then
43
 
      CFLAGS="-g -Wall"
44
 
      CXXFLAGS="-g -Wall"
45
 
      AC_MSG_RESULT(debug)
46
 
   else
47
 
      CFLAGS="-O2 -Wall"
48
 
      CXXFLAGS="-O2 -Wall"
49
 
      AC_MSG_RESULT(release)
50
 
   fi
51
 
else
52
 
   AC_MSG_RESULT("$CXXFLAGS")   
53
 
fi
54
 
 
55
39
AC_MSG_CHECKING("for unint32_t")
56
40
FOUND_TYPE=""
57
41
for i in stdint.h machine/types.h inttypes.h; do
58
 
   AC_TRY_COMPILE([#include <$i>], [uint32_t x;], FOUND_TYPE=$i) 
 
42
   AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <$i>]], [[uint32_t x;]])],[FOUND_TYPE=$i],[]) 
59
43
   if test "$FOUND_TYPE" != ""; then
60
44
      break
61
45
   fi
152
136
AC_CHECK_FUNCS(strtod strtol)
153
137
AC_CHECK_FUNC(pow, , AC_CHECK_LIB(m, pow))
154
138
 
155
 
AC_OUTPUT(Makefile)
 
139
AC_CONFIG_FILES([Makefile])
 
140
AC_OUTPUT