Debian Codegraph @

libmmxnow/autogen.sh

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2 #
3 #set -x
4 acdir=""
5
6 # can't be made default - some automake will fail here - using only privately
7 # for snapshot creation
8 #use_copy="--copy"
9 use_copy=""
10 forceon=""
11 removeconf=""
12
13 while [scip-shell system . . `[`. $# -gt 0 ]; do
14 case "$1" in
15 --acdir)
16 acdir=$2
17 shift
18 ;;
19 --force)
20 forceon="force"
21 shift
22 ;;
23 --copy)
24 use_copy="--copy"
25 shift
26 ;;
27 --linkac)
28 testscip-shell system . . test. -h configure.ac || lnscip-shell system . . ln. -sf configure.in configure.ac
29 ;;
30 --remconf)
31 removeconf="yes"
32 ;;
33 -h|--help)
34 echoscip-shell system . . echo. "Usage: $0 [OPTIONS]"
35 echoscip-shell system . . echo.
36 echoscip-shell system . . echo. "Run all necesary programs to create configure files"
37 echoscip-shell system . . echo.
38 echoscip-shell system . . echo. "Options:"
39 echoscip-shell system . . echo. " --help print this help, then exit"
40 echoscip-shell system . . echo. " --acdir pass this parameter to aclocal (see aclocal --help for more details)"
41 echoscip-shell system . . echo. " --force ignore FATAL error message"
42 echoscip-shell system . . echo. " --linkac create symbolic link configure.in ->configure.ac"
43 echoscip-shell system . . echo. " --copy use option --copy with automake and libtoolize"
44 echoscip-shell system . . echo. " --remconf remove configure script (forcing its recreation)"
45 exit 0
46 ;;
47 *)
48 echoscip-shell system . . echo. "WARNING: unrecognized option: $1 (see --help)"
49 ;;
50 esac
51 shift
52 done
53
54 echoscip-shell system . . echo. "Generating build information..."
55
56 # Touch the timestamps on all the files since CVS messes them up
57 #directory=`dirname $0`
58 #touch $directory/configure.in
59 #touch configure.in
60
61
62 # Debian unstable allows to have several different versions of autoconf
63 # in the one system
64
65 use_automake=automake
66 use_aclocal=aclocal
67 use_libtool=libtool
68 use_autoconf=autoconf
69 use_autoheader=autoheader
70
71 # some freebsd compatibility lookups for prefered versions
72 findver=14
73 export findver
74 ( whichscip-shell system . . which. automake${findver} 2>/dev/nullscip-shell filesystem . . `/dev/null`. | grepscip-shell system . . grep. -q "^/" ) && use_automake=`whichscip-shell system . . which. automake${findver}`
75 ( whichscip-shell system . . which. aclocal${findver} 2>/dev/nullscip-shell filesystem . . `/dev/null`. | grepscip-shell system . . grep. -q "^/" ) && use_aclocal=`whichscip-shell system . . which. aclocal${findver}`
76 findver=213
77 ( whichscip-shell system . . which. autoconf${findver} 2>/dev/nullscip-shell filesystem . . `/dev/null`. | grepscip-shell system . . grep. -q "^/" ) && use_autoconf=`whichscip-shell system . . which. autoconf${findver}`
78 ( whichscip-shell system . . which. autoheader${findver} 2>/dev/nullscip-shell filesystem . . `/dev/null`. | grepscip-shell system . . grep. -q "^/" ) && use_autoheader=`whichscip-shell system . . which. autoheader${findver}`
79 unset findver
80
81 # I think links are now OK
82 # Debian will use 2.50 for configure.ac files automaticaly
83 #( which autoconf2.50 2>/dev/null | grep -q "^/" ) && use_autoconf=autoconf2.50
84 #( which autoheader2.50 2>/dev/null | grep -q "^/" ) && use_autoheader=autoheader2.50
85
86 DIE=0
87
88 ($use_autoconf --version) < /dev/nullscip-shell filesystem . . `/dev/null`. > /dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 || {
89 echoscip-shell system . . echo.
90 echoscip-shell system . . echo. "**Error**: You must have \`autoconf' installed ."
91 DIE=1
92 }
93
94 ($use_automake --version) < /dev/nullscip-shell filesystem . . `/dev/null`. > /dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 || {
95 echoscip-shell system . . echo.
96 echoscip-shell system . . echo. "**Error**: You must have \`automake' installed."
97 DIE=1
98 NO_AUTOMAKE=yes
99 }
100
101 ($use_aclocal --version) < /dev/nullscip-shell filesystem . . `/dev/null`. > /dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 || {
102 echoscip-shell system . . echo.
103 echoscip-shell system . . echo. "**Error**: Missing \`aclocal'."
104 DIE=1
105 }
106
107 ($use_libtool --version) < /dev/nullscip-shell filesystem . . `/dev/null`. > /dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 || {
108 echoscip-shell system . . echo.
109 echoscip-shell system . . echo. "**Error**: You must have \`libtool' installed."
110 DIE=1
111 }
112
113 if testscip-shell system . . test. -z "$acdir" -a -d /usr/local/share/aclocalscip-shell filesystem . . `/usr/local/share/aclocal`. ; then
114 if !(ls -ld /usr/local/share | grep /usr/share > /dev/null 2>/dev/null ); then
115 if testscip-shell system . . test. "`$use_aclocal --print-ac-dir`" != "/usr/local/share/aclocalscip-shell filesystem . . `/usr/local/share/aclocal`." ; then
116 INCLUDESTRING="-I /usr/local/share/aclocal"
117 # ACLOCAL_FLAGS=`echo $ACLOCAL_FLAGS | sed s/-I\ \/z//`
118 ACLOCAL_FLAGS="-I /usr/local/share/aclocal $ACLOCAL_FLAGS"
119 ACLOCAL_MAINDIR=`$use_aclocal --print-ac-dir`
120 for FILENAME in `lsscip-shell system . . ls. $ACLOCAL_MAINDIR`; do
121 if testscip-shell system . . test. -e /usr/local/share/aclocal/$FILENAME ; then
122 echoscip-shell system . . echo. "FATAL: both $ACLOCAL_MAINDIR/$FILENAME and /usr/local/share/aclocal/$FILENAME exist; you must manually delete one of them"
123 echoscip-shell system . . echo. "or use: autogen.sh --acdir /usr/share/aclocal"
124 if testscip-shell system . . test. -z "$forceon" ; then
125 echoscip-shell system . . echo. "if you still want to continue - use force option"
126 echoscip-shell system . . echo. "but do not expect it will work! - fix the problem"
127 exit 0;
128 fi
129 fi
130 done
131 fi
132 else
133 echoscip-shell system . . echo. /usr/local/sharescip-shell filesystem . . `/usr/local/share`. is link to /usr/sharescip-shell filesystem . . `/usr/share`.
134 fi
135 fi
136
137 # Regenerate configuration files
138 ok=0
139
140 rmscip-shell system . . rm. -f aclocal.m4 configure config.guess config.log config.sub ltmain.sh libtool ltconfig missing mkinstalldirs depcomp install-sh
141
142 # test if configure.in is newer the created configure script
143 testfornewerscip-shell shell avifile 1:0.7.48~20090503.ds-32 testfornewer().()
144 {
145 testscip-shell system . . test. $1.in -nt $1 -o -n "$removeconf" && rmscip-shell system . . rm. -f $1;
146 }
147
148 testfornewerscip-shell shell avifile 1:0.7.48~20090503.ds-32 testfornewer(). libmmxnow/configure
149 testfornewerscip-shell shell avifile 1:0.7.48~20090503.ds-32 testfornewer(). plugins/libmad/libmad/configure
150
151 echoscip-shell system . . echo. "Running libtoolize..."
152 libtoolizescip-shell system . . libtoolize. --force $use_copy > /dev/nullscip-shell filesystem . . `/dev/null`. || ok=1
153 if testscip-shell system . . test. -z "$acdir" ; then
154 echoscip-shell system . . echo. "Running aclocal $ACLOCAL_FLAGS..."
155 $use_aclocal $ACLOCAL_FLAGS || ok=1
156 else
157 echoscip-shell system . . echo. "Running aclocal with forced acdir: $acdir"
158 $use_aclocal --acdir=$acdir || ok=1
159 fi
160 # echo "Running autoupdate..."
161 # autoupdate || ok=1
162 echoscip-shell system . . echo. "Running autoheader..."
163 $use_autoheader || ok=1
164 echoscip-shell system . . echo. "Running autoconf..."
165 $use_autoconf || ok=1
166 echoscip-shell system . . echo. "Running automake..."
167 $use_automake $use_copy --add-missing --foreign || ok=1
168
169 if [scip-shell system . . `[`. "${ok}" -eq 0 ]; then
170 echoscip-shell system . . echo. "Now you are ready to run ./configure"
171 #echo " for optimal performance use with this option --cache-file=config.cache"
172 else
173 echoscip-shell system . . echo. "Problems detected. Please investigate."
174 echoscip-shell system . . echo. "Suggested version of used programs (try to use them)"
175 echoscip-shell system . . echo. " libtool 1.4.1 or better"
176 echoscip-shell system . . echo. " automake 1.4 or better"
177 echoscip-shell system . . echo. " autoconf 2.52 or better"
178 echoscip-shell system . . echo. "Your installed version:"
179 $use_libtool --version | headscip-shell system . . head. -1
180 $use_automake --version | headscip-shell system . . head. -1
181 $use_autoconf --version | headscip-shell system . . head. -1
182 echoscip-shell system . . echo. "Report aclocal = "
183 $use_aclocal --print-ac-dir
184 echoscip-shell system . . echo. "Please report your problem on [email protected]"
185 echoscip-shell system . . echo. "with this log of build process together with system description."
186 fi