~ubuntu-branches/ubuntu/wily/luatex/wily

« back to all changes in this revision

Viewing changes to source/texk/web2c/luatexdir/zziplib/m4/ax_not_enable_frame_pointer.m4

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Preining
  • Date: 2010-04-29 00:47:19 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20100429004719-o42etkqe90n97b9e
Tags: 0.60.1-1
* new upstream release, adapt build-script patch
* disable patch: upstream-epstopdf_cc_no_xpdf_patching, included upstream
* disable patch: libpoppler-0.12, not needed anymore

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
dnl ______ /usr/share/aclocal/guidod/ax_not_enable_frame_pointer.m4 ______
3
 
dnl @synopsis AX_NOT_ENABLE_FRAME_POINTER ([shellvar])
4
 
dnl
5
 
dnl add --enable-frame-pointer option, the default will add the gcc
6
 
dnl --fomit-frame-pointer option to the shellvar (per default CFLAGS)
7
 
dnl and remove the " -g " debuginfo option from it. In other words,
8
 
dnl the default is "--disable-frame-pointer"
9
 
dnl
10
 
dnl @author guidod@gmx.de
11
 
dnl @version 2004-11-30
12
 
 
13
 
AC_DEFUN([AX_NOT_ENABLE_FRAME_POINTER],[dnl
14
 
AS_VAR_PUSHDEF([VAR],[enable_frame_pointer])dnl
15
 
AC_MSG_CHECKING([m4_ifval($1,$1,CFLAGS) frame-pointer])
16
 
AC_ARG_ENABLE([frame-pointer], AC_HELP_STRING(
17
 
  [--enable-frame-pointer],[enable callframe generation for debugging]))
18
 
case ".$VAR" in
19
 
  .|.no|.no,*) test ".$VAR" = "." && VAR="no"
20
 
     m4_ifval($1,$1,CFLAGS)=`echo dnl
21
 
  " $m4_ifval($1,$1,CFLAGS) " | sed -e 's/ -g / /'`
22
 
     if test ".$GCC" = ".yes" ; then
23
 
        m4_ifval($1,$1,CFLAGS)="$m4_ifval($1,$1,CFLAGS) -fomit-frame-pointer" 
24
 
        AC_MSG_RESULT([$VAR, -fomit-frame-pointer added]) 
25
 
     else
26
 
        AC_MSG_RESULT([$VAR, -g removed])
27
 
     fi  ;;
28
 
   *)  AC_MSG_RESULT([$VAR, kept]) ;;
29
 
esac
30
 
AS_VAR_POPDEF([VAR])dnl
31
 
])