diff options
author | Fritz Elfert <felfert@to.com> | 2001-01-31 01:59:56 +0000 |
---|---|---|
committer | Fritz Elfert <felfert@to.com> | 2001-01-31 01:59:56 +0000 |
commit | 7e68b8205a603a7ec53ed0d9798126de155321f7 (patch) | |
tree | 95ffddd1b5e3dc4d1e585913cd2e95eb0ee2ae31 /conf/m4/plptools/PLP_FIND_CDEV.m4 | |
parent | 0aa44f1a1017280fd2b0b7708c5c77e8b1b214c8 (diff) | |
download | plptools-7e68b8205a603a7ec53ed0d9798126de155321f7.tar.gz plptools-7e68b8205a603a7ec53ed0d9798126de155321f7.tar.bz2 plptools-7e68b8205a603a7ec53ed0d9798126de155321f7.zip |
Reworked configuration:
- Splitted up acinclude.m4
- Added m4 macros, needed for KDE stuff
Diffstat (limited to 'conf/m4/plptools/PLP_FIND_CDEV.m4')
-rw-r--r-- | conf/m4/plptools/PLP_FIND_CDEV.m4 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/conf/m4/plptools/PLP_FIND_CDEV.m4 b/conf/m4/plptools/PLP_FIND_CDEV.m4 new file mode 100644 index 0000000..557d7e9 --- /dev/null +++ b/conf/m4/plptools/PLP_FIND_CDEV.m4 @@ -0,0 +1,17 @@ +dnl +dnl Select first existing char device from a list of given devices +dnl Usage: +dnl PLP_FIND_CDEV(/dev/tty1 /dev/tty2 /dev/console, FOUND) +dnl +dnl On return, variable FOUND is set to one of the devices or to NO, if none +dnl was found. +dnl +AC_DEFUN(PLP_FIND_CDEV,[ + $2=NO + for i in $1; do + if test -c "$i" ; then + $2=$i + break 2 + fi + done +]) |