snippet of configure script - explain please
Anton Shterenlikht
mexas at bristol.ac.uk
Wed Jul 9 17:25:21 UTC 2008
I get errors building ports/graphviz on FBSD 6.3 on alpha.
It seems the error is due to configure script erroneously
deciding that there is no strncasecmp function on OS.
Based on config.log:
configure:9333: result: no
configure:9253: checking for strncasecmp
I think the following configure snippet is to blame.
Could somebody explain, at least in general terms,
what this piece of code does.
many thanks
anton
9249
9250 for ac_func in strcasecmp strncasecmp
9251 do
9252 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9253 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9255 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9256 echo $ECHO_N "(cached) $ECHO_C" >&6
9257 else
9258 cat >conftest.$ac_ext <<_ACEOF
9259 /* confdefs.h. */
9260 _ACEOF
9261 cat confdefs.h >>conftest.$ac_ext
9262 cat >>conftest.$ac_ext <<_ACEOF
9263 /* end confdefs.h. */
where
as_tr_sh :
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
as_cr_alnum :
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
as_me :
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
ECHO_N and ECHO_C :
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
--
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233
Fax: +44 (0)117 929 4423
More information about the freebsd-questions
mailing list