autogen.sh 555 B

123456789101112131415161718192021222324252627
  1. #! /bin/sh
  2. # Run this to generate all the initial makefiles, etc.
  3. srcdir=`dirname $0`
  4. test -z "$srcdir" && srcdir=.
  5. (
  6. cd $srcdir
  7. if test -d macros; then
  8. aclocal -I macros $ACLOCAL_FLAGS || exit 1
  9. else
  10. if test -f aclocal.m4; then
  11. echo Warning: aclocal.m4 cannot be rebuilt
  12. else
  13. echo Error: aclocal.m4 cannot be created
  14. exit 1
  15. fi
  16. fi
  17. autoheader || exit 1
  18. autoconf || exit 1
  19. automake -a || exit 1
  20. cd vfs/samba || exit 1
  21. autoheader || exit 1
  22. autoconf || exit 1
  23. ) || exit 1
  24. $srcdir/configure --cache-file=config.cache --enable-maintainer-mode "$@"