123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- #! /bin/sh
- . test-init.sh
- extract_program_version ()
- {
- "$1" --version | sed 1q | $PERL -ne '/(\d(?:\.\d+)+)/ and print "$1\n"'
- }
- echo "# Automatically generated by $me." > get.sh
- echo : >> get.sh
- echo ACLOCAL_AMFLAGS = -I m4 > Makefile.am
- autopoint_version=$(extract_program_version autopoint) \
- && test -n "$autopoint_version" \
- || autopoint_version=0.10.35
- cat > configure.ac <<END
- AC_INIT([foo], [1.0])
- AC_PROG_CC
- AM_GNU_GETTEXT
- AM_GNU_GETTEXT_VERSION([$autopoint_version])
- END
- if autopoint --force && test -f m4/gettext.m4; then
- echo "ACLOCAL_PATH='$(pwd)/m4':\$ACLOCAL_PATH" >> get.sh
- echo "export ACLOCAL_PATH" >> get.sh
- else
-
-
-
- rm -rf m4
- mkdir m4
-
- if $ACLOCAL -Wno-syntax -I m4 --install && test -f m4/gettext.m4; then
- :
- else
- echo "skip_all_ \"couldn't find or get gettext macros\"" >> get.sh
- fi
- fi
- cat >> get.sh <<'END'
- ACLOCAL="$ACLOCAL -Wno-obsolete"
- AUTOMAKE="$AUTOMAKE -Wno-obsolete"
- END
- . ./get.sh
- $ACLOCAL --force -I m4 || cat >> get.sh <<'END'
- ACLOCAL="$ACLOCAL -Wno-syntax"
- END
- rm -f $(find . -name Makefile.in)
- keep_testdirs=yes
- :
|