<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Mike,<div> 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" </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" </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" </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 </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 --mode=compile 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 -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: 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 -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. 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> -h, --help display this help and exit</div><div> --help=short display options specific to this package</div><div> --help=recursive display the short help of all the included packages</div><div> -V, --version display version information and exit</div><div> -q, --quiet, --silent do not print `checking...' messages</div><div> --cache-file=FILE cache test results in FILE [disabled]</div><div> -C, --config-cache alias for `--cache-file=config.cache'</div><div> -n, --no-create do not create output files</div><div> --srcdir=DIR find the sources in DIR [configure dir or `..']</div><div><br></div><div>Installation directories:</div><div> --prefix=PREFIX install architecture-independent files in PREFIX</div><div> [/usr/local]</div><div> --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX</div><div> [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. 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> --bindir=DIR user executables [EPREFIX/bin]</div><div> --sbindir=DIR system admin executables [EPREFIX/sbin]</div><div> --libexecdir=DIR program executables [EPREFIX/libexec]</div><div> --sysconfdir=DIR read-only single-machine data [PREFIX/etc]</div><div> --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]</div><div> --localstatedir=DIR modifiable single-machine data [PREFIX/var]</div><div> --libdir=DIR object code libraries [EPREFIX/lib]</div><div> --includedir=DIR C header files [PREFIX/include]</div><div> --oldincludedir=DIR C header files for non-gcc [/usr/include]</div><div> --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]</div><div> --datadir=DIR read-only architecture-independent data [DATAROOTDIR]</div><div> --infodir=DIR info documentation [DATAROOTDIR/info]</div><div> --localedir=DIR locale-dependent data [DATAROOTDIR/locale]</div><div> --mandir=DIR man documentation [DATAROOTDIR/man]</div><div> --docdir=DIR documentation root [DATAROOTDIR/doc/libpng]</div><div> --htmldir=DIR html documentation [DOCDIR]</div><div> --dvidir=DIR dvi documentation [DOCDIR]</div><div> --pdfdir=DIR pdf documentation [DOCDIR]</div><div> --psdir=DIR ps documentation [DOCDIR]</div><div><br></div><div>Program names:</div><div> --program-prefix=PREFIX prepend PREFIX to installed program names</div><div> --program-suffix=SUFFIX append SUFFIX to installed program names</div><div> --program-transform-name=PROGRAM run sed PROGRAM on installed program names</div><div><br></div><div>System types:</div><div> --build=BUILD configure for building on BUILD [guessed]</div><div> --host=HOST cross-compile to build programs to run on HOST [BUILD]</div><div><br></div><div>Optional Features:</div><div> --disable-option-checking ignore unrecognized --enable/--with options</div><div> --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)</div><div> --enable-FEATURE[=ARG] include FEATURE [ARG=yes]</div><div> --enable-maintainer-mode enable make rules and dependencies not useful</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span> (and sometimes confusing) to the casual installer</div><div> --disable-dependency-tracking speeds up one-time build</div><div> --enable-dependency-tracking do not reject slow dependency extractors</div><div> --enable-shared[=PKGS] build shared libraries [default=yes]</div><div> --enable-static[=PKGS] build static libraries [default=yes]</div><div> --enable-fast-install[=PKGS]</div><div> optimize for fast installation [default=yes]</div><div> --disable-libtool-lock avoid locking (might break parallel builds)</div><div><br></div><div>Optional Packages:</div><div> --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]</div><div> --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)</div><div> --with-gnu-ld assume the C compiler uses GNU ld [default=no]</div><div> --with-pic try to use only PIC/non-PIC objects [default=use</div><div> both]</div><div> --with-pkgconfigdir Use the specified pkgconfig dir (default is</div><div> libdir/pkgconfig)</div><div> --with-binconfigs Generate shell libpng-config scripts as well as</div><div> pkg-config data [default=yes]</div><div> --with-libpng-compat Generate the obsolete libpng.so library</div><div> [default=yes]</div><div><br></div><div>Some influential environment variables:</div><div> CC C compiler command</div><div> CFLAGS C compiler flags</div><div> LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a</div><div> nonstandard directory <lib dir></div><div> LIBS libraries to pass to the linker, e.g. -l<library></div><div> CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if</div><div> you have headers in a nonstandard directory <include dir></div><div> CPP 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>