<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Mike,<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; I've done the following:</div><div><br></div><div>Specify the environment variables:</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">export CFLAGS="-arch i386 -arch x86_64"&nbsp;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">export CXXFLAGS="-arch i386 -arch x86_64"&nbsp;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">export LDFLAGS="-arch i386 -arch x86_64"&nbsp;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;">Configure and build :</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">./configure&nbsp;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">make</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;">T</span></font><font class="Apple-style-span" face="Helvetica" size="3">hi<span class="Apple-style-span" style="font-size: 12px;">s results in the following error for libpng-1.2.31</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">/bin/sh ./libtool --tag=CC &nbsp; --mode=compile gcc -DHAVE_CONFIG_H -I. &nbsp;-DPNG_CONFIGURE_LIBPNG &nbsp; &nbsp;-arch i386 -arch x86_64 -MT libpng12_la-png.lo -MD -MP -MF .deps/libpng12_la-png.Tpo -c -o libpng12_la-png.lo `test -f 'png.c' || echo './'`png.c</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">libtool: compile: &nbsp;gcc -DHAVE_CONFIG_H -I. -DPNG_CONFIGURE_LIBPNG -arch i386 -arch x86_64 -MT libpng12_la-png.lo -MD -MP -MF .deps/libpng12_la-png.Tpo -c png.c &nbsp;-fno-common -DPIC -o .libs/libpng12_la-png.o</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">gcc-4.0: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">make[1]: *** [libpng12_la-png.lo] Error 1</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">make: *** [all] Error 2</div><div><br></div><div><br></div><div><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;">How can I disable -save-temps and -M options?</span></font></div><div><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></div><div><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;">The ./configure --help doesnt give much or document this</span></font>.</div><div><br></div><div><div>elvis-dowsons-macbook-pro:libpng-1.2.31 elvis$ ./configure --help</div><div>`configure' configures libpng 1.2.31 to adapt to many kinds of systems.</div><div><br></div><div>Usage: ./configure [OPTION]... [VAR=VALUE]...</div><div><br></div><div>To assign environment variables (e.g., CC, CFLAGS...), specify them as</div><div>VAR=VALUE. &nbsp;See below for descriptions of some of the useful variables.</div><div><br></div><div>Defaults for the options are specified in brackets.</div><div><br></div><div>Configuration:</div><div>&nbsp;&nbsp;-h, --help &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;display this help and exit</div><div>&nbsp;&nbsp; &nbsp; &nbsp;--help=short &nbsp; &nbsp; &nbsp; &nbsp;display options specific to this package</div><div>&nbsp;&nbsp; &nbsp; &nbsp;--help=recursive &nbsp; &nbsp;display the short help of all the included packages</div><div>&nbsp;&nbsp;-V, --version &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; display version information and exit</div><div>&nbsp;&nbsp;-q, --quiet, --silent &nbsp; do not print `checking...' messages</div><div>&nbsp;&nbsp; &nbsp; &nbsp;--cache-file=FILE &nbsp; cache test results in FILE [disabled]</div><div>&nbsp;&nbsp;-C, --config-cache &nbsp; &nbsp; &nbsp;alias for `--cache-file=config.cache'</div><div>&nbsp;&nbsp;-n, --no-create &nbsp; &nbsp; &nbsp; &nbsp; do not create output files</div><div>&nbsp;&nbsp; &nbsp; &nbsp;--srcdir=DIR &nbsp; &nbsp; &nbsp; &nbsp;find the sources in DIR [configure dir or `..']</div><div><br></div><div>Installation directories:</div><div>&nbsp;&nbsp;--prefix=PREFIX &nbsp; &nbsp; &nbsp; &nbsp; install architecture-independent files in PREFIX</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[/usr/local]</div><div>&nbsp;&nbsp;--exec-prefix=EPREFIX &nbsp; install architecture-dependent files in EPREFIX</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[PREFIX]</div><div><br></div><div>By default, `make install' will install all the files in</div><div>`/usr/local/bin', `/usr/local/lib' etc. &nbsp;You can specify</div><div>an installation prefix other than `/usr/local' using `--prefix',</div><div>for instance `--prefix=$HOME'.</div><div><br></div><div>For better control, use the options below.</div><div><br></div><div>Fine tuning of the installation directories:</div><div>&nbsp;&nbsp;--bindir=DIR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;user executables [EPREFIX/bin]</div><div>&nbsp;&nbsp;--sbindir=DIR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; system admin executables [EPREFIX/sbin]</div><div>&nbsp;&nbsp;--libexecdir=DIR &nbsp; &nbsp; &nbsp; &nbsp;program executables [EPREFIX/libexec]</div><div>&nbsp;&nbsp;--sysconfdir=DIR &nbsp; &nbsp; &nbsp; &nbsp;read-only single-machine data [PREFIX/etc]</div><div>&nbsp;&nbsp;--sharedstatedir=DIR &nbsp; &nbsp;modifiable architecture-independent data [PREFIX/com]</div><div>&nbsp;&nbsp;--localstatedir=DIR &nbsp; &nbsp; modifiable single-machine data [PREFIX/var]</div><div>&nbsp;&nbsp;--libdir=DIR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;object code libraries [EPREFIX/lib]</div><div>&nbsp;&nbsp;--includedir=DIR &nbsp; &nbsp; &nbsp; &nbsp;C header files [PREFIX/include]</div><div>&nbsp;&nbsp;--oldincludedir=DIR &nbsp; &nbsp; C header files for non-gcc [/usr/include]</div><div>&nbsp;&nbsp;--datarootdir=DIR &nbsp; &nbsp; &nbsp; read-only arch.-independent data root [PREFIX/share]</div><div>&nbsp;&nbsp;--datadir=DIR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; read-only architecture-independent data [DATAROOTDIR]</div><div>&nbsp;&nbsp;--infodir=DIR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; info documentation [DATAROOTDIR/info]</div><div>&nbsp;&nbsp;--localedir=DIR &nbsp; &nbsp; &nbsp; &nbsp; locale-dependent data [DATAROOTDIR/locale]</div><div>&nbsp;&nbsp;--mandir=DIR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;man documentation [DATAROOTDIR/man]</div><div>&nbsp;&nbsp;--docdir=DIR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;documentation root [DATAROOTDIR/doc/libpng]</div><div>&nbsp;&nbsp;--htmldir=DIR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; html documentation [DOCDIR]</div><div>&nbsp;&nbsp;--dvidir=DIR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;dvi documentation [DOCDIR]</div><div>&nbsp;&nbsp;--pdfdir=DIR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;pdf documentation [DOCDIR]</div><div>&nbsp;&nbsp;--psdir=DIR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ps documentation [DOCDIR]</div><div><br></div><div>Program names:</div><div>&nbsp;&nbsp;--program-prefix=PREFIX &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;prepend PREFIX to installed program names</div><div>&nbsp;&nbsp;--program-suffix=SUFFIX &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;append SUFFIX to installed program names</div><div>&nbsp;&nbsp;--program-transform-name=PROGRAM &nbsp; run sed PROGRAM on installed program names</div><div><br></div><div>System types:</div><div>&nbsp;&nbsp;--build=BUILD &nbsp; &nbsp; configure for building on BUILD [guessed]</div><div>&nbsp;&nbsp;--host=HOST &nbsp; &nbsp; &nbsp; cross-compile to build programs to run on HOST [BUILD]</div><div><br></div><div>Optional Features:</div><div>&nbsp;&nbsp;--disable-option-checking &nbsp;ignore unrecognized --enable/--with options</div><div>&nbsp;&nbsp;--disable-FEATURE &nbsp; &nbsp; &nbsp; do not include FEATURE (same as --enable-FEATURE=no)</div><div>&nbsp;&nbsp;--enable-FEATURE[=ARG] &nbsp;include FEATURE [ARG=yes]</div><div>&nbsp;&nbsp;--enable-maintainer-mode &nbsp;enable make rules and dependencies not useful</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span> &nbsp;(and sometimes confusing) to the casual installer</div><div>&nbsp;&nbsp;--disable-dependency-tracking &nbsp;speeds up one-time build</div><div>&nbsp;&nbsp;--enable-dependency-tracking &nbsp; do not reject slow dependency extractors</div><div>&nbsp;&nbsp;--enable-shared[=PKGS] &nbsp;build shared libraries [default=yes]</div><div>&nbsp;&nbsp;--enable-static[=PKGS] &nbsp;build static libraries [default=yes]</div><div>&nbsp;&nbsp;--enable-fast-install[=PKGS]</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;optimize for fast installation [default=yes]</div><div>&nbsp;&nbsp;--disable-libtool-lock &nbsp;avoid locking (might break parallel builds)</div><div><br></div><div>Optional Packages:</div><div>&nbsp;&nbsp;--with-PACKAGE[=ARG] &nbsp; &nbsp;use PACKAGE [ARG=yes]</div><div>&nbsp;&nbsp;--without-PACKAGE &nbsp; &nbsp; &nbsp; do not use PACKAGE (same as --with-PACKAGE=no)</div><div>&nbsp;&nbsp;--with-gnu-ld &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; assume the C compiler uses GNU ld [default=no]</div><div>&nbsp;&nbsp;--with-pic &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;try to use only PIC/non-PIC objects [default=use</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;both]</div><div>&nbsp;&nbsp;--with-pkgconfigdir &nbsp; &nbsp; Use the specified pkgconfig dir (default is</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;libdir/pkgconfig)</div><div>&nbsp;&nbsp;--with-binconfigs &nbsp; &nbsp; &nbsp; Generate shell libpng-config scripts as well as</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;pkg-config data [default=yes]</div><div>&nbsp;&nbsp;--with-libpng-compat &nbsp; &nbsp;Generate the obsolete libpng.so library</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[default=yes]</div><div><br></div><div>Some influential environment variables:</div><div>&nbsp;&nbsp;CC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;C compiler command</div><div>&nbsp;&nbsp;CFLAGS &nbsp; &nbsp; &nbsp;C compiler flags</div><div>&nbsp;&nbsp;LDFLAGS &nbsp; &nbsp; linker flags, e.g. -L&lt;lib dir> if you have libraries in a</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nonstandard directory &lt;lib dir></div><div>&nbsp;&nbsp;LIBS &nbsp; &nbsp; &nbsp; &nbsp;libraries to pass to the linker, e.g. -l&lt;library></div><div>&nbsp;&nbsp;CPPFLAGS &nbsp; &nbsp;C/C++/Objective C preprocessor flags, e.g. -I&lt;include dir> if</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;you have headers in a nonstandard directory &lt;include dir></div><div>&nbsp;&nbsp;CPP &nbsp; &nbsp; &nbsp; &nbsp; C preprocessor</div><div><br></div><div>Use these variables to override the choices made by `configure' or to help</div><div>it to find libraries and programs with nonstandard names/locations.</div><div><br></div><div><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></div><div><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;">Best regards,</span></font></div><div><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></div><div><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;">Elvis Dowson</span></font></div></div></div></span></font></div></div></body></html>