~ubuntu-branches/ubuntu/vivid/zoneminder/vivid-proposed

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Peter Howard
  • Date: 2009-11-14 15:02:10 UTC
  • mfrom: (4.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20091114150210-d8721h9wm90cbaog
Tags: 1.24.2-2
* Remove custom perl parth from zmpkg.pl, fix location of manpages.
(closes: #551746, #553092)
* Fix GCC4.4 bug
(closes: #531717)
* Fix potential bug in postinst script

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.10.1 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
 
4
# 2005  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.63],,
17
 
[m4_warning([this file was generated for autoconf 2.63.
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
 
 
22
 
# Copyright (C) 2002, 2003, 2005, 2006, 2007  Free Software Foundation, Inc.
 
14
# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
23
15
#
24
16
# This file is free software; the Free Software Foundation
25
17
# gives unlimited permission to copy and/or distribute it,
29
21
# ----------------------------
30
22
# Automake X.Y traces this macro to ensure aclocal.m4 has been
31
23
# generated from the m4 files accompanying Automake X.Y.
32
 
# (This private macro should not be called outside this file.)
33
 
AC_DEFUN([AM_AUTOMAKE_VERSION],
34
 
[am__api_version='1.10'
35
 
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
36
 
dnl require some minimum version.  Point them to the right macro.
37
 
m4_if([$1], [1.10.1], [],
38
 
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
39
 
])
40
 
 
41
 
# _AM_AUTOCONF_VERSION(VERSION)
42
 
# -----------------------------
43
 
# aclocal traces this macro to find the Autoconf version.
44
 
# This is a private macro too.  Using m4_define simplifies
45
 
# the logic in aclocal, which can simply ignore this definition.
46
 
m4_define([_AM_AUTOCONF_VERSION], [])
 
24
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
47
25
 
48
26
# AM_SET_CURRENT_AUTOMAKE_VERSION
49
27
# -------------------------------
50
 
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
 
28
# Call AM_AUTOMAKE_VERSION so it can be traced.
51
29
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
52
30
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
53
 
[AM_AUTOMAKE_VERSION([1.10.1])dnl
54
 
m4_ifndef([AC_AUTOCONF_VERSION],
55
 
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
56
 
_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
 
31
         [AM_AUTOMAKE_VERSION([1.9.6])])
57
32
 
58
33
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
59
34
 
110
85
 
111
86
# AM_CONDITIONAL                                            -*- Autoconf -*-
112
87
 
113
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
 
88
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
114
89
# Free Software Foundation, Inc.
115
90
#
116
91
# This file is free software; the Free Software Foundation
117
92
# gives unlimited permission to copy and/or distribute it,
118
93
# with or without modifications, as long as this notice is preserved.
119
94
 
120
 
# serial 8
 
95
# serial 7
121
96
 
122
97
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
123
98
# -------------------------------------
126
101
[AC_PREREQ(2.52)dnl
127
102
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
128
103
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
129
 
AC_SUBST([$1_TRUE])dnl
130
 
AC_SUBST([$1_FALSE])dnl
131
 
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
132
 
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
 
104
AC_SUBST([$1_TRUE])
 
105
AC_SUBST([$1_FALSE])
133
106
if $2; then
134
107
  $1_TRUE=
135
108
  $1_FALSE='#'
143
116
Usually this means the macro was only invoked conditionally.]])
144
117
fi])])
145
118
 
146
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
 
119
 
 
120
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
147
121
# Free Software Foundation, Inc.
148
122
#
149
123
# This file is free software; the Free Software Foundation
150
124
# gives unlimited permission to copy and/or distribute it,
151
125
# with or without modifications, as long as this notice is preserved.
152
126
 
153
 
# serial 9
 
127
# serial 8
154
128
 
155
129
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
156
130
# written in clear, in which case automake, when reading aclocal.m4,
178
152
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
179
153
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
180
154
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
181
 
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
182
155
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
183
156
                   [depcc="$$1"   am_compiler_list=])
184
157
 
244
217
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
245
218
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
246
219
         >/dev/null 2>conftest.err &&
247
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
248
220
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
249
221
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
250
222
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
297
269
  AMDEPBACKSLASH='\'
298
270
fi
299
271
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
300
 
AC_SUBST([AMDEPBACKSLASH])dnl
301
 
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 
272
AC_SUBST([AMDEPBACKSLASH])
302
273
])
303
274
 
304
275
# Generate code to set up dependency tracking.              -*- Autoconf -*-
323
294
  # some people rename them; so instead we look at the file content.
324
295
  # Grep'ing the first line is not enough: some people post-process
325
296
  # each Makefile.in and add a new line on top of each file to say so.
326
 
  # Grep'ing the whole file is not good either: AIX grep has a line
327
 
  # limit of 2048, but all sed's we know have understand at least 4000.
328
 
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
297
  # So let's grep whole file.
 
298
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
329
299
    dirpart=`AS_DIRNAME("$mf")`
330
300
  else
331
301
    continue
384
354
 
385
355
# Do all the work for Automake.                             -*- Autoconf -*-
386
356
 
387
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
388
 
# 2005, 2006, 2008 Free Software Foundation, Inc.
 
357
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
358
# Free Software Foundation, Inc.
389
359
#
390
360
# This file is free software; the Free Software Foundation
391
361
# gives unlimited permission to copy and/or distribute it,
392
362
# with or without modifications, as long as this notice is preserved.
393
363
 
394
 
# serial 13
 
364
# serial 12
395
365
 
396
366
# This macro actually does too much.  Some checks are only needed if
397
367
# your package does certain things.  But this isn't really a big deal.
408
378
# arguments mandatory, and then we can depend on a new Autoconf
409
379
# release and drop the old call support.
410
380
AC_DEFUN([AM_INIT_AUTOMAKE],
411
 
[AC_PREREQ([2.60])dnl
 
381
[AC_PREREQ([2.58])dnl
412
382
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
413
383
dnl the ones we care about.
414
384
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
415
385
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
416
386
AC_REQUIRE([AC_PROG_INSTALL])dnl
417
 
if test "`cd $srcdir && pwd`" != "`pwd`"; then
418
 
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
419
 
  # is not polluted with repeated "-I."
420
 
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
421
 
  # test to see if srcdir already configured
422
 
  if test -f $srcdir/config.status; then
423
 
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
424
 
  fi
 
387
# test to see if srcdir already configured
 
388
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
389
   test -f $srcdir/config.status; then
 
390
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
425
391
fi
426
392
 
427
393
# test whether we have cygpath
441
407
 AC_SUBST([PACKAGE], [$1])dnl
442
408
 AC_SUBST([VERSION], [$2])],
443
409
[_AM_SET_OPTIONS([$1])dnl
444
 
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
445
 
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
446
 
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
447
410
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
448
411
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
449
412
 
479
442
                  [_AM_DEPENDENCIES(CXX)],
480
443
                  [define([AC_PROG_CXX],
481
444
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
482
 
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
483
 
                  [_AM_DEPENDENCIES(OBJC)],
484
 
                  [define([AC_PROG_OBJC],
485
 
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
486
445
])
487
446
])
488
447
 
496
455
# our stamp files there.
497
456
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
498
457
[# Compute $1's index in $config_headers.
499
 
_am_arg=$1
500
458
_am_stamp_count=1
501
459
for _am_header in $config_headers :; do
502
460
  case $_am_header in
503
 
    $_am_arg | $_am_arg:* )
 
461
    $1 | $1:* )
504
462
      break ;;
505
463
    * )
506
464
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
507
465
  esac
508
466
done
509
 
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
 
467
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
510
468
 
511
469
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
512
470
#
519
477
# Define $install_sh.
520
478
AC_DEFUN([AM_PROG_INSTALL_SH],
521
479
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
522
 
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
480
install_sh=${install_sh-"$am_aux_dir/install-sh"}
523
481
AC_SUBST(install_sh)])
524
482
 
525
483
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
597
555
 
598
556
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
599
557
 
600
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
 
558
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
601
559
# Free Software Foundation, Inc.
602
560
#
603
561
# This file is free software; the Free Software Foundation
604
562
# gives unlimited permission to copy and/or distribute it,
605
563
# with or without modifications, as long as this notice is preserved.
606
564
 
607
 
# serial 5
 
565
# serial 4
608
566
 
609
567
# AM_MISSING_PROG(NAME, PROGRAM)
610
568
# ------------------------------
620
578
# If it does, set am_missing_run to use it, otherwise, to nothing.
621
579
AC_DEFUN([AM_MISSING_HAS_RUN],
622
580
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
623
 
AC_REQUIRE_AUX_FILE([missing])dnl
624
581
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
625
582
# Use eval to expand $SHELL
626
583
if eval "$MISSING --run true"; then
631
588
fi
632
589
])
633
590
 
634
 
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
 
591
# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
635
592
#
636
593
# This file is free software; the Free Software Foundation
637
594
# gives unlimited permission to copy and/or distribute it,
639
596
 
640
597
# AM_PROG_MKDIR_P
641
598
# ---------------
642
 
# Check for `mkdir -p'.
 
599
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
 
600
#
 
601
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
 
602
# created by `make install' are always world readable, even if the
 
603
# installer happens to have an overly restrictive umask (e.g. 077).
 
604
# This was a mistake.  There are at least two reasons why we must not
 
605
# use `-m 0755':
 
606
#   - it causes special bits like SGID to be ignored,
 
607
#   - it may be too restrictive (some setups expect 775 directories).
 
608
#
 
609
# Do not use -m 0755 and let people choose whatever they expect by
 
610
# setting umask.
 
611
#
 
612
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
 
613
# Some implementations (such as Solaris 8's) are not thread-safe: if a
 
614
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
 
615
# concurrently, both version can detect that a/ is missing, but only
 
616
# one can create it and the other will error out.  Consequently we
 
617
# restrict ourselves to GNU make (using the --version option ensures
 
618
# this.)
643
619
AC_DEFUN([AM_PROG_MKDIR_P],
644
 
[AC_PREREQ([2.60])dnl
645
 
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
646
 
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
647
 
dnl while keeping a definition of mkdir_p for backward compatibility.
648
 
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
649
 
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
650
 
dnl Makefile.ins that do not define MKDIR_P, so we do our own
651
 
dnl adjustment using top_builddir (which is defined more often than
652
 
dnl MKDIR_P).
653
 
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
654
 
case $mkdir_p in
655
 
  [[\\/$]]* | ?:[[\\/]]*) ;;
656
 
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
657
 
esac
658
 
])
 
620
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
621
  # We used to keeping the `.' as first argument, in order to
 
622
  # allow $(mkdir_p) to be used without argument.  As in
 
623
  #   $(mkdir_p) $(somedir)
 
624
  # where $(somedir) is conditionally defined.  However this is wrong
 
625
  # for two reasons:
 
626
  #  1. if the package is installed by a user who cannot write `.'
 
627
  #     make install will fail,
 
628
  #  2. the above comment should most certainly read
 
629
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
630
  #     so it does not work when $(somedir) is undefined and
 
631
  #     $(DESTDIR) is not.
 
632
  #  To support the latter case, we have to write
 
633
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
634
  #  so the `.' trick is pointless.
 
635
  mkdir_p='mkdir -p --'
 
636
else
 
637
  # On NextStep and OpenStep, the `mkdir' command does not
 
638
  # recognize any option.  It will interpret all options as
 
639
  # directories to create, and then abort because `.' already
 
640
  # exists.
 
641
  for d in ./-p ./--version;
 
642
  do
 
643
    test -d $d && rmdir $d
 
644
  done
 
645
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
646
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
647
    mkdir_p='$(mkinstalldirs)'
 
648
  else
 
649
    mkdir_p='$(install_sh) -d'
 
650
  fi
 
651
fi
 
652
AC_SUBST([mkdir_p])])
659
653
 
660
654
# Helper functions for option handling.                     -*- Autoconf -*-
661
655
 
767
761
if test "$cross_compiling" != no; then
768
762
  AC_CHECK_TOOL([STRIP], [strip], :)
769
763
fi
770
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
764
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
771
765
AC_SUBST([INSTALL_STRIP_PROGRAM])])
772
766
 
773
 
# Copyright (C) 2006  Free Software Foundation, Inc.
774
 
#
775
 
# This file is free software; the Free Software Foundation
776
 
# gives unlimited permission to copy and/or distribute it,
777
 
# with or without modifications, as long as this notice is preserved.
778
 
 
779
 
# _AM_SUBST_NOTMAKE(VARIABLE)
780
 
# ---------------------------
781
 
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
782
 
# This macro is traced by Automake.
783
 
AC_DEFUN([_AM_SUBST_NOTMAKE])
784
 
 
785
767
# Check how to create a tarball.                            -*- Autoconf -*-
786
768
 
787
769
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.