~ubuntu-branches/ubuntu/maverick/autogen/maverick

« back to all changes in this revision

Viewing changes to config/ag_macros.m4

  • Committer: Bazaar Package Importer
  • Author(s): Bradley Smith
  • Date: 2009-11-17 18:48:36 UTC
  • mfrom: (4.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20091117184836-fci5eh9fdwela4og
Tags: 1:5.10-1
* New upstream release.
* Fix watch file.
* Remove /usr/share/info/dir. Closes: #555500.
* Add missing install-info and ${misc:Depends} dependencies.
* Make some dependencies stricter.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
dnl 
3
3
dnl DO NOT EDIT THIS FILE   (ag_macros.m4)
4
4
dnl 
5
 
dnl It has been AutoGen-ed  August  8, 2009 at 10:14:46 AM by AutoGen 5.9.9
 
5
dnl It has been AutoGen-ed  November  8, 2009 at 08:41:10 AM by AutoGen 5.9.10pre13
6
6
dnl From the definitions    misc.def
7
7
dnl and the template file   conftest.tpl
8
8
dnl
10
10
dnl
11
11
AC_DEFUN([INVOKE_AG_MACROS_LAST],[
12
12
[if test X${INVOKE_AG_MACROS_LAST_done} != Xyes ; then]
13
 
  AC_CHECK_HEADERS(libio.h)
 
13
  AC_CHECK_HEADERS(libio.h ctype.h assert.h)
14
14
  INVOKE_LIBOPTS_MACROS
15
15
  AC_CHECK_DECLS([sigsetjmp],,, [#include <setjmp.h>])
16
16
  AC_CHECK_FUNCS(fopencookie funopen, break)
79
79
dnl
80
80
AC_DEFUN([AG_DISABLE_SHELL],[
81
81
  AC_ARG_ENABLE([shell],
82
 
    AC_HELP_STRING([--disable-shell], [using shell scripts]),
 
82
    AC_HELP_STRING([--disable-shell], [shell scripts are desired]),
83
83
    [ag_cv_enable_shell=${enable_shell}],
84
 
    AC_CACHE_CHECK([whether using shell scripts], ag_cv_enable_shell,
 
84
    AC_CACHE_CHECK([whether shell scripts are desired], ag_cv_enable_shell,
85
85
      ag_cv_enable_shell=yes)
86
86
  ) # end of AC_ARG_ENABLE
87
87
 
88
88
  if test "X${ag_cv_enable_shell}" != Xno
89
89
  then
90
 
    AC_DEFINE([SHELL_ENABLED],[1],
91
 
        [Define this if using shell scripts])
 
90
    AC_FUNC_FORK
 
91
  fi
 
92
  
 
93
]) # end of AC_DEFUN of AG_DISABLE_SHELL
 
94
 
 
95
 
 
96
AC_DEFUN([AG_TEST_DO_SHELL],[
 
97
  AC_MSG_CHECKING([whether using shell scripts])
 
98
  AC_CACHE_VAL([ag_cv_test_do_shell],[
 
99
    ag_cv_test_do_shell=`exec 2> /dev/null
 
100
test "x$ac_cv_func_fork_works" = xyes && test "x$ag_cv_enable_shell" = xyes || exit 1 ; echo yes`
 
101
    if test $? -ne 0
 
102
    then ag_cv_test_do_shell=no
 
103
    elif test -z "$ag_cv_test_do_shell"
 
104
    then ag_cv_test_do_shell=no
 
105
    fi
 
106
  ]) # end of CACHE_VAL of ag_cv_test_do_shell
 
107
  AC_MSG_RESULT([${ag_cv_test_do_shell}])
 
108
 
 
109
  if test "X${ag_cv_test_do_shell}" != Xno
 
110
  then
92
111
    AC_SUBST(OPTS_TESTDIR)
93
 
    AC_SUBST(AGEN5_TESTS)
94
 
    OPTS_TESTDIR=test
95
 
    AGEN5_TESTS='@S|@(SHELL_TESTS) @S|@(NOSHELL_TESTS)'
 
112
AC_SUBST(AGEN5_TESTS)
 
113
AC_DEFINE([SHELL_ENABLED], [1], [Define if shell scripts are enabled])
 
114
OPTS_TESTDIR=test
 
115
AGEN5_TESTS='$(SHELL_TESTS) $(NOSHELL_TESTS)'
96
116
  else
97
 
    TOP_DIRLIST='@S|@(NOSHELL_DIRS) @S|@(XML2AG_DIR)'
98
117
    OPTS_TESTDIR=
99
 
    AGEN5_TESTS='@S|@(NOSHELL_TESTS)'
 
118
AGEN5_TESTS='$(NOSHELL_TESTS)'
100
119
  fi
101
 
  AM_CONDITIONAL([DO_SHELL_CMDS],[test "X${ag_cv_enable_shell}" != Xno])
 
120
  AM_CONDITIONAL([DO_SHELL_CMDS],[test "X${ag_cv_test_do_shell}" != Xno])
102
121
  
103
 
]) # end of AC_DEFUN of AG_DISABLE_SHELL
 
122
]) # end of AC_DEFUN of AG_TEST_DO_SHELL
104
123
 
105
124
 
106
125
AC_DEFUN([AG_LINK_SETJMP],[
650
669
 
651
670
 
652
671
AC_DEFUN([INVOKE_AG_MACROS],[
 
672
  # Check to see if shell scripts are desired.
 
673
  AG_DISABLE_SHELL
 
674
 
653
675
  # Check to see if using shell scripts.
654
 
  AG_DISABLE_SHELL
 
676
  AG_TEST_DO_SHELL
655
677
 
656
678
  # Check to see if setjmp() links okay.
657
679
  AG_LINK_SETJMP