home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / coders / mesa-1.2.8 / widgets / configure < prev    next >
Text File  |  1996-05-27  |  51KB  |  1,770 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.2 
  5. # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_help="$ac_help
  15.   --with-x                use the X Window System"
  16. ac_help="$ac_help
  17.   --enable-debug          also compile debugging code"
  18. ac_help="$ac_help
  19.   --with-motif            also compile the Motif widgets (untested)"
  20. ac_help="$ac_help
  21.   --with-mesadir=PATH     use the Mesa tree rooted in PATH (default: ..)"
  22.  
  23. # Initialize some variables set by options.
  24. # The variables have the same names as the options, with
  25. # dashes changed to underlines.
  26. build=NONE
  27. cache_file=./config.cache
  28. exec_prefix=NONE
  29. host=NONE
  30. no_create=
  31. nonopt=NONE
  32. no_recursion=
  33. prefix=NONE
  34. program_prefix=NONE
  35. program_suffix=NONE
  36. program_transform_name=s,x,x,
  37. silent=
  38. site=
  39. srcdir=
  40. target=NONE
  41. verbose=
  42. x_includes=NONE
  43. x_libraries=NONE
  44.  
  45. # Initialize some other variables.
  46. subdirs=
  47.  
  48. ac_prev=
  49. for ac_option
  50. do
  51.  
  52.   # If the previous option needs an argument, assign it.
  53.   if test -n "$ac_prev"; then
  54.     eval "$ac_prev=\$ac_option"
  55.     ac_prev=
  56.     continue
  57.   fi
  58.  
  59.   case "$ac_option" in
  60.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  61.   *) ac_optarg= ;;
  62.   esac
  63.  
  64.   # Accept the important Cygnus configure options, so we can diagnose typos.
  65.  
  66.   case "$ac_option" in
  67.  
  68.   -build | --build | --buil | --bui | --bu | --b)
  69.     ac_prev=build ;;
  70.   -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  71.     build="$ac_optarg" ;;
  72.  
  73.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  74.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  75.     ac_prev=cache_file ;;
  76.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  77.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  78.     cache_file="$ac_optarg" ;;
  79.  
  80.   -disable-* | --disable-*)
  81.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  82.     # Reject names that are not valid shell variable names.
  83.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  84.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  85.     fi
  86.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  87.     eval "enable_${ac_feature}=no" ;;
  88.  
  89.   -enable-* | --enable-*)
  90.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  91.     # Reject names that are not valid shell variable names.
  92.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  93.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  94.     fi
  95.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  96.     case "$ac_option" in
  97.       *=*) ;;
  98.       *) ac_optarg=yes ;;
  99.     esac
  100.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  101.  
  102.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  103.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  104.   | --exec | --exe | --ex)
  105.     ac_prev=exec_prefix ;;
  106.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  107.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  108.   | --exec=* | --exe=* | --ex=*)
  109.     exec_prefix="$ac_optarg" ;;
  110.  
  111.   -gas | --gas | --ga | --g)
  112.     # Obsolete; use --with-gas.
  113.     with_gas=yes ;;
  114.  
  115.   -help | --help | --hel | --he)
  116.     # Omit some internal or obsolete options to make the list less imposing.
  117.     # This message is too long to be a string in the A/UX 3.1 sh.
  118.     cat << EOF
  119. Usage: configure [options] [host]
  120. Options: [defaults in brackets after descriptions]
  121. Configuration:
  122.   --cache-file=FILE       cache test results in FILE
  123.   --help                  print this message
  124.   --no-create             do not create output files
  125.   --quiet, --silent       do not print \`checking...' messages
  126.   --version               print the version of autoconf that created configure
  127. Directory and file names:
  128.   --prefix=PREFIX         install architecture-independent files in PREFIX
  129.                           [$ac_default_prefix]
  130.   --exec-prefix=PREFIX    install architecture-dependent files in PREFIX
  131.                           [same as prefix]
  132.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  133.   --program-prefix=PREFIX prepend PREFIX to installed program names
  134.   --program-suffix=SUFFIX append SUFFIX to installed program names
  135.   --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  136. Host type:
  137.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  138.   --host=HOST             configure for HOST [guessed]
  139.   --target=TARGET         configure for TARGET [TARGET=HOST]
  140. Features and packages:
  141.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  142.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  143.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  144.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  145.   --x-includes=DIR        X include files are in DIR
  146.   --x-libraries=DIR       X library files are in DIR
  147. --enable and --with options recognized:$ac_help
  148. EOF
  149.     exit 0 ;;
  150.  
  151.   -host | --host | --hos | --ho)
  152.     ac_prev=host ;;
  153.   -host=* | --host=* | --hos=* | --ho=*)
  154.     host="$ac_optarg" ;;
  155.  
  156.   -nfp | --nfp | --nf)
  157.     # Obsolete; use --without-fp.
  158.     with_fp=no ;;
  159.  
  160.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  161.   | --no-cr | --no-c)
  162.     no_create=yes ;;
  163.  
  164.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  165.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  166.     no_recursion=yes ;;
  167.  
  168.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  169.     ac_prev=prefix ;;
  170.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  171.     prefix="$ac_optarg" ;;
  172.  
  173.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  174.   | --program-pre | --program-pr | --program-p)
  175.     ac_prev=program_prefix ;;
  176.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  177.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  178.     program_prefix="$ac_optarg" ;;
  179.  
  180.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  181.   | --program-suf | --program-su | --program-s)
  182.     ac_prev=program_suffix ;;
  183.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  184.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  185.     program_suffix="$ac_optarg" ;;
  186.  
  187.   -program-transform-name | --program-transform-name \
  188.   | --program-transform-nam | --program-transform-na \
  189.   | --program-transform-n | --program-transform- \
  190.   | --program-transform | --program-transfor \
  191.   | --program-transfo | --program-transf \
  192.   | --program-trans | --program-tran \
  193.   | --progr-tra | --program-tr | --program-t)
  194.     ac_prev=program_transform_name ;;
  195.   -program-transform-name=* | --program-transform-name=* \
  196.   | --program-transform-nam=* | --program-transform-na=* \
  197.   | --program-transform-n=* | --program-transform-=* \
  198.   | --program-transform=* | --program-transfor=* \
  199.   | --program-transfo=* | --program-transf=* \
  200.   | --program-trans=* | --program-tran=* \
  201.   | --progr-tra=* | --program-tr=* | --program-t=*)
  202.     program_transform_name="$ac_optarg" ;;
  203.  
  204.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  205.   | -silent | --silent | --silen | --sile | --sil)
  206.     silent=yes ;;
  207.  
  208.   -site | --site | --sit)
  209.     ac_prev=site ;;
  210.   -site=* | --site=* | --sit=*)
  211.     site="$ac_optarg" ;;
  212.  
  213.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  214.     ac_prev=srcdir ;;
  215.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  216.     srcdir="$ac_optarg" ;;
  217.  
  218.   -target | --target | --targe | --targ | --tar | --ta | --t)
  219.     ac_prev=target ;;
  220.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  221.     target="$ac_optarg" ;;
  222.  
  223.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  224.     verbose=yes ;;
  225.  
  226.   -version | --version | --versio | --versi | --vers)
  227.     echo "configure generated by autoconf version 2.2"
  228.     exit 0 ;;
  229.  
  230.   -with-* | --with-*)
  231.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  232.     # Reject names that are not valid shell variable names.
  233.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  234.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  235.     fi
  236.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  237.     case "$ac_option" in
  238.       *=*) ;;
  239.       *) ac_optarg=yes ;;
  240.     esac
  241.     eval "with_${ac_package}='$ac_optarg'" ;;
  242.  
  243.   -without-* | --without-*)
  244.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  245.     # Reject names that are not valid shell variable names.
  246.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  247.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  248.     fi
  249.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  250.     eval "with_${ac_package}=no" ;;
  251.  
  252.   --x)
  253.     # Obsolete; use --with-x.
  254.     with_x=yes ;;
  255.  
  256.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  257.   | --x-incl | --x-inc | --x-in | --x-i)
  258.     ac_prev=x_includes ;;
  259.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  260.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  261.     x_includes="$ac_optarg" ;;
  262.  
  263.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  264.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  265.     ac_prev=x_libraries ;;
  266.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  267.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  268.     x_libraries="$ac_optarg" ;;
  269.  
  270.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  271.     ;;
  272.  
  273.   *) 
  274.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  275.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  276.     fi
  277.     if test "x$nonopt" != xNONE; then
  278.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  279.     fi
  280.     nonopt="$ac_option"
  281.     ;;
  282.  
  283.   esac
  284. done
  285.  
  286. if test -n "$ac_prev"; then
  287.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  288. fi
  289.  
  290. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  291.  
  292. # File descriptor usage:
  293. # 0 standard input
  294. # 1 file creation
  295. # 2 errors and warnings
  296. # 3 some systems may open it to /dev/tty
  297. # 4 used on the Kubota Titan
  298. # 6 checking for... messages and results
  299. # 5 compiler messages saved in config.log
  300. if test "$silent" = yes; then
  301.   exec 6>/dev/null
  302. else
  303.   exec 6>&1
  304. fi
  305. exec 5>./config.log
  306.  
  307. echo "\
  308. This file contains any messages produced by compilers while
  309. running configure, to aid debugging if configure makes a mistake.
  310. " 1>&5
  311.  
  312. # Strip out --no-create and --no-recursion so they do not pile up.
  313. # Also quote any args containing shell metacharacters.
  314. ac_configure_args=
  315. for ac_arg
  316. do
  317.   case "$ac_arg" in
  318.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  319.   | --no-cr | --no-c) ;;
  320.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  321.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  322.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  323.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  324.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  325.   esac
  326. done
  327.  
  328. # NLS nuisances.
  329. # Only set LANG and LC_ALL to C if already set.
  330. # These must not be set unconditionally because not all systems understand
  331. # e.g. LANG=C (notably SCO).
  332. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  333. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  334.  
  335. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  336. rm -rf conftest* confdefs.h
  337. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  338. echo > confdefs.h
  339.  
  340. # A filename unique to this package, relative to the directory that
  341. # configure is in, which we can look for to find out if srcdir is correct.
  342. ac_unique_file=src/GLwDrawingArea.c
  343.  
  344. # Find the source files, if location was not specified.
  345. if test -z "$srcdir"; then
  346.   ac_srcdir_defaulted=yes
  347.   # Try the directory containing this script, then its parent.
  348.   ac_prog=$0
  349.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  350.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  351.   srcdir=$ac_confdir
  352.   if test ! -r $srcdir/$ac_unique_file; then
  353.     srcdir=..
  354.   fi
  355. else
  356.   ac_srcdir_defaulted=no
  357. fi
  358. if test ! -r $srcdir/$ac_unique_file; then
  359.   if test "$ac_srcdir_defaulted" = yes; then
  360.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  361.   else
  362.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  363.   fi
  364. fi
  365. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  366.  
  367. # Prefer explicitly selected file to automatically selected ones.
  368. if test -z "$CONFIG_SITE"; then
  369.   if test "x$prefix" != xNONE; then
  370.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  371.   else
  372.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  373.   fi
  374. fi
  375. for ac_site_file in $CONFIG_SITE; do
  376.   if test -r "$ac_site_file"; then
  377.     echo "loading site script $ac_site_file"
  378.     . "$ac_site_file"
  379.   fi
  380. done
  381.  
  382. if test -r "$cache_file"; then
  383.   echo "loading cache $cache_file"
  384.   . $cache_file
  385. else
  386.   echo "creating cache $cache_file"
  387.   > $cache_file
  388. fi
  389.  
  390. ac_ext=c
  391. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  392. ac_cpp='$CPP $CPPFLAGS'
  393. ac_compile='${CC-cc} conftest.$ac_ext $CFLAGS $CPPFLAGS -c 1>&5 2>&5'
  394. ac_link='${CC-cc} conftest.$ac_ext $CFLAGS $CPPFLAGS $LDFLAGS -o conftest $LIBS 1>&5 2>&5'
  395.  
  396. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  397.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  398.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  399.     ac_n= ac_c='
  400. ' ac_t='    '
  401.   else
  402.     ac_n=-n ac_c= ac_t=
  403.   fi
  404. else
  405.   ac_n= ac_c='\c' ac_t=
  406. fi
  407.  
  408. ac_aux_dir=
  409. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  410.   if test -f $ac_dir/install-sh; then
  411.     ac_aux_dir=$ac_dir
  412.     ac_install_sh="$ac_aux_dir/install-sh -c"
  413.     break
  414.   elif test -f $ac_dir/install.sh; then
  415.     ac_aux_dir=$ac_dir
  416.     ac_install_sh="$ac_aux_dir/install.sh -c"
  417.     break
  418.   fi
  419. done
  420. if test -z "$ac_aux_dir"; then
  421.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  422. fi
  423. ac_config_guess=$ac_aux_dir/config.guess
  424. ac_config_sub=$ac_aux_dir/config.sub
  425. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  426.  
  427.  
  428. # Make sure we can run config.sub.
  429. if $ac_config_sub sun4 >/dev/null 2>&1; then :
  430. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  431. fi
  432.  
  433. echo $ac_n "checking host system type""... $ac_c" 1>&6
  434.  
  435. host_alias=$host
  436. case "$host_alias" in
  437. NONE)
  438.   case $nonopt in
  439.   NONE)
  440.     if host_alias=`$ac_config_guess`; then :
  441.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  442.     fi ;;
  443.   *) host_alias=$nonopt ;;
  444.   esac ;;
  445. esac
  446.  
  447. host=`$ac_config_sub $host_alias`
  448. host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
  449. host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
  450. host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
  451. echo "$ac_t""$host" 1>&6
  452.  
  453. # Find a good install program.  We prefer a C program (faster),
  454. # so one script is as good as another.  But avoid the broken or
  455. # incompatible versions:
  456. # SysV /etc/install, /usr/sbin/install
  457. # SunOS /usr/etc/install
  458. # IRIX /sbin/install
  459. # AIX /bin/install
  460. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  461. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  462. # ./install, which can be erroneously created by make from ./install.sh.
  463. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  464. if test -z "$INSTALL"; then
  465. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  466.   echo $ac_n "(cached) $ac_c" 1>&6
  467. else
  468.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  469.   for ac_dir in $PATH; do
  470.     # Account for people who put trailing slashes in PATH elements.
  471.     case "$ac_dir/" in
  472.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  473.     *)
  474.       # OSF1 and SCO ODT 3.0 have their own names for install.
  475.       for ac_prog in ginstall installbsd scoinst install; do
  476.         if test -f $ac_dir/$ac_prog; then
  477.       if test $ac_prog = install &&
  478.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  479.         # AIX install.  It has an incompatible calling convention.
  480.         # OSF/1 installbsd also uses dspmsg, but is usable.
  481.         :
  482.       else
  483.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  484.         break 2
  485.       fi
  486.     fi
  487.       done
  488.       ;;
  489.     esac
  490.   done
  491.   IFS="$ac_save_ifs"
  492.   # As a last resort, use the slow shell script.
  493.   test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
  494. fi
  495.   INSTALL="$ac_cv_path_install"
  496. fi
  497. echo "$ac_t""$INSTALL" 1>&6
  498.  
  499. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  500. # It thinks the first close brace ends the variable substitution.
  501. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  502.  
  503. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  504.  
  505. echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  506. if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  507.   echo $ac_n "(cached) $ac_c" 1>&6
  508. else
  509.   rm -f conftestdata
  510. if ln -s X conftestdata 2>/dev/null
  511. then
  512.   rm -f conftestdata
  513.   ac_cv_prog_LN_S="ln -s"
  514. else
  515.   ac_cv_prog_LN_S=ln
  516. fi
  517. fi
  518. LN_S="$ac_cv_prog_LN_S"
  519. if test "$ac_cv_prog_LN_S" = "ln -s"; then
  520.   echo "$ac_t""yes" 1>&6
  521. else
  522.   echo "$ac_t""no" 1>&6
  523. fi
  524.  
  525. # Extract the first word of "pod2man", so it can be a program name with args.
  526. set dummy pod2man; ac_word=$2
  527. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  528. if eval "test \"`echo '$''{'ac_cv_prog_POD2MAN'+set}'`\" = set"; then
  529.   echo $ac_n "(cached) $ac_c" 1>&6
  530. else
  531.   if test -n "$POD2MAN"; then
  532.   ac_cv_prog_POD2MAN="$POD2MAN" # Let the user override the test.
  533. else
  534.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  535.   for ac_dir in $PATH; do
  536.     test -z "$ac_dir" && ac_dir=.
  537.     if test -f $ac_dir/$ac_word; then
  538.       ac_cv_prog_POD2MAN="pod2man"
  539.       break
  540.     fi
  541.   done
  542.   IFS="$ac_save_ifs"
  543. fi
  544. fi
  545. POD2MAN="$ac_cv_prog_POD2MAN"
  546. if test -n "$POD2MAN"; then
  547.   echo "$ac_t""$POD2MAN" 1>&6
  548. else
  549.   echo "$ac_t""no" 1>&6
  550. fi
  551. # Extract the first word of "pod2html", so it can be a program name with args.
  552. set dummy pod2html; ac_word=$2
  553. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  554. if eval "test \"`echo '$''{'ac_cv_prog_POD2HTML'+set}'`\" = set"; then
  555.   echo $ac_n "(cached) $ac_c" 1>&6
  556. else
  557.   if test -n "$POD2HTML"; then
  558.   ac_cv_prog_POD2HTML="$POD2HTML" # Let the user override the test.
  559. else
  560.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  561.   for ac_dir in $PATH; do
  562.     test -z "$ac_dir" && ac_dir=.
  563.     if test -f $ac_dir/$ac_word; then
  564.       ac_cv_prog_POD2HTML="pod2html"
  565.       break
  566.     fi
  567.   done
  568.   IFS="$ac_save_ifs"
  569. fi
  570. fi
  571. POD2HTML="$ac_cv_prog_POD2HTML"
  572. if test -n "$POD2HTML"; then
  573.   echo "$ac_t""$POD2HTML" 1>&6
  574. else
  575.   echo "$ac_t""no" 1>&6
  576. fi
  577. # Extract the first word of "ranlib", so it can be a program name with args.
  578. set dummy ranlib; ac_word=$2
  579. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  580. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  581.   echo $ac_n "(cached) $ac_c" 1>&6
  582. else
  583.   if test -n "$RANLIB"; then
  584.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  585. else
  586.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  587.   for ac_dir in $PATH; do
  588.     test -z "$ac_dir" && ac_dir=.
  589.     if test -f $ac_dir/$ac_word; then
  590.       ac_cv_prog_RANLIB="ranlib"
  591.       break
  592.     fi
  593.   done
  594.   IFS="$ac_save_ifs"
  595.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  596. fi
  597. fi
  598. RANLIB="$ac_cv_prog_RANLIB"
  599. if test -n "$RANLIB"; then
  600.   echo "$ac_t""$RANLIB" 1>&6
  601. else
  602.   echo "$ac_t""no" 1>&6
  603. fi
  604.  
  605. ARFLAGS="ruv"
  606. # Extract the first word of "gcc", so it can be a program name with args.
  607. set dummy gcc; ac_word=$2
  608. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  609. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  610.   echo $ac_n "(cached) $ac_c" 1>&6
  611. else
  612.   if test -n "$CC"; then
  613.   ac_cv_prog_CC="$CC" # Let the user override the test.
  614. else
  615.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  616.   for ac_dir in $PATH; do
  617.     test -z "$ac_dir" && ac_dir=.
  618.     if test -f $ac_dir/$ac_word; then
  619.       ac_cv_prog_CC="gcc"
  620.       break
  621.     fi
  622.   done
  623.   IFS="$ac_save_ifs"
  624.   test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
  625. fi
  626. fi
  627. CC="$ac_cv_prog_CC"
  628. if test -n "$CC"; then
  629.   echo "$ac_t""$CC" 1>&6
  630. else
  631.   echo "$ac_t""no" 1>&6
  632. fi
  633.  
  634.  
  635. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  636. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  637.   echo $ac_n "(cached) $ac_c" 1>&6
  638. else
  639.   cat > conftest.c <<EOF
  640. #ifdef __GNUC__
  641.   yes;
  642. #endif
  643. EOF
  644. if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
  645.   ac_cv_prog_gcc=yes
  646. else
  647.   ac_cv_prog_gcc=no
  648. fi
  649. fi
  650. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  651. if test $ac_cv_prog_gcc = yes; then
  652.   GCC=yes
  653.   if test "${CFLAGS+set}" != set; then
  654.     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  655. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  656.   echo $ac_n "(cached) $ac_c" 1>&6
  657. else
  658.   echo 'void f(){}' > conftest.c
  659. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  660.   ac_cv_prog_gcc_g=yes
  661. else
  662.   ac_cv_prog_gcc_g=no
  663. fi
  664. rm -f conftest*
  665.  
  666. fi
  667.     echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  668.     if test $ac_cv_prog_gcc_g = yes; then
  669.       CFLAGS="-g -O"
  670.     else
  671.       CFLAGS="-O"
  672.     fi
  673.   fi
  674. else
  675.   GCC=
  676.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  677. fi
  678.  
  679. test "$CC" = "gcc" && SYS_CFLAGS="$SYS_CFLAGS -pipe -Wall"
  680. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  681. # On Suns, sometimes $CPP names a directory.
  682. if test -n "$CPP" && test -d "$CPP"; then
  683.   CPP=
  684. fi
  685. if test -z "$CPP"; then
  686. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  687.   echo $ac_n "(cached) $ac_c" 1>&6
  688. else
  689.     # This must be in double quotes, not single quotes, because CPP may get
  690.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  691.   CPP="${CC-cc} -E"
  692.   # On the NeXT, cc -E runs the code through the compiler's parser,
  693.   # not just through cpp.
  694.   cat > conftest.$ac_ext <<EOF
  695. #line 696 "configure"
  696. #include "confdefs.h"
  697. #include <assert.h>
  698. Syntax Error
  699. EOF
  700. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  701. ac_err=`grep -v '^ *+' conftest.out`
  702. if test -z "$ac_err"; then
  703.   :
  704. else
  705.   echo "$ac_err" >&5
  706.   rm -rf conftest*
  707.   CPP="${CC-cc} -E -traditional-cpp"
  708.   cat > conftest.$ac_ext <<EOF
  709. #line 710 "configure"
  710. #include "confdefs.h"
  711. #include <assert.h>
  712. Syntax Error
  713. EOF
  714. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  715. ac_err=`grep -v '^ *+' conftest.out`
  716. if test -z "$ac_err"; then
  717.   :
  718. else
  719.   echo "$ac_err" >&5
  720.   rm -rf conftest*
  721.   CPP=/lib/cpp
  722. fi
  723. rm -f conftest*
  724. fi
  725. rm -f conftest*
  726.   ac_cv_prog_CPP="$CPP"
  727. fi
  728. fi
  729. CPP="$ac_cv_prog_CPP"
  730. echo "$ac_t""$CPP" 1>&6
  731.  
  732. # Query Brian Paul's database for compiling Mesa:
  733. case "$host" in
  734.   *-hp-hpux*)
  735.     SYS_CFLAGS="$SYS_CFLAGS -D_HPUX_SOURCE"
  736.     test "$CC" = "gcc" || SYS_CFLAGS="$SYS_CFLAGS +O2 +Oall +Onolimit -Aa"
  737.     ;;
  738.   mips-sgi-irix4*)
  739.     test "$CC" = "gcc" || SYS_CFLAGS="$SYS_CFLAGS -float"
  740.     ARFLAGS="rcv"
  741.     ;;
  742.   mips-sgi-irix5*)
  743.     # On IRIX 5.3 -sopt causes a problem in drawpixels.c so we don't use it
  744.     test "$CC" = "gcc" || \
  745.       SYS_CFLAGS="$SYS_CFLAGS -ansi -prototypes -fullwarn -float"
  746.     ARFLAGS="rcv"
  747.     ;;
  748.   mips-sgi-irix6*)
  749.     #   1068 - integer conversion resulted in a change of sign
  750.     #   1069 - integer conversion resulted in truncation
  751.     #   1174 - variable was declared but never referenced
  752.     #   1185 - enumerated type mixed with another type
  753.     #   1209 - controlling expression is constant
  754.     #   1474 - declaring a void parameter list with a typedef is nonstandard
  755.     #   1552 - variable was set but never used
  756.     test "$CC" = "gcc" || \
  757.       SYS_CFLAGS="$SYS_CFLAGS -64 -ansi -prototypes -fullwarn \
  758.                   -woff 1068,1069,1174,1185,1209,1474,1552"
  759.     ARFLAGS="rcv"
  760.     ;;
  761.   *-linux*)
  762.     SYS_CFLAGS="$SYS_CFLAGS -mieee-fp -DSHM"
  763.     SYS_LDFLAGS="$SYS_LDFLAGS -mieee-fp"
  764.     ;;
  765.   *-netbsd*)
  766.     ARFLAGS="rcv"
  767.     ;;
  768.   alpha-dec-osf*)
  769.     test "$CC" = "gcc" || SYS_CFLAGS="$SYS_CFLAGS -std1 -DSHM"
  770.     ;;
  771.   sparc-sun-solaris2*)
  772.     test "$CC" = "gcc" || SYS_CFLAGS="$SYS_CFLAGS -Xa"
  773.     ;;
  774.   *-ultrix*)
  775.     test "$CC" = "gcc" || SYS_CFLAGS="$SYS_CFLAGS -Dconst=/**/"
  776.     ARFLAGS="rusv"
  777.     ;;
  778. esac
  779. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  780. if test -d /etc/conf/kconfig.d &&
  781.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  782. then
  783.   echo "$ac_t""yes" 1>&6
  784.   ISC=yes # If later tests want to check for ISC.
  785.   cat >> confdefs.h <<\EOF
  786. #define _POSIX_SOURCE 1
  787. EOF
  788.  
  789.   if test "$GCC" = yes; then
  790.     CC="$CC -posix"
  791.   else
  792.     CC="$CC -Xp"
  793.   fi
  794. else
  795.   echo "$ac_t""no" 1>&6
  796.   ISC=
  797. fi
  798.  
  799. # If we find X, set shell vars x_includes and x_libraries to the
  800. # paths, otherwise set no_x=yes.
  801. # Uses ac_ vars as temps to allow command line to override cache and checks.
  802. # --without-x overrides everything else, but does not touch the cache.
  803. echo $ac_n "checking for X""... $ac_c" 1>&6
  804.  
  805. # Check whether --with-x or --without-x was given.
  806. withval="$with_x"
  807. if test -n "$withval"; then
  808.   :
  809. fi
  810.  
  811. if test "x$with_x" = xno; then
  812.   no_x=yes
  813. else
  814.   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  815.     no_x=
  816.   else
  817. if eval "test \"`echo '$''{'ac_cv_path_x'+set}'`\" = set"; then
  818.   echo $ac_n "(cached) $ac_c" 1>&6
  819. else
  820.   # One or both of the vars are not set, and there is no cached value.
  821. no_x=yes
  822. rm -fr conftestdir
  823. if mkdir conftestdir; then
  824.   cd conftestdir
  825.   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  826.   cat > Imakefile <<'EOF'
  827. acfindx:
  828.     @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  829. EOF
  830.   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  831.     no_x=
  832.     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  833.     eval `make acfindx 2>/dev/null | grep -v make`
  834.     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  835.     if test ! -f $ac_im_usrlibdir/libX11.a && test -f $ac_im_libdir/libX11.a
  836.     then
  837.       ac_im_usrlibdir=$ac_im_libdir
  838.     fi
  839.     # Screen out bogus values from the imake configuration.
  840.     case "$ac_im_incroot" in
  841.     /usr/include) ;;
  842.     *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
  843.     esac
  844.     case "$ac_im_usrlibdir" in
  845.     /usr/lib | /lib) ;;
  846.     *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
  847.     esac
  848.   fi
  849.   cd ..
  850.   rm -fr conftestdir
  851. fi
  852.  
  853. if test "$no_x" = yes; then
  854. test -z "$x_direct_test_library" && x_direct_test_library=Xt
  855. test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
  856. test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
  857. cat > conftest.$ac_ext <<EOF
  858. #line 859 "configure"
  859. #include "confdefs.h"
  860. #include <$x_direct_test_include>
  861. EOF
  862. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  863. ac_err=`grep -v '^ *+' conftest.out`
  864. if test -z "$ac_err"; then
  865.   rm -rf conftest*
  866.   no_x= ac_x_includes=
  867. else
  868.   echo "$ac_err" >&5
  869.   rm -rf conftest*
  870.     for ac_dir in               \
  871.     /usr/X11R6/include        \
  872.     /usr/X11R5/include        \
  873.     /usr/X11R4/include        \
  874.                               \
  875.     /usr/include/X11R6        \
  876.     /usr/include/X11R5        \
  877.     /usr/include/X11R4        \
  878.                               \
  879.     /usr/local/X11R6/include  \
  880.     /usr/local/X11R5/include  \
  881.     /usr/local/X11R4/include  \
  882.                               \
  883.     /usr/local/include/X11R6  \
  884.     /usr/local/include/X11R5  \
  885.     /usr/local/include/X11R4  \
  886.                               \
  887.     /usr/X11/include          \
  888.     /usr/include/X11          \
  889.     /usr/local/X11/include    \
  890.     /usr/local/include/X11    \
  891.                               \
  892.     /usr/X386/include         \
  893.     /usr/x386/include         \
  894.     /usr/XFree86/include/X11  \
  895.                               \
  896.     /usr/include              \
  897.     /usr/local/include        \
  898.     /usr/unsupported/include  \
  899.     /usr/athena/include       \
  900.     /usr/local/x11r5/include  \
  901.     /usr/lpp/Xamples/include  \
  902.                               \
  903.     /usr/openwin/include      \
  904.     /usr/openwin/share/include \
  905.     ; \
  906.   do
  907.     if test -r "$ac_dir/$x_direct_test_include"; then
  908.       no_x= ac_x_includes=$ac_dir
  909.       break
  910.     fi
  911.   done
  912. fi
  913. rm -f conftest*
  914.  
  915. # Check for the libraries.
  916. # See if we find them without any special options.
  917. # Don't add to $LIBS permanently.
  918. ac_save_LIBS="$LIBS"
  919. LIBS="-l$x_direct_test_library $LIBS"
  920. cat > conftest.$ac_ext <<EOF
  921. #line 922 "configure"
  922. #include "confdefs.h"
  923.  
  924. int main() { return 0; }
  925. int t() {
  926. ${x_direct_test_function}()
  927. ; return 0; }
  928. EOF
  929. if eval $ac_link; then
  930.   rm -rf conftest*
  931.   LIBS="$ac_save_LIBS" no_x= ac_x_libraries=
  932. else
  933.   rm -rf conftest*
  934.   LIBS="$ac_save_LIBS"
  935. # First see if replacing the include by lib works.
  936. for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
  937.     /usr/X11R6/lib        \
  938.     /usr/X11R5/lib        \
  939.     /usr/X11R4/lib        \
  940.                           \
  941.     /usr/lib/X11R6        \
  942.     /usr/lib/X11R5        \
  943.     /usr/lib/X11R4        \
  944.                           \
  945.     /usr/local/X11R6/lib  \
  946.     /usr/local/X11R5/lib  \
  947.     /usr/local/X11R4/lib  \
  948.                           \
  949.     /usr/local/lib/X11R6  \
  950.     /usr/local/lib/X11R5  \
  951.     /usr/local/lib/X11R4  \
  952.                           \
  953.     /usr/X11/lib          \
  954.     /usr/lib/X11          \
  955.     /usr/local/X11/lib    \
  956.     /usr/local/lib/X11    \
  957.                           \
  958.     /usr/X386/lib         \
  959.     /usr/x386/lib         \
  960.     /usr/XFree86/lib/X11  \
  961.                           \
  962.     /usr/lib              \
  963.     /usr/local/lib        \
  964.     /usr/unsupported/lib  \
  965.     /usr/athena/lib       \
  966.     /usr/local/x11r5/lib  \
  967.     /usr/lpp/Xamples/lib  \
  968.                           \
  969.     /usr/openwin/lib      \
  970.     /usr/openwin/share/lib \
  971.     ; \
  972. do
  973.   for ac_extension in a so sl; do
  974.     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
  975.       no_x= ac_x_libraries=$ac_dir
  976.       break 2
  977.     fi
  978.   done
  979. done
  980. fi
  981. rm -f conftest*
  982.  
  983. fi
  984. if test "$no_x" = yes; then
  985.   ac_cv_path_x="no_x=yes"
  986. else
  987.   ac_cv_path_x="no_x= ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  988. fi
  989. fi
  990.   fi
  991.   eval "$ac_cv_path_x"
  992. fi # $with_x != no
  993.  
  994. if test "$no_x" = yes; then
  995.   echo "$ac_t""no" 1>&6
  996. else
  997.   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  998.   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  999.   ac_cv_path_x="no_x= ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  1000.   echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
  1001. fi
  1002.  
  1003. if test "$no_x" = yes; then 
  1004.   # Not all programs may use this symbol, but it does not hurt to define it.
  1005.   X_CFLAGS="$X_CFLAGS -DX_DISPLAY_MISSING"
  1006. else
  1007.   if test -n "$x_includes"; then
  1008.     X_CFLAGS="$X_CFLAGS -I$x_includes"
  1009.   fi
  1010.  
  1011.   # It would be nice to have a more robust check for the -R ld option than
  1012.   # just checking for Solaris.
  1013.   # It would also be nice to do this for all -L options, not just this one.
  1014.   if test -n "$x_libraries"; then
  1015.     X_LIBS="$X_LIBS -L$x_libraries"
  1016.     if test "`(uname) 2>/dev/null`" = SunOS &&
  1017.       uname -r | grep '^5' >/dev/null; then
  1018.       X_LIBS="$X_LIBS -R$x_libraries"
  1019.     fi
  1020.   fi
  1021.  
  1022.   # Check for libraries that X11R6 Xt/Xaw programs need.
  1023.  
  1024.   ac_save_LDFLAGS="$LDFLAGS"
  1025.   LDFLAGS="$LDFLAGS -L$x_libraries"
  1026.   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  1027.   # check for ICE first), but we must link in the order -lSM -lICE or
  1028.   # we get undefined symbols.  So assume we have SM if we have ICE.
  1029.   # These have to be linked with before -lX11, unlike the other
  1030.   # libraries we check for below, so use a different variable.
  1031.   #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
  1032.   echo $ac_n "checking for -lICE""... $ac_c" 1>&6
  1033. if eval "test \"`echo '$''{'ac_cv_lib_ICE'+set}'`\" = set"; then
  1034.   echo $ac_n "(cached) $ac_c" 1>&6
  1035. else
  1036.   ac_save_LIBS="$LIBS"
  1037. LIBS="-lICE  $LIBS"
  1038. cat > conftest.$ac_ext <<EOF
  1039. #line 1040 "configure"
  1040. #include "confdefs.h"
  1041.  
  1042. int main() { return 0; }
  1043. int t() {
  1044. IceConnectionNumber()
  1045. ; return 0; }
  1046. EOF
  1047. if eval $ac_link; then
  1048.   rm -rf conftest*
  1049.   eval "ac_cv_lib_ICE=yes"
  1050. else
  1051.   rm -rf conftest*
  1052.   eval "ac_cv_lib_ICE=no"
  1053. fi
  1054. rm -f conftest*
  1055. LIBS="$ac_save_LIBS"
  1056.  
  1057. fi
  1058. if eval "test \"`echo '$ac_cv_lib_'ICE`\" = yes"; then
  1059.   echo "$ac_t""yes" 1>&6
  1060.   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  1061. else
  1062.   echo "$ac_t""no" 1>&6
  1063. fi
  1064.  
  1065.   LDFLAGS="$ac_save_LDFLAGS"
  1066.  
  1067.   # Check for system-dependent libraries X programs must link with.
  1068.  
  1069.   if test "$ISC" = yes; then
  1070.     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  1071.   else
  1072.     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
  1073.     # libraries were built with DECnet support.  And karl@cs.umb.edu says
  1074.     # the Alpha needs dnet_stub (dnet does not exist).
  1075.     echo $ac_n "checking for -ldnet""... $ac_c" 1>&6
  1076. if eval "test \"`echo '$''{'ac_cv_lib_dnet'+set}'`\" = set"; then
  1077.   echo $ac_n "(cached) $ac_c" 1>&6
  1078. else
  1079.   ac_save_LIBS="$LIBS"
  1080. LIBS="-ldnet  $LIBS"
  1081. cat > conftest.$ac_ext <<EOF
  1082. #line 1083 "configure"
  1083. #include "confdefs.h"
  1084.  
  1085. int main() { return 0; }
  1086. int t() {
  1087. dnet_ntoa()
  1088. ; return 0; }
  1089. EOF
  1090. if eval $ac_link; then
  1091.   rm -rf conftest*
  1092.   eval "ac_cv_lib_dnet=yes"
  1093. else
  1094.   rm -rf conftest*
  1095.   eval "ac_cv_lib_dnet=no"
  1096. fi
  1097. rm -f conftest*
  1098. LIBS="$ac_save_LIBS"
  1099.  
  1100. fi
  1101. if eval "test \"`echo '$ac_cv_lib_'dnet`\" = yes"; then
  1102.   echo "$ac_t""yes" 1>&6
  1103.   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  1104. else
  1105.   echo "$ac_t""no" 1>&6
  1106. fi
  1107.  
  1108.     if test $ac_cv_lib_dnet = no; then
  1109.       echo $ac_n "checking for -ldnet_stub""... $ac_c" 1>&6
  1110. if eval "test \"`echo '$''{'ac_cv_lib_dnet_stub'+set}'`\" = set"; then
  1111.   echo $ac_n "(cached) $ac_c" 1>&6
  1112. else
  1113.   ac_save_LIBS="$LIBS"
  1114. LIBS="-ldnet_stub  $LIBS"
  1115. cat > conftest.$ac_ext <<EOF
  1116. #line 1117 "configure"
  1117. #include "confdefs.h"
  1118.  
  1119. int main() { return 0; }
  1120. int t() {
  1121. dnet_ntoa()
  1122. ; return 0; }
  1123. EOF
  1124. if eval $ac_link; then
  1125.   rm -rf conftest*
  1126.   eval "ac_cv_lib_dnet_stub=yes"
  1127. else
  1128.   rm -rf conftest*
  1129.   eval "ac_cv_lib_dnet_stub=no"
  1130. fi
  1131. rm -f conftest*
  1132. LIBS="$ac_save_LIBS"
  1133.  
  1134. fi
  1135. if eval "test \"`echo '$ac_cv_lib_'dnet_stub`\" = yes"; then
  1136.   echo "$ac_t""yes" 1>&6
  1137.   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  1138. else
  1139.   echo "$ac_t""no" 1>&6
  1140. fi
  1141.  
  1142.     fi
  1143.  
  1144.     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  1145.     # to get the SysV transport functions.
  1146.     # Not sure which flavor of 386 UNIX this is, but it seems harmless to
  1147.     # check for it.
  1148.     echo $ac_n "checking for -lnsl""... $ac_c" 1>&6
  1149. if eval "test \"`echo '$''{'ac_cv_lib_nsl'+set}'`\" = set"; then
  1150.   echo $ac_n "(cached) $ac_c" 1>&6
  1151. else
  1152.   ac_save_LIBS="$LIBS"
  1153. LIBS="-lnsl  $LIBS"
  1154. cat > conftest.$ac_ext <<EOF
  1155. #line 1156 "configure"
  1156. #include "confdefs.h"
  1157.  
  1158. int main() { return 0; }
  1159. int t() {
  1160. t_accept()
  1161. ; return 0; }
  1162. EOF
  1163. if eval $ac_link; then
  1164.   rm -rf conftest*
  1165.   eval "ac_cv_lib_nsl=yes"
  1166. else
  1167.   rm -rf conftest*
  1168.   eval "ac_cv_lib_nsl=no"
  1169. fi
  1170. rm -f conftest*
  1171. LIBS="$ac_save_LIBS"
  1172.  
  1173. fi
  1174. if eval "test \"`echo '$ac_cv_lib_'nsl`\" = yes"; then
  1175.   echo "$ac_t""yes" 1>&6
  1176.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  1177. else
  1178.   echo "$ac_t""no" 1>&6
  1179. fi
  1180.  
  1181.  
  1182.     # lieder@skyler.mavd.honeywell.com says without -lsocket,
  1183.     # socket/setsockopt and other routines are undefined under SCO ODT 2.0.
  1184.     # But -lsocket is broken on IRIX, according to simon@lia.di.epfl.ch.
  1185.     if test "`(uname) 2>/dev/null`" != IRIX; then
  1186.       echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
  1187. if eval "test \"`echo '$''{'ac_cv_lib_socket'+set}'`\" = set"; then
  1188.   echo $ac_n "(cached) $ac_c" 1>&6
  1189. else
  1190.   ac_save_LIBS="$LIBS"
  1191. LIBS="-lsocket  $LIBS"
  1192. cat > conftest.$ac_ext <<EOF
  1193. #line 1194 "configure"
  1194. #include "confdefs.h"
  1195.  
  1196. int main() { return 0; }
  1197. int t() {
  1198. socket()
  1199. ; return 0; }
  1200. EOF
  1201. if eval $ac_link; then
  1202.   rm -rf conftest*
  1203.   eval "ac_cv_lib_socket=yes"
  1204. else
  1205.   rm -rf conftest*
  1206.   eval "ac_cv_lib_socket=no"
  1207. fi
  1208. rm -f conftest*
  1209. LIBS="$ac_save_LIBS"
  1210.  
  1211. fi
  1212. if eval "test \"`echo '$ac_cv_lib_'socket`\" = yes"; then
  1213.   echo "$ac_t""yes" 1>&6
  1214.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lsocket"
  1215. else
  1216.   echo "$ac_t""no" 1>&6
  1217. fi
  1218.  
  1219.     fi
  1220.   fi
  1221. fi
  1222.  
  1223. # If we cannot run a trivial program, we must be cross compiling.
  1224. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  1225. if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  1226.   echo $ac_n "(cached) $ac_c" 1>&6
  1227. else
  1228.   if test "$cross_compiling" = yes; then
  1229.   ac_cv_c_cross=yes
  1230. else
  1231. cat > conftest.$ac_ext <<EOF
  1232. #line 1233 "configure"
  1233. #include "confdefs.h"
  1234. main(){return(0);}
  1235. EOF
  1236. eval $ac_link
  1237. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1238.   ac_cv_c_cross=no
  1239. else
  1240.   ac_cv_c_cross=yes
  1241. fi
  1242. fi
  1243. rm -fr conftest*
  1244. fi
  1245. cross_compiling=$ac_cv_c_cross
  1246. echo "$ac_t""$ac_cv_c_cross" 1>&6
  1247.  
  1248. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1249. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1250.   echo $ac_n "(cached) $ac_c" 1>&6
  1251. else
  1252.   cat > conftest.$ac_ext <<EOF
  1253. #line 1254 "configure"
  1254. #include "confdefs.h"
  1255. #include <stdlib.h>
  1256. #include <stdarg.h>
  1257. #include <string.h>
  1258. #include <float.h>
  1259. EOF
  1260. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1261. ac_err=`grep -v '^ *+' conftest.out`
  1262. if test -z "$ac_err"; then
  1263.   rm -rf conftest*
  1264.   ac_cv_header_stdc=yes
  1265. else
  1266.   echo "$ac_err" >&5
  1267.   rm -rf conftest*
  1268.   ac_cv_header_stdc=no
  1269. fi
  1270. rm -f conftest*
  1271.  
  1272. if test $ac_cv_header_stdc = yes; then
  1273.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1274. cat > conftest.$ac_ext <<EOF
  1275. #line 1276 "configure"
  1276. #include "confdefs.h"
  1277. #include <string.h>
  1278. EOF
  1279. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1280.   egrep "memchr" >/dev/null 2>&1; then
  1281.   :
  1282. else
  1283.   rm -rf conftest*
  1284.   ac_cv_header_stdc=no
  1285. fi
  1286. rm -f conftest*
  1287.  
  1288. fi
  1289.  
  1290. if test $ac_cv_header_stdc = yes; then
  1291.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1292. cat > conftest.$ac_ext <<EOF
  1293. #line 1294 "configure"
  1294. #include "confdefs.h"
  1295. #include <stdlib.h>
  1296. EOF
  1297. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1298.   egrep "free" >/dev/null 2>&1; then
  1299.   :
  1300. else
  1301.   rm -rf conftest*
  1302.   ac_cv_header_stdc=no
  1303. fi
  1304. rm -f conftest*
  1305.  
  1306. fi
  1307.  
  1308. if test $ac_cv_header_stdc = yes; then
  1309.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1310. if test "$cross_compiling" = yes; then
  1311.   ac_cv_header_stdc=no
  1312. else
  1313. cat > conftest.$ac_ext <<EOF
  1314. #line 1315 "configure"
  1315. #include "confdefs.h"
  1316. #include <ctype.h>
  1317. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1318. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1319. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1320. int main () { int i; for (i = 0; i < 256; i++)
  1321. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1322. exit (0); }
  1323.  
  1324. EOF
  1325. eval $ac_link
  1326. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1327.   :
  1328. else
  1329.   ac_cv_header_stdc=no
  1330. fi
  1331. fi
  1332. rm -fr conftest*
  1333. fi
  1334. fi
  1335. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1336. if test $ac_cv_header_stdc = yes; then
  1337.   cat >> confdefs.h <<\EOF
  1338. #define STDC_HEADERS 1
  1339. EOF
  1340.  
  1341. fi
  1342.  
  1343. echo $ac_n "checking for working const""... $ac_c" 1>&6
  1344. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  1345.   echo $ac_n "(cached) $ac_c" 1>&6
  1346. else
  1347.   cat > conftest.$ac_ext <<EOF
  1348. #line 1349 "configure"
  1349. #include "confdefs.h"
  1350.  
  1351. int main() { return 0; }
  1352. int t() {
  1353.  
  1354. /* Ultrix mips cc rejects this.  */
  1355. typedef int charset[2]; const charset x;
  1356. /* SunOS 4.1.1 cc rejects this.  */
  1357. char const *const *ccp;
  1358. char **p;
  1359. /* NEC SVR4.0.2 mips cc rejects this.  */
  1360. struct point {int x, y;};
  1361. static struct point const zero;
  1362. /* AIX XL C 1.02.0.0 rejects this.
  1363.    It does not let you subtract one const X* pointer from another in an arm
  1364.    of an if-expression whose if-part is not a constant expression */
  1365. const char *g = "string";
  1366. ccp = &g + (g ? g-g : 0);
  1367. /* HPUX 7.0 cc rejects these. */
  1368. ++ccp;
  1369. p = (char**) ccp;
  1370. ccp = (char const *const *) p;
  1371. { /* SCO 3.2v4 cc rejects this.  */
  1372.   char *t;
  1373.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  1374.  
  1375.   *t++ = 0;
  1376. }
  1377. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  1378.   int x[] = {25, 17};
  1379.   const int *foo = &x[0];
  1380.   ++foo;
  1381. }
  1382. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  1383.   typedef const int *iptr;
  1384.   iptr p = 0;
  1385.   ++p;
  1386. }
  1387. { /* AIX XL C 1.02.0.0 rejects this saying
  1388.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1389.   struct s { int j; const int *ap[3]; };
  1390.   struct s *b; b->j = 5;
  1391. }
  1392. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1393.   const int foo = 10;
  1394. }
  1395.  
  1396. ; return 0; }
  1397. EOF
  1398. if eval $ac_compile; then
  1399.   rm -rf conftest*
  1400.   ac_cv_c_const=yes
  1401. else
  1402.   rm -rf conftest*
  1403.   ac_cv_c_const=no
  1404. fi
  1405. rm -f conftest*
  1406.  
  1407. fi
  1408. echo "$ac_t""$ac_cv_c_const" 1>&6
  1409. if test $ac_cv_c_const = no; then
  1410.   cat >> confdefs.h <<\EOF
  1411. #define const 
  1412. EOF
  1413.  
  1414. fi
  1415.  
  1416. echo $ac_n "checking for inline""... $ac_c" 1>&6
  1417. if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  1418.   echo $ac_n "(cached) $ac_c" 1>&6
  1419. else
  1420.   ac_cv_c_inline=no
  1421. for ac_kw in inline __inline__ __inline; do
  1422.   cat > conftest.$ac_ext <<EOF
  1423. #line 1424 "configure"
  1424. #include "confdefs.h"
  1425.  
  1426. int main() { return 0; }
  1427. int t() {
  1428. } $ac_kw foo() {
  1429. ; return 0; }
  1430. EOF
  1431. if eval $ac_compile; then
  1432.   rm -rf conftest*
  1433.   ac_cv_c_inline=$ac_kw; break
  1434. fi
  1435. rm -f conftest*
  1436.  
  1437. done
  1438.  
  1439. fi
  1440. echo "$ac_t""$ac_cv_c_inline" 1>&6
  1441. case "$ac_cv_c_inline" in
  1442.   inline | yes) ;;
  1443.   no) cat >> confdefs.h <<\EOF
  1444. #define inline 
  1445. EOF
  1446.  ;;
  1447.   *)  cat >> confdefs.h <<EOF
  1448. #define inline $ac_cv_c_inline
  1449. EOF
  1450.  ;;
  1451. esac
  1452.  
  1453. for ac_func in strchr memcpy memmove
  1454. do
  1455. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1456. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1457.   echo $ac_n "(cached) $ac_c" 1>&6
  1458. else
  1459.   cat > conftest.$ac_ext <<EOF
  1460. #line 1461 "configure"
  1461. #include "confdefs.h"
  1462. /* System header to define __stub macros and hopefully few prototypes,
  1463.     which can conflict with char $ac_func(); below.  */
  1464. #include <assert.h>
  1465. /* Override any gcc2 internal prototype to avoid an error.  */
  1466. char $ac_func(); 
  1467.  
  1468. int main() { return 0; }
  1469. int t() {
  1470.  
  1471. /* The GNU C library defines this for functions which it implements
  1472.     to always fail with ENOSYS.  Some functions are actually named
  1473.     something starting with __ and the normal name is an alias.  */
  1474. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1475. choke me
  1476. #else
  1477. $ac_func();
  1478. #endif
  1479.  
  1480. ; return 0; }
  1481. EOF
  1482. if eval $ac_link; then
  1483.   rm -rf conftest*
  1484.   eval "ac_cv_func_$ac_func=yes"
  1485. else
  1486.   rm -rf conftest*
  1487.   eval "ac_cv_func_$ac_func=no"
  1488. fi
  1489. rm -f conftest*
  1490.  
  1491. fi
  1492. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1493.   echo "$ac_t""yes" 1>&6
  1494.     ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  1495.   cat >> confdefs.h <<EOF
  1496. #define $ac_tr_func 1
  1497. EOF
  1498.  
  1499. else
  1500.   echo "$ac_t""no" 1>&6
  1501. fi
  1502. done
  1503. # Check whether --enable-debug or --disable-debug was given.
  1504. enableval="$enable_debug"
  1505. if test -n "$enableval"; then
  1506.   case x$withval in
  1507.     xno) ;;
  1508.     x*)  cat >> confdefs.h <<\EOF
  1509. #define DEBUG 1
  1510. EOF
  1511. ;;
  1512.    esac
  1513. fi
  1514. # Check whether --with-motif or --without-motif was given.
  1515. withval="$with_motif"
  1516. if test -n "$withval"; then
  1517.   case x$withval in
  1518.     xno) MOTIFOBJ="";;
  1519.     x*)  ac_safe=`echo "Xm/Xm.h" | tr './\055' '___'`
  1520. echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
  1521. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1522.   echo $ac_n "(cached) $ac_c" 1>&6
  1523. else
  1524.   cat > conftest.$ac_ext <<EOF
  1525. #line 1526 "configure"
  1526. #include "confdefs.h"
  1527. #include <Xm/Xm.h>
  1528. EOF
  1529. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1530. ac_err=`grep -v '^ *+' conftest.out`
  1531. if test -z "$ac_err"; then
  1532.   rm -rf conftest*
  1533.   eval "ac_cv_header_$ac_safe=yes"
  1534. else
  1535.   echo "$ac_err" >&5
  1536.   rm -rf conftest*
  1537.   eval "ac_cv_header_$ac_safe=no"
  1538. fi
  1539. rm -f conftest*
  1540. fi
  1541. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1542.   echo "$ac_t""yes" 1>&6
  1543.   MOTIFOBJ="GLwMDrawingArea.o GLwCreateMDrawingArea.o"
  1544. else
  1545.   echo "$ac_t""no" 1>&6
  1546. fi
  1547. ;;
  1548.    esac
  1549. else
  1550.   MOTIFOBJ=""
  1551. fi
  1552. # Check whether --with-mesadir or --without-mesadir was given.
  1553. withval="$with_mesadir"
  1554. if test -n "$withval"; then
  1555.   case x$withval in
  1556.     xno) mesa_srcdir="`pwd`";;
  1557.     x)   mesa_srcdir="`cd .. && pwd`";;
  1558.     x*)  mesa_srcdir="`cd $withval && pwd`";;
  1559.    esac
  1560. else
  1561.   mesa_srcdir="`cd .. && pwd`"
  1562. fi
  1563. trap '' 1 2 15
  1564. cat > confcache <<\EOF
  1565. # This file is a shell script that caches the results of configure
  1566. # tests run on this system so they can be shared between configure
  1567. # scripts and configure runs.  It is not useful on other systems.
  1568. # If it contains results you don't want to keep, you may remove or edit it.
  1569. #
  1570. # By default, configure uses ./config.cache as the cache file,
  1571. # creating it if it does not exist already.  You can give configure
  1572. # the --cache-file=FILE option to use a different cache file; that is
  1573. # what configure does when it calls configure scripts in
  1574. # subdirectories, so they share the cache.
  1575. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1576. # config.status only pays attention to the cache file if you give it the
  1577. # --recheck option to rerun configure.
  1578. #
  1579. EOF
  1580. # Ultrix sh set writes to stderr and can't be redirected directly,
  1581. # and sets the high bit in the cache file unless we assign to the vars.
  1582. (set) 2>&1 |
  1583.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  1584.   >> confcache
  1585. if cmp -s $cache_file confcache; then
  1586.   :
  1587. else
  1588.   if test -w $cache_file; then
  1589.     echo "updating cache $cache_file"
  1590.     cat confcache > $cache_file
  1591.   else
  1592.     echo "not updating unwritable cache $cache_file"
  1593.   fi
  1594. fi
  1595. rm -f confcache
  1596.  
  1597. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1598.  
  1599. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1600. # Let make expand exec_prefix.
  1601. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1602.  
  1603. # Any assignment to VPATH causes Sun make to only execute
  1604. # the first set of double-colon rules, so remove it if not needed.
  1605. # If there is a colon in the path, we need to keep it.
  1606. if test "x$srcdir" = x.; then
  1607.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  1608. fi
  1609.  
  1610. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1611.  
  1612. # Transform confdefs.h into DEFS.
  1613. # Protect against shell expansion while executing Makefile rules.
  1614. # Protect against Makefile macro expansion.
  1615. cat > conftest.defs <<\EOF
  1616. s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
  1617. s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
  1618. s%\[%\\&%g
  1619. s%\]%\\&%g
  1620. s%\$%$$%g
  1621. EOF
  1622. DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  1623. rm -f conftest.defs
  1624.  
  1625.  
  1626. # Without the "./", some shells look in PATH for config.status.
  1627. : ${CONFIG_STATUS=./config.status}
  1628.  
  1629. echo creating $CONFIG_STATUS
  1630. rm -f $CONFIG_STATUS
  1631. cat > $CONFIG_STATUS <<EOF
  1632. #! /bin/sh
  1633. # Generated automatically by configure.
  1634. # Run this file to recreate the current configuration.
  1635. # This directory was configured as follows,
  1636. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1637. #
  1638. # $0 $ac_configure_args
  1639. #
  1640. # Compiler output produced by configure, useful for debugging
  1641. # configure, is in ./config.log if it exists.
  1642.  
  1643. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1644. for ac_option
  1645. do
  1646.   case "\$ac_option" in
  1647.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1648.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1649.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1650.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1651.     echo "$CONFIG_STATUS generated by autoconf version 2.2"
  1652.     exit 0 ;;
  1653.   -help | --help | --hel | --he | --h)
  1654.     echo "\$ac_cs_usage"; exit 0 ;;
  1655.   *) echo "\$ac_cs_usage"; exit 1 ;;
  1656.   esac
  1657. done
  1658.  
  1659. ac_given_srcdir=$srcdir
  1660. ac_given_INSTALL="$INSTALL"
  1661.  
  1662. trap 'rm -f Makefile src/Makefile include/GL/Makefile
  1663.            demos/Makefile man/Makefile; exit 1' 1 2 15
  1664.  
  1665. # Protect against being on the right side of a sed subst in config.status. 
  1666. sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 
  1667.  s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
  1668. $ac_vpsub
  1669. $extrasub
  1670. s%@CFLAGS@%$CFLAGS%g
  1671. s%@CPPFLAGS@%$CPPFLAGS%g
  1672. s%@CXXFLAGS@%$CXXFLAGS%g
  1673. s%@DEFS@%$DEFS%g
  1674. s%@LDFLAGS@%$LDFLAGS%g
  1675. s%@LIBS@%$LIBS%g
  1676. s%@exec_prefix@%$exec_prefix%g
  1677. s%@prefix@%$prefix%g
  1678. s%@program_transform_name@%$program_transform_name%g
  1679. s%@host@%$host%g
  1680. s%@host_alias@%$host_alias%g
  1681. s%@host_cpu@%$host_cpu%g
  1682. s%@host_vendor@%$host_vendor%g
  1683. s%@host_os@%$host_os%g
  1684. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1685. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1686. s%@LN_S@%$LN_S%g
  1687. s%@POD2MAN@%$POD2MAN%g
  1688. s%@POD2HTML@%$POD2HTML%g
  1689. s%@RANLIB@%$RANLIB%g
  1690. s%@ARFLAGS@%$ARFLAGS%g
  1691. s%@SYS_CFLAGS@%$SYS_CFLAGS%g
  1692. s%@SYS_LDFLAGS@%$SYS_LDFLAGS%g
  1693. s%@CC@%$CC%g
  1694. s%@CPP@%$CPP%g
  1695. s%@X_CFLAGS@%$X_CFLAGS%g
  1696. s%@X_PRE_LIBS@%$X_PRE_LIBS%g
  1697. s%@X_LIBS@%$X_LIBS%g
  1698. s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
  1699. s%@MOTIFOBJ@%$MOTIFOBJ%g
  1700. s%@mesa_srcdir@%$mesa_srcdir%g
  1701.  
  1702. CEOF
  1703. EOF
  1704. cat >> $CONFIG_STATUS <<EOF
  1705.  
  1706. CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile include/GL/Makefile
  1707.            demos/Makefile man/Makefile"}
  1708. EOF
  1709. cat >> $CONFIG_STATUS <<\EOF
  1710. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1711.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  1712.   case "$ac_file" in
  1713.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  1714.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1715.   *) ac_file_in="${ac_file}.in" ;;
  1716.   esac
  1717.  
  1718.   # Adjust relative srcdir, etc. for subdirectories.
  1719.  
  1720.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1721.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1722.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1723.     # The file is in a subdirectory.
  1724.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1725.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1726.     # A "../" for each directory in $ac_dir_suffix.
  1727.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1728.   else
  1729.     ac_dir_suffix= ac_dots=
  1730.   fi
  1731.  
  1732.   case "$ac_given_srcdir" in
  1733.   .)  srcdir=.
  1734.       if test -z "$ac_dots"; then top_srcdir=.
  1735.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1736.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1737.   *) # Relative path.
  1738.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1739.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1740.   esac
  1741.  
  1742.   case "$ac_given_INSTALL" in
  1743.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  1744.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  1745.   esac
  1746.   echo creating "$ac_file"
  1747.   rm -f "$ac_file"
  1748.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1749.   case "$ac_file" in
  1750.   *Makefile*) ac_comsub="1i\\
  1751. # $configure_input" ;;
  1752.   *) ac_comsub= ;;
  1753.   esac
  1754.   sed -e "$ac_comsub
  1755. s%@configure_input@%$configure_input%g
  1756. s%@srcdir@%$srcdir%g
  1757. s%@top_srcdir@%$top_srcdir%g
  1758. s%@INSTALL@%$INSTALL%g
  1759. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  1760. fi; done
  1761. rm -f conftest.subs
  1762.  
  1763.  
  1764.  
  1765. exit 0
  1766. EOF
  1767. chmod +x $CONFIG_STATUS
  1768. rm -fr confdefs* $ac_clean_files
  1769. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  1770.