~ubuntu-branches/ubuntu/edgy/xfsprogs/edgy

« back to all changes in this revision

Viewing changes to m4/package_uuiddev.m4

  • Committer: Bazaar Package Importer
  • Author(s): Nathan Scott
  • Date: 2004-07-28 21:11:38 UTC
  • Revision ID: james.westby@ubuntu.com-20040728211138-0v4pdnunnp7na5lm
Tags: 2.6.20-1
* New upstream release.
* Fix xfs_io segfault on non-XFS files.  (closes: #260470)
* Fix packaging botch, deleted files included.  (closes: #260491)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
AC_DEFUN([AC_PACKAGE_NEED_UUID_H],
 
2
  [ AC_CHECK_HEADERS([uuid.h sys/uuid.h uuid/uuid.h])
 
3
    if test $ac_cv_header_uuid_h = no -a \
 
4
            $ac_cv_header_sys_uuid_h = no -a \
 
5
            $ac_cv_header_uuid_uuid_h = no; then
 
6
        echo
 
7
        echo 'FATAL ERROR: could not find a valid UUID header.'
 
8
        echo 'Install the Universally Unique Identifiers development package.'
 
9
        exit 1
 
10
    fi
 
11
  ])
 
12
 
 
13
AC_DEFUN([AC_PACKAGE_NEED_UUIDCOMPARE],
 
14
  [ AC_CHECK_FUNCS(uuid_compare)
 
15
    if test $ac_cv_func_uuid_compare = yes; then
 
16
        libuuid=""
 
17
    else
 
18
        AC_CHECK_LIB(uuid, uuid_compare,, [
 
19
            echo
 
20
            echo 'FATAL ERROR: could not find a valid UUID library.'
 
21
            echo 'Install the Universally Unique Identifiers library package.'
 
22
            exit 1])
 
23
        libuuid="-luuid"
 
24
    fi
 
25
    AC_SUBST(libuuid)
 
26
  ])