1 | dnl Copyright (C) 1995-2003, 2005,2006 Free Software Foundation, Inc.
|
---|
2 | dnl This file is free software; the Free Software Foundation
|
---|
3 | dnl gives unlimited permission to copy and/or distribute it,
|
---|
4 | dnl with or without modifications, as long as this notice is preserved.
|
---|
5 | dnl
|
---|
6 | dnl This file can can be used in projects which are not available under
|
---|
7 | dnl the GNU General Public License or the GNU Library General Public
|
---|
8 | dnl License but which still want to provide support for the GNU gettext
|
---|
9 | dnl functionality.
|
---|
10 | dnl Please note that the actual code of the GNU gettext library is covered
|
---|
11 | dnl by the GNU Library General Public License, and the rest of the GNU
|
---|
12 | dnl gettext package package is covered by the GNU General Public License.
|
---|
13 | dnl They are *not* in the public domain.
|
---|
14 |
|
---|
15 | dnl Authors:
|
---|
16 | dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
|
---|
17 | dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
|
---|
18 | # Originally taken from nls.m4 serial 2 (gettext-0.14.3)
|
---|
19 |
|
---|
20 | AC_PREREQ(2.50)
|
---|
21 |
|
---|
22 | AC_DEFUN([AM_MKINSTALLDIRS],
|
---|
23 | [
|
---|
24 | dnl Tell automake >= 1.10 to complain if mkinstalldirs is missing.
|
---|
25 | m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([mkinstalldirs])])
|
---|
26 | dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
|
---|
27 | dnl find the mkinstalldirs script in another subdir but $(top_srcdir).
|
---|
28 | dnl Try to locate it.
|
---|
29 | MKINSTALLDIRS=
|
---|
30 | if test -n "$ac_aux_dir"; then
|
---|
31 | case "$ac_aux_dir" in
|
---|
32 | /*|[[a-zA-Z]]:/*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
|
---|
33 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
|
---|
34 | esac
|
---|
35 | fi
|
---|
36 | if test -z "$MKINSTALLDIRS"; then
|
---|
37 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
|
---|
38 | fi
|
---|
39 | AC_SUBST(MKINSTALLDIRS)
|
---|
40 | ])
|
---|