2010/8/2 Luisa <[email protected]>: > What about this: > > std_sysconfdir='${prefix}/etc' > > if test x"${sysconfdir}" == x"${std_sysconfdir}"; then > sysconfdir=/etc > fi > > or even simplier, since herarchy or prefixes aren't likely to change: > > if test x"${sysconfdir}" == x'${prefix}/etc'; then > sysconfdir=/etc > fi
That would change the semantic. If you use ./configure with no argument you will get: System binaries: /usr/local/sbin Configuration dir: /etc/reader.conf.d before you got: System binaries: /usr/local/sbin Configuration dir: /usr/local/etc/reader.conf.d I do not want to change the default values, but just the value when prefix=/usr > Also, as I'm begining to study the library in order to adapt my > reader, is there any chance to have the code properly idented? I can > do it with no hassle. It depends on what you call "properly idented". > I don't know what sort of editors do you guys use, but on a terminal > it is pretty much unreadable: The code uses a tabulation of 4. If you just display the code with a tabulation of 8 it will looks ugly. > http://openscd.googlecode.com/files/shot-wrong-1.png > http://openscd.googlecode.com/files/shot-wrong-2.png > http://openscd.googlecode.com/files/shot-ok-1.png > http://openscd.googlecode.com/files/shot-ok-2.png You are also changing the position of the { }. I do not like that change. You can use indent(1) to indent the code. I use the following configuration (plus manual corrections): --blank-lines-after-declarations --blank-lines-after-procedures --brace-indent0 --continuation-indentation4 --dont-break-procedure-type --dont-line-up-parentheses --indent-level4 --tab-size4 --no-blank-lines-after-declarations --no-space-after-function-call-names Bye -- Dr. Ludovic Rousseau _______________________________________________ Muscle mailing list [email protected] http://lists.drizzle.com/mailman/listinfo/muscle
