~ubuntu-branches/ubuntu/hardy/hal-info/hardy-proposed

« back to all changes in this revision

Viewing changes to aclocal.m4

Import upstream version 20080508+git20080601

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>.
149
157
 
150
158
_PKG_TEXT
151
159
])],
152
 
                [$4])
 
160
                [AC_MSG_RESULT([no])
 
161
                $4])
153
162
elif test $pkg_failed = untried; then
154
163
        ifelse([$4], , [AC_MSG_FAILURE(dnl
155
164
[The pkg-config script could not be found or is too old.  Make sure it
158
167
 
159
168
_PKG_TEXT
160
169
 
161
 
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
 
170
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
162
171
                [$4])
163
172
else
164
173
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
168
177
fi[]dnl
169
178
])# PKG_CHECK_MODULES
170
179
 
171
 
# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
 
180
# Copyright (C) 2002, 2003, 2005, 2006, 2007  Free Software Foundation, Inc.
172
181
#
173
182
# This file is free software; the Free Software Foundation
174
183
# gives unlimited permission to copy and/or distribute it,
178
187
# ----------------------------
179
188
# Automake X.Y traces this macro to ensure aclocal.m4 has been
180
189
# generated from the m4 files accompanying Automake X.Y.
181
 
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
 
190
# (This private macro should not be called outside this file.)
 
191
AC_DEFUN([AM_AUTOMAKE_VERSION],
 
192
[am__api_version='1.10'
 
193
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 
194
dnl require some minimum version.  Point them to the right macro.
 
195
m4_if([$1], [1.10.1], [],
 
196
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
197
])
 
198
 
 
199
# _AM_AUTOCONF_VERSION(VERSION)
 
200
# -----------------------------
 
201
# aclocal traces this macro to find the Autoconf version.
 
202
# This is a private macro too.  Using m4_define simplifies
 
203
# the logic in aclocal, which can simply ignore this definition.
 
204
m4_define([_AM_AUTOCONF_VERSION], [])
182
205
 
183
206
# AM_SET_CURRENT_AUTOMAKE_VERSION
184
207
# -------------------------------
185
 
# Call AM_AUTOMAKE_VERSION so it can be traced.
 
208
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
186
209
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
187
210
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
188
 
         [AM_AUTOMAKE_VERSION([1.9.6])])
 
211
[AM_AUTOMAKE_VERSION([1.10.1])dnl
 
212
m4_ifndef([AC_AUTOCONF_VERSION],
 
213
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
214
_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
189
215
 
190
216
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
191
217
 
242
268
 
243
269
# AM_CONDITIONAL                                            -*- Autoconf -*-
244
270
 
245
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
 
271
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
246
272
# Free Software Foundation, Inc.
247
273
#
248
274
# This file is free software; the Free Software Foundation
249
275
# gives unlimited permission to copy and/or distribute it,
250
276
# with or without modifications, as long as this notice is preserved.
251
277
 
252
 
# serial 7
 
278
# serial 8
253
279
 
254
280
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
255
281
# -------------------------------------
258
284
[AC_PREREQ(2.52)dnl
259
285
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
260
286
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
261
 
AC_SUBST([$1_TRUE])
262
 
AC_SUBST([$1_FALSE])
 
287
AC_SUBST([$1_TRUE])dnl
 
288
AC_SUBST([$1_FALSE])dnl
 
289
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
 
290
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
263
291
if $2; then
264
292
  $1_TRUE=
265
293
  $1_FALSE='#'
273
301
Usually this means the macro was only invoked conditionally.]])
274
302
fi])])
275
303
 
276
 
 
277
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
304
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
278
305
# Free Software Foundation, Inc.
279
306
#
280
307
# This file is free software; the Free Software Foundation
281
308
# gives unlimited permission to copy and/or distribute it,
282
309
# with or without modifications, as long as this notice is preserved.
283
310
 
284
 
# serial 8
 
311
# serial 9
285
312
 
286
313
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
287
314
# written in clear, in which case automake, when reading aclocal.m4,
309
336
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
310
337
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
311
338
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
339
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
312
340
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
313
341
                   [depcc="$$1"   am_compiler_list=])
314
342
 
374
402
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
375
403
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
376
404
         >/dev/null 2>conftest.err &&
 
405
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
377
406
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
378
407
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
379
408
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
426
455
  AMDEPBACKSLASH='\'
427
456
fi
428
457
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
429
 
AC_SUBST([AMDEPBACKSLASH])
 
458
AC_SUBST([AMDEPBACKSLASH])dnl
 
459
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
430
460
])
431
461
 
432
462
# Generate code to set up dependency tracking.              -*- Autoconf -*-
451
481
  # some people rename them; so instead we look at the file content.
452
482
  # Grep'ing the first line is not enough: some people post-process
453
483
  # each Makefile.in and add a new line on top of each file to say so.
454
 
  # So let's grep whole file.
455
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
484
  # Grep'ing the whole file is not good either: AIX grep has a line
 
485
  # limit of 2048, but all sed's we know have understand at least 4000.
 
486
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
456
487
    dirpart=`AS_DIRNAME("$mf")`
457
488
  else
458
489
    continue
511
542
 
512
543
# Do all the work for Automake.                             -*- Autoconf -*-
513
544
 
514
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
515
 
# Free Software Foundation, Inc.
 
545
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
546
# 2005, 2006, 2008 Free Software Foundation, Inc.
516
547
#
517
548
# This file is free software; the Free Software Foundation
518
549
# gives unlimited permission to copy and/or distribute it,
519
550
# with or without modifications, as long as this notice is preserved.
520
551
 
521
 
# serial 12
 
552
# serial 13
522
553
 
523
554
# This macro actually does too much.  Some checks are only needed if
524
555
# your package does certain things.  But this isn't really a big deal.
535
566
# arguments mandatory, and then we can depend on a new Autoconf
536
567
# release and drop the old call support.
537
568
AC_DEFUN([AM_INIT_AUTOMAKE],
538
 
[AC_PREREQ([2.58])dnl
 
569
[AC_PREREQ([2.60])dnl
539
570
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
540
571
dnl the ones we care about.
541
572
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
542
573
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
543
574
AC_REQUIRE([AC_PROG_INSTALL])dnl
544
 
# test to see if srcdir already configured
545
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
546
 
   test -f $srcdir/config.status; then
547
 
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
575
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
576
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
577
  # is not polluted with repeated "-I."
 
578
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
579
  # test to see if srcdir already configured
 
580
  if test -f $srcdir/config.status; then
 
581
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
582
  fi
548
583
fi
549
584
 
550
585
# test whether we have cygpath
564
599
 AC_SUBST([PACKAGE], [$1])dnl
565
600
 AC_SUBST([VERSION], [$2])],
566
601
[_AM_SET_OPTIONS([$1])dnl
 
602
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
603
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
604
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
567
605
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
568
606
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
569
607
 
599
637
                  [_AM_DEPENDENCIES(CXX)],
600
638
                  [define([AC_PROG_CXX],
601
639
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
640
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
641
                  [_AM_DEPENDENCIES(OBJC)],
 
642
                  [define([AC_PROG_OBJC],
 
643
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
602
644
])
603
645
])
604
646
 
612
654
# our stamp files there.
613
655
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
614
656
[# Compute $1's index in $config_headers.
 
657
_am_arg=$1
615
658
_am_stamp_count=1
616
659
for _am_header in $config_headers :; do
617
660
  case $_am_header in
618
 
    $1 | $1:* )
 
661
    $_am_arg | $_am_arg:* )
619
662
      break ;;
620
663
    * )
621
664
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
622
665
  esac
623
666
done
624
 
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
 
667
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
625
668
 
626
669
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
627
670
#
634
677
# Define $install_sh.
635
678
AC_DEFUN([AM_PROG_INSTALL_SH],
636
679
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
637
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
680
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
638
681
AC_SUBST(install_sh)])
639
682
 
640
683
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
712
755
 
713
756
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
714
757
 
715
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
 
758
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
716
759
# Free Software Foundation, Inc.
717
760
#
718
761
# This file is free software; the Free Software Foundation
719
762
# gives unlimited permission to copy and/or distribute it,
720
763
# with or without modifications, as long as this notice is preserved.
721
764
 
722
 
# serial 4
 
765
# serial 5
723
766
 
724
767
# AM_MISSING_PROG(NAME, PROGRAM)
725
768
# ------------------------------
735
778
# If it does, set am_missing_run to use it, otherwise, to nothing.
736
779
AC_DEFUN([AM_MISSING_HAS_RUN],
737
780
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
781
AC_REQUIRE_AUX_FILE([missing])dnl
738
782
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
739
783
# Use eval to expand $SHELL
740
784
if eval "$MISSING --run true"; then
745
789
fi
746
790
])
747
791
 
748
 
# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
 
792
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
749
793
#
750
794
# This file is free software; the Free Software Foundation
751
795
# gives unlimited permission to copy and/or distribute it,
753
797
 
754
798
# AM_PROG_MKDIR_P
755
799
# ---------------
756
 
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
757
 
#
758
 
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
759
 
# created by `make install' are always world readable, even if the
760
 
# installer happens to have an overly restrictive umask (e.g. 077).
761
 
# This was a mistake.  There are at least two reasons why we must not
762
 
# use `-m 0755':
763
 
#   - it causes special bits like SGID to be ignored,
764
 
#   - it may be too restrictive (some setups expect 775 directories).
765
 
#
766
 
# Do not use -m 0755 and let people choose whatever they expect by
767
 
# setting umask.
768
 
#
769
 
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
770
 
# Some implementations (such as Solaris 8's) are not thread-safe: if a
771
 
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
772
 
# concurrently, both version can detect that a/ is missing, but only
773
 
# one can create it and the other will error out.  Consequently we
774
 
# restrict ourselves to GNU make (using the --version option ensures
775
 
# this.)
 
800
# Check for `mkdir -p'.
776
801
AC_DEFUN([AM_PROG_MKDIR_P],
777
 
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
778
 
  # We used to keeping the `.' as first argument, in order to
779
 
  # allow $(mkdir_p) to be used without argument.  As in
780
 
  #   $(mkdir_p) $(somedir)
781
 
  # where $(somedir) is conditionally defined.  However this is wrong
782
 
  # for two reasons:
783
 
  #  1. if the package is installed by a user who cannot write `.'
784
 
  #     make install will fail,
785
 
  #  2. the above comment should most certainly read
786
 
  #     $(mkdir_p) $(DESTDIR)$(somedir)
787
 
  #     so it does not work when $(somedir) is undefined and
788
 
  #     $(DESTDIR) is not.
789
 
  #  To support the latter case, we have to write
790
 
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
791
 
  #  so the `.' trick is pointless.
792
 
  mkdir_p='mkdir -p --'
793
 
else
794
 
  # On NextStep and OpenStep, the `mkdir' command does not
795
 
  # recognize any option.  It will interpret all options as
796
 
  # directories to create, and then abort because `.' already
797
 
  # exists.
798
 
  for d in ./-p ./--version;
799
 
  do
800
 
    test -d $d && rmdir $d
801
 
  done
802
 
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
803
 
  if test -f "$ac_aux_dir/mkinstalldirs"; then
804
 
    mkdir_p='$(mkinstalldirs)'
805
 
  else
806
 
    mkdir_p='$(install_sh) -d'
807
 
  fi
808
 
fi
809
 
AC_SUBST([mkdir_p])])
 
802
[AC_PREREQ([2.60])dnl
 
803
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
804
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
 
805
dnl while keeping a definition of mkdir_p for backward compatibility.
 
806
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
 
807
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
 
808
dnl Makefile.ins that do not define MKDIR_P, so we do our own
 
809
dnl adjustment using top_builddir (which is defined more often than
 
810
dnl MKDIR_P).
 
811
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
 
812
case $mkdir_p in
 
813
  [[\\/$]]* | ?:[[\\/]]*) ;;
 
814
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
815
esac
 
816
])
810
817
 
811
818
# Helper functions for option handling.                     -*- Autoconf -*-
812
819
 
918
925
if test "$cross_compiling" != no; then
919
926
  AC_CHECK_TOOL([STRIP], [strip], :)
920
927
fi
921
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
928
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
922
929
AC_SUBST([INSTALL_STRIP_PROGRAM])])
923
930
 
 
931
# Copyright (C) 2006  Free Software Foundation, Inc.
 
932
#
 
933
# This file is free software; the Free Software Foundation
 
934
# gives unlimited permission to copy and/or distribute it,
 
935
# with or without modifications, as long as this notice is preserved.
 
936
 
 
937
# _AM_SUBST_NOTMAKE(VARIABLE)
 
938
# ---------------------------
 
939
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
 
940
# This macro is traced by Automake.
 
941
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
942
 
924
943
# Check how to create a tarball.                            -*- Autoconf -*-
925
944
 
926
945
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.