Error Buddy
Do you have an error message from your application? Then find the answer with Error Buddy. You can search over 40000 source code files and troubleshooting documents using our beta lucene/nutch search interface or if you prefer, search as normal using google. With LXR technology you can drill right down into the line of source code where it came from with full cross-referencing.
If after searching you didn't get your ideal answer, or you are still unclear what the error means, you can choose to post that question to the community forums following the link included in the search results.
[1.6]001 #! /bin/sh 002 # libtoolize - Prepare a package to use libtool. 003 # @configure_input@ 004 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003 005 # Free Software Foundation, Inc. 006 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 007 # 008 # This program is free software; you can redistribute it and/or modify 009 # it under the terms of the GNU General Public License as published by 010 # the Free Software Foundation; either version 2 of the License, or 011 # (at your option) any later version. 012 # 013 # This program is distributed in the hope that it will be useful, but 014 # WITHOUT ANY WARRANTY; without even the implied warranty of 015 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 016 # General Public License for more details. 017 # 018 # You should have received a copy of the GNU General Public License 019 # along with this program; if not, write to the Free Software 020 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 021 # 022 # As a special exception to the GNU General Public License, if you 023 # distribute this file as part of a program that contains a 024 # configuration script generated by Autoconf, you may include it under 025 # the same distribution terms that you use for the rest of that program. 026 027 # The name of this program. 028 progname=`echo "$0" | sed 's%^.*/%%'` 029 030 # Constants. 031 PROGRAM=libtoolize 032 PACKAGE=@PACKAGE@ 033 VERSION=@VERSION@ 034 035 # Directory names. 036 prefix=@prefix@ 037 datarootdir=@datarootdir@ 038 datadir=@datadir@ 039 pkgdatadir=@pkgdatadir@ 040 aclocaldir=@aclocaldir@ 041 042 libtool_m4="$aclocaldir/libtool.m4" 043 ltdl_m4="$aclocaldir/ltdl.m4" 044 045 dry_run=no 046 help="Try \`$progname --help' for more information." 047 rm="rm -f" 048 ln_s="@LN_S@" 049 cp="cp -f" 050 mkdir="mkdir" 051 052 # Global variables. 053 automake= 054 copy= 055 force= 056 ltdl= 057 ltdl_tar= 058 configure_ac= 059 status=0 060 061 for arg 062 do 063 case "$arg" in 064 --help) 065 cat <<EOF 066 Usage: $progname [OPTION]... 067 068 Prepare a package to use libtool. 069 070 --automake work silently, and assume that Automake is in use 071 -c, --copy copy files rather than symlinking them 072 --debug enable verbose shell tracing 073 -n, --dry-run print commands rather than running them 074 -f, --force replace existing files 075 --help display this message and exit 076 --ltdl install libltdl in a subdirectory 077 --ltdl-tar install the libltdl tarball 078 --version print version information and exit 079 080 You must \`cd' to the top directory of your package before you run 081 \`$progname'. 082 083 Report bugs to <bug-libtool@gnu.org>. 084 EOF 085 exit $? 086 ;; 087 088 --version) 089 echo "$PROGRAM (GNU $PACKAGE) $VERSION" 090 echo 091 echo "Copyright (C) 2005 Free Software Foundation, Inc." 092 echo "This is free software; see the source for copying conditions. There is NO" 093 echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 094 exit $? 095 ;; 096 097 --automake) 098 automake=yes 099 ;; 100 101 -c | --copy) 102 ln_s= 103 ;; 104 105 --debug) 106 echo "$progname: enabling shell trace mode" 107 set -x 108 ;; 109 110 -n | --dry-run) 111 if test "$dry_run" != yes; then 112 dry_run=yes 113 rm="echo $rm" 114 test -n "$ln_s" && ln_s="echo $ln_s" 115 cp="echo $cp" 116 mkdir="echo mkdir" 117 fi 118 ;; 119 120 -f | --force) 121 force=yes 122 ;; 123 124 --ltdl) 125 ltdl=yes 126 ;; 127 128 --ltdl-tar) 129 ltdl_tar=yes 130 ;; 131 132 -*) 133 echo "$progname: unrecognized option \`$arg'" 1>&2 134 echo "$help" 1>&2 135 exit 1 136 ;; 137 138 *) 139 echo "$progname: too many arguments" 1>&2 140 echo "$help" 1>&2 141 exit 1 142 ;; 143 esac 144 done 145 146 if test -f configure.ac; then 147 configure_ac=configure.ac 148 elif test -f configure.in; then 149 configure_ac=configure.in 150 else 151 echo "$progname: \`configure.ac' does not exist" 1>&2 152 echo "$help" 1>&2 153 exit 1 154 fi 155 156 157 files=`cd $pkgdatadir && ls` 158 if test -z "$files"; then 159 echo "$progname: cannot list files in \`$pkgdatadir'" 1>&2 160 exit 1 161 fi 162 files='config.guess config.sub ltmain.sh' 163 164 auxdir=. 165 auxdirline=`grep '^AC_CONFIG_AUX_DIR' $configure_ac 2>/dev/null` 166 if test -n "$auxdirline"; then 167 # Handle explicit AC_CONFIG_AUX_DIR settings. 168 auxdir=`echo "$auxdirline" | sed 's/^AC_CONFIG_AUX_DIR(\([^)]*\)).*$/\1/'` 169 170 if test "$auxdir" = "$auxdirline"; then 171 echo "$progname: invalid AC_CONFIG_AUX_DIR syntax: $auxdirline" 1>&2 172 exit 1 173 else 174 # Strip any quote brackets. 175 auxdir=`echo "$auxdir" | sed 's/^\[\(.*\)\]$/\1/g'` 176 case "$auxdir" in 177 *\$*) 178 echo "$progname: cannot handle variables in AC_CONFIG_AUX_DIR" 1>&2 179 exit 1 180 ;; 181 *) 182 ;; 183 esac 184 fi 185 else 186 # Try to discover auxdir the same way it is discovered by configure. 187 # Note that we default to the current directory. 188 for dir in . .. ../..; do 189 if test -f $dir/install-sh; then 190 auxdir=$dir 191 break 192 elif test -f $dir/install.sh; then 193 auxdir=$dir 194 break 195 fi 196 done 197 fi 198 199 if test -z "$automake"; then 200 if grep '^A[MC]_PROG_LIBTOOL' $configure_ac >/dev/null 2>&1; then : 201 else 202 echo "Remember to add \`AC_PROG_LIBTOOL' to \`$configure_ac'." 203 fi 204 205 if grep '^AC_PROG_RANLIB' $configure_ac >/dev/null 2>&1; then 206 echo "Using \`AC_PROG_RANLIB' is rendered obsolete by \`AC_PROG_LIBTOOL'" 207 fi 208 209 if grep 'generated automatically by aclocal' aclocal.m4 >/dev/null 2>&1; then 210 updatemsg="update your \`aclocal.m4' by running aclocal" 211 else 212 updatemsg="add the contents of \`$libtool_m4' to \`aclocal.m4'" 213 fi 214 215 if grep '^AC_DEFUN(\[A[MC]_PROG_LIBTOOL' aclocal.m4 >/dev/null 2>&1; then 216 # Check the version number on libtool.m4 and the one used in aclocal.m4. 217 instserial=`grep '^# serial ' $libtool_m4 | grep 'A[MC]_PROG_LIBTOOL' | sed -e 's/^# serial \([0-9][0-9]*\).*$/\1/; q'` 218 219 if test -z "$instserial"; then 220 echo "$progname: warning: no serial number on \`$libtool_m4'" 1>&2 221 else 222 # If the local macro has no serial number, we assume it's ancient. 223 localserial=`grep '^# serial ' aclocal.m4 | grep 'A[MC]_PROG_LIBTOOL' | sed -e 's/^# serial \([0-9][0-9]*\).*$/\1/; q'` 224 225 test -z "$localserial" && localserial=0 226 227 if test "$localserial" -lt "$instserial"; then 228 echo "You should $updatemsg." 229 elif test "$localserial" -gt "$instserial"; then 230 echo "$progname: \`$libtool_m4' is serial $instserial, less than $localserial in \`aclocal.m4'" 1>&2 231 if test -z "$force"; then 232 echo "Use \`--force' to replace newer libtool files with this version." 1>&2 233 exit 1 234 fi 235 echo "To remain compatible, you should $updatemsg." 236 fi 237 fi 238 else 239 echo "You should $updatemsg." 240 fi 241 242 if grep '^AC_LIB_LTDL' $configure_ac >/dev/null 2>&1; then 243 if grep 'generated automatically by aclocal' aclocal.m4 >/dev/null 2>&1; then 244 updatemsg="update your \`aclocal.m4' by running aclocal" 245 else 246 updatemsg="add the contents of \`$ltdl_m4' to \`aclocal.m4'" 247 fi 248 249 if grep '^AC_DEFUN(AC_LIB_LTDL' aclocal.m4 >/dev/null 2>&1; then 250 # Check the version number on ltdl.m4 and the one used in aclocal.m4. 251 instserial=`grep '^# serial ' $ltdl_m4 | grep 'AC_LIB_LTDL' | sed -e 's/^# serial \([0-9][0-9]*\).*$/\1/; q'` 252 253 if test -z "$instserial"; then 254 echo "$progname: warning: no serial number on \`$ltdl_m4'" 1>&2 255 else 256 # If the local macro has no serial number, we assume it's ancient. 257 localserial=`grep '^# serial ' aclocal.m4 | grep 'AC_LIB_LTDL' | sed -e 's/^# serial \([0-9][0-9]*\).*$/\1/; q'` 258 259 test -z "$localserial" && localserial=0 260 261 if test "$localserial" -lt "$instserial"; then 262 echo "You should $updatemsg." 263 elif test "$localserial" -gt "$instserial"; then 264 echo "$progname: \`$ltld_m4' is serial $instserial, less than $localserial in \`aclocal.m4'" 1>&2 265 if test -z "$force"; then 266 echo "Use \`--force' to replace newer libtool files with this version." 1>&2 267 exit 1 268 fi 269 echo "To remain compatible, you should $updatemsg." 270 fi 271 fi 272 else 273 echo "You should $updatemsg." 274 fi 275 fi 276 fi 277 278 279 if test "x$ltdl" = xyes; then 280 test -d libltdl || $mkdir libltdl 281 ltdlfiles=`cd $pkgdatadir && ls libltdl/*` 282 else 283 ltdlfiles= 284 fi 285 286 for file in $ltdlfiles; do 287 if test -f "$file" && test -z "$force"; then 288 test -z "$automake" && echo "$progname: \`$file' exists: use \`--force' to overwrite" 1>&2 289 continue 290 fi 291 292 $rm $file 293 if test -n "$ln_s" && $ln_s $pkgdatadir/$file $file; then : 294 elif $cp $pkgdatadir/$file $file; then : 295 else 296 echo "$progname: cannot copy \`$pkgdatadir/$file' to \`$file'" 1>&2 297 status=1 298 fi 299 done 300 301 if test "x$ltdl_tar" = x"yes"; then 302 if test "x$dry_run" = x"yes"; then 303 echo "tar -cf - libltdl | gzip --best > libltdl.tar.gz" 304 elif test -f libltdl.tar.gz && test -z "$force"; then 305 test -z "$automake" && echo "$progname: \`libltdl.tar.gz' exists: use \`--force' to overwrite" 1>&2 306 else 307 test -d libltdl && ${rm}r libltdl 308 $mkdir libltdl 309 ltdlfiles=`cd $pkgdatadir && ls libltdl/*` 310 for file in $ltdlfiles; do 311 if $cp $pkgdatadir/$file $file; then : 312 else 313 echo "$progname: cannot copy \`$pkgdatadir/$file' to \`$file'" 1>&2 314 status=1 315 break 316 fi 317 done 318 for file in $files; do 319 if $cp $pkgdatadir/$file libltdl/$file; then : 320 else 321 echo "$progname: cannot copy \`$pkgdatadir/$file' to \`libltdl/$file'" 1>&2 322 status=1 323 break 324 fi 325 done 326 tar -cf - libltdl | gzip --best > libltdl.tar.gz 327 ${rm}r libltdl 328 fi 329 fi 330 331 # Change to the auxiliary directory. 332 if test "$auxdir" != .; then 333 test -z "$automake" && echo "Putting files in AC_CONFIG_AUX_DIR, \`$auxdir'." 334 test "x$dry_run" = x"yes" && echo "cd $auxdir" 335 cd $auxdir || exit 1 336 fi 337 338 for file in $files; do 339 if test -f "$file" && test -z "$force"; then 340 test -z "$automake" && echo "$progname: \`$file' exists: use \`--force' to overwrite" 1>&2 341 continue 342 fi 343 344 $rm $file 345 if test -n "$ln_s" && $ln_s $pkgdatadir/$file $file; then : 346 elif $cp $pkgdatadir/$file $file; then : 347 else 348 echo "$progname: cannot copy \`$pkgdatadir/$file' to \`$file'" 1>&2 349 status=1 350 fi 351 done 352 353 exit $status 354 355 # Local Variables: 356 # mode:shell-script 357 # sh-indentation:2 358 # End: 359
Testing
