I am not sure what you mean. Isn't this checking whether external/lib exists, as below:<div><br></div><div><div>if test -d $XCRYSDEN_TOPDIR/external/lib ; then</div><div> if test -z "${LD_LIBRARY_PATH}"; then</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>LD_LIBRARY_PATH="$XCRYSDEN_TOPDIR/external/lib"</div><div> else</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>LD_LIBRARY_PATH="$XCRYSDEN_TOPDIR/external/lib:$LD_LIBRARY_PATH"</div>
<div> fi</div><div> export LD_LIBRARY_PATH</div><div><br></div><div> if test -z "${DYLD_LIBRARY_PATH}"; then</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>DYLD_LIBRARY_PATH="$XCRYSDEN_TOPDIR/external/lib"</div>
<div> else</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>DYLD_LIBRARY_PATH="$XCRYSDEN_TOPDIR/external/lib:$DYLD_LIBRARY_PATH"</div><div> fi</div><div> export DYLD_LIBRARY_PATH</div>
<div>fi</div><div><br></div><div>Since external/lib will always exist after building xcrysden, DYLD_LIBRARY_PATH will always be set. No, I am not using anything from external/lib, as you can see:</div><div><br></div><div>
<div>$ otool -L bin/xcrys </div><div>bin/xcrys:</div><div> /opt/local/lib/libfftw3.3.dylib (compatibility version 7.0.0, current version 7.2.0)</div><div> /opt/local/lib/libmeschach.1.dylib (compatibility version 1.2.0, current version 1.2.0)</div>
<div> /opt/local/lib/libtk8.5.dylib (compatibility version 8.5.0, current version 8.5.12)</div><div> /opt/local/lib/libtcl8.5.dylib (compatibility version 8.5.0, current version 8.5.12)</div><div> /usr/X11/lib/libGLU.1.dylib (compatibility version 1.3.0, current version 1.3.0)</div>
<div> /usr/X11/lib/libGL.1.dylib (compatibility version 1.2.0, current version 1.2.0)</div><div> /opt/X11/lib/libXmu.6.dylib (compatibility version 9.0.0, current version 9.0.0)</div><div> /opt/X11/lib/libX11.6.dylib (compatibility version 10.0.0, current version 10.0.0)</div>
<div> /opt/X11/lib/libXext.6.dylib (compatibility version 11.0.0, current version 11.0.0)</div><div> /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)</div><div> /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1669.0.0)</div>
<div> /opt/local/lib/gcc45/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.</div></div><div><br></div><br><div class="gmail_quote">On Thu, Oct 18, 2012 at 7:43 AM, Tone Kokalj <span dir="ltr"><<a href="mailto:tone.kokalj@ijs.si" target="_blank">tone.kokalj@ijs.si</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Tue, 2012-10-16 at 13:05 -0400, David Strubbe wrote:<br>
> Dear Dr. Kokalj,<br>
><br>
><br>
> I would like to suggest removal of these lines from the "xcrysden"<br>
> script in the package. If you are trying to use libraries other than<br>
> in external/lib, then these lines cause the system to look in the<br>
> wrong places and the executable cannot run, and I could only make it<br>
> work by commenting them out. These lines are within a check whether<br>
> "external/lib" exists, which I presume is an attempt to see whether<br>
> the external libraries are being used.<br>
<br>
</div>No, it is just the opposite. These lines add the<br>
$XCRYSDEN_TOPDIR/external/lib to the DYLD_LIBRARY_PATH (it is implicitly<br>
assumed that external/lib is always there).<br>
<br>
I assume that what is going on is that you have compiled also some<br>
external libraries during xcrysden compilation, which now reside in<br>
external/lib, and probably they are not functioning well. To see which<br>
libraries are loaded run (with original xcrysden script without the<br>
pertinent lines removed) xcrysden as :<br>
<br>
xcrysden -d<br>
<br>
(you will probably need to edit xcrysden script and replace the "ldd"<br>
with "otool -L")<br>
<br>
Let me know what happens.<br>
<br>
Regards,<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Anton Kokalj<br>
J. Stefan Institute, Jamova 39, 1000 Ljubljana, Slovenia<br>
(tel: <a href="tel:%2B386-1-477-3523" value="+38614773523">+386-1-477-3523</a> // fax:<a href="tel:%2B386-1-477-3822" value="+38614773822">+386-1-477-3822</a>)<br>
<br>
Please, if possible, avoid sending me Word or PowerPoint attachments.<br>
See: <a href="http://www.gnu.org/philosophy/no-word-attachments.html" target="_blank">http://www.gnu.org/philosophy/no-word-attachments.html</a><br>
<br>
_______________________________________________<br>
XCrySDen mailing list<br>
<a href="mailto:XCrySDen@democritos.it">XCrySDen@democritos.it</a><br>
<a href="http://www.democritos.it/mailman/listinfo/xcrysden" target="_blank">http://www.democritos.it/mailman/listinfo/xcrysden</a><br>
</font></span></blockquote></div><br></div>