diff options
author | Timo Sirainen <cras@irssi.org> | 2001-04-16 12:46:57 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-04-16 12:46:57 +0000 |
commit | a147dfc90c16a3c49273af09ab67ce754b2214c2 (patch) | |
tree | f0ae98a1e323dae1438d69408272ea214170142a /configure.in | |
parent | 08d578e6a5ced08f045dac18cc46cb8e4d829342 (diff) | |
download | irssi-a147dfc90c16a3c49273af09ab67ce754b2214c2.zip |
don't simply check for module directory, check for dir/module.h file.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1448 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/configure.in b/configure.in index 1ec5a612..4ba083cc 100644 --- a/configure.in +++ b/configure.in @@ -614,14 +614,14 @@ for c in $CHAT_MODULES; do fe_module_inits="" fe_module_deinits="" CHAT_LIBS="$CHAT_LIBS ../$c/lib$c.a ../$c/core/lib${c}_core.a" - if test -d $srcdir/src/fe-common/$c; then + if test -f $srcdir/src/fe-common/$c/module.h; then FE_COMMON_LIBS="$FE_COMMON_LIBS../fe-common/$c/libfe_common_$c.a " fi for s in `eval echo \\$${c}_MODULES`; do CHAT_LIBS="$CHAT_LIBS ../$c/$s/.libs/lib${c}_$s.a" module_inits="$module_inits ${c}_${s}_init();" module_deinits="${c}_${s}_deinit(); $module_deinits" - if test -d $srcdir/src/fe-common/$c/$s; then + if test -f $srcdir/src/fe-common/$c/$s/module.h; then FE_COMMON_LIBS="$FE_COMMON_LIBS../fe-common/$c/$s/.libs/libfe_${c}_$s.a " fe_module_inits="$fe_module_inits fe_${c}_${s}_init();" fe_module_deinits="fe_${c}_${s}_deinit(); $fe_module_deinits" @@ -638,7 +638,7 @@ for c in $CHAT_MODULES; do echo "void ${c}_init(void) { ${c}_core_init(); $module_inits }" >> $file echo "void ${c}_deinit(void) { $module_deinits ${c}_core_deinit(); }" >> $file - if test -d $srcdir/src/fe-common/$c; then + if test -f $srcdir/src/fe-common/$c/module.h; then file="$srcdir/src/fe-common/$c/${c}-modules.c" echo "/* this file is automatically generated by configure - don't change */" > $file if test "x$fe_module_inits" != "x"; then |