- Timestamp:
- Nov 3, 2007, 1:58:05 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/bootstrap
r1829 r1868 1 1 #! /bin/sh 2 # $Id$ 2 3 3 # bootstrap: the ultimate bootstrap/autogen.sh script for autotools projects 4 # Copyright (c) 2002, 2003, 2004, 2005, 2006 Sam Hocevar <sam@zoy.org> 4 # bootstrap: generic bootstrap/autogen.sh script for autotools projects 5 5 # 6 # This program is free software; you can redistribute it and/or 7 # modify it under the terms of the Do What The Fuck You Want To 8 # Public License, Version 2, as published by Sam Hocevar. See 6 # Copyright (c) 2002-2007 Sam Hocevar <sam@zoy.org> 7 # 8 # This program is free software. It comes without any warranty, to 9 # the extent permitted by applicable law. You can redistribute it 10 # and/or modify it under the terms of the Do What The Fuck You Want 11 # To Public License, Version 2, as published by Sam Hocevar. See 9 12 # http://sam.zoy.org/wtfpl/COPYING for more details. 10 13 # … … 26 29 27 30 # Check for needed features 28 auxdir="`sed -ne 's/^[ \t]*A._CONFIG_AUX_DIR *( *\([^)]*\).*/\1/p' $conffile`"31 auxdir="`sed -ne 's/^[ \t]*A._CONFIG_AUX_DIR *([[ ]*\([^] )]*\).*/\1/p' $conffile`" 29 32 libtool="`grep -q '^[ \t]*A._PROG_LIBTOOL' $conffile && echo yes || echo no`" 30 33 header="`grep -q '^[ \t]*A._CONFIG_HEADER' $conffile && echo yes || echo no`" 34 aclocalflags="`sed -ne 's/^[ \t]*ACLOCAL_AMFLAGS[ \t]*=//p' Makefile.am`" 31 35 32 36 # Check for automake 33 37 amvers="no" 34 38 for n in 10 9 8 7 6 5; do 35 for v in "-1.${n}" "1${n}"; do 36 if automake${v} --version >/dev/null 2>&1; then 37 amvers="${v}" 38 break 39 fi 40 done 39 if automake-1.${v} --version >/dev/null 2>&1; then 40 amvers="-1.${v}" 41 break 42 elif automake1.${v} --version >/dev/null 2>&1; then 43 amvers="1.${v}" 44 break 45 fi 41 46 done 42 47 … … 92 97 for x in aclocal.m4 configure config.guess config.log config.sub config.cache config.h.in config.h compile libtool.m4 ltoptions.m4 ltsugar.m4 ltversion.m4 ltmain.sh libtool ltconfig missing mkinstalldirs depcomp install-sh; do rm -f $x autotools/$x; if test -n "$auxdir"; then rm -f "$auxdir/$x"; fi; done 93 98 rm -Rf autom4te.cache 94 if test -n "$auxdir" -a ! -d "$auxdir"; then mkdir "$auxdir"; fi 99 if test -n "$auxdir"; then 100 if test ! -d "$auxdir"; then 101 mkdir "$auxdir" 102 fi 103 aclocalflags="${aclocalflags} -I $auxdir -I ." 104 fi 95 105 96 106 # Explain what we are doing from now … … 100 110 if test "$libtool" = "yes"; then 101 111 ${libtoolize} --copy --force 102 if test -n "$auxdir" -a -f "ltmain.sh"; then112 if test -n "$auxdir" -a ! "$auxdir" = "." -a -f "ltmain.sh"; then 103 113 echo "$0: working around a minor libtool issue" 104 114 mv ltmain.sh "$auxdir/" … … 106 116 fi 107 117 108 if test -n "$auxdir"; then 109 aclocal${amvers} -I autotools 110 else 111 aclocal${amvers} 112 fi 118 aclocal${amvers} ${aclocalflags} 113 119 autoconf${acvers} 114 120 if test "$header" = "yes"; then
Note: See TracChangeset
for help on using the changeset viewer.