On Wed, 27 Oct 2010 07:33:48 +0200 (CEST) Vincent Torri <[email protected]> said:
> > > On Wed, 27 Oct 2010, Carsten Haitzler (The Rasterman) wrote: > > > On Wed, 27 Oct 2010 07:10:43 +0200 (CEST) Vincent Torri > > <[email protected]> said: > >>> -AC_CHECK_HEADERS([X11/X.h X11/extensions/Xrender.h], > >>> +AC_CHECK_HEADERS([X11/Xlib.h X11/extensions/Xrender.h], > >>> [have_dep="yes"], > >>> - [have_dep="no"]) > >>> + [have_dep="no"; break;]) > >> > >> why do you add those break ? > >> > >> Vincent > > > > http://www.gnu.org/software/hello/manual/autoconf/Generic-Headers.html > > > > "For each given system header file header-file in the blank-separated > > argument list that exists, define HAVE_header-file (in all capitals). If > > action-if-found is given, it is additional shell code to execute when one > > of the header files is found. You can give it a value of ÿÿbreakÿÿ to break > > out of the loop on the first match. If action-if-not-found is given, it is > > executed when one of the header files is not found." > > > > according to that the "action if found" is executed when when ONE is found > > (enables), and not found is executed when one is NOT found. as such if last > > header in the list is found and others not found... then we will get an > > erroneous "action if found" conclusion. break on first failure of header > > find stops the loop (even suggested in docs for the true case - also would > > be valid for the not found case). at least thats what the docs say/imply. > > but 'break' seems to be used only in the 'action if found', not in the > 'action if not found' part yes - BUT its symmetrical. it executes that action per header if found or not found - if it works in found, it works in not-found. its a loop as described in the docs. the break stops the loop and gets out. :) -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) [email protected] ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
