~ubuntu-branches/ubuntu/raring/libgcrypt11/raring

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Steve Kowalik
  • Date: 2008-07-02 18:32:45 UTC
  • mfrom: (1.1.5 upstream) (2.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20080702183245-b1p9zumbhmq9wk4g
Tags: 1.4.1-1ubuntu1
* Merge from Debian unstable.
* Remaining Ubuntu changes:
  - Add libgcrypt11-udeb package.
  - Add clean-la.mk, and add a symlink for the .la
* Ubuntu changes dropped:
  - Build-Depends changes.
  - Drop patch 20_socket_nsl_linkage.diff, basically applied upstream.

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 -*- 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  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
 
# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
 
14
m4_if(m4_PACKAGE_VERSION, [2.61],,
 
15
[m4_fatal([this file was generated for autoconf 2.61.
 
16
You have another version of autoconf.  If you want to use that,
 
17
you should regenerate the build system entirely.], [63])])
 
18
 
 
19
# Copyright (C) 2002, 2003, 2005, 2006  Free Software Foundation, Inc.
15
20
#
16
21
# This file is free software; the Free Software Foundation
17
22
# gives unlimited permission to copy and/or distribute it,
21
26
# ----------------------------
22
27
# Automake X.Y traces this macro to ensure aclocal.m4 has been
23
28
# generated from the m4 files accompanying Automake X.Y.
24
 
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
 
29
# (This private macro should not be called outside this file.)
 
30
AC_DEFUN([AM_AUTOMAKE_VERSION],
 
31
[am__api_version='1.10'
 
32
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 
33
dnl require some minimum version.  Point them to the right macro.
 
34
m4_if([$1], [1.10], [],
 
35
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
36
])
 
37
 
 
38
# _AM_AUTOCONF_VERSION(VERSION)
 
39
# -----------------------------
 
40
# aclocal traces this macro to find the Autoconf version.
 
41
# This is a private macro too.  Using m4_define simplifies
 
42
# the logic in aclocal, which can simply ignore this definition.
 
43
m4_define([_AM_AUTOCONF_VERSION], [])
25
44
 
26
45
# AM_SET_CURRENT_AUTOMAKE_VERSION
27
46
# -------------------------------
28
 
# Call AM_AUTOMAKE_VERSION so it can be traced.
 
47
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
29
48
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
30
49
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
31
 
         [AM_AUTOMAKE_VERSION([1.9.6])])
 
50
[AM_AUTOMAKE_VERSION([1.10])dnl
 
51
_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
32
52
 
33
53
# Figure out how to run the assembler.                      -*- Autoconf -*-
34
54
 
35
 
# Copyright (C) 2001, 2003, 2004, 2005  Free Software Foundation, Inc.
 
55
# Copyright (C) 2001, 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
36
56
#
37
57
# This file is free software; the Free Software Foundation
38
58
# gives unlimited permission to copy and/or distribute it,
39
59
# with or without modifications, as long as this notice is preserved.
40
60
 
41
 
# serial 4
 
61
# serial 5
42
62
 
43
63
# AM_PROG_AS
44
64
# ----------
49
69
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
50
70
AC_ARG_VAR([CCAS],      [assembler compiler command (defaults to CC)])
51
71
AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)])
 
72
_AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl
52
73
])
53
74
 
54
75
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
106
127
 
107
128
# AM_CONDITIONAL                                            -*- Autoconf -*-
108
129
 
109
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
 
130
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
110
131
# Free Software Foundation, Inc.
111
132
#
112
133
# This file is free software; the Free Software Foundation
113
134
# gives unlimited permission to copy and/or distribute it,
114
135
# with or without modifications, as long as this notice is preserved.
115
136
 
116
 
# serial 7
 
137
# serial 8
117
138
 
118
139
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
119
140
# -------------------------------------
122
143
[AC_PREREQ(2.52)dnl
123
144
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
124
145
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
125
 
AC_SUBST([$1_TRUE])
126
 
AC_SUBST([$1_FALSE])
 
146
AC_SUBST([$1_TRUE])dnl
 
147
AC_SUBST([$1_FALSE])dnl
 
148
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
 
149
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
127
150
if $2; then
128
151
  $1_TRUE=
129
152
  $1_FALSE='#'
137
160
Usually this means the macro was only invoked conditionally.]])
138
161
fi])])
139
162
 
140
 
 
141
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
163
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
142
164
# Free Software Foundation, Inc.
143
165
#
144
166
# This file is free software; the Free Software Foundation
145
167
# gives unlimited permission to copy and/or distribute it,
146
168
# with or without modifications, as long as this notice is preserved.
147
169
 
148
 
# serial 8
 
170
# serial 9
149
171
 
150
172
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
151
173
# written in clear, in which case automake, when reading aclocal.m4,
173
195
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
174
196
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
175
197
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
198
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
176
199
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
177
200
                   [depcc="$$1"   am_compiler_list=])
178
201
 
238
261
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
239
262
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
240
263
         >/dev/null 2>conftest.err &&
 
264
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
241
265
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
242
266
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
243
267
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
290
314
  AMDEPBACKSLASH='\'
291
315
fi
292
316
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
293
 
AC_SUBST([AMDEPBACKSLASH])
 
317
AC_SUBST([AMDEPBACKSLASH])dnl
 
318
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
294
319
])
295
320
 
296
321
# Generate code to set up dependency tracking.              -*- Autoconf -*-
315
340
  # some people rename them; so instead we look at the file content.
316
341
  # Grep'ing the first line is not enough: some people post-process
317
342
  # each Makefile.in and add a new line on top of each file to say so.
318
 
  # So let's grep whole file.
319
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
343
  # Grep'ing the whole file is not good either: AIX grep has a line
 
344
  # limit of 2048, but all sed's we know have understand at least 4000.
 
345
  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
320
346
    dirpart=`AS_DIRNAME("$mf")`
321
347
  else
322
348
    continue
375
401
 
376
402
# Do all the work for Automake.                             -*- Autoconf -*-
377
403
 
378
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
379
 
# Free Software Foundation, Inc.
 
404
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
405
# 2005, 2006 Free Software Foundation, Inc.
380
406
#
381
407
# This file is free software; the Free Software Foundation
382
408
# gives unlimited permission to copy and/or distribute it,
399
425
# arguments mandatory, and then we can depend on a new Autoconf
400
426
# release and drop the old call support.
401
427
AC_DEFUN([AM_INIT_AUTOMAKE],
402
 
[AC_PREREQ([2.58])dnl
 
428
[AC_PREREQ([2.60])dnl
403
429
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
404
430
dnl the ones we care about.
405
431
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
406
432
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
407
433
AC_REQUIRE([AC_PROG_INSTALL])dnl
408
 
# test to see if srcdir already configured
409
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
410
 
   test -f $srcdir/config.status; then
411
 
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
434
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
435
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
436
  # is not polluted with repeated "-I."
 
437
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
438
  # test to see if srcdir already configured
 
439
  if test -f $srcdir/config.status; then
 
440
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
441
  fi
412
442
fi
413
443
 
414
444
# test whether we have cygpath
428
458
 AC_SUBST([PACKAGE], [$1])dnl
429
459
 AC_SUBST([VERSION], [$2])],
430
460
[_AM_SET_OPTIONS([$1])dnl
 
461
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
462
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
463
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
431
464
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
432
465
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
433
466
 
463
496
                  [_AM_DEPENDENCIES(CXX)],
464
497
                  [define([AC_PROG_CXX],
465
498
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
499
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
500
                  [_AM_DEPENDENCIES(OBJC)],
 
501
                  [define([AC_PROG_OBJC],
 
502
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
466
503
])
467
504
])
468
505
 
498
535
# Define $install_sh.
499
536
AC_DEFUN([AM_PROG_INSTALL_SH],
500
537
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
501
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
538
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
502
539
AC_SUBST(install_sh)])
503
540
 
504
541
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
603
640
rm -f confinc confmf
604
641
])
605
642
 
 
643
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005
 
644
# Free Software Foundation, Inc.
 
645
#
 
646
# This file is free software; the Free Software Foundation
 
647
# gives unlimited permission to copy and/or distribute it,
 
648
# with or without modifications, as long as this notice is preserved.
 
649
 
 
650
# serial 5
 
651
 
 
652
# AM_PROG_CC_C_O
 
653
# --------------
 
654
# Like AC_PROG_CC_C_O, but changed for automake.
 
655
AC_DEFUN([AM_PROG_CC_C_O],
 
656
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
 
657
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
658
AC_REQUIRE_AUX_FILE([compile])dnl
 
659
# FIXME: we rely on the cache variable name because
 
660
# there is no other way.
 
661
set dummy $CC
 
662
ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
 
663
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
 
664
   # Losing compiler, so override with the script.
 
665
   # FIXME: It is wrong to rewrite CC.
 
666
   # But if we don't then we get into trouble of one sort or another.
 
667
   # A longer-term fix would be to have automake use am__CC in this case,
 
668
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
669
   CC="$am_aux_dir/compile $CC"
 
670
fi
 
671
dnl Make sure AC_PROG_CC is never called again, or it will override our
 
672
dnl setting of CC.
 
673
m4_define([AC_PROG_CC],
 
674
          [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
 
675
])
 
676
 
606
677
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
607
678
 
608
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
 
679
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
609
680
# Free Software Foundation, Inc.
610
681
#
611
682
# This file is free software; the Free Software Foundation
612
683
# gives unlimited permission to copy and/or distribute it,
613
684
# with or without modifications, as long as this notice is preserved.
614
685
 
615
 
# serial 4
 
686
# serial 5
616
687
 
617
688
# AM_MISSING_PROG(NAME, PROGRAM)
618
689
# ------------------------------
628
699
# If it does, set am_missing_run to use it, otherwise, to nothing.
629
700
AC_DEFUN([AM_MISSING_HAS_RUN],
630
701
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
702
AC_REQUIRE_AUX_FILE([missing])dnl
631
703
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
632
704
# Use eval to expand $SHELL
633
705
if eval "$MISSING --run true"; then
638
710
fi
639
711
])
640
712
 
641
 
# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
 
713
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
642
714
#
643
715
# This file is free software; the Free Software Foundation
644
716
# gives unlimited permission to copy and/or distribute it,
646
718
 
647
719
# AM_PROG_MKDIR_P
648
720
# ---------------
649
 
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
650
 
#
651
 
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
652
 
# created by `make install' are always world readable, even if the
653
 
# installer happens to have an overly restrictive umask (e.g. 077).
654
 
# This was a mistake.  There are at least two reasons why we must not
655
 
# use `-m 0755':
656
 
#   - it causes special bits like SGID to be ignored,
657
 
#   - it may be too restrictive (some setups expect 775 directories).
658
 
#
659
 
# Do not use -m 0755 and let people choose whatever they expect by
660
 
# setting umask.
661
 
#
662
 
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
663
 
# Some implementations (such as Solaris 8's) are not thread-safe: if a
664
 
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
665
 
# concurrently, both version can detect that a/ is missing, but only
666
 
# one can create it and the other will error out.  Consequently we
667
 
# restrict ourselves to GNU make (using the --version option ensures
668
 
# this.)
 
721
# Check for `mkdir -p'.
669
722
AC_DEFUN([AM_PROG_MKDIR_P],
670
 
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
671
 
  # We used to keeping the `.' as first argument, in order to
672
 
  # allow $(mkdir_p) to be used without argument.  As in
673
 
  #   $(mkdir_p) $(somedir)
674
 
  # where $(somedir) is conditionally defined.  However this is wrong
675
 
  # for two reasons:
676
 
  #  1. if the package is installed by a user who cannot write `.'
677
 
  #     make install will fail,
678
 
  #  2. the above comment should most certainly read
679
 
  #     $(mkdir_p) $(DESTDIR)$(somedir)
680
 
  #     so it does not work when $(somedir) is undefined and
681
 
  #     $(DESTDIR) is not.
682
 
  #  To support the latter case, we have to write
683
 
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
684
 
  #  so the `.' trick is pointless.
685
 
  mkdir_p='mkdir -p --'
686
 
else
687
 
  # On NextStep and OpenStep, the `mkdir' command does not
688
 
  # recognize any option.  It will interpret all options as
689
 
  # directories to create, and then abort because `.' already
690
 
  # exists.
691
 
  for d in ./-p ./--version;
692
 
  do
693
 
    test -d $d && rmdir $d
694
 
  done
695
 
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
696
 
  if test -f "$ac_aux_dir/mkinstalldirs"; then
697
 
    mkdir_p='$(mkinstalldirs)'
698
 
  else
699
 
    mkdir_p='$(install_sh) -d'
700
 
  fi
701
 
fi
702
 
AC_SUBST([mkdir_p])])
 
723
[AC_PREREQ([2.60])dnl
 
724
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
725
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
 
726
dnl while keeping a definition of mkdir_p for backward compatibility.
 
727
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
 
728
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
 
729
dnl Makefile.ins that do not define MKDIR_P, so we do our own
 
730
dnl adjustment using top_builddir (which is defined more often than
 
731
dnl MKDIR_P).
 
732
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
 
733
case $mkdir_p in
 
734
  [[\\/$]]* | ?:[[\\/]]*) ;;
 
735
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
736
esac
 
737
])
703
738
 
704
739
# Helper functions for option handling.                     -*- Autoconf -*-
705
740
 
811
846
if test "$cross_compiling" != no; then
812
847
  AC_CHECK_TOOL([STRIP], [strip], :)
813
848
fi
814
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
849
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
815
850
AC_SUBST([INSTALL_STRIP_PROGRAM])])
816
851
 
 
852
# Copyright (C) 2006  Free Software Foundation, Inc.
 
853
#
 
854
# This file is free software; the Free Software Foundation
 
855
# gives unlimited permission to copy and/or distribute it,
 
856
# with or without modifications, as long as this notice is preserved.
 
857
 
 
858
# _AM_SUBST_NOTMAKE(VARIABLE)
 
859
# ---------------------------
 
860
# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
 
861
# This macro is traced by Automake.
 
862
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
863
 
817
864
# Check how to create a tarball.                            -*- Autoconf -*-
818
865
 
819
866
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
911
958
]) # _AM_PROG_TAR
912
959
 
913
960
m4_include([m4/libtool.m4])
 
961
m4_include([m4/noexecstack.m4])
914
962
m4_include([m4/onceonly.m4])
915
963
m4_include([m4/socklen.m4])
916
964
m4_include([m4/sys_socket_h.m4])