bootstrap 14.2 KB
Newer Older
1 2
#! /bin/sh

3
##  bootstrap file for the VLC media player
4
##
5
## Copyright (C) 2005-2006 the VideoLAN team
6
##
7 8
##  Authors: Sam Hocevar <sam@zoy.org>
##           Rémi Denis-Courmont <rem # videolan # org>
9

Sam Hocevar's avatar
Sam Hocevar committed
10 11 12 13
if test "$#" != "0"; then
  echo "Usage: $0"
  echo "  Calls automake, autoconf, autoheader, autopoint and other auto* to generate"
  echo "  m4 macros and prepare Makefiles."
14 15 16
  exit 1
fi

17
###
18
###  Get a sane environment, just in case
19
###
20 21
LANG=C
export LANG
22 23
CYGWIN=binmode
export CYGWIN
24

25
set -e
26
set -x
27

28
##
29
## Check for various tools
30
##
31 32
AUTOMAKESUCKS=no
INSTALLSUCKS=no
33

34 35
ACLOCAL_ARGS="-I m4"

36 37
# Check for contrib directory
if test -d extras/contrib/bin; then
38
  export PATH="`pwd`/extras/contrib/bin:$PATH"
39 40 41
  if test -d extras/contrib/share/aclocal; then
    ACLOCAL_ARGS="${ACLOCAL_ARGS} -I extras/contrib/share/aclocal"
  fi
42 43 44 45 46 47 48
  if test ".`uname -s`" = ".Darwin"; then
    export LD_LIBRARY_PATH=./extras/contrib/lib:$LD_LIBRARY_PATH
    export DYLD_LIBRARY_PATH=./extras/contrib/lib:$DYLD_LIBRARY_PATH
  elif test ".`uname -s`" = ".BeOS"; then
    export LIBRARY_PATH=./extras/contrib/lib:$LIBRARY_PATH
    export BELIBRARIES=./extras/contrib/lib:$BELIBRARIES
  fi
49 50
fi

51 52 53 54 55 56 57 58 59 60 61 62 63 64
# Check for autoconf
rm -f m4/autoconf260.m4
case "$(autoconf --version|head -1)" in
  *2.5[012345678]*)
    echo "Hey, your autoconf is quite old. Update it." >&2
    exit 1
    ;;

  *2.59*)
    echo "Enabling provisional autoconf 2.59 work-around. Update autoconf ASAP."
    cp -f extras/m4/autoconf260.m4 m4/
    ;;
esac

65
# Check for automake
66
amvers="no"
67
for v in "-1.9" "19" "-1.8" "18" "-1.7" "17"; do
68 69 70 71
  if automake${v} --version >/dev/null 2>&1; then
    amsuff="${v}"
    amvers="${v}"
    break
72
  fi
73
done
74

75 76 77
if test "${amvers}" = "no" && automake --version > /dev/null 2>&1; then
  amvers="`automake --version | sed -e '1s/[^0-9]*//' -e q`"
  amsuff=""
78 79
fi

80
case "${amvers}" in
81
  no|1.[0123456]|1.[0123456].*|1[0123456]|1.[0123456]-*)
82
    set +x
83
    echo "$0: you need automake version 1.7 or later"
84 85 86 87
    exit 1
    ;;
esac

88 89 90 91 92 93 94 95 96 97 98
# Check for libtool
libtoolize="no"
if glibtoolize --version >/dev/null 2>&1; then
  libtoolize="glibtoolize"
elif libtoolize --version >/dev/null 2>&1; then
  libtoolize="libtoolize"
fi

if test "$libtoolize" = "no"; then
  set +x
  echo "$0: you need libtool"
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
  exit 1
fi

# Check for gettext
if gettextize --version >/dev/null 2>&1; then
# Autopoint is available from 0.11.3, but we need 0.11.5
if expr `gettextize --version | sed -e '1s/[^0-9]*//' -e q` \
        '>=' 0.11.5 >/dev/null 2>&1; then
  # We have gettext, and a recent version! Everything is cool.
  autopoint=autopoint
  GETTEXT=yes
else
  # User's gettext is too old. try to continue anyway.
  autopoint=:
  GETTEXT=old
fi;else
115 116 117
  set +x
  echo "you need gettextize (package gettext-devel or gettext)"
  exit 1
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132
fi

# Check for pkg-config
if pkg-config --version >/dev/null 2>&1; then
  # We have pkg-config, everything is cool.
  PKGCONFIG=yes
else
  PKGCONFIG=no
fi

aclocal=aclocal${amvers}
automake=automake${amvers}
autoconf=autoconf
autoheader=autoheader

133 134 135 136
##
## Generate the modules makefile, by parsing modules/**/Modules.am
##

137
set +x
138
echo "generating modules/**/Makefile.am and m4/private.m4"
139

Sam Hocevar's avatar
Sam Hocevar committed
140
# Prepare m4/private.m4
Sam Hocevar's avatar
Sam Hocevar committed
141
rm -f m4/private.m4 && cat > m4/private.m4 << EOF
142
dnl  Private VLC macros - generated by bootstrap
143 144

EOF
Gildas Bazin's avatar
 
Gildas Bazin committed
145 146

if [ "${PKGCONFIG}" = "no" ]; then cat >> m4/private.m4 << EOF
147 148
dnl  User does not have pkg-config, so assume package was not found
AC_DEFUN([PKG_CHECK_MODULES],[ifelse([\$4], , :, [\$4])])
Gildas Bazin's avatar
 
Gildas Bazin committed
149 150 151 152 153 154 155 156 157 158 159

EOF
fi

if [ "${GETTEXT}" != "yes" ]; then cat >> m4/private.m4 << EOF
dnl  User does not have gettext, so this is a no-op
AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])

EOF
fi

Sam Hocevar's avatar
Sam Hocevar committed
160 161 162
rm -f m4/private.m4-tmp1 && cat > m4/private.m4-tmp1 << EOF
dnl  The required AM_CONDITIONAL calls
dnl  XXX: too many conditionals make the build very slow, disabled them
Sam Hocevar's avatar
Sam Hocevar committed
163
AC_DEFUN([VLC_CONDITIONALS], [
Sam Hocevar's avatar
Sam Hocevar committed
164 165 166
EOF
rm -f m4/private.m4-tmp2 && cat > m4/private.m4-tmp2 << EOF
dnl  The required AC_SUBST calls
Sam Hocevar's avatar
Sam Hocevar committed
167
AC_DEFUN([VLC_SUBSTS], [
Sam Hocevar's avatar
Sam Hocevar committed
168 169 170 171
EOF
rm -f m4/private.m4-tmp3 && cat > m4/private.m4-tmp3 << EOF
dnl  The required AC_OUTPUT calls
dnl  XXX: this feature is only supported starting from automake-1.7
Sam Hocevar's avatar
Sam Hocevar committed
172
AC_DEFUN([VLC_MAKEFILES], [AC_OUTPUT([
Sam Hocevar's avatar
Sam Hocevar committed
173 174 175
EOF
rm -f m4/private.m4-tmp4 && cat > m4/private.m4-tmp4 << EOF
dnl  Helper macro for vlc-config generation
Sam Hocevar's avatar
Sam Hocevar committed
176
AC_DEFUN([VLC_CONFIG_HELPER], [
Sam Hocevar's avatar
Sam Hocevar committed
177 178
  cat >> vlc-config.in << BLAH
EOF
179 180 181

modules=""

Sam Hocevar's avatar
Sam Hocevar committed
182 183 184
rm -f modules/Makefile.am && cat > modules/Makefile.am << EOF
# Autogenerated by bootstrap - DO NOT EDIT
EXTRA_DIST = LIST
Sam Hocevar's avatar
Sam Hocevar committed
185
SUBDIRS = `sed -ne 's,modules/\([^/]*\)/Makefile,\1,p' configure.ac | xargs`
Sam Hocevar's avatar
Sam Hocevar committed
186
EOF
187

Sam Hocevar's avatar
Sam Hocevar committed
188
for dir in `sed -ne 's,modules/\(.*\)/Makefile,\1,p' configure.ac`
Sam Hocevar's avatar
Sam Hocevar committed
189 190
do
  printf "."
191 192
  modf="modules/${dir}/Modules.am"
  makf="modules/${dir}/Makefile.am"
Sam Hocevar's avatar
Sam Hocevar committed
193
  basedir="`echo "${dir}" | cut -f1 -d/`"
Sam Hocevar's avatar
Sam Hocevar committed
194
  # automake will not recurse for make dist if we don't define SUBDIRS = .
Sam Hocevar's avatar
Sam Hocevar committed
195
  subdirs="`sed -ne 's,'modules/${dir}'/\([^/]*\)/Makefile,\1,p' configure.ac | xargs`"
196 197
  mods="`sed -n -e 's/^ *SOURCES_\([^ ]*\).*/\1/p' < "${modf}" | xargs`"
  extra_libs=""
198
  extra_ltlibs=""
199 200
  for mod in $mods
  do
201
    extra_libs="${extra_libs} lib${mod}_plugin.a lib${mod}.a"
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
202
    extra_ltlibs="${extra_ltlibs} lib${mod}_plugin.la"
203 204
  done
  rm -f "${makf}" && cat > "${makf}" << EOF
Sam Hocevar's avatar
Sam Hocevar committed
205

206
# ${makf} automatically generated from ${modf} by bootstrap
207 208 209 210
# DO NOT EDIT - edit Modules.am or \$(top_srcdir)/bootstrap instead

basedir = ${basedir}
mods = ${mods}
Sam Hocevar's avatar
Sam Hocevar committed
211 212

NULL =
213
libvlc_LTLIBRARIES =
214
noinst_LTLIBRARIES =
Sam Hocevar's avatar
Sam Hocevar committed
215 216
EXTRA_DIST = Modules.am
BUILT_SOURCES =
217
clean_modules =
Sam Hocevar's avatar
Sam Hocevar committed
218
SUBDIRS = ${subdirs}
219
SUFFIXES = _plugin\$(LIBEXT) _plugin.a
220 221

libvlcdir = \$(libdir)/vlc/\$(basedir)
222 223

EXTRA_LIBRARIES = ${extra_libs}
224 225
EXTRA_LTLIBRARIES = ${extra_ltlibs}

Sam Hocevar's avatar
Sam Hocevar committed
226
include Modules.am
Sam Hocevar's avatar
Sam Hocevar committed
227

228 229
LTLIBVLC = \$(top_builddir)/src/libvlc.la

Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
230
if HAVE_WIN32
231
LIBVLC = -L\$(top_builddir)/src -lvlc
232 233 234
LIBADD = \$(LIBVLC)
endif

Sam Hocevar's avatar
Sam Hocevar committed
235
all: all-modules
236

237 238 239
nice:
	\$(top_builddir)/compile

240
# Find out which modules were enabled and tell make to build them
Sam Hocevar's avatar
Sam Hocevar committed
241
all-modules:
242 243
if USE_LIBTOOL
	@set fnord \$\$MAKEFLAGS; amf=\$\$2; targets=\`\\
244
	z=\$\$(\$(VLC_CONFIG) --list plugin); for mod in \$(mods); do case "\$\$z " in *\ \$\${mod}\ *) echo lib\$\${mod}_plugin.la;; esac; done; \\
245 246 247
	\`; case "\$\$targets" in *lib*) \$(MAKE) \$(AM_MAKEFLAGS) \$\$targets || case "\$\$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; ;; esac; \\
	test -z "\$\$fail"
else
Sam Hocevar's avatar
Sam Hocevar committed
248
	@set fnord \$\$MAKEFLAGS; amf=\$\$2; targets=\`\\
249 250
	z=\$\$(\$(VLC_CONFIG) --list plugin); for mod in \$(mods); do case "\$\$z " in *\ \$\${mod}\ *) echo lib\$\${mod}_plugin\$(LIBEXT);; esac; done; \\
	z=\$\$(\$(VLC_CONFIG) --list builtin); for mod in \$(mods); do case "\$\$z " in *\ \$\${mod}\ *) echo lib\$\${mod}.a;; esac; done; \\
Sam Hocevar's avatar
Sam Hocevar committed
251 252
	\`; case "\$\$targets" in *lib*) \$(MAKE) \$(AM_MAKEFLAGS) \$\$targets || case "\$\$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; ;; esac; \\
	test -z "\$\$fail"
253
endif
Sam Hocevar's avatar
Sam Hocevar committed
254

255 256
# Build a plugin with the adequate linker and linker's flags
_plugin.a_plugin\$(LIBEXT):
257
	@mod="\$*" ; mod=\$\${mod#lib} ; \
258
	ldfl="\`\$(VLC_CONFIG) --libs plugin \$\$mod\` \$(LIBADD) -u \$(SYMPREF)\$(VLC_ENTRY)" ; \
259 260 261 262 263 264 265
	case \`\$(VLC_CONFIG) --linkage \$\$mod\` in \\
	  c++)  ld="\$(CXXLINK)" ;; \
	  objc) ld="\$(OBJCLINK)" ;; \
	  c|*)  ld="\$(LINK)" ;; \
	esac ; \
	echo \$\$ld \$< \$\$ldfl ; \
	\$\$ld \$< \$\$ldfl
266
#ifneq (,\$(findstring cygwin,\$(host)))
267
#	mv -f "\$@.exe" "\$@"
268
#endif
269
	@if test -f "\$@.exe"; then mv -f "\$@.exe" "\$@"; fi
270

271
if MAINTAINER_MODE
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
272
\$(srcdir)/Makefile.am: \$(srcdir)/Modules.am \$(top_srcdir)/bootstrap
273
	cd \$(top_srcdir) && \$(SHELL) ./bootstrap
274
endif
275

276
mostlyclean-local:
277 278 279
if USE_LIBTOOL
	-rm -f *.la
else
280
	-rm -f *.a *\$(LIBEXT)
281
endif
282

283 284
clean-local: \$(clean_modules)

285 286 287
### automake creates libvlcdir after running install-*-local
### so we have to create it ourselves first
install-exec-local: all-modules
288 289
if USE_LIBTOOL
	@if test -z "\$(libvlc_LTLIBRARIES)"; then \
290
	  z=\$\$(\$(VLC_CONFIG) --list plugin); \
291
	  m=\`for mod in \$(mods); do case "\$\$z " in *\ \$\${mod}\ *) echo -n " lib\$\${mod}_plugin.la" ;; esac; done\` ; \
292
	  test -z "\$\$m" || \
293
  	    \$(MAKE) \$(AM_MAKEFLAGS) libvlc_LTLIBRARIES="\$\$m" install-libvlcLTLIBRARIES || exit \$\$? ; \
294 295
	fi
else
296
	mkdir -p -- "\$(DESTDIR)\$(libvlcdir)"
297 298 299 300
	@z=\$\$(\$(VLC_CONFIG) --list plugin); \
	for mod in \$(mods); do \
	  case "\$\$z " \
	    in *\ \$\${mod}\ *) \
301 302
	      echo \$(INSTALL_PROGRAM) "lib\$\${mod}_plugin\$(LIBEXT)" "\$(DESTDIR)\$(libvlcdir)/" ; \
	      \$(INSTALL_PROGRAM) "lib\$\${mod}_plugin\$(LIBEXT)" "\$(DESTDIR)\$(libvlcdir)/" || exit \$\$?; \
303 304 305
	      ;; \
	  esac; \
	done
306
endif
307 308

uninstall-local:
309 310
if USE_LIBTOOL
	@if test -z "\$(libvlc_LTLIBRARIES)"; then \
311
	  z=\$\$(\$(VLC_CONFIG) --list plugin); \
312
	  m=\`for mod in \$(mods); do case "\$\$z " in *\ \$\${mod}\ *) echo -n " lib\$\${mod}_plugin.la" ;; esac; done\` ; \
313
	  test -z "\$\$m" || \
314
	    \$(MAKE) \$(AM_MAKEFLAGS) libvlc_LTLIBRARIES="\$\$m" uninstall-libvlcLTLIBRARIES || exit \$\$?; \
315 316
	fi
else
317 318 319 320 321 322 323 324 325
	@z=\$\$(\$(VLC_CONFIG) --list plugin); \
	for mod in \$(mods); do \
	  case "\$\$z " \
	    in *\ \$\${mod}\ *) \
	      echo rm -f "\$(DESTDIR)\$(libvlcdir)/lib\$\${mod}_plugin\$(LIBEXT)" ; \
	      rm -f "\$(DESTDIR)\$(libvlcdir)/lib\$\${mod}_plugin\$(LIBEXT)" || true; \
	      ;; \
	  esac; \
	done
326
endif
327

328
EOF
329
  for mod in $mods
330
  do
331
    if grep '^nodist_SOURCES_'${mod}'' < "${modf}" >/dev/null 2>&1; then
332 333
        NODIST=''; else
        NODIST='#'; fi
Sam Hocevar's avatar
Sam Hocevar committed
334 335
    cat >> m4/private.m4-tmp4 << EOF
    ${mod}) list="\\\${list} ${dir}/lib${mod}" ;;
336
EOF
Sam Hocevar's avatar
Sam Hocevar committed
337 338
# Generation of modules/**/Makefile.am
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
339 340 341
# - L_ is for LIBRARIES_, D_ for DATA_, B_ for BUILT_SOURCES_, F_ for LDFLAGS_,
#   S_ for SOURCES_, _p is for _plugin, _b is for _builtin. This is to reduce
#   the resulting file size.
Sam Hocevar's avatar
Sam Hocevar committed
342 343
# - *_CFLAGS, *_CXXFLAGS etc. because per-object CPPFLAGS does not seem to
#   work properly with any automake version I tested.
344
    cat >> "${makf}" << EOF
345
# The ${mod} plugin
Sam Hocevar's avatar
Sam Hocevar committed
346

347
EOF
348
    if [ "${NODIST}" != "#" ]; then cat >> "${makf}" << EOF
349
clean_modules += clean-${mod}
350
clean-${mod}:
Sam Hocevar's avatar
Sam Hocevar committed
351
	-test -z "\$(nodist_SOURCES_${mod})" || rm -f \$(nodist_SOURCES_${mod})
352 353 354

EOF
    fi
355
    if [ "${NODIST}" != "#" ]; then cat >> "${makf}" << EOF
356
BUILT_SOURCES += \$(B${mod})
Sam Hocevar's avatar
Sam Hocevar committed
357 358
EOF
    fi
359
    cat >> "${makf}" << EOF
360
lib${mod}_plugin_a_SOURCES = \$(SOURCES_${mod})
361
lib${mod}_plugin_la_SOURCES = \$(SOURCES_${mod})
Sam Hocevar's avatar
Sam Hocevar committed
362
EOF
363
    if [ "${NODIST}" != "#" ]; then cat >> "${makf}" << EOF
364
nodist_lib${mod}_plugin_a_SOURCES = \$(nodist_SOURCES_${mod})
365
nodist_lib${mod}_plugin_la_SOURCES = \$(nodist_SOURCES_${mod})
Sam Hocevar's avatar
Sam Hocevar committed
366 367
EOF
    fi
368
    cat >> "${makf}" << EOF
Sam Hocevar's avatar
Sam Hocevar committed
369 370 371
lib${mod}_plugin_a_CFLAGS = \`\$(VLC_CONFIG) --cflags plugin ${mod}\`
lib${mod}_plugin_a_CXXFLAGS = \`\$(VLC_CONFIG) --cxxflags plugin ${mod}\`
lib${mod}_plugin_a_OBJCFLAGS = \`\$(VLC_CONFIG) --objcflags plugin ${mod}\`
372 373 374 375
lib${mod}_plugin_la_CFLAGS = \`\$(VLC_CONFIG) --cflags plugin ${mod}\`
lib${mod}_plugin_la_CXXFLAGS = \`\$(VLC_CONFIG) --cxxflags plugin ${mod}\`
lib${mod}_plugin_la_OBJCFLAGS = \`\$(VLC_CONFIG) --objcflags plugin ${mod}\`
lib${mod}_plugin_la_LDFLAGS = \`\$(VLC_CONFIG) --libs plugin ${mod}\` \\
376
	-rpath '\$(libvlcdir)' -avoid-version -module -shrext \$(LIBEXT) \\
377
	-export-symbol-regex ^\$(VLC_ENTRY)\$\$ -no-undefined
378
lib${mod}_plugin_la_LIBADD = \$(LTLIBVLC)
Sam Hocevar's avatar
Sam Hocevar committed
379

380
lib${mod}_a_SOURCES = \$(SOURCES_${mod})
Sam Hocevar's avatar
Sam Hocevar committed
381
EOF
382
    if [ "${NODIST}" != "#" ]; then cat >> "${makf}" << EOF
383
nodist_lib${mod}_a_SOURCES = \$(nodist_SOURCES_${mod})
Sam Hocevar's avatar
Sam Hocevar committed
384 385
EOF
    fi
386
    cat >> "${makf}" << EOF
387 388 389
lib${mod}_a_CFLAGS = \`\$(VLC_CONFIG) --cflags builtin pic ${mod}\`
lib${mod}_a_CXXFLAGS = \`\$(VLC_CONFIG) --cxxflags builtin pic ${mod}\`
lib${mod}_a_OBJCFLAGS = \`\$(VLC_CONFIG) --objcflags builtin pic ${mod}\`
Sam Hocevar's avatar
Sam Hocevar committed
390

391 392 393 394
EOF
  done
done

Sam Hocevar's avatar
Sam Hocevar committed
395 396 397 398 399 400 401 402 403 404 405 406 407 408
cat >> m4/private.m4-tmp1 << EOF
])
EOF
cat m4/private.m4-tmp1 >> m4/private.m4 && rm -f m4/private.m4-tmp1
cat >> m4/private.m4-tmp2 << EOF
])
EOF
cat m4/private.m4-tmp2 >> m4/private.m4 && rm -f m4/private.m4-tmp2
cat >> m4/private.m4-tmp3 << EOF
])])
EOF
cat m4/private.m4-tmp3 >> m4/private.m4 && rm -f m4/private.m4-tmp3
cat >> m4/private.m4-tmp4 << EOF
BLAH
409 410
])
EOF
Sam Hocevar's avatar
Sam Hocevar committed
411
cat m4/private.m4-tmp4 >> m4/private.m4 && rm -f m4/private.m4-tmp4
412

413
echo " done."
414

415
###
416
###  classic bootstrap stuff
417
###
418
set -x
419 420

# remove autotools cruft
421
rm -f aclocal.m4 configure config.log config.h config.h.in
422
rm -Rf autom4te*.cache
423 424 425
# remove old autotools extra cruft
rm -f config.guess config.sub missing mkinstalldirs compile depcomp install-sh
# remove new autotools extra cruft
Sam Hocevar's avatar
Sam Hocevar committed
426 427
rm -Rf autotools
mkdir autotools
428 429 430
# remove libtool cruft
rm -f ltmain.sh libtool ltconfig
# remove gettext cruft
431
rm -f ABOUT-NLS
432
rm -Rf intl
433
# remove vlc cruft
Sam Hocevar's avatar
Sam Hocevar committed
434
rm -f stamp-builtin stamp-h* mozilla/stamp-pic
435

436
# Automake complains if these are not present
Sam Hocevar's avatar
Sam Hocevar committed
437
rm -f vlc-config.in && printf "" > vlc-config.in
438 439 440 441 442
if [ "$GETTEXT" != "yes" ]; then
  test -d intl || mkdir intl
  printf "" > intl/Makefile.am
  printf "" > ABOUT-NLS
fi
Sam Hocevar's avatar
Sam Hocevar committed
443

444 445 446 447 448 449 450
# Libtoolize directory
${libtoolize} --copy --force
if test -f "ltmain.sh"; then
  echo "$0: working around a minor libtool issue"
  mv ltmain.sh autotools/
fi

451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467
# patch for DLL link for libtool on cygwin (remove when fixed)
if test ".`uname -s|sed -n '/^CYGWIN/p'`" != "."; then
patch -s -p0 << 'EOF'
--- autotools/ltmain.orig	2006-12-05 15:15:42.064607000 +0000
+++ autotools/ltmain.sh	2006-12-05 15:16:24.705777800 +0000
@@ -4360,7 +4360,7 @@
 
     prog)
       case $host in
-	*cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
+	*cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,;s,.dll.exe$,.dll,'` ;;
       esac
       if test -n "$vinfo"; then
 	$echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
EOF
fi

468
# Do the rest
Sam Hocevar's avatar
Sam Hocevar committed
469
${autopoint} -f
470
${aclocal} ${ACLOCAL_ARGS}
Sam Hocevar's avatar
Sam Hocevar committed
471 472
${autoconf}
${autoheader}
473
${automake} --add-missing --copy -Wall
474 475

##
Sam Hocevar's avatar
Sam Hocevar committed
476
##  files which need to be regenerated
477
##
Sam Hocevar's avatar
Sam Hocevar committed
478
rm -f vlc-config.in vlc-config
479
rm -f src/misc/modules_builtin.h
480

481
# Shut up
482
set +x
483

484
##
485
##  Tell the user about gettext, pkg-config and sed
486
##
487
if [ "${GETTEXT}" = "old" ]; then
488
  cat << EOF
489 490 491

==========================================================
NOTE: you have an old version of gettext installed on your
492 493
system. The vlc build will work, but if your system does not
have libintl you will not have internationalization support.
494
We suggest upgrading to gettext 0.11.5 or later.
495
EOF
496
fi
497

498
if [ "$PKGCONFIG" = "no" ]; then
499
  cat << EOF
500 501 502 503 504 505

==============================================================
NOTE: you do not have the "pkg-config" utility on your system;
detection of the Gtk-2.0 and GNOME 2.0 libraries will not be
reliable.
EOF
506
fi
507