]> git.saurik.com Git - apt.git/commitdiff
Fixed configure
authorArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:55:05 +0000 (16:55 +0000)
committerArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:55:05 +0000 (16:55 +0000)
Author: jgg
Date: 1999-10-31 07:04:28 GMT
Fixed configure

buildlib/environment.mak.in
buildlib/makefile.in
configure.in

index d31e1938596b82778088f76afab96ad919366380..43827d5085641017b1e769e863ef8336c7daa044 100644 (file)
@@ -29,3 +29,5 @@ GPMLIB = @GPMLIB@
 SLANGLIB = @SLANGLIB@
 XPMLIB = @XPMLIB@
 PTHREADLIB = @PTHREADLIB@
+
+HAVE_C9X = @HAVE_C9X@
index 6e28f754da4b8c72fb043bfd361d275fa5280151..7fceb9f4afac61dd309eee3f3dbd4a284bba54a8 100644 (file)
@@ -35,3 +35,8 @@ ifneq ($(words $(MISSING_DIRS)),0)
 else
        @echo > /dev/null
 endif  
+ifneq ($(HAVE_C9X),yes)
+       -@rm include/inttypes.h 
+else
+       @cp $(SRCDIR)/buildlib/inttypes.h.in include/inttypes.h
+endif
index 8e052ed4901c786926b2e3b48e4d55d30006d3df..3b8e5298912681e670e2b7bf5d142c2848094f5f 100644 (file)
@@ -105,11 +105,15 @@ fi
 AC_C_BIGENDIAN
    
 dnl We do not need this if we have inttypes..
+HAVE_C9X=yes
 if test x"$c9x_ints" = x"no"; then
    AC_CHECK_SIZEOF(char,$size_char)
    AC_CHECK_SIZEOF(int,$size_int)
    AC_CHECK_SIZEOF(short,$size_short)
    AC_CHECK_SIZEOF(long,$size_long)
+  
+   HAVE_C9X=
+   AC_SUBST(HAVE_C9X)
 fi
 
 
@@ -120,8 +124,4 @@ AC_CHECK_PROG(DEBIANDOC_TEXT,debiandoc2text,"yes","")
 dnl Check for YODL
 AC_CHECK_PROG(YODL_MAN,yodl2man,"yes","")
 
-if test x"$c9x_ints" = x"no"; then
-   AC_OUTPUT(environment.mak:buildlib/environment.mak.in makefile:buildlib/makefile.in include/inttypes.h:buildlib/inttypes.h.in,make dirs)
-else
-   AC_OUTPUT(environment.mak:buildlib/environment.mak.in makefile:buildlib/makefile.in,make dirs)
-fi
+AC_OUTPUT(environment.mak:buildlib/environment.mak.in makefile:buildlib/makefile.in,make dirs)