Mercurial > dwindows
comparison configure @ 1174:f1cb493f97fd
Updated configure to check the presence of a .svn directory
before doing the check for the svnversion command.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 19 Sep 2011 16:21:26 +0000 |
parents | 52e3aa735bdb |
children | c5419ef79a77 |
comparison
equal
deleted
inserted
replaced
1173:38e925147a60 | 1174:f1cb493f97fd |
---|---|
3353 $as_echo "no" >&6; } | 3353 $as_echo "no" >&6; } |
3354 fi | 3354 fi |
3355 | 3355 |
3356 | 3356 |
3357 fi | 3357 fi |
3358 # Extract the first word of "svnversion", so it can be a program name with args. | 3358 if test -d .svn; then |
3359 # Extract the first word of "svnversion", so it can be a program name with args. | |
3359 set dummy svnversion; ac_word=$2 | 3360 set dummy svnversion; ac_word=$2 |
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3361 $as_echo_n "checking for $ac_word... " >&6; } | 3362 $as_echo_n "checking for $ac_word... " >&6; } |
3362 if ${ac_cv_prog_SVNVERSION+:} false; then : | 3363 if ${ac_cv_prog_SVNVERSION+:} false; then : |
3363 $as_echo_n "(cached) " >&6 | 3364 $as_echo_n "(cached) " >&6 |
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3391 $as_echo "no" >&6; } | 3392 $as_echo "no" >&6; } |
3392 fi | 3393 fi |
3393 | 3394 |
3394 | 3395 |
3396 fi | |
3395 if test x"$SVNVERSION" = x; then | 3397 if test x"$SVNVERSION" = x; then |
3396 SVNVERSION=0 | 3398 SVNVERSION=0 |
3397 else | 3399 else |
3398 SVNVERSION="\` $SVNVERSION -n . | cut -d \":\" -f 1 | tr -d MS \`" | 3400 SVNVERSION="\` $SVNVERSION -n . | cut -d \":\" -f 1 | tr -d MS \`" |
3399 fi | 3401 fi |