[PATCH]: undefine(foo) in configure

Hidvegi hzoli at austin.ibm.com
Mon Apr 16 20:54:14 CEST 2001


I've tried to send this from a different E-mail address, not
subscribed to the mailing list, since I did not want to send this from
my work E-mail address.  It did not work.

In m4 undefine(foo) does not work, since foo is expanded first.  Use
undefine([foo]).  This caused misdetection of
ac_cv_type_filldir_dt_type on Linux-2.2.19aa1.

Zoli

 --- ./cf/have-def.m4~	Sun Aug  1 21:18:22 1999
 +++ ./cf/have-def.m4	Fri Apr 13 19:31:07 2001
 @@ -13,7 +13,7 @@
  if test "$cache_val" = yes; then
 	 define(foo, translit(HAVE_DEF_$2, [a-z ], [A-Z_]))
 	 AC_DEFINE(foo, 1, [Define if you have $2])
 -	undefine(foo)
 +	undefine([foo])
  fi
  undefine([cache_val])
  ])
 --- ./cf/have-kernel-struct-field.m4~	Tue Oct  5 22:32:07 1999
 +++ ./cf/have-kernel-struct-field.m4	Fri Apr 13 19:32:01 2001
 @@ -13,7 +13,7 @@
  if test "$cache_val" = yes; then
 	 define(foo, translit(HAVE_STRUCT_$2_$4, [a-z ], [A-Z_]))
 	 AC_DEFINE(foo, 1, [Define if struct $2 has field $4])
 -	undefine(foo)
 +	undefine([foo])
  fi
  undefine(cache_val)
  ])
 --- ./cf/have-struct-field.m4~	Sat May 15 17:45:27 1999
 +++ ./cf/have-struct-field.m4	Fri Apr 13 19:32:19 2001
 @@ -13,7 +13,7 @@
  if test "$cache_val" = yes; then
 	 define(foo, translit(HAVE_$1_$2, [a-z ], [A-Z_]))
 	 AC_DEFINE(foo, 1, [Define if $1 has field $2.])
 -	undefine(foo)
 +	undefine([foo])
  fi
  undefine(cache_val)
  ])
 --- ./cf/kernel-have-def.m4~	Mon Aug  9 12:17:06 1999
 +++ ./cf/kernel-have-def.m4	Fri Apr 13 19:32:36 2001
 @@ -13,7 +13,7 @@
  if test "$cache_val" = yes; then
 	 define(foo, translit(HAVE_DEF_$2, [a-z ], [A-Z_]))
 	 AC_DEFINE(foo, 1, [Define if you have $2])
 -	undefine(foo)
 +	undefine([foo])
  fi
  undefine([cache_val])
  ])
 --- ./aclocal.m4~	Mon Mar 12 16:13:14 2001
 +++ ./aclocal.m4	Fri Apr 13 19:34:23 2001
 @@ -1891,7 +1891,7 @@
  if test "$cache_val" = yes; then
 	 define(foo, translit(HAVE_$1_$2, [a-z ], [A-Z_]))
 	 AC_DEFINE(foo, 1, [Define if $1 has field $2.])
 -	undefine(foo)
 +	undefine([foo])
  fi
  undefine(cache_val)
  ])
 @@ -2552,7 +2552,7 @@
  if test "$cache_val" = yes; then
 	 define(foo, translit(HAVE_STRUCT_$2_$4, [a-z ], [A-Z_]))
 	 AC_DEFINE(foo, 1, [Define if struct $2 has field $4])
 -	undefine(foo)
 +	undefine([foo])
  fi
  undefine(cache_val)
  ])
 @@ -2572,7 +2572,7 @@
  if test "$cache_val" = yes; then
 	 define(foo, translit(HAVE_DEF_$2, [a-z ], [A-Z_]))
 	 AC_DEFINE(foo, 1, [Define if you have $2])
 -	undefine(foo)
 +	undefine([foo])
  fi
  undefine([cache_val])
  ])





More information about the Arla-drinkers mailing list