aboutsummaryrefslogtreecommitdiff
path: root/sim/rx/configure
diff options
context:
space:
mode:
authorMasaki Muranaka <monaka@sourceware.org>2010-02-14 07:37:11 +0000
committerMasaki Muranaka <monaka@sourceware.org>2010-02-14 07:37:11 +0000
commit2388a1526b1019b47836c395d28a1e57073dc61b (patch)
treea0e6a6f666cab03301a8fcdbb87d5897113defd3 /sim/rx/configure
parent22e041e26738fc4fab6cbabba9c5ce88e535a83f (diff)
downloadgdb-2388a1526b1019b47836c395d28a1e57073dc61b.zip
gdb-2388a1526b1019b47836c395d28a1e57073dc61b.tar.gz
gdb-2388a1526b1019b47836c395d28a1e57073dc61b.tar.bz2
* configure.in: Check if the host has getopt.h.
* configure: Regenerate. * config.in: Regenerate. * main.c: Include config.h. Use HAVE_STDLIB_H, HAVE_UNISTD_H, HAVE_GETOPT_H. Include getopt.h in case HAVE_GETOPT_H is defined.
Diffstat (limited to 'sim/rx/configure')
-rwxr-xr-xsim/rx/configure13
1 files changed, 13 insertions, 0 deletions
diff --git a/sim/rx/configure b/sim/rx/configure
index 58e42de..56d03ac 100755
--- a/sim/rx/configure
+++ b/sim/rx/configure
@@ -4517,6 +4517,19 @@ sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
sim_link_links="${sim_link_links} targ-vals.def"
+for ac_header in getopt.h
+do :
+ ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
+if test "x$ac_cv_header_getopt_h" = x""yes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_GETOPT_H 1
+_ACEOF
+
+fi
+
+done
+
+
ac_sources="$sim_link_files"
ac_dests="$sim_link_links"