LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 08-04-2004, 08:33 AM   #1
vanhelsing
Member
 
Registered: May 2004
Posts: 130

Rep: Reputation: 15
How to use GNU autoconf to generate a new configure from configure.in ??


I read "How to install a program(VIC) "
and he told me to use "GNU autoconf" to generate a new configure from configure.in.
but I don't know How to do that??

I copy that "How to install VIC"

Installation
The easiest way to install vic is to grab the binary distribution. for your architecture, unpack it, and install the executable and manual entry. You can also build vic from source. Start by unpacking the gzip'd source tar, e.g., by running

* gzip -d -c vicsrc-tar.gz | tar xfv -

This will place the contents of the source distribution in ./vic-x.y where ``x.y'' is the current version number. ``cd'' into this directory and do the following:

* Make sure tcl/tk (v7.5/4.1) is installed or built in the directory above the vic tree.
* Run the ./configure script. You may specify the following arguments to configure:

-x-includes=path specify a pathname for the X include tree
-x-libraries=path specify a pathname for the X libraries
-with-tcl=path specify a pathname for tcl
-with-tk=path specify a pathname for tk
-with-aix-shm=path specify a pathname for the AIX shm extension library

If you run into problems with configure, you should edit configure.in instead of configure and use GNU autoconf to generate a new configure from configure.in. If you need to make such changes, please send them to us so future versions of vic will configure out of the box.
* Run make.
* If make completes successfully, run ``make install'' as root to install the binary and man page.


This my VIC folder
[root@localhost vic-2.8]# ls
assistor-jv.cc dct.h idlecallback.cc rv.h
assistor-plx.cc decoder.cc idlecallback.h session.cc
bsd-endian.h decoder-cellb.cc inet.c session.h
cbAppInit.c decoder-cosmo.cc inet.h session-ivs.cc
cb.cc decoder.h install-sh session-nv.cc
cellb_tables.c decoder-h261.cc iohandler.cc session-rtpv1.cc
cf-confbus.tcl decoder-h261v1.cc iohandler.h session-rtpv1.h
cf-main.tcl decoder-jpeg.cc jpeg source.cc
cf-network.tcl decoder-nv.cc jv2 source.h
cf-tm.tcl decoder-scr.cc jv-cube-128.ppm strtol.c
cf-util.tcl device.cc jv-cube-64.ppm strtoul.c
CHANGES.html device-input.h lib.ultrix sys-time.h
cm170.ppm device-output.h main.cc tcl2c++.c
color.cc encoder-cellb.cc Makefile.in Tcl2.cc
color-dither.cc encoder-h261.cc makefile.vc Tcl.cc
color-ed.cc encoder-nv.cc md5c.c Tcl.h
color-gray.cc entry.tcl md5.h timer.cc
color.h FILES media-timer.cc timer.h
color-hi.cc framer-h261.cc media-timer.h title-maker
color-hist.cc framer-h261.h mkbv.c tkerror.tcl
color-hist.h framer-jpeg.cc mkcube.cc tkStripchart.c
color-mono.cc gamma.gif mkdep transcoder-jpeg.cc
color-pseudo.cc getopt.c mkversion.c transmitter.cc
color-pseudo.h global.h module.cc transmitter.h
color-quant.cc grabber.cc module.h ui-ctrlmenu.tcl
color-true.cc grabber-cosmo.cc net-atm.cc ui-extout.tcl
color-yuv.cc grabber.h net.cc ui-grabber.tcl
communicator.cc grabber-jv.cc net.h ui-h261_play.tcl
compositor.cc grabber-meteor.cc net-ip.cc ui-help.tcl
confbus.cc grabber-mme.cc net-rtip.cc ui-main.tcl
confdefs.h grabber-plx.cc ntp-time.h ui-resource.tcl
config.cache grabber-qcam.cc output-vl.cc ui-srclist.tcl
config.guess grabber-rtvc.cc p64 ui-stats.tcl
config.h grabber-slv.cc plxfuncs.h ui-switcher.tcl
config.log grabber-spigot.cc ppm.cc ui-unix.tcl
config.sub grabber-still.cc ppmtolut.c ui-util.tcl
configure grabber-sunrise.cc random.c ui-vdd.tcl
configure.in grabber-svideo.cc rate-variable.cc ui-win32.tcl
configure.in.head grabber-vigra.cc rcap-include ui-windows.tcl
configure.in.tail grabber-vl.cc README vdd.cc
configure.in.tk grabber-vpix.cc README.WIN32 VERSION
configure.in.x11 grabber-xil.cc renderer.cc vic.1
convex_hull.c grabber-xv.cc renderer.h vw.cc
crdef.h group-ipc.cc renderer-window.cc vw.h
crypt.cc group-ipc.h renderer-window.h win32.c
crypt-des.cc h261_play.1 rgb-converter.cc win32X.c
crypt-dull.cc h261_play.cc rgb-converter.h
crypt.h histtolut.cc rt.h
dct.cc html rtp.h
[root@localhost vic-2.8]#

I already try use command "./configure " but it don't work

so I must use "autoconf" to generate new "configure"
pls tell me How to do that??
 
Old 08-04-2004, 09:20 AM   #2
deiussum
Member
 
Registered: Aug 2003
Location: Santa Clara, CA
Distribution: Slackware
Posts: 895

Rep: Reputation: 32
How exactly did it not work? It's more likely that it didn't work because you didn't have one of the needed libraries mentioned in that bit of text you pasted. You should only need to generate a new configure script if you actually made changes to the configure.in... But if you made changes to the configure.in to stop it for looking for needed libraries, you might be able to get the configure script to run, but then you will run into problems when you actually try to compile that source because you STILL won't have the needed libraries.

In the event that you really do need to create a new configure script, you would simply run autoconf. Since you don't seem too familiar with autoconf, I'm guessing that it isn't very likely that your problem will be fixed by this, though. Instead, post the exact errors you got, and we can probably tell you what needed component you are missing from your system.
 
Old 08-04-2004, 11:12 PM   #3
vanhelsing
Member
 
Registered: May 2004
Posts: 130

Original Poster
Rep: Reputation: 15
thanks,deiussum

well,This is my error

[root@localhost vic-2.8]# ./configure
loading cache ./config.cache
checking host system type... Invalid configuration `i686-unknown-linux': machine `i686-unknown' not recognized

checking target system type... Invalid configuration `i686-unknown-linux': machine `i686-unknown' not recognized

checking build system type... Invalid configuration `i686-unknown-linux': machine `i686-unknown' not recognized

checking for gcc... gcc
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for c++... c++
checking whether we are using GNU C++... yes
checking whether c++ accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking whether cross-compiling... no
checking for ANSI C header files... yes
checking for string.h... yes
checking for -lXbsd... no
checking for -lsocket... no
checking for -lnsl... yes
checking for -ldnet_stub... no
./configure: line 1258: test: =: unary operator expected
checking for X11 header files
checking for X11 library archive
checking for -lX11... no
checking for libXext.a
checking for -ltcl7.5... no
checking for libtcl.a
checking for tcl/init.tcl
can't find tcl/init.tcl
[root@localhost vic-2.8]# make
make: *** No targets specified and no makefile found. Stop.
[root@localhost vic-2.8]#
 
Old 08-04-2004, 11:16 PM   #4
vanhelsing
Member
 
Registered: May 2004
Posts: 130

Original Poster
Rep: Reputation: 15
I think it may help if I show every thing in VIC-2.8
so I copy it

[root@localhost vic]# cd vic-2*
[root@localhost vic-2.8]# ls
assistor-jv.cc dct.h idlecallback.cc rv.h
assistor-plx.cc decoder.cc idlecallback.h session.cc
bsd-endian.h decoder-cellb.cc inet.c session.h
cbAppInit.c decoder-cosmo.cc inet.h session-ivs.cc
cb.cc decoder.h install-sh session-nv.cc
cellb_tables.c decoder-h261.cc iohandler.cc session-rtpv1.cc
cf-confbus.tcl decoder-h261v1.cc iohandler.h session-rtpv1.h
cf-main.tcl decoder-jpeg.cc jpeg source.cc
cf-network.tcl decoder-nv.cc jv2 source.h
cf-tm.tcl decoder-scr.cc jv-cube-128.ppm strtol.c
cf-util.tcl device.cc jv-cube-64.ppm strtoul.c
CHANGES.html device-input.h lib.ultrix sys-time.h
cm170.ppm device-output.h main.cc tcl2c++.c
color.cc encoder-cellb.cc Makefile.in Tcl2.cc
color-dither.cc encoder-h261.cc makefile.vc Tcl.cc
color-ed.cc encoder-nv.cc md5c.c Tcl.h
color-gray.cc entry.tcl md5.h timer.cc
color.h FILES media-timer.cc timer.h
color-hi.cc framer-h261.cc media-timer.h title-maker
color-hist.cc framer-h261.h mkbv.c tkerror.tcl
color-hist.h framer-jpeg.cc mkcube.cc tkStripchart.c
color-mono.cc gamma.gif mkdep transcoder-jpeg.cc
color-pseudo.cc getopt.c mkversion.c transmitter.cc
color-pseudo.h global.h module.cc transmitter.h
color-quant.cc grabber.cc module.h ui-ctrlmenu.tcl
color-true.cc grabber-cosmo.cc net-atm.cc ui-extout.tcl
color-yuv.cc grabber.h net.cc ui-grabber.tcl
communicator.cc grabber-jv.cc net.h ui-h261_play.tcl
compositor.cc grabber-meteor.cc net-ip.cc ui-help.tcl
confbus.cc grabber-mme.cc net-rtip.cc ui-main.tcl
confdefs.h grabber-plx.cc ntp-time.h ui-resource.tcl
config.cache grabber-qcam.cc output-vl.cc ui-srclist.tcl
config.guess grabber-rtvc.cc p64 ui-stats.tcl
config.h grabber-slv.cc plxfuncs.h ui-switcher.tcl
config.log grabber-spigot.cc ppm.cc ui-unix.tcl
config.sub grabber-still.cc ppmtolut.c ui-util.tcl
configure grabber-sunrise.cc random.c ui-vdd.tcl
configure.in grabber-svideo.cc rate-variable.cc ui-win32.tcl
configure.in.head grabber-vigra.cc rcap-include ui-windows.tcl
configure.in.tail grabber-vl.cc README vdd.cc
configure.in.tk grabber-vpix.cc README.WIN32 VERSION
configure.in.x11 grabber-xil.cc renderer.cc vic.1
convex_hull.c grabber-xv.cc renderer.h vw.cc
crdef.h group-ipc.cc renderer-window.cc vw.h
crypt.cc group-ipc.h renderer-window.h win32.c
crypt-des.cc h261_play.1 rgb-converter.cc win32X.c
crypt-dull.cc h261_play.cc rgb-converter.h
crypt.h histtolut.cc rt.h
dct.cc html rtp.h
[root@localhost vic-2.8]#

I use redhat 9 and I install everything in my distibution cd
 
Old 08-05-2004, 10:01 AM   #5
deiussum
Member
 
Registered: Aug 2003
Location: Santa Clara, CA
Distribution: Slackware
Posts: 895

Rep: Reputation: 32
Here's the problem right here:
Code:
checking for tcl/init.tcl
can't find tcl/init.tcl
And here's from the instructions you pasted in your first post:

Code:
* Make sure tcl/tk (v7.5/4.1) is installed or built in the directory above the vic tree.
It seems to me you simply didn't follow the instructions you pasted because the configure script isn't finding tcl/tk...
 
Old 08-05-2004, 11:02 AM   #6
vanhelsing
Member
 
Registered: May 2004
Posts: 130

Original Poster
Rep: Reputation: 15
thank,deiussum

well

[root@localhost share]# ls|grep tk
gtk-2.0
gtkam
gtk-doc
gtkhtml-1.1
itk3.2
pygtk
tk8.3
tkX8.3
[root@localhost share]# ls|grep tcl
itcl3.2
tcl8.3
tcllib1.3
tclX8.3
[root@localhost share]# pwd
/usr/share
[root@localhost share]#

so I copy vic-2.8 to the path /usr/share
and run ./configure again but it have the same error

Must "tcl/tk" be version (v7.5/4.1) ?
and How I install tcl/tk (v7.5/4.1) in the another folder such as /home/bee ?
if I use rpm file to install,will it install in path /usr/share ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Configure dhcpd (Configure DHCP Server) hanserver2004 LinuxQuestions.org Member Success Stories 3 10-23-2006 07:39 AM
how to configure sound in GNU/debian sarge kernel 2.6 for toshiba satellite m30x-160 manda-chuva Linux - Laptop and Netbook 1 04-13-2005 09:47 PM
configure: error: when trying to install / configure new software ? met tomfer007 Linux - Software 1 07-25-2004 04:52 PM
generate Makefile from Makefile.in without calling ./configure ? chris78 Programming 2 05-02-2004 01:23 PM
HELP!! autoconf configure problem ugenn Linux - Software 0 12-17-2002 04:12 PM


All times are GMT -5. The time now is 02:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration