diff options
author | reinelt <> | 2001-03-12 12:39:36 +0000 |
---|---|---|
committer | reinelt <> | 2001-03-12 12:39:36 +0000 |
commit | 1631c724f42e4b4fd70b4ba3834db4a435dfc74f (patch) | |
tree | 711f05c7dafc211fd5ba65e5f66240d2291e9956 /aclocal.m4 | |
parent | b95429e73bd0b71a384f9319670622af4b54f8ae (diff) | |
download | lcd4linux-1631c724f42e4b4fd70b4ba3834db4a435dfc74f.tar.gz |
[lcd4linux @ 2001-03-12 12:39:36 by reinelt]
reworked autoconf a lot: drivers may be excluded, #define's went to config.h
Diffstat (limited to '')
-rw-r--r-- | aclocal.m4 | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -102,3 +102,26 @@ else fi AC_SUBST($1)]) +# Like AC_CONFIG_HEADER, but automatically create stamp file. + +AC_DEFUN(AM_CONFIG_HEADER, +[AC_PREREQ([2.12]) +AC_CONFIG_HEADER([$1]) +dnl When config.status generates a header, we must update the stamp-h file. +dnl This file resides in the same directory as the config header +dnl that is generated. We must strip everything past the first ":", +dnl and everything past the last "/". +AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl +ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>, +<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>, +<<am_indx=1 +for am_file in <<$1>>; do + case " <<$>>CONFIG_HEADERS " in + *" <<$>>am_file "*<<)>> + echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx + ;; + esac + am_indx=`expr "<<$>>am_indx" + 1` +done<<>>dnl>>) +changequote([,]))]) + |