PDA

View Full Version : FreeBSD Support "Out of the Box"



Gleep
10-23-2002, 05:53 AM
I'm working on getting SEQ up and running on my FBSD box, not done yet, but making progress. (SEQ's not liking my Qt install, but that a different issue, and not the point of this post.)

Here's a DIFF that can be applied to confiure.in that will include the FreeBSD Naming Conventions for gcc/g++ 3.0 that's included in our Ports Collection:

configure.in.diff

<snip>
16,17c16,17
< AC_CHECK_PROGS(CCd,$CC gcc cc gcc3 gcc-3.0)
< AC_CHECK_PROGS(CXXd,$CXX $CCC g++ c++ gcc CC cxx cc++ gcc g++3 g++-3.0)
---
> AC_CHECK_PROGS(CCd,$CC gcc cc gcc3 gcc-3.0 gcc30)
> AC_CHECK_PROGS(CXXd,$CXX $CCC g++ c++ gcc CC cxx cc++ gcc g++3 g++-3.0 g++30)
87,88c87,88
< AC_CHECK_PROGS(CC,gcc-3.0 gcc3)
< AC_CHECK_PROGS(CXX,g++-3.0 g++3)
---
> AC_CHECK_PROGS(CC,gcc-3.0 gcc3 gcc30)
> AC_CHECK_PROGS(CXX,g++-3.0 g++3 g++30)
</snip>

Gleep
10-29-2002, 07:00 PM
Okay, FBSD's Autoconf port package provides interesting additional information displayed on the screen while executing:

gmake -f Makefile.dist no-backup

... turns out the code to grab the version number needs a little tweaking for use on FBSD (and avoid the extra garbage being displayed.)

I'm not a programmer, I just poke around and play with it until it works.

I don't know what:

echo -ne "blah blah blah"

does on a Linux box, but the "e" in the option means nothing to FBSD and thus produces additional garbage on the screen.

Anyway, here's a diff :


<--- SNIP --->
141c141
< echo -ne "\nClearing all old Makefile data................" && \
---
> echo -n "Clearing all old Makefile data................" && \
169c169
< @echo -ne "\nChecking Autoheader version...................." && \
---
> @echo -n "Checking Autoheader version...................." && \
181c181
< echo -ne "\nGenerating configure template (config.h)" && \
---
> echo -n "Generating configure template (config.h)" && \
193a194,195
> ahver=`autoheader --version | grep autoheader | \
> awk '{print $$4}'`; \
195,198c197
< ahver=`autoheader --version 2>> Makefile.dist.dbg | \
< awk '{print $$3}'`; \
< \
< if [ "$$ahver" == "2.13" ]; then \
---
> if [ "$$ahver" = "2.13" ]; then \
233c232
< echo -ne "\nGenerating configure template (config.h)" && \
---
> echo -n "Generating configure template (config.h)" && \
294c293
< @echo -ne "\nChecking Autoconf version......................" && \
---
> @echo -n "Checking Autoconf version......................" && \
306c305
< echo -ne "\nFinalizing Autoconf script (configure).." && \
---
> echo -n "Finalizing Autoconf script (configure).." && \
318,319c317,318
< acver=`autoconf --version 2>> Makefile.dist.dbg | \
< awk '{print $$3}'`; \
---
> acver=`autoconf --version | grep autoconf | \
> awk '{print $$4}'`; \
321c320
< if [ "$$acver" == "2.13" ]; then \
---
> if [ "$$acver" = "2.13" ]; then \
356c355
< echo -ne "\nFinalizing Autoconf script (configure).." && \
---
> echo -n "Finalizing Autoconf script (configure).." && \
<--- /SNIP --->