- Timestamp:
- Nov 5, 2014, 1:23:17 AM (5 years ago)
- Location:
- zzuf/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
zzuf/trunk/bootstrap
r2550 r4886 1 1 #! /bin/sh 2 # $Id: bootstrap 2005 2008-07-16 20:51:50Z sam $3 2 4 3 # bootstrap: generic bootstrap/autogen.sh script for autotools projects 5 4 # 6 # Copyright (c) 2002-20 08 Sam Hocevar <sam@zoy.org>5 # Copyright (c) 2002-2014 Sam Hocevar <sam@hocevar.net> 7 6 # 8 7 # This program is free software. It comes without any warranty, to … … 10 9 # and/or modify it under the terms of the Do What The Fuck You Want 11 10 # To Public License, Version 2, as published by Sam Hocevar. See 12 # http:// sam.zoy.org/wtfpl/COPYINGfor more details.11 # http://www.wtfpl.net/ for more details. 13 12 # 14 13 # The latest version of this script can be found at the following place: 15 # http://sam.zoy.org/autotools/14 # http://caca.zoy.org/wiki/build 16 15 17 16 # Die if an error occurs … … 30 29 # Check for needed features 31 30 auxdir="`sed -ne 's/^[ \t]*A._CONFIG_AUX_DIR *([[ ]*\([^] )]*\).*/\1/p' $conffile`" 31 pkgconfig="`grep '^[ \t]*PKG_PROG_PKG_CONFIG' $conffile >/dev/null 2>&1 && echo yes || echo no`" 32 32 libtool="`grep '^[ \t]*A._PROG_LIBTOOL' $conffile >/dev/null 2>&1 && echo yes || echo no`" 33 33 header="`grep '^[ \t]*A._CONFIG_HEADER' $conffile >/dev/null 2>&1 && echo yes || echo no`" … … 37 37 # Check for automake 38 38 amvers="no" 39 for v in 11 10 9 8 7 6 5; do 40 if automake-1.${v} --version >/dev/null 2>&1; then 41 amvers="-1.${v}" 42 break 43 elif automake1.${v} --version >/dev/null 2>&1; then 44 amvers="1.${v}" 39 for v in "" "-1.15" "-1.14" "-1.13" "-1.12" "-1.11"; do 40 if automake${v} --version > /dev/null 2>&1; then 41 amvers=${v} 45 42 break 46 43 fi 47 44 done 48 45 49 if test "${amvers}" = "no" && automake --version > /dev/null 2>&1; then50 amvers="`automake --version | sed -e '1s/[^0-9]*//' -e q`"51 if expr "$amvers" "<" "1.5" > /dev/null 2>&1; then52 amvers="no"53 else54 amvers=""55 fi56 fi57 58 46 if test "$amvers" = "no"; then 59 echo "$0: you need automake version 1.5 or later"47 echo "$0: automake not found" 60 48 exit 1 61 49 fi … … 71 59 72 60 if test "$acvers" = "no"; then 73 echo "$0: you need autoconf"61 echo "$0: autoconf not found" 74 62 exit 1 75 63 fi … … 90 78 91 79 if test "$libtoolize" = "no"; then 92 echo "$0: you need libtool" 80 echo "$0: libtool not found" 81 exit 1 82 fi 83 fi 84 85 # Check for pkg-config 86 if test "$pkgconfig" = "yes"; then 87 if ! pkg-config --version >/dev/null 2>&1; then 88 echo "$0: pkg-config not found" 93 89 exit 1 94 90 fi … … 102 98 mkdir "$auxdir" 103 99 fi 104 aclocalflags=" ${aclocalflags} -I $auxdir -I ."100 aclocalflags="-I $auxdir -I . ${aclocalflags}" 105 101 fi 102 103 # Honour M4PATH because sometimes M4 doesn't 104 save_IFS=$IFS 105 IFS=: 106 tmp="$M4PATH" 107 for x in $tmp; do 108 if test -n "$x"; then 109 aclocalflags="-I $x ${aclocalflags}" 110 fi 111 done 112 IFS=$save_IFS 106 113 107 114 # Explain what we are doing from now -
zzuf/trunk/configure.ac
r4839 r4886 4 4 AC_CONFIG_AUX_DIR(.auto) 5 5 AM_CONFIG_HEADER(config.h) 6 AM_INIT_AUTOMAKE([ no-define tar-ustar])6 AM_INIT_AUTOMAKE([subdir-objects no-define tar-ustar silent-rules]) 7 7 8 8 AC_PREREQ(2.50)
Note: See TracChangeset
for help on using the changeset viewer.