1c72fcc34Sopenharmony_ci#!/bin/bash 2c72fcc34Sopenharmony_ci 3c72fcc34Sopenharmony_ciif test -d ../alsa-lib/utils && ! test -r `aclocal --print-ac-dir`/alsa.m4; then 4c72fcc34Sopenharmony_ci alsa_m4_flags="-I ../alsa-lib/utils" 5c72fcc34Sopenharmony_cifi 6c72fcc34Sopenharmony_ciaclocal $alsa_m4_flags $ACLOCAL_FLAGS 7c72fcc34Sopenharmony_ci# save original files to avoid stupid modifications by gettextize 8c72fcc34Sopenharmony_cicp Makefile.am Makefile.am.ok 9c72fcc34Sopenharmony_cicp configure.ac configure.ac.ok 10c72fcc34Sopenharmony_cigettextize -c -f --no-changelog 11c72fcc34Sopenharmony_ciecho "EXTRA_DIST = gettext.m4" > m4/Makefile.am 12c72fcc34Sopenharmony_cicp Makefile.am.ok Makefile.am 13c72fcc34Sopenharmony_cicp configure.ac.ok configure.ac 14c72fcc34Sopenharmony_citouch ltconfig 15c72fcc34Sopenharmony_cilibtoolize --force --copy --automake 16c72fcc34Sopenharmony_ciaclocal $ACLOCAL_FLAGS 17c72fcc34Sopenharmony_ciautoheader 18c72fcc34Sopenharmony_ciautomake --foreign --copy --add-missing 19c72fcc34Sopenharmony_citouch depcomp # for older automake 20c72fcc34Sopenharmony_ciautoconf 21c72fcc34Sopenharmony_ciexport CFLAGS='-O2 -Wall -W -Wunused-const-variable=0 -pipe -g' 22c72fcc34Sopenharmony_ciecho "CFLAGS=$CFLAGS" 23c72fcc34Sopenharmony_ciecho "./configure $@" 24c72fcc34Sopenharmony_ci./configure $@ || exit 1 25c72fcc34Sopenharmony_ciunset CFLAGS 26c72fcc34Sopenharmony_ciif [ -z "$GITCOMPILE_NO_MAKE" ]; then 27c72fcc34Sopenharmony_ci make 28c72fcc34Sopenharmony_cifi 29