This is our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Hi all

We are trying to build Wireshark RPM package with a different package name. In order to do this we have modified the following files.

  • configure
  • configure.ac
  • wireshark.spec.in

Once the changes are done, we are performing ./configure which goes fine and then we are doing make. Once we do the make we are observing that it is regenerating configure file. All the changes done by us in configure file is partially overwritten. We want to know why is this happening and how to control it. Following couple of lines are observed when we do make.

# make CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /home/KIRAN/ABCDEFG-5.0/missing --run aclocal-1.11./aclocal-flagscd . && /bin/sh /home/KIRAN/ABCDEFG-5.0/missing --run automake-1.11 --gnu CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /home/KIRAN/ABCDEFG-5.0/missing --run autoconf /bin/sh ./config.status --recheck

Please let us know what is reason the above 2 lines are being executed by make. Thanks in advance.

Regards Kiran Kumar G

asked 12 Mar '15, 12:41

Kiran%20Kumar%20G's gravatar image

Kiran Kumar G
21111415
accept rate: 0%

edited 13 Mar '15, 02:12


Please let us know what is reason the above 2 lines are being executed by make

Because that's how automake-based projects work; they re-generate the configure script if the source files for it (configure.ac, acinclude.m4) are newer than the generated configure script. They do so under the assumption that the configure script is purely generated from configure.ac and acinclude.m4 and NOT edited manually by the user; do not EVER violate that assumption by modifying configure by hand - ALWAYS edit ONLY the configure.ac and/or acinclude.m4 files, and then run make. The Makefile will, when you run make re-generate the configure script for you, if necessary, with the commands you showed.

Wireshark uses automake, so that's how it works.

Again, DO NOT make ANY changes to the configure script yourself. Edit ONLY configure.ac and, if necessary, acinclude.m4, and then run make. (Do not edit aclocal.m4, either; it's generated from acinclude.m4, and make should regenerate that, as well, by running automake.)

permanent link

answered 13 Mar '15, 13:58

Guy%20Harris's gravatar image

Guy Harris ♦♦
17.4k335196
accept rate: 19%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×9

question asked: 12 Mar '15, 12:41

question was seen: 880 times

last updated: 13 Mar '15, 13:58

p​o​w​e​r​e​d by O​S​Q​A