~ubuntu-branches/ubuntu/lucid/x11-apps/lucid

« back to all changes in this revision

Viewing changes to x11perf/aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Julien Cristau
  • Date: 2008-09-23 00:24:45 UTC
  • mfrom: (1.1.2 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080923002445-mb2rwkif45zz1vlj
Tags: 7.3+4
* Remove xedit from the package, it's unmaintained and broken
  (closes: #321434).
* Remove xedit's conffiles on upgrade.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.10.1 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005  Free Software Foundation, Inc.
 
4
# 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
13
13
 
 
14
m4_ifndef([AC_AUTOCONF_VERSION],
 
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
16
m4_if(AC_AUTOCONF_VERSION, [2.61],,
 
17
[m4_warning([this file was generated for autoconf 2.61.
 
18
You have another version of autoconf.  It may work, but is not guaranteed to.
 
19
If you have problems, you may need to regenerate the build system entirely.
 
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
 
21
 
14
22
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
15
23
16
24
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
79
87
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
80
88
# ---------------------------------------------
81
89
m4_define([_PKG_CONFIG],
82
 
[if test -n "$PKG_CONFIG"; then
83
 
    if test -n "$$1"; then
84
 
        pkg_cv_[]$1="$$1"
85
 
    else
86
 
        PKG_CHECK_EXISTS([$3],
87
 
                         [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
88
 
                         [pkg_failed=yes])
89
 
    fi
90
 
else
91
 
        pkg_failed=untried
 
90
[if test -n "$$1"; then
 
91
    pkg_cv_[]$1="$$1"
 
92
 elif test -n "$PKG_CONFIG"; then
 
93
    PKG_CHECK_EXISTS([$3],
 
94
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
 
95
                     [pkg_failed=yes])
 
96
 else
 
97
    pkg_failed=untried
92
98
fi[]dnl
93
99
])# _PKG_CONFIG
94
100
 
132
138
if test $pkg_failed = yes; then
133
139
        _PKG_SHORT_ERRORS_SUPPORTED
134
140
        if test $_pkg_short_errors_supported = yes; then
135
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
 
141
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
136
142
        else 
137
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
 
143
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
138
144
        fi
139
145
        # Put the nasty error message in config.log where it belongs
140
146
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
159
165
 
160
166
_PKG_TEXT
161
167
 
162
 
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
 
168
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
163
169
                [$4])
164
170
else
165
171
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
216
222
        XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'`
217
223
        XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`]
218
224
        AC_MSG_CHECKING([if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}])
219
 
        [XORG_MACROS_version=1.1.2
 
225
        [XORG_MACROS_version=1.1.6
220
226
        XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'`
221
227
        XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`]
222
228
        if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then
365
371
XORG_SGML_PATH=$prefix/share/sgml
366
372
HAVE_DEFS_ENT=
367
373
 
368
 
AC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes])
 
374
if test x"$cross_compiling" = x"yes" ; then
 
375
  HAVE_DEFS_ENT=no
 
376
else
 
377
  AC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes])
 
378
fi
369
379
 
370
380
AC_PATH_PROG(LINUXDOC, linuxdoc)
371
381
AC_PATH_PROG(PS2PDF, ps2pdf)
620
630
# --------------------
621
631
# Adds --with/without-release-string and changes the PACKAGE and
622
632
# PACKAGE_TARNAME to use "$PACKAGE{_TARNAME}-$RELEASE_VERSION".  If
623
 
# no option is given, PACKAGE and PACKAGE_TARNAME are unchanged.
 
633
# no option is given, PACKAGE and PACKAGE_TARNAME are unchanged.  Also
 
634
# defines PACKAGE_VERSION_{MAJOR,MINOR,PATCHLEVEL} for modules to use.
624
635
 
625
636
AC_DEFUN([XORG_RELEASE_VERSION],[
626
637
        AC_ARG_WITH(release-version,
633
644
                PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
634
645
                AC_MSG_NOTICE([Building with package name set to $PACKAGE])
635
646
        fi
 
647
        AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MAJOR],
 
648
                [`echo $PACKAGE_VERSION | cut -d . -f 1`],
 
649
                [Major version of this package])
 
650
        PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
 
651
        if test "x$PVM" = "x"; then
 
652
                PVM="0"
 
653
        fi
 
654
        AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MINOR],
 
655
                [$PVM],
 
656
                [Minor version of this package])
 
657
        PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
 
658
        if test "x$PVP" = "x"; then
 
659
                PVP="0"
 
660
        fi
 
661
        AC_DEFINE_UNQUOTED([PACKAGE_VERSION_PATCHLEVEL],
 
662
                [$PVP],
 
663
                [Patch version of this package])
636
664
])
637
665
 
638
 
# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
 
666
# Copyright (C) 2002, 2003, 2005, 2006, 2007  Free Software Foundation, Inc.
639
667
#
640
668
# This file is free software; the Free Software Foundation
641
669
# gives unlimited permission to copy and/or distribute it,
645
673
# ----------------------------
646
674
# Automake X.Y traces this macro to ensure aclocal.m4 has been
647
675
# generated from the m4 files accompanying Automake X.Y.
648
 
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
 
676
# (This private macro should not be called outside this file.)
 
677
AC_DEFUN([AM_AUTOMAKE_VERSION],
 
678
[am__api_version='1.10'
 
679
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 
680
dnl require some minimum version.  Point them to the right macro.
 
681
m4_if([$1], [1.10.1], [],
 
682
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
683
])
 
684
 
 
685
# _AM_AUTOCONF_VERSION(VERSION)
 
686
# -----------------------------
 
687
# aclocal traces this macro to find the Autoconf version.
 
688
# This is a private macro too.  Using m4_define simplifies
 
689
# the logic in aclocal, which can simply ignore this definition.
 
690
m4_define([_AM_AUTOCONF_VERSION], [])
649
691
 
650
692
# AM_SET_CURRENT_AUTOMAKE_VERSION
651
693
# -------------------------------
652
 
# Call AM_AUTOMAKE_VERSION so it can be traced.
 
694
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
653
695
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
654
696
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
655
 
         [AM_AUTOMAKE_VERSION([1.9.6])])
 
697
[AM_AUTOMAKE_VERSION([1.10.1])dnl
 
698
m4_ifndef([AC_AUTOCONF_VERSION],
 
699
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
700
_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
656
701
 
657
702
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
658
703
 
709
754
 
710
755
# AM_CONDITIONAL                                            -*- Autoconf -*-
711
756
 
712
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
 
757
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
713
758
# Free Software Foundation, Inc.
714
759
#
715
760
# This file is free software; the Free Software Foundation
716
761
# gives unlimited permission to copy and/or distribute it,
717
762
# with or without modifications, as long as this notice is preserved.
718
763
 
719
 
# serial 7
 
764
# serial 8
720
765
 
721
766
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
722
767
# -------------------------------------
725
770
[AC_PREREQ(2.52)dnl
726
771
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
727
772
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
728
 
AC_SUBST([$1_TRUE])
729
 
AC_SUBST([$1_FALSE])
 
773
AC_SUBST([$1_TRUE])dnl
 
774
AC_SUBST([$1_FALSE])dnl
 
775
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
 
776
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
730
777
if $2; then
731
778
  $1_TRUE=
732
779
  $1_FALSE='#'
740
787
Usually this means the macro was only invoked conditionally.]])
741
788
fi])])
742
789
 
743
 
 
744
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
790
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
745
791
# Free Software Foundation, Inc.
746
792
#
747
793
# This file is free software; the Free Software Foundation
748
794
# gives unlimited permission to copy and/or distribute it,
749
795
# with or without modifications, as long as this notice is preserved.
750
796
 
751
 
# serial 8
 
797
# serial 9
752
798
 
753
799
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
754
800
# written in clear, in which case automake, when reading aclocal.m4,
776
822
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
777
823
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
778
824
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
825
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
779
826
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
780
827
                   [depcc="$$1"   am_compiler_list=])
781
828
 
841
888
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
842
889
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
843
890
         >/dev/null 2>conftest.err &&
 
891
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
844
892
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
845
893
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
846
894
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
893
941
  AMDEPBACKSLASH='\'
894
942
fi
895
943
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
896
 
AC_SUBST([AMDEPBACKSLASH])
 
944
AC_SUBST([AMDEPBACKSLASH])dnl
 
945
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
897
946
])
898
947
 
899
948
# Generate code to set up dependency tracking.              -*- Autoconf -*-
918
967
  # some people rename them; so instead we look at the file content.
919
968
  # Grep'ing the first line is not enough: some people post-process
920
969
  # each Makefile.in and add a new line on top of each file to say so.
921
 
  # So let's grep whole file.
922
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
970
  # Grep'ing the whole file is not good either: AIX grep has a line
 
971
  # limit of 2048, but all sed's we know have understand at least 4000.
 
972
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
923
973
    dirpart=`AS_DIRNAME("$mf")`
924
974
  else
925
975
    continue
978
1028
 
979
1029
# Do all the work for Automake.                             -*- Autoconf -*-
980
1030
 
981
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
982
 
# Free Software Foundation, Inc.
 
1031
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
1032
# 2005, 2006, 2008 Free Software Foundation, Inc.
983
1033
#
984
1034
# This file is free software; the Free Software Foundation
985
1035
# gives unlimited permission to copy and/or distribute it,
986
1036
# with or without modifications, as long as this notice is preserved.
987
1037
 
988
 
# serial 12
 
1038
# serial 13
989
1039
 
990
1040
# This macro actually does too much.  Some checks are only needed if
991
1041
# your package does certain things.  But this isn't really a big deal.
1002
1052
# arguments mandatory, and then we can depend on a new Autoconf
1003
1053
# release and drop the old call support.
1004
1054
AC_DEFUN([AM_INIT_AUTOMAKE],
1005
 
[AC_PREREQ([2.58])dnl
 
1055
[AC_PREREQ([2.60])dnl
1006
1056
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
1007
1057
dnl the ones we care about.
1008
1058
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
1009
1059
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
1010
1060
AC_REQUIRE([AC_PROG_INSTALL])dnl
1011
 
# test to see if srcdir already configured
1012
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1013
 
   test -f $srcdir/config.status; then
1014
 
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
1061
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
1062
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
1063
  # is not polluted with repeated "-I."
 
1064
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
1065
  # test to see if srcdir already configured
 
1066
  if test -f $srcdir/config.status; then
 
1067
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
1068
  fi
1015
1069
fi
1016
1070
 
1017
1071
# test whether we have cygpath
1031
1085
 AC_SUBST([PACKAGE], [$1])dnl
1032
1086
 AC_SUBST([VERSION], [$2])],
1033
1087
[_AM_SET_OPTIONS([$1])dnl
 
1088
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
1089
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
1090
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
1034
1091
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
1035
1092
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
1036
1093
 
1066
1123
                  [_AM_DEPENDENCIES(CXX)],
1067
1124
                  [define([AC_PROG_CXX],
1068
1125
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
1126
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
1127
                  [_AM_DEPENDENCIES(OBJC)],
 
1128
                  [define([AC_PROG_OBJC],
 
1129
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
1069
1130
])
1070
1131
])
1071
1132
 
1079
1140
# our stamp files there.
1080
1141
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
1081
1142
[# Compute $1's index in $config_headers.
 
1143
_am_arg=$1
1082
1144
_am_stamp_count=1
1083
1145
for _am_header in $config_headers :; do
1084
1146
  case $_am_header in
1085
 
    $1 | $1:* )
 
1147
    $_am_arg | $_am_arg:* )
1086
1148
      break ;;
1087
1149
    * )
1088
1150
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1089
1151
  esac
1090
1152
done
1091
 
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
 
1153
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
1092
1154
 
1093
1155
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
1094
1156
#
1101
1163
# Define $install_sh.
1102
1164
AC_DEFUN([AM_PROG_INSTALL_SH],
1103
1165
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1104
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1166
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
1105
1167
AC_SUBST(install_sh)])
1106
1168
 
1107
1169
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
1208
1270
 
1209
1271
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
1210
1272
 
1211
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
 
1273
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
1212
1274
# Free Software Foundation, Inc.
1213
1275
#
1214
1276
# This file is free software; the Free Software Foundation
1215
1277
# gives unlimited permission to copy and/or distribute it,
1216
1278
# with or without modifications, as long as this notice is preserved.
1217
1279
 
1218
 
# serial 4
 
1280
# serial 5
1219
1281
 
1220
1282
# AM_MISSING_PROG(NAME, PROGRAM)
1221
1283
# ------------------------------
1231
1293
# If it does, set am_missing_run to use it, otherwise, to nothing.
1232
1294
AC_DEFUN([AM_MISSING_HAS_RUN],
1233
1295
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
1296
AC_REQUIRE_AUX_FILE([missing])dnl
1234
1297
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1235
1298
# Use eval to expand $SHELL
1236
1299
if eval "$MISSING --run true"; then
1241
1304
fi
1242
1305
])
1243
1306
 
1244
 
# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
 
1307
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
1245
1308
#
1246
1309
# This file is free software; the Free Software Foundation
1247
1310
# gives unlimited permission to copy and/or distribute it,
1249
1312
 
1250
1313
# AM_PROG_MKDIR_P
1251
1314
# ---------------
1252
 
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
1253
 
#
1254
 
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
1255
 
# created by `make install' are always world readable, even if the
1256
 
# installer happens to have an overly restrictive umask (e.g. 077).
1257
 
# This was a mistake.  There are at least two reasons why we must not
1258
 
# use `-m 0755':
1259
 
#   - it causes special bits like SGID to be ignored,
1260
 
#   - it may be too restrictive (some setups expect 775 directories).
1261
 
#
1262
 
# Do not use -m 0755 and let people choose whatever they expect by
1263
 
# setting umask.
1264
 
#
1265
 
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
1266
 
# Some implementations (such as Solaris 8's) are not thread-safe: if a
1267
 
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
1268
 
# concurrently, both version can detect that a/ is missing, but only
1269
 
# one can create it and the other will error out.  Consequently we
1270
 
# restrict ourselves to GNU make (using the --version option ensures
1271
 
# this.)
 
1315
# Check for `mkdir -p'.
1272
1316
AC_DEFUN([AM_PROG_MKDIR_P],
1273
 
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1274
 
  # We used to keeping the `.' as first argument, in order to
1275
 
  # allow $(mkdir_p) to be used without argument.  As in
1276
 
  #   $(mkdir_p) $(somedir)
1277
 
  # where $(somedir) is conditionally defined.  However this is wrong
1278
 
  # for two reasons:
1279
 
  #  1. if the package is installed by a user who cannot write `.'
1280
 
  #     make install will fail,
1281
 
  #  2. the above comment should most certainly read
1282
 
  #     $(mkdir_p) $(DESTDIR)$(somedir)
1283
 
  #     so it does not work when $(somedir) is undefined and
1284
 
  #     $(DESTDIR) is not.
1285
 
  #  To support the latter case, we have to write
1286
 
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1287
 
  #  so the `.' trick is pointless.
1288
 
  mkdir_p='mkdir -p --'
1289
 
else
1290
 
  # On NextStep and OpenStep, the `mkdir' command does not
1291
 
  # recognize any option.  It will interpret all options as
1292
 
  # directories to create, and then abort because `.' already
1293
 
  # exists.
1294
 
  for d in ./-p ./--version;
1295
 
  do
1296
 
    test -d $d && rmdir $d
1297
 
  done
1298
 
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1299
 
  if test -f "$ac_aux_dir/mkinstalldirs"; then
1300
 
    mkdir_p='$(mkinstalldirs)'
1301
 
  else
1302
 
    mkdir_p='$(install_sh) -d'
1303
 
  fi
1304
 
fi
1305
 
AC_SUBST([mkdir_p])])
 
1317
[AC_PREREQ([2.60])dnl
 
1318
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
1319
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
 
1320
dnl while keeping a definition of mkdir_p for backward compatibility.
 
1321
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
 
1322
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
 
1323
dnl Makefile.ins that do not define MKDIR_P, so we do our own
 
1324
dnl adjustment using top_builddir (which is defined more often than
 
1325
dnl MKDIR_P).
 
1326
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
 
1327
case $mkdir_p in
 
1328
  [[\\/$]]* | ?:[[\\/]]*) ;;
 
1329
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
1330
esac
 
1331
])
1306
1332
 
1307
1333
# Helper functions for option handling.                     -*- Autoconf -*-
1308
1334
 
1414
1440
if test "$cross_compiling" != no; then
1415
1441
  AC_CHECK_TOOL([STRIP], [strip], :)
1416
1442
fi
1417
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
1443
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1418
1444
AC_SUBST([INSTALL_STRIP_PROGRAM])])
1419
1445
 
 
1446
# Copyright (C) 2006  Free Software Foundation, Inc.
 
1447
#
 
1448
# This file is free software; the Free Software Foundation
 
1449
# gives unlimited permission to copy and/or distribute it,
 
1450
# with or without modifications, as long as this notice is preserved.
 
1451
 
 
1452
# _AM_SUBST_NOTMAKE(VARIABLE)
 
1453
# ---------------------------
 
1454
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
 
1455
# This macro is traced by Automake.
 
1456
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
1457
 
1420
1458
# Check how to create a tarball.                            -*- Autoconf -*-
1421
1459
 
1422
1460
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.