summaryrefslogtreecommitdiff
path: root/m4/canonicalize.m4
blob: b593e9b87964ceb69139a5b54480965caf5d0b39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#serial 6

# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.

# Written by Jim Meyering.

AC_DEFUN([AC_FUNC_CANONICALIZE_FILE_NAME],
  [
    AC_LIBSOURCES([canonicalize.c, canonicalize.h, stat-macros.h])
    AC_LIBOBJ([canonicalize])

    AC_REQUIRE([AC_HEADER_STDC])
    AC_CHECK_HEADERS(string.h sys/param.h stddef.h)
    AC_CHECK_FUNCS(resolvepath canonicalize_file_name)
    AC_REQUIRE([AC_HEADER_STAT])
  ])