Skip to content

Commit

Permalink
Use AC_OUTPUT_COMMANDS() for the "make depend", as we do in tcpdump.
Browse files Browse the repository at this point in the history
  • Loading branch information
guyharris committed May 8, 2013
1 parent c65bb5e commit 5e2bdef
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 10 deletions.
30 changes: 24 additions & 6 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -12462,6 +12462,8 @@ test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
ac_config_headers="$ac_config_headers config.h"
ac_config_commands="$ac_config_commands default-1"
ac_config_files="$ac_config_files Makefile pcap-filter.manmisc pcap-linktype.manmisc pcap-tstamp.manmisc pcap-savefile.manfile pcap.3pcap pcap_compile.3pcap pcap_datalink.3pcap pcap_dump_open.3pcap pcap_list_datalinks.3pcap pcap_list_tstamp_types.3pcap pcap_open_dead.3pcap pcap_open_offline.3pcap pcap_set_tstamp_type.3pcap"
cat >confcache <<\_ACEOF
Expand Down Expand Up @@ -12878,6 +12880,7 @@ cat >>$CONFIG_STATUS <<_ACEOF
# Files that config.status was made for.
config_files="$ac_config_files"
config_headers="$ac_config_headers"
config_commands="$ac_config_commands"
_ACEOF
Expand All @@ -12904,6 +12907,9 @@ $config_files
Configuration headers:
$config_headers
Configuration commands:
$config_commands
Report bugs to <[email protected]>."
_ACEOF
Expand Down Expand Up @@ -13009,6 +13015,11 @@ _ASBOX
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
#
# INIT-COMMANDS
#
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
Expand All @@ -13018,6 +13029,7 @@ for ac_config_target in $ac_config_targets
do
case $ac_config_target in
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
"default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
"pcap-filter.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-filter.manmisc" ;;
"pcap-linktype.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-linktype.manmisc" ;;
Expand Down Expand Up @@ -13047,6 +13059,7 @@ done
if $ac_need_defaults; then
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
fi
# Have a temporary directory for convenience. Make it in the build tree
Expand Down Expand Up @@ -13292,7 +13305,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF
fi # test -n "$CONFIG_FILES"
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
do
case $ac_tag in
:[FHLC]) ac_mode=$ac_tag; continue;;
Expand Down Expand Up @@ -13631,9 +13644,18 @@ echo "$as_me: $ac_file is unchanged" >&6;}
rm -f "$tmp/out12"
;;
:C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
echo "$as_me: executing $ac_file commands" >&6;}
;;
esac
case $ac_file$ac_mode in
"default-1":C) if test -f .devel; then
make depend
fi ;;
esac
done # for ac_tag
Expand Down Expand Up @@ -13664,8 +13686,4 @@ if test "$no_create" != yes; then
$ac_cs_success || { (exit 1); exit 1; }
fi
if test -f .devel ; then
make depend
fi
exit 0
7 changes: 3 additions & 4 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -1572,14 +1572,13 @@ AC_PROG_INSTALL

AC_CONFIG_HEADER(config.h)

AC_OUTPUT_COMMANDS([if test -f .devel; then
make depend
fi])
AC_OUTPUT(Makefile pcap-filter.manmisc pcap-linktype.manmisc
pcap-tstamp.manmisc pcap-savefile.manfile pcap.3pcap
pcap_compile.3pcap pcap_datalink.3pcap pcap_dump_open.3pcap
pcap_list_datalinks.3pcap pcap_list_tstamp_types.3pcap
pcap_open_dead.3pcap pcap_open_offline.3pcap
pcap_set_tstamp_type.3pcap)

if test -f .devel ; then
make depend
fi
exit 0

0 comments on commit 5e2bdef

Please sign in to comment.