about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/sysv4/solaris2/configure
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/sysv/sysv4/solaris2/configure')
-rwxr-xr-xsysdeps/unix/sysv/sysv4/solaris2/configure31
1 files changed, 31 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/sysv4/solaris2/configure b/sysdeps/unix/sysv/sysv4/solaris2/configure
new file mode 100755
index 0000000000..9dc976812c
--- /dev/null
+++ b/sysdeps/unix/sysv/sysv4/solaris2/configure
@@ -0,0 +1,31 @@
+ # Local configure fragment for sysdeps/unix/sysv/sysv4/solaris2
+
+# Concensus on stdio is that it's broken.
+test $stdio = default && stdio=libio
+
+# Crypt is your friend.
+case $add_ons in
+  *crypt*)
+    message=
+    ;;
+  *)
+    message="\
+*** WARNING:
+*** Are you sure you do not want to use the \`crypt' add-on?"
+    ;;
+esac
+
+if test "$message"; then
+  if test $enable_sanity = yes; then
+    echo "\
+*** You should not compile the GNU libc without the \`crypt' add-on.
+*** Not using them risks to be incompatible with the libraries of
+*** other systems.  Consider getting the add-on and restart the
+*** configuration.
+*** If you reall mean to avoid this add-on run configure again, now
+*** using the extra parameter \`--disable-sanity-checks'."
+    exit 1
+  else
+    echo "$message"
+  fi
+fi