2 # Copyright (C) 2003-2011 the VideoLAN team
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
19 # Command line handling
23 echo "Usage: $0 [--build=BUILD] [--host=HOST] [--prefix=PREFIX]"
24 echo " --build=BUILD configure for building on BUILD"
25 echo " --host=HOST cross-compile to build to run on HOST"
26 echo " --prefix=PREFIX install files in PREFIX"
33 if test ! -f "../src/main.mak"
35 echo "$0 must be run from a subdirectory"
53 PREFIX="${1#--prefix=}"
56 echo "Unrecognized options $1"
66 echo -n "Guessing build system... "
67 BUILD="`cc -dumpmachine`"
68 if test -z "$BUILD"; then
77 echo -n "Guessing host system... "
84 # strip trailing slash
87 PREFIX="../hosts/$HOST"
93 echo "Creating prefix... $PREFIX"
94 mkdir -p -- "$PREFIX" || exit $?
95 mkdir -p -- "$PREFIX/share/aclocal" || exit $?
97 echo "Creating configuration file... config.mak"
100 # This file was automatically generated.
101 # Any change will be overwritten if ../bootstrap is run again.
128 OS="${HOST#*-}" # strip architecture
131 add_make_enabled "HAVE_MACOSX" "HAVE_DARWIN_OS" "HAVE_BSD"
134 add_make_enabled "HAVE_DARWIN_OS" "HAVE_BSD"
137 add_make_enabled "HAVE_BSD"
140 add_make_enabled "HAVE_LINUX"
143 add_make_enabled "HAVE_WIN32"
146 add_make_enabled "HAVE_WINCE"
149 add_make_enabled "BUILD_ENCODERS"
154 test -e Makefile && unlink Makefile
155 ln -sf ../src/main.mak Makefile
159 The following packages were selected:
162 Run "make" to start compilation.
165 * make install same as "make"
166 * make fetch fetch required source tarballs
167 * make fetch-all fetch all source tarballs
168 * make distclean clean everything and undo bootstrap
169 * make clean clean everything
170 * make mostlyclean clean everything except source tarballs